add startup idea generator
This commit is contained in:
parent
0244ada92c
commit
576f533976
10
plugin.py
10
plugin.py
|
|
@ -83,4 +83,14 @@ class Fun(callbacks.Plugin):
|
|||
irc.reply(data['phrase'])
|
||||
buzz = wrap(buzz)
|
||||
|
||||
def startup(self, irc, msg, args):
|
||||
"""
|
||||
Startup idea generator
|
||||
"""
|
||||
channel = msg.args[0]
|
||||
data = requests.get("http://itsthisforthat.com/api.php?json").json()
|
||||
response = "So, Basically, It\'s Like A {0} for {1}".format(data['this'], data['that'])
|
||||
irc.reply(response)
|
||||
startup = wrap(startup)
|
||||
|
||||
Class = Fun
|
||||
|
|
|
|||
Loading…
Reference in New Issue