add startup idea generator

This commit is contained in:
Gordon Shumway 2019-02-07 22:39:14 -05:00 committed by GitHub
parent 0244ada92c
commit 576f533976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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