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:
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user