summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Arnold2025-02-20 12:18:26 -0500
committerMatt Arnold2025-02-20 12:18:26 -0500
commit3b9cdc51408d15c5efebc006ccb1c075282a6a71 (patch)
tree25aa59516fed1218f8c25c929ff2d52dfa0b26c3
parentd67d4b25cbf24f2ac3190b6bf03e78c10334ca0d (diff)
create frogbot
-rw-r--r--IRC.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/IRC.py b/IRC.py
index 9361982..c26d18e 100644
--- a/IRC.py
+++ b/IRC.py
@@ -91,15 +91,16 @@ class IRCBot:
self.connected = True
# Perform user registration
- password_msg = irctokens.build("PASS", [self.config["nickpass"]])
- self.send_cmd(password_msg)
- usermsg = irctokens.build(
- "USER", [botnick, "0", "*", "Nyx Kermitsdotter"]
- ).format()
+ password_msg = irctokens.build("PASS", [self.config["nickpass"]]).format()
+ print(password_msg)
+
+ usermsg = irctokens.build("USER", [botnick, "0", "*", "frog"]).format()
print(usermsg)
- self.send_cmd(usermsg)
- nickmsg = irctokens.build("NICK", [botnick])
+ self.send_cmd(password_msg)
+ nickmsg = irctokens.build("NICK", [botnick]).format()
+ print(nickmsg)
self.send_cmd(nickmsg)
+ self.send_cmd(usermsg)
def get_response(self):
# Get the response