add .yeezy

This commit is contained in:
lalanza808 2020-09-23 11:20:03 -07:00 committed by GitHub
parent aabb8e759d
commit c91ef2b935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -889,3 +889,11 @@ def weather(bot, trigger):
except:
bot.say("The earth is on fire 🌎🔥")
@sopel.module.commands('yeezy')
def yeezy(bot, trigger):
try:
res = requests.get('https://api.kanye.rest')
bot.say(res.json()['quote'])
except Exception as e:
bot.say('borked: {}'.format(e)