diff --git a/app/bot.py b/app/bot.py index 4abf762f..3c9aa3f7 100755 --- a/app/bot.py +++ b/app/bot.py @@ -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): diff --git a/app/river_stats.py b/app/river_stats.py index 434ee83e..e7e279e8 100644 --- a/app/river_stats.py +++ b/app/river_stats.py @@ -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 + "```" \ No newline at end of file + embed.add_field(name=key, value=value, inline=False) + return embed \ No newline at end of file