Update sweebot.py
This commit is contained in:
parent
5bb20f688e
commit
dd3a93b2ef
1 changed files with 4 additions and 2 deletions
|
@ -41,6 +41,8 @@ class config:
|
||||||
except:
|
except:
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
return False
|
return False
|
||||||
|
def cflagexist(self, chan:str, flag:str):
|
||||||
|
return flag in self.chansettings(chan)
|
||||||
|
|
||||||
|
|
||||||
# Code snippet from my buddy Irish
|
# Code snippet from my buddy Irish
|
||||||
|
@ -556,10 +558,10 @@ while True:
|
||||||
|
|
||||||
|
|
||||||
elif command[0] == ":3":
|
elif command[0] == ":3":
|
||||||
if not "-colonthree" in sbconfig.chansettings(channel):
|
if not sbconfig.cflagexist(channel, "-colonthree"):
|
||||||
multiline(":3", channel)
|
multiline(":3", channel)
|
||||||
elif ":3c" in command:
|
elif ":3c" in command:
|
||||||
if not "-colonthree" in sbconfig.chansettings(channel):
|
if not sbconfig.cflagexist(channel, "-colonthree"):
|
||||||
multiline(choice(threes), channel)
|
multiline(choice(threes), channel)
|
||||||
elif "JOIN" in text and "#nixsanctuary" in text:
|
elif "JOIN" in text and "#nixsanctuary" in text:
|
||||||
nick = text.split(":")[1].split("!")[0]
|
nick = text.split(":")[1].split("!")[0]
|
||||||
|
|
Loading…
Reference in a new issue