release-1.0.0
DustyP 8 years ago
parent 7b3a130c91
commit 5a2fb878f3

@ -146,6 +146,17 @@ class Fun:
async def volume(self, ctx, volume: float):
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):
bot.add_cog(Fun(bot))

@ -38,6 +38,7 @@ emojis: Dict[str, str] = {
'x': '',
'y': '',
'poop': '💩',
'boom': '💥',
}
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.gcs_service = build('customsearch', 'v1', developerKey=self.bot_secrets['google_search_key'])
self.tpe = futures.ThreadPoolExecutor()
self.unicode_emojis: Dict[str, str] = {
'x': '',
'y': '',
'poop': '💩',
'boom': '💥',
'left_fist': '🤛',
}
async def connect_db(self):
self.db_con = await asyncpg.create_pool(host=self.bot_secrets['db_con']['host'],

Loading…
Cancel
Save