add command say
This commit is contained in:
parent
1db9e9685f
commit
63c3bc353d
1 changed files with 9 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue