Making flows return an embed

This commit is contained in:
Luke Robles 2021-04-03 16:20:16 -07:00
parent fb6018985e
commit b0373e63dd
2 changed files with 5 additions and 4 deletions

View File

@ -408,7 +408,7 @@ async def flows(ctx):
import river_stats
result = river_stats.get_stats()
await ctx.send(result)
await ctx.send(embed=result)
@bot.command(name='8ball')
async def eight_ball(ctx):

View File

@ -34,7 +34,8 @@ def get_stats():
x.join()
final_string = ''
embed = discord.Embed(description="Flows", color=0x428bca, type="rich")
embed.set_author(name="River stats")
for key, value in results.items():
final_string += "\n" + key + ": " + value
return "```" + final_string + "```"
embed.add_field(name=key, value=value, inline=False)
return embed