start on guildinfo command
@@ -6,9 +6,10 @@ import arrow
class Useful(commands.Cog):
def __init__(self, bot):
self.bot = bot
-
self.d = self.bot.d
+ self.db = self.bot.get_cog('Database')
+
"""
@commands.group(name='help')
async def help(self, ctx):
@@ -116,6 +117,20 @@ class Useful(commands.Cog):
await ctx.send(embed=embed)
+ @commands.command(name='guildinfo', aliases=['server', 'serverinfo'])
+ @commands.guild_only()
+ async def guild_info(self, ctx, gid: int = None):
+ if gid == None:
+ guild = ctx.guild
+ else:
+ guild = self.bot.get_guild(gid)
+
+ db_guild = await self.db.fetch_guild()
+
+ embed = discord.Embed(color=self.d.cc)
+
+ embed.set_author()
+
def setup(bot):
bot.add_cog(Useful(bot))
