Move system/member card embeds to embeds.py

This commit is contained in:
Ske
2018-09-16 19:36:50 +02:00
parent 345e8baab6
commit 6951c15167
4 changed files with 102 additions and 94 deletions

View File

@@ -2,6 +2,7 @@ import dateparser
import humanize
from datetime import datetime, timedelta
import pluralkit.bot.embeds
import pluralkit.utils
from pluralkit.bot import help
from pluralkit.bot.commands import *
@@ -16,7 +17,7 @@ async def system_info(ctx: CommandContext):
else:
system = await ctx.ensure_system()
await ctx.reply(embed=await utils.generate_system_info_card(ctx.conn, ctx.client, system))
await ctx.reply(embed=await pluralkit.bot.embeds.system_card(ctx.conn, ctx.client, system))
async def new_system(ctx: CommandContext):