From 797b36391d06b6a754d2b46a69c947171cd0e8a7 Mon Sep 17 00:00:00 2001 From: BFlow Date: Sat, 25 Apr 2020 19:39:59 +0200 Subject: [PATCH] =?UTF-8?q?correction=20n=C2=B02=20command=20say?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kabot/kabot/kabot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 3dd4084..9b8df26 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -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)