mirror of
https://gitlab.jonasled.de/jonasled/discordbot
synced 2024-10-05 08:48:51 +02:00
added chat command
This commit is contained in:
parent
2c101a1ddc
commit
b25ffae57b
1 changed files with 8 additions and 0 deletions
8
bot.py
8
bot.py
|
@ -439,6 +439,14 @@ async def fail(ctx):
|
|||
#
|
||||
#
|
||||
|
||||
@bot.command(brief="sends a message in the name of the bot")
|
||||
async def chat(ctx, *message : str):
|
||||
newMessage = ""
|
||||
for messages in message:
|
||||
newMessage = newMessage + messages + " "
|
||||
|
||||
await ctx.send(newMessage[:-1])
|
||||
|
||||
@bot.command(brief="adds a song to the playlist")
|
||||
async def play(ctx, songURL : str):
|
||||
global player#import the global variables needed
|
||||
|
|
Loading…
Reference in a new issue