correction n°2 command say

This commit is contained in:
BFlow 2020-04-25 19:39:59 +02:00
parent 8083e0a41f
commit 797b36391d

View file

@ -290,9 +290,10 @@ class Mybot(commands.Cog):
@commands.dm_only()
@commands.command(help="Faire dire des choses au bot")
async def say(self, ctx, message):
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(message)
await channel.send(sentence)
@tasks.loop(seconds=1.5)