cleanup and docs

This commit is contained in:
InspectorCaracal 2022-11-26 18:36:53 -07:00
parent cd529281f3
commit a2eb049fc9
3 changed files with 169 additions and 8 deletions

View file

@ -620,13 +620,8 @@ class DiscordBot(Bot):
from evennia.server.sessionhandler import SESSIONS as _SESSIONS
# these will be made available as properties on the protocol factory
configdict = {"uid": self.dbid}
logger.log_info("starting discord bot session")
_SESSIONS.start_bot_session(self.factory_path, configdict)
def at_msg_send(self, **kwargs):
"Skip this to avoid looping, presumably"
pass
def at_pre_channel_msg(self, message, channel, senders=None, **kwargs):
"""
Called by the Channel just before passing a message into `channel_msg`.