Added the option to !opt-in/opt-out [onlinebot only]

Fixed command & event threading
Events are now threaded by event_type (i.e. all buddy_logon events get ran in the same one)
Added default preferences
Fixed recipe loading for multiple installs (i.e. on different machines)
This commit is contained in:
2021-08-27 13:58:47 +02:00
parent d0c8c1744c
commit c04f76c0db
24 changed files with 258 additions and 122 deletions
+2 -2
View File
@@ -41,10 +41,10 @@ class Bot:
# read character list
character_list_packet: LoginCharacterList = self.read_packet()
if isinstance(character_list_packet, LoginError):
self.logger.error("Error logging in: %s" % character_list_packet.message)
self.logger.error(f"Error logging in: {character_list_packet.message}")
return False
if character not in character_list_packet.names:
self.logger.error("Character '%s' does not exist on this account" % character)
self.logger.error(f"Character '{character}' does not exist on this account")
return False
index = character_list_packet.names.index(character)