Fix for mrelay, and blobs. (Spotted by Luckycharmmz/VA - ty for the fixing assistance!)
Orgmembers will nolonger get invited into the priv channel of their orgbot.. (on reboot only) Added Nickname to !history (only useful for !history char_id>)
This commit is contained in:
@@ -168,7 +168,7 @@ class PollController:
|
||||
"ORDER BY finished_at, id", [event_data.account.char_id])
|
||||
if data:
|
||||
row = data[0]
|
||||
self.bot.send_private_message(event_data.char_info.char_id, self.show_poll_details_blob(row))
|
||||
self.bot.send_private_message(event_data.packet.char_id, self.show_poll_details_blob(row))
|
||||
|
||||
def create_scheduled_jobs_for_polls(self):
|
||||
data = self.db.query("SELECT * FROM poll WHERE is_finished != 1")
|
||||
|
||||
@@ -36,7 +36,7 @@ class CharacterHistoryController:
|
||||
else:
|
||||
return f"Could not find history for <highlight>{char.name}</highlight> " \
|
||||
f"on server <highlight>{server_num}</highlight>."
|
||||
blob = " | ".join(["Date", "Lvl", "AI", "Side", "Breed", "CharId", "Guild (Rank)"]) + "\n"
|
||||
blob = " | ".join(["Date", "Lvl", "AI", "Side", "Breed", "CharId", "Name", "Guild (Rank)"]) + "\n"
|
||||
blob += "__________________________________________________________\n"
|
||||
return self.text.format_pagination(data, offset, page, self.formatter,
|
||||
f'History of {char.name} (RK{server_num})',
|
||||
@@ -54,5 +54,5 @@ class CharacterHistoryController:
|
||||
return "<red>DELETED</red>\n"
|
||||
return f"{last_changed} | <white>{self.text.zfill(int(row.level), 220)}</white> | " \
|
||||
f"<green>{self.text.zfill(int(row.defender_rank or 0), 30)}</green> | {row.faction:^7} | " \
|
||||
f"{row.breed:^10} | {self.text.zfill(int(row.char_id or 0), int(data[0].char_id or 0))} | " \
|
||||
f"{row.breed:^10} | {self.text.zfill(int(row.char_id or 0), int(data[0].char_id or 0))} | {row.nickname:^13} | " \
|
||||
f"<white>{org}</white>\n"
|
||||
|
||||
Reference in New Issue
Block a user