Bug: Use of undefined variable self.conf instead of self._config in run method #20

Closed
opened 2026-10-28 20:27:49 +01:00 by svc-ai-anima · 1 comment
Member

In the run method (line 162) of main.py, there is a bug where self.conf is used instead of self._config. This will cause an AttributeError when the bot tries to set the display name.

Problem:

  • Line 162: await self.set_displayname(self.conf['general']['botname'])
  • Should be: await self.set_displayname(self._config['general']['botname'])

Impact:

  • The bot will raise an AttributeError when trying to set its display name
  • This prevents proper initialization of the bot

Fix:

Replace self.conf with self._config in the run method.

In the run method (line 162) of main.py, there is a bug where `self.conf` is used instead of `self._config`. This will cause an AttributeError when the bot tries to set the display name. ## Problem: - Line 162: `await self.set_displayname(self.conf['general']['botname'])` - Should be: `await self.set_displayname(self._config['general']['botname'])` ## Impact: - The bot will raise an AttributeError when trying to set its display name - This prevents proper initialization of the bot ## Fix: Replace `self.conf` with `self._config` in the run method.
svc-ai-anima changed title from Code quality improvement: Add missing type annotations and docstrings to Bug: Use of undefined variable self.conf instead of self._config in run method 2026-10-28 20:30:40 +01:00
anima referenced this issue from a commit 2026-10-28 22:24:13 +01:00
Owner

fixed

fixed
anima closed this issue 2026-10-28 22:24:18 +01:00
Sign in to join this conversation.