config initialization
This commit is contained in:
@@ -73,9 +73,6 @@ class DiscordBotPlugin(PHALPlugin):
|
|||||||
config_json = json.dumps(config)
|
config_json = json.dumps(config)
|
||||||
LOG.info(f"Configuration updated: %s", config_json)
|
LOG.info(f"Configuration updated: %s", config_json)
|
||||||
|
|
||||||
if not configuration_host:
|
|
||||||
uninitialized_settings.append("host")
|
|
||||||
|
|
||||||
if not configuration_api_key:
|
if not configuration_api_key:
|
||||||
uninitialized_settings.append("api_key")
|
uninitialized_settings.append("api_key")
|
||||||
|
|
||||||
@@ -92,6 +89,7 @@ class DiscordBotPlugin(PHALPlugin):
|
|||||||
|
|
||||||
def init_bot(self):
|
def init_bot(self):
|
||||||
# Start the Discord bot
|
# Start the Discord bot
|
||||||
|
LOG.info("Starting the bot")
|
||||||
self.bot.run(TOKEN)
|
self.bot.run(TOKEN)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user