add command say

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

View file

@ -288,6 +288,14 @@ class Mybot(commands.Cog):
await asyncio.sleep(0.5) await asyncio.sleep(0.5)
await ctx.channel.send("Tu peux reparler %s!" % member.mention) 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) @tasks.loop(seconds=1.5)
async def play_next(self): async def play_next(self):
if self.sounds: if self.sounds: