22 lines
633 B
Python
22 lines
633 B
Python
from bot import IRCLine
|
|
import random
|
|
BOT=None
|
|
|
|
ITEMS = ["frogs","water","chemicals"]
|
|
SENTENCES = ["They're putting {} in the {} to turn the {} gay!","They're putting {} in the {} to turn the {} into {}!"]
|
|
|
|
def jones(event):
|
|
if event.message!="!jones": return
|
|
if BOT is None: return
|
|
parts = [x for x in ITEMS]
|
|
sentence = random.choice(SENTENCES)
|
|
if "into" in sentence:
|
|
parts.append("gays")
|
|
random.shuffle(parts)
|
|
BOT.socket.send(IRCLine("PRIVMSG",(event.target if event.target.startswith("#") else event.hostmask.nick),sentence.format(*parts)))
|
|
|
|
def register(bot):
|
|
global BOT
|
|
BOT=bot
|
|
bot.event_manager.on("privmsg",jones)
|