fix strings copied from other project

This commit is contained in:
Cyberes 2024-04-03 23:16:30 -06:00
parent 364f68392b
commit 0bf5d92f1a
3 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ class MatrixBotCallbacks:
def __init__(self, client: AsyncClient, config: dict):
self.client = client
self.config = config
self.logger = logging.getLogger('MatrixGPT').getChild('MatrixBotCallbacks')
self.logger = logging.getLogger('ExportBot').getChild('MatrixBotCallbacks')
self.startup_ts = time.time() * 1000
self.seen_events = {}
self.exports = ExportTracker()

View File

@ -15,7 +15,7 @@ class MatrixClientHelper:
# Encryption is disabled because it's handled by Pantalaimon.
client_config = AsyncClientConfig(max_limit_exceeded=0, max_timeouts=0, store_sync_tokens=True, encryption_enabled=False)
def __init__(self, user_id: str, passwd: str, homeserver: str, store_path: str, device_name: str = 'MatrixGPT'):
def __init__(self, user_id: str, passwd: str, homeserver: str, store_path: str, device_name: str = 'ExportBot'):
self.user_id = user_id
self.passwd = passwd
@ -29,7 +29,7 @@ class MatrixClientHelper:
self.device_name = device_name
self.client = AsyncClient(homeserver=self.homeserver, user=self.user_id, config=self.client_config, device_id=device_name)
self.logger = logging.getLogger('MatrixGPT').getChild('MatrixClientHelper')
self.logger = logging.getLogger('ExportBot').getChild('MatrixClientHelper')
async def login(self) -> tuple[bool, LoginError] | tuple[bool, LoginResponse | None]:
try:

View File

@ -16,7 +16,7 @@ SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__))
async def main(args):
logging.basicConfig()
logger = logging.getLogger('MatrixGPT')
logger = logging.getLogger('ExportBot')
with open(args.config) as stream:
try: