Updating the embed for flows to have emojis and deleteing the usermessage for the cleanup command

This commit is contained in:
Luke Robles 2021-04-17 18:37:27 -07:00
parent 23cbbe01b6
commit e0de4e6c68
2 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,6 @@ async def verify(ctx):
@bot.command(name='clap') @bot.command(name='clap')
async def clap(ctx): async def clap(ctx):
await ctx.send("{}".format(' :clap: '.join(ctx.message.content.split()[1:]))) await ctx.send("{}".format(' :clap: '.join(ctx.message.content.split()[1:])))
@bot.command(name='.') @bot.command(name='.')
@ -485,6 +484,7 @@ async def cleanup(ctx):
) )
return return
await ctx.message.channel.purge(limit=num, check=is_discord_bot) await ctx.message.channel.purge(limit=num, check=is_discord_bot)
await ctx.message.delete()
@bot.event @bot.event

View File

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