Updated bot.py

This commit is contained in:
Yuuki Chan 2024-02-22 20:16:52 +09:00
parent 009bc9a67e
commit 2d0d05f501

View file

@ -188,7 +188,8 @@ class Bot:
if message.startswith('&'):
cmd, *cmd_args = message[1:].split()
self.handle_command(source_nick, channel, cmd, cmd_args)
elif args[1].startswith('\x01VERSION\x01'):
if args[1].startswith('\x01VERSION\x01'):
source_nick = source.split('!')[0]
await self.ircsend(f'NOTICE {source_nick} :\x01VERSION EliteBot 0.1\x01')