add command say

This commit is contained in:
BFlow 2020-04-25 19:33:20 +02:00
parent 1db9e9685f
commit 63c3bc353d

View file

@ -197,7 +197,7 @@ class Mybot(commands.Cog):
except:
response = "Unknow error, try: !kaamelott [livre] [character]"
await ctx.send(response)
@commands.command(help="optionnal args : ")
async def contrepeterie(self, ctx, *args):
response = None
@ -288,6 +288,14 @@ class Mybot(commands.Cog):
await asyncio.sleep(0.5)
await ctx.channel.send("Tu peux reparler %s!" % member.mention)
@commands.dm_only()
@commands.command(help="Faire dire des choses au bot")
async def say(self, ctx, message):
sentence = ' '.join(message)
channel = [x for x in self.bot.get_all_channels() if x.name == "général"][0]
await channel.send(sentence)
@tasks.loop(seconds=1.5)
async def play_next(self):
if self.sounds: