mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Fixed !reload and !getplaylist
!reload now works and !getplaylist splits the message in multiple parts
This commit is contained in:
parent
cf5e07851b
commit
1e8b9ab681
8
red.py
8
red.py
@ -230,7 +230,7 @@ async def on_message(message):
|
||||
elif message.content == "!talk": #prevents !talk custom command
|
||||
pass
|
||||
elif message.content == "!reload":
|
||||
reloadSettings(message)
|
||||
await reloadSettings(message)
|
||||
elif message.content.startswith("!name"):
|
||||
await changeName(message)
|
||||
elif message.content.startswith("!cleanup"):
|
||||
@ -941,6 +941,11 @@ async def sendPlaylist(message):
|
||||
for track in currentPlaylist.playlist:
|
||||
msg += track
|
||||
msg += "\n"
|
||||
if len(msg) >= 1900:
|
||||
msg += "```"
|
||||
await client.send_message(message.author, msg)
|
||||
msg = "```"
|
||||
if msg != "```":
|
||||
msg += "```"
|
||||
await client.send_message(message.author, msg)
|
||||
|
||||
@ -1082,6 +1087,7 @@ async def removeRegex(message):
|
||||
async def reloadSettings(message):
|
||||
if isMemberAdmin(message):
|
||||
loadDataFromFiles(True)
|
||||
await client.send_message(message.channel, "`Settings and files reloaded.`")
|
||||
else:
|
||||
await client.send_message(message.channel, "`I don't take orders from you.`")
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
{"TRIVIA_ADMIN_ONLY": false, "EDIT_CC_ADMIN_ONLY": false, "PASSWORD": "PASSWORDHERE", "FILTER": true, "CUSTOMCOMMANDS": true, "TRIVIAMAXSCORE": 10, "TRIVIADELAY": 15, "NAME": "Red", "LOGGING": true, "EMAIL": "EMAILHERE", "ADMINROLE": "Transistor"}
|
||||
{"CUSTOMCOMMANDS": true, "EMAIL": "EMAILHERE", "TRIVIA_ADMIN_ONLY": false, "EDIT_CC_ADMIN_ONLY": false, "TRIVIAMAXSCORE": 10, "TRIVIADELAY": 15, "PASSWORD": "PASSWORDHERE", "LOGGING": true, "ADMINROLE": "Transistor", "FILTER": true}
|
||||
Loading…
x
Reference in New Issue
Block a user