Added afk/brb

Timer messages ("Timer XX has yyy left") now get resumed after a bot restart
Alliance relay is discord compatible now. [Orgbot]
This commit is contained in:
2021-10-26 22:35:31 +02:00
parent bd8055dac7
commit 2d7ecf4883
14 changed files with 119 additions and 48 deletions
+4 -1
View File
@@ -88,7 +88,10 @@ class OrgChannelController:
self.bot.send_org_message(msg, fire_outgoing_event=False)
self.message_hub_service.send_message(self.MESSAGE_SOURCE, None, None, "[<cyan>Org</cyan>] " + msg)
od = OnlineDisplay(self.text, self.util, self.db)
afk_list = []
if self.online_controller:
afk_list = self.online_controller.afk_list
od = OnlineDisplay(self.text, self.util, self.db, afk_list)
params = [self.bot.name, self.bot.get_char_id()]
self.bot.send_mass_message(event_data.packet.char_id,
od.format_blob(od.format_by_channel_main("and channel_id IN (1, 2) ", params)))