Making flows return an embed
This commit is contained in:
parent
fb6018985e
commit
b0373e63dd
@ -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):
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user