Adding notification when discord bot session begins, fixing caller -> self.caller
This commit is contained in:
parent
8f7df092b3
commit
54f21bd665
1 changed files with 2 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ class CmdChannel(COMMAND_DEFAULT_CLASS):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if not channel.access(self.caller, "send"):
|
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
|
return
|
||||||
|
|
||||||
# avoid unsafe tokens in message
|
# avoid unsafe tokens in message
|
||||||
|
|
@ -1980,6 +1980,7 @@ class CmdDiscord2Chan(COMMAND_DEFAULT_CLASS):
|
||||||
self.msg("The Discord bot is already running.")
|
self.msg("The Discord bot is already running.")
|
||||||
else:
|
else:
|
||||||
discord_bot.start()
|
discord_bot.start()
|
||||||
|
self.msg("Starting the Discord bot session.")
|
||||||
return
|
return
|
||||||
|
|
||||||
if "guild" in self.switches:
|
if "guild" in self.switches:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue