Close color code in string to avoid color bleed, update legacy SESSIONS reference to SESSIONS_HANDLER

This commit is contained in:
Wendy Wang 2023-01-18 22:59:00 +01:00
parent 54f21bd665
commit a2178cfbe2

View file

@ -621,7 +621,7 @@ class DiscordBot(Bot):
# connect
global _SESSIONS
if not _SESSIONS:
from evennia.server.sessionhandler import SESSIONS as _SESSIONS
from evennia.server.sessionhandler import SESSION_HANDLER as _SESSIONS
# these will be made available as properties on the protocol factory
configdict = {"uid": self.dbid}
_SESSIONS.start_bot_session(self.factory_path, configdict)