add guild creation date to /serverinfo command
@@ -224,9 +224,14 @@ class Useful(commands.Cog):
db_guild = await self.db.fetch_guild(guild.id)
+ time = arrow.Arrow.fromtimestamp(time)
+ time = time.format('MMM D, YYYY', locale=ctx.l.lang) + ', ' + time.humanize(locale=ctx.l.lang)
+
embed = discord.Embed(color=self.d.cc)
embed.set_author(name=f'{guild.name} {ctx.l.useful.ginf.info}', icon_url=guild.icon_url)
+ embed.description = f'{ctx.l.useful.ginf.age}: {time}'
+
general = f'{ctx.l.useful.ginf.owner}: {guild.owner.mention}\n' \
f'{ctx.l.useful.ginf.members}: `{guild.member_count}`\n' \
f'{ctx.l.useful.ginf.channels}: `{len(guild.channels)}`\n ' \
