command schizo

This commit is contained in:
BFlow 2021-05-03 21:46:46 +02:00
parent bbbb4bd21b
commit 8349448540

View file

@ -417,6 +417,22 @@ class Mybot(commands.Cog):
sentence = sentence.replace(word, member.mention) sentence = sentence.replace(word, member.mention)
await channel.send(sentence) await channel.send(sentence)
@commands.command(help='Who the fuck am i?')
async def schizo(self, ctx, name=None):
list_name = ["Kabot", "Gaspard et Balthazar", "Bender", "Zoidberg", "Gunther"]
if not name:
name = random.choice(list_name)
if name in list_name:
if name:
await self.bot.user.edit(username=name)
else:
name = "404"
await self.bot.user.edit(username="Error 404 name not found!")
await ctx.channel.send("Liste des noms = %s" % list_name)
img = here + "/ressources/avatar_bot/%s.jpg" % name
await self.bot.user.edit(avatar=img)
await self.joke(ctx, name)
@commands.command(help='slap this ass') @commands.command(help='slap this ass')
async def slap(self, ctx, user=None): async def slap(self, ctx, user=None):
slap_multiple = [ slap_multiple = [