add command say
This commit is contained in:
parent
1db9e9685f
commit
63c3bc353d
1 changed files with 9 additions and 1 deletions
|
@ -197,7 +197,7 @@ class Mybot(commands.Cog):
|
||||||
except:
|
except:
|
||||||
response = "Unknow error, try: !kaamelott [livre] [character]"
|
response = "Unknow error, try: !kaamelott [livre] [character]"
|
||||||
await ctx.send(response)
|
await ctx.send(response)
|
||||||
|
|
||||||
@commands.command(help="optionnal args : ")
|
@commands.command(help="optionnal args : ")
|
||||||
async def contrepeterie(self, ctx, *args):
|
async def contrepeterie(self, ctx, *args):
|
||||||
response = None
|
response = None
|
||||||
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue