Do not load settings which are not active (module not loaded)
Restart the bot, on heavy DB errors, with an 30 seconds delay (like: all connections terminated by DB, table_definition_cache exhausted) Fix for channel prefixing (org <-> priv)
This commit is contained in:
@@ -356,9 +356,9 @@ class LootController:
|
||||
if int(time.time()) - self.last_modify > 3600 and self.loot_list:
|
||||
self.last_modify = None
|
||||
self.loot_list = OrderedDict()
|
||||
self.bot.send_org_message("Loot was last modified more than 1 hour ago, list has been cleared.")
|
||||
self.bot.send_org_message("Loot was last modified more than 1 hour ago, list has been cleared.", fire_outgoing_event=False)
|
||||
self.bot.send_private_channel_message(
|
||||
"Loot was last modified more than 1 hour ago, list has been cleared.")
|
||||
"Loot was last modified more than 1 hour ago, list has been cleared.", fire_outgoing_event=False)
|
||||
|
||||
def is_already_added(self, name: str):
|
||||
for i, loot_item in self.loot_list.items():
|
||||
|
||||
Reference in New Issue
Block a user