From 1c6bf298a0fa4126e9653b16e8a176824bb8e5d3 Mon Sep 17 00:00:00 2001 From: Reprezent Date: Sat, 27 Oct 2018 15:42:04 -0400 Subject: [PATCH] Added anime --- Jesus.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Jesus.py b/Jesus.py index 0dfcdc8..b3e30fe 100644 --- a/Jesus.py +++ b/Jesus.py @@ -100,7 +100,14 @@ async def on_message(message): elif message.content.lower().startswith(DANK): getRedditImage('dankmemes', False) await bot.send_file(message.channel, "images/dankmemes.jpg") - + + elif message.content.lower().startswith("i love anime"): + contents = urllib.request.urlopen("https://nekobot.xyz/api/image?type=hentai").read() + with open("images/iloveanime.jpg", "wb") as fi: + fi.write(contents) + + await bot.send_file(message.channel, "images/iloveanime.jpg") + elif message.content.lower().startswith("get image from subreddit "): subreddit = message.content.split()[4].lower() if subreddit[ : 3] == '/r/':