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
|
import river_stats
|
||||||
result = river_stats.get_stats()
|
result = river_stats.get_stats()
|
||||||
|
|
||||||
await ctx.send(result)
|
await ctx.send(embed=result)
|
||||||
|
|
||||||
@bot.command(name='8ball')
|
@bot.command(name='8ball')
|
||||||
async def eight_ball(ctx):
|
async def eight_ball(ctx):
|
||||||
|
@ -34,7 +34,8 @@ def get_stats():
|
|||||||
x.join()
|
x.join()
|
||||||
|
|
||||||
final_string = ''
|
final_string = ''
|
||||||
|
embed = discord.Embed(description="Flows", color=0x428bca, type="rich")
|
||||||
|
embed.set_author(name="River stats")
|
||||||
for key, value in results.items():
|
for key, value in results.items():
|
||||||
final_string += "\n" + key + ": " + value
|
embed.add_field(name=key, value=value, inline=False)
|
||||||
|
return embed
|
||||||
return "```" + final_string + "```"
|
|
Loading…
x
Reference in New Issue
Block a user