Merge pull request #3084 from Machine-Garden-MUD/main

Adding notification when discord bot session begins
This commit is contained in:
Griatch 2023-01-15 13:26:12 +01:00 committed by GitHub
commit f4253e600e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -312,7 +312,7 @@ class CmdChannel(COMMAND_DEFAULT_CLASS):
"""
if not channel.access(self.caller, "send"):
caller.msg(f"You are not allowed to send messages to channel {channel}")
self.caller.msg(f"You are not allowed to send messages to channel {channel}")
return
# avoid unsafe tokens in message
@ -1980,6 +1980,7 @@ class CmdDiscord2Chan(COMMAND_DEFAULT_CLASS):
self.msg("The Discord bot is already running.")
else:
discord_bot.start()
self.msg("Starting the Discord bot session.")
return
if "guild" in self.switches: