Add splode

This commit is contained in:
Dustin Pianalto 2020-04-08 00:12:47 -08:00
parent ac65d36ce8
commit 45584c31fd

24
geeksbot/exts/fun.py Normal file
View File

@ -0,0 +1,24 @@
import discord
from discord.ext import commands
import asyncio
class Fun(commands.Cog):
@commands.command(name='explode', aliases=['splode'])
async def explode_user(self, ctx, member: discord.Member=None):
"""Trolls user by punching them to oblivion."""
if member is None or member.id == 396588996706304010:
member = ctx.author
msg = await ctx.send(f'{member.mention}{"<:transparent:405943174809255956>"*20}{self.bot.unicode_emojis["left_fist"]}')
for i in range(4):
await asyncio.sleep(0.5)
await msg.edit(content=f'{member.mention}{"<:transparent:405943174809255956>"*(20-(i*5))}{self.bot.unicode_emojis["left_fist"]}')
await asyncio.sleep(0.1)
await msg.edit(content=f'{self.bot.unicode_emojis["boom"]}')
await asyncio.sleep(0.5)
await msg.edit(content=f'{self.bot.unicode_emojis["boom"]} <---- {member.mention} that was you...')
def setup(bot):
bot.add_cog(Fun(bot))