mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-30 07:21:12 -05:00
randomness: add a disclaimer
This commit is contained in:
parent
a0a6c23135
commit
9d7f9bd4b7
@ -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,7 +144,7 @@ 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()
|
||||||
@ -152,9 +152,6 @@ class Randomness(callbacks.Plugin):
|
|||||||
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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user