diff options
Diffstat (limited to '')
-rwxr-xr-x | librespeech.py | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/librespeech.py b/librespeech.py index ba1f350..7da041d 100755 --- a/librespeech.py +++ b/librespeech.py @@ -37,9 +37,8 @@ identity = None identity = open("ident").read().strip() debug = True channels = ["#librespeech"] -owner = ["Lareina", "f_", "leah", "Noisytoot", "Cindy", "ggoes"] +owner = ["Harriet", "f_", "leah", "Noisytoot", "Cindy", "ggoes"] defcon = [0] -ducks = [False] raiding = [False] @@ -101,6 +100,18 @@ def yay(irc, hostmask, args): return irc.msg("ChanServ", "DEOP", channel, haxxorname) irc.send("KICK", channel, haxxorname, "retaliation") + time.sleep(3) + irc.msg( + "ChanServ", + "UNBAN", + channel + ) + irc.send("JOIN", channel) + if not defcon[0]: return + if hostmask[0] != haxxorname: + return + irc.msg("ChanServ", "DEOP", channel, haxxorname) + irc.send("KICK", channel, haxxorname, "retaliation") @irc.Handler("JOIN", colon=False) def yay(irc, hostmask, args): channel = args[0] @@ -122,10 +133,7 @@ def yay(irc, hostmask, args): def yay(irc, hostmask, args): badwords = open("bw.txt").read().strip().split("\n") channel = args[0] - if hostmask[0] == "LitBot" and "・゜゜・。。・゜゜\_o< QUACK!" == args[-1].strip() and ducks[0]: - irc.msg(channel, "LitBot: bef") - return - elif hostmask[0] == haxxorname and defcon[0] == 2: + if hostmask[0] == haxxorname and defcon[0] == 2: text = args[-1].lower().strip() for each in badwords.lower(): if each in text or ' ' + each + ' ' in text or text.startswith(each + " ") or text.endswith(" " + each) or text == each: @@ -157,17 +165,6 @@ def yay(irc, hostmask, args): defcon[0] = 4 irc.send("MODE", channel, "+bq", "$a:%s" % haxxorname, "$a:%s" % haxxorname) irc.msg(channel, f"{hostmask[0]}: defcon 4 set: automatic kickban") - elif lat[0] == f"ducks": - if len(lat) < 2 or len(lat) > 2: - irc.msg(channel, f"{hostmask[0]}: usage: ducks (on | off)") - elif lat[1] == "on": - ducks[0] = True - irc.msg(channel, f"{hostmask[0]}: automatically befriending ducks") - elif lat[1] == "off": - ducks[0] = False - irc.msg(channel, f"{hostmask[0]}: NOT automatically befriending ducks") - else: - irc.msg(channel, f"{hostmask[0]}: usage: ducks (on | off)") elif lat[0] == f"badword": if lat[1] != "list" and len(lat) < 3 or len(lat) > 3: irc.msg(channel, f"{hostmask[0]}: usage: badword (add | del | list) word") @@ -183,7 +180,7 @@ def yay(irc, hostmask, args): if lat[1] == "add" or lat[1] == "del": irc.msg(channel, f"{hostmask[0]}: " + badword(action, lat[2])) else: - irc.msg(channel, f"{hostmask[0]}: usage: {irc.current_nick} (off | noop | censor | quiet | ban | ducks | badword)") + irc.msg(channel, f"{hostmask[0]}: usage: {irc.current_nick} (off | noop | censor | quiet | ban | badword)") elif args[-1].startswith(f"{irc.current_nick}:") and hostmask[0] == haxxorname: irc.msg(channel, f"{hostmask[0]}: lmao u serious?") elif args[-1].startswith(f"{irc.current_nick}:"): |