1
0
Fork 0
forked from swee/MeowNex

Remove the update function

This commit is contained in:
Nova Cat 2024-12-08 10:48:53 -08:00
parent aebcdb8255
commit e19a147521

View file

@ -227,11 +227,6 @@ my_self = ["MeowNexUS", "MeowNexU5", "MeowN3xUS"]
happiness = 5
global times
times = 0
def update():
open(str(Path.home()) + "/run.txt", 'w').write(str(run))
open(str(Path.home()) + "/block.txt", 'w').write(str(block))
update()
def irci2():
irc2.connect_irc(
server_irc, port_irc, channel_irc, "sweeB0t", botpass_irc, botnickpass_irc + "/B"
@ -328,7 +323,6 @@ while True:
if "PRIVMSG" in text and not nick in my_self:
if "PRIVMSG" in text and command[0][0] == "$":
run+=1
update()
if command[0] == "$ping":
if random(1,2) == 1:
irc.send_irc(channel, nick + ": Pnog")
@ -341,7 +335,7 @@ while True:
irc.send_irc(channel, nick + ": Nice try")
block+=1
run-=1
update()
else:
try:
if path.isfile(cwd + "/helps/" + " ".join(command[1:])):
@ -391,7 +385,7 @@ while True:
irc.send_irc(channel, nick + ": Permission denied.")
block+=1
run-=1
update()
elif command[0] == "$pull":
if perms == "full" or "git" in perms.split(","):
@ -404,7 +398,7 @@ while True:
irc.send_irc(channel, nick + ": Permission denied.")
block+=1
run-=1
update()
elif command[0] == "$join":
if perms == "full" or "join" in perms.split(","):
@ -423,7 +417,7 @@ while True:
irc.send_irc(channel, nick + ": Permission denied.")
block+=1
run-=1
update()
elif command[0] == "$part":
if perms == "full" or "part" in perms.split(","):
@ -445,7 +439,7 @@ while True:
irc.send_irc(channel, nick + ": Permission denied.")
block+=1
run-=1
update()
elif command[0] == "$socket":
if perms == "full":
@ -460,7 +454,7 @@ while True:
irc.send_irc(channel, nick + ": Permission denied.")
block+=1
run-=1
update()
elif command[0] == "$patpat" or command[0] == "$headpat":
if len(command) == 2:
@ -508,7 +502,7 @@ while True:
irc.send_irc(channel, nick + ": Permission denied.")
block+=1
run-=1
update()
elif command[0] == "$version":
irc.send_irc(channel, "This is SweeBot " + __version__)
@ -610,7 +604,7 @@ while True:
irc.send_irc(channel, nick + ": Permission denied")
block+=1
run-=1
update()
else:
multiline("Configuration for " + channel + ": " + " ".join(sbconfig.chansettings(channel)), channel)
except ex:
@ -621,7 +615,7 @@ while True:
irc.send_irc(channel, nick + ": Nice try.")
block+=1
run-=1
update()
else:
if path.isfile("cc/" + command[0][1:]):
try: