Fixed copy&paste error #181

This commit is contained in:
Sven Heidemann 2023-02-16 21:43:47 +01:00
parent 4bb486f1d5
commit b9087dccb3

View File

@ -331,7 +331,7 @@ class DatabaseOnReadyEvent(OnReadyABC):
self._logger.error(__name__, f"Cannot get UserJoinedVoiceChannel", e) self._logger.error(__name__, f"Cannot get UserJoinedVoiceChannel", e)
def _check_user_joined_gs(self): def _check_user_joined_gs(self):
self._logger.debug(__name__, f"Start checking UserJoinedVoiceChannel table") self._logger.debug(__name__, f"Start checking UserJoinedGameServer table")
for guild in self._bot.guilds: for guild in self._bot.guilds:
guild: discord.Guild = guild guild: discord.Guild = guild
@ -370,7 +370,7 @@ class DatabaseOnReadyEvent(OnReadyABC):
# todo: maybe add XP # todo: maybe add XP
self._db_context.save_changes() self._db_context.save_changes()
except Exception as e: except Exception as e:
self._logger.error(__name__, f"Cannot get UserJoinedVoiceChannel", e) self._logger.error(__name__, f"Cannot get UserJoinedGameServer", e)
async def on_ready(self): async def on_ready(self):
self._logger.debug(__name__, f"Module {type(self)} started") self._logger.debug(__name__, f"Module {type(self)} started")