Add log messages for join, part, and kick
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -62,6 +62,7 @@ class Bot:
|
|||||||
conn.send(str(msg))
|
conn.send(str(msg))
|
||||||
|
|
||||||
async def on_join(self, conn: IrcProtocol, message: Message):
|
async def on_join(self, conn: IrcProtocol, message: Message):
|
||||||
|
log.debug("%s", message)
|
||||||
channel = message.parameters[0]
|
channel = message.parameters[0]
|
||||||
who = message.prefix
|
who = message.prefix
|
||||||
if who.nick == self.server_config.nick:
|
if who.nick == self.server_config.nick:
|
||||||
@@ -89,6 +90,7 @@ class Bot:
|
|||||||
conn.send(str(msg))
|
conn.send(str(msg))
|
||||||
|
|
||||||
async def on_part(self, conn: IrcProtocol, message: Message):
|
async def on_part(self, conn: IrcProtocol, message: Message):
|
||||||
|
log.debug("%s", message)
|
||||||
await self.__on_part(conn, message)
|
await self.__on_part(conn, message)
|
||||||
# Pass the message along to available plugins
|
# Pass the message along to available plugins
|
||||||
channel = message.parameters[0]
|
channel = message.parameters[0]
|
||||||
@@ -99,6 +101,7 @@ class Bot:
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def on_kick(self, conn: IrcProtocol, message: Message):
|
async def on_kick(self, conn: IrcProtocol, message: Message):
|
||||||
|
log.debug("%s", message)
|
||||||
await self.__on_part(conn, message)
|
await self.__on_part(conn, message)
|
||||||
# Pass the message along to available plugins
|
# Pass the message along to available plugins
|
||||||
channel = message.parameters[0]
|
channel = message.parameters[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user