randomness: add a disclaimer

This commit is contained in:
GLolol 2014-08-07 18:37:40 -07:00
parent a0a6c23135
commit 9d7f9bd4b7

View File

@ -39,6 +39,8 @@
#/_/ /_/ |_|\____/_____/_____/ /____/\____/_/ |_/___/_/ /_/ #/_/ /_/ |_|\____/_____/_____/ /____/\____/_/ |_/___/_/ /_/
# #
# Use at your own risk! # Use at your own risk!
##
# But seriously though, this is supposed to be a joke, please don't be offended!
import supybot.utils as utils import supybot.utils as utils
from supybot.commands import * from supybot.commands import *
@ -48,6 +50,7 @@ import supybot.ircmsgs as ircmsgs
import supybot.ircdb as ircdb import supybot.ircdb as ircdb
import supybot.callbacks as callbacks import supybot.callbacks as callbacks
import random import random
from base64 import b64decode
from supybot.utils.structures import TimeoutQueue from supybot.utils.structures import TimeoutQueue
try: try:
from supybot.i18n import PluginInternationalization from supybot.i18n import PluginInternationalization
@ -111,16 +114,13 @@ class Randomness(callbacks.Plugin):
"stop highlighting me!", "stop highlighting me!",
"\x02%s\x02 added to ignore list." % msg.nick, "\x02%s\x02 added to ignore list." % msg.nick,
"!votekline " + msg.nick] "!votekline " + msg.nick]
# brenden = ["stfu blossom", "stfu brenda", "~~brenda blossom~~"]
n = random.randint(-5, 101) n = random.randint(-5, 101)
#if n >= 96 and msg.nick.lower().startswith("brend"):
# irc.queueMsg(ircmsgs.privmsg("BotServ", "say {} {}".format(msg.args[0],random.choice(brenden))))
if n >= 42: if n >= 42:
irc.queueMsg(ircmsgs.privmsg("BotServ", "say {} {}".format(msg.args[0],random.choice(wowResponses1)))) irc.queueMsg(ircmsgs.privmsg("BotServ", "say {} {}".format(msg.args[0],random.choice(wowResponses1))))
elif n >= 21: elif n >= 21:
irc.queueMsg(ircmsgs.privmsg("BotServ", "act {} {}".format(msg.args[0],random.choice(volatile)+msg.nick))) irc.queueMsg(ircmsgs.privmsg("BotServ", "act {} {}".format(msg.args[0],random.choice(volatile)+msg.nick)))
elif msg.nick.lower().startswith("brend"): elif msg.nick.lower().startswith("brend"):
bad = ["chink", "dog fried", "nigr", "nigger", "chinq"] bad = ["chink", "nigr", "nigger", "chinq"] # Seriously though, racism *sucks*.
for w in bad: for w in bad:
if w in ircutils.stripFormatting(msg.args[1].lower()): if w in ircutils.stripFormatting(msg.args[1].lower()):
irc.queueMsg(ircmsgs.kick(msg.args[0], msg.nick, "RACIST")) irc.queueMsg(ircmsgs.kick(msg.args[0], msg.nick, "RACIST"))
@ -144,16 +144,13 @@ class Randomness(callbacks.Plugin):
elif r >= 6: elif r >= 6:
irc.queueMsg(ircmsgs.privmsg(msg.args[0], random.choice(okresponses))) irc.queueMsg(ircmsgs.privmsg(msg.args[0], random.choice(okresponses)))
if irc.network.lower() in ["overdrive-irc", "stripechat"] and \ if irc.network.lower() in ["overdrive-irc", "stripechat"] and \
"brendi hitler blossom" in ircutils.stripFormatting(msg.args[1].lower()): b64decode('aGl0bGVyIGJsb3Nzb20=') in ircutils.stripFormatting(msg.args[1].lower()):
irc.queueMsg(ircmsgs.privmsg(msg.args[0], msg.nick + ": the entire topic changes" + exclaim)) irc.queueMsg(ircmsgs.privmsg(msg.args[0], msg.nick + ": the entire topic changes" + exclaim))
if irc.network.lower() == "stripechat": if irc.network.lower() == "stripechat":
r = random.random() r = random.random()
if msg.args[1].lower().startswith("&topic") and "hackinbot" in msg.args[1].lower() \ if msg.args[1].lower().startswith("&topic") and "hackinbot" in msg.args[1].lower() \
and r >= 0.3: and r >= 0.3:
irc.queueMsg(ircmsgs.privmsg(msg.args[0], "OH, hackinbot! " + random.choice(gemotes))) irc.queueMsg(ircmsgs.privmsg(msg.args[0], "OH, hackinbot! " + random.choice(gemotes)))
Class = Randomness Class = Randomness