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,7 +4,6 @@ import time
from threading import Thread
import requests
from mysql.connector.cursor import CursorBase
from core.buddy_service import BuddyService
from core.cache_service import CacheService
@@ -173,7 +172,6 @@ class OrgController:
with self.db.pool.get_connection() as conn:
with conn.cursor() as cur:
cur: CursorBase
cur.executemany(
"INSERT INTO all_orgs(org_id, org_name, member_count, faction, last_seen) "
"VALUES(?, ?, ?, ?, ?) "
@@ -235,7 +233,6 @@ class OrgController:
with self.db.lock:
with self.db.pool.get_connection() as conn:
with conn.cursor() as cur:
cur: CursorBase
cur.executemany("INSERT INTO player(char_id, name, first_name, last_name, "
"level, breed, gender, faction, profession, profession_title, "
"ai_rank, ai_level, org_id, org_name, org_rank_name, "