From c8846eb5f5d8fd9f877eed35635c517f301ed4c6 Mon Sep 17 00:00:00 2001 From: Wendy Wang Date: Sat, 14 Jan 2023 17:18:02 +0100 Subject: [PATCH] Adding notification when discord bot session begins, fixing caller -> self.caller --- evennia/commands/default/comms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evennia/commands/default/comms.py b/evennia/commands/default/comms.py index 32a0a40b8d..e15804b57f 100644 --- a/evennia/commands/default/comms.py +++ b/evennia/commands/default/comms.py @@ -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: