1
0
Fork 0
mirror of https://gitlab.jonasled.de/jonasled/discordbot synced 2024-07-06 09:18:35 +02:00

added chat command

This commit is contained in:
Jonas Leder 2020-06-23 19:22:30 +02:00
parent 2c101a1ddc
commit b25ffae57b

8
bot.py
View file

@ -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