bot: add some logs

This commit is contained in:
dece 2020-11-06 12:24:16 +01:00
parent fe46b8d4ef
commit 806ef07e0c

View file

@ -109,6 +109,7 @@ class Bot(irc.client.SimpleIRCClient, Logger):
"""Connect the bot to server, join channels and start responding."""
self.log_i("Starting Edmond.")
self.load_plugins()
self.log_i("Connecting to server.")
self.connect(self.config["host"], self.config["port"], self.nick)
try:
self.start()
@ -118,6 +119,7 @@ class Bot(irc.client.SimpleIRCClient, Logger):
def load_plugins(self):
"""Load all installed plugins."""
self.log_i("Loading plugins.")
plugin_files = os.listdir(Path(__file__).parent / "plugins")
plugin_names = map(
lambda f: os.path.splitext(f)[0],