bot: add some logs
This commit is contained in:
parent
fe46b8d4ef
commit
806ef07e0c
|
@ -109,6 +109,7 @@ class Bot(irc.client.SimpleIRCClient, Logger):
|
||||||
"""Connect the bot to server, join channels and start responding."""
|
"""Connect the bot to server, join channels and start responding."""
|
||||||
self.log_i("Starting Edmond.")
|
self.log_i("Starting Edmond.")
|
||||||
self.load_plugins()
|
self.load_plugins()
|
||||||
|
self.log_i("Connecting to server.")
|
||||||
self.connect(self.config["host"], self.config["port"], self.nick)
|
self.connect(self.config["host"], self.config["port"], self.nick)
|
||||||
try:
|
try:
|
||||||
self.start()
|
self.start()
|
||||||
|
@ -118,6 +119,7 @@ class Bot(irc.client.SimpleIRCClient, Logger):
|
||||||
|
|
||||||
def load_plugins(self):
|
def load_plugins(self):
|
||||||
"""Load all installed plugins."""
|
"""Load all installed plugins."""
|
||||||
|
self.log_i("Loading plugins.")
|
||||||
plugin_files = os.listdir(Path(__file__).parent / "plugins")
|
plugin_files = os.listdir(Path(__file__).parent / "plugins")
|
||||||
plugin_names = map(
|
plugin_names = map(
|
||||||
lambda f: os.path.splitext(f)[0],
|
lambda f: os.path.splitext(f)[0],
|
||||||
|
|
Loading…
Reference in a new issue