mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-11 06:36:24 +02:00
use pre-send option to authenticate instead of send_to_user
This commit is contained in:
@@ -152,12 +152,15 @@ class Connection(object):
|
|||||||
self.irc.send(f"NICK {self.details.get_nick()}\r\n".encode())
|
self.irc.send(f"NICK {self.details.get_nick()}\r\n".encode())
|
||||||
self.irc.send("USER botty botty botty :Botty \n".encode())
|
self.irc.send("USER botty botty botty :Botty \n".encode())
|
||||||
if self.details.get_pwd() != "":
|
if self.details.get_pwd() != "":
|
||||||
self.send_to_user(
|
self.irc.send(
|
||||||
"NICKSERV",
|
f"PRIVMSG NICKSERV :identify {self.details.get_nick()} {self.details.get_pwd()} \r\n".encode()
|
||||||
f"identify {self.details.get_nick()} {self.details.get_pwd()} ",
|
|
||||||
)
|
)
|
||||||
# Sleep 15 Seconds to ensure that the Bot is fully logged in.
|
# self.send_to_user(
|
||||||
time.sleep(15.123)
|
# "NICKSERV",
|
||||||
|
# f"identify {self.details.get_nick()} {self.details.get_pwd()} ",
|
||||||
|
# )
|
||||||
|
# Sleep a bit to ensure that the Bot is fully logged in.
|
||||||
|
time.sleep(2.123)
|
||||||
self.irc.send(f"JOIN {self.details.get_channel()}\r\n".encode())
|
self.irc.send(f"JOIN {self.details.get_channel()}\r\n".encode())
|
||||||
self.irc.send(f"WHO {self.details.get_channel()}\r\n".encode())
|
self.irc.send(f"WHO {self.details.get_channel()}\r\n".encode())
|
||||||
self.irc.send(f"MODE {self.details.get_nick()} -R\r\n".encode())
|
self.irc.send(f"MODE {self.details.get_nick()} -R\r\n".encode())
|
||||||
|
|||||||
Reference in New Issue
Block a user