explode
This commit is contained in:
parent
7b3a130c91
commit
5a2fb878f3
11
exts/fun.py
11
exts/fun.py
@ -146,6 +146,17 @@ class Fun:
|
|||||||
async def volume(self, ctx, volume: float):
|
async def volume(self, ctx, volume: float):
|
||||||
self.bot.player.volume = volume
|
self.bot.player.volume = volume
|
||||||
|
|
||||||
|
@commands.command(name='explode', aliases=['splode'])
|
||||||
|
async def explode_user(self, ctx, member: discord.Member=None):
|
||||||
|
if member is None:
|
||||||
|
member = ctx.author
|
||||||
|
|
||||||
|
trans = await self.bot.db_con.fetchval('select code from emojis where id = 405943174809255956')
|
||||||
|
msg = await ctx.send(f'{member.mention}{trans*20}{self.bot.unicode_emojis["left_fist"]}')
|
||||||
|
for i in range(19, 0):
|
||||||
|
await msg.edit(content=f'{member.mention}{trans*i}{self.bot.unicode_emojis["left_fist"]}')
|
||||||
|
await msg.edit(content=f'{self.bot.unicode_emojis["boom"]}')
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
bot.add_cog(Fun(bot))
|
bot.add_cog(Fun(bot))
|
||||||
|
|||||||
@ -38,6 +38,7 @@ emojis: Dict[str, str] = {
|
|||||||
'x': '❌',
|
'x': '❌',
|
||||||
'y': '✅',
|
'y': '✅',
|
||||||
'poop': '💩',
|
'poop': '💩',
|
||||||
|
'boom': '💥',
|
||||||
}
|
}
|
||||||
|
|
||||||
description = 'I am Geeksbot Dev! Fear me I might just break and take you with me :P'
|
description = 'I am Geeksbot Dev! Fear me I might just break and take you with me :P'
|
||||||
@ -64,6 +65,13 @@ class Geeksbot(commands.Bot):
|
|||||||
self.spam_list = {}
|
self.spam_list = {}
|
||||||
self.gcs_service = build('customsearch', 'v1', developerKey=self.bot_secrets['google_search_key'])
|
self.gcs_service = build('customsearch', 'v1', developerKey=self.bot_secrets['google_search_key'])
|
||||||
self.tpe = futures.ThreadPoolExecutor()
|
self.tpe = futures.ThreadPoolExecutor()
|
||||||
|
self.unicode_emojis: Dict[str, str] = {
|
||||||
|
'x': '❌',
|
||||||
|
'y': '✅',
|
||||||
|
'poop': '💩',
|
||||||
|
'boom': '💥',
|
||||||
|
'left_fist': '🤛',
|
||||||
|
}
|
||||||
|
|
||||||
async def connect_db(self):
|
async def connect_db(self):
|
||||||
self.db_con = await asyncpg.create_pool(host=self.bot_secrets['db_con']['host'],
|
self.db_con = await asyncpg.create_pool(host=self.bot_secrets['db_con']['host'],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user