Merge pull request #5 from dustinpianalto/development

Add splode
This commit is contained in:
Dusty.P 2020-04-08 00:13:30 -08:00 committed by GitHub
commit 6f76f63707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))