Added SFW subreddit porn command

dev
pocketjawa 2017-03-01 00:01:46 -05:00
parent 8be6b0a440
commit db237e9f88
2 changed files with 12 additions and 1 deletions

View File

@ -12,4 +12,5 @@
**!xkcd**: Posts a random xkcd comic **!xkcd**: Posts a random xkcd comic
**!xkcd latest**: Posts the latest xkcd comic **!xkcd latest**: Posts the latest xkcd comic
**!xkcd x**: Posts xkcd comic number x (if it exists) **!xkcd x**: Posts xkcd comic number x (if it exists)
**!earth** or **!earthporn**: Posts a random submission from /r/EarthPorn's top this week **!earth** or **!earthporn**: Posts a random submission from /r/EarthPorn's top this week
**!porn**: Posts a random link from one of the 'porn' subreddits (not actually NSFW)

View File

@ -129,6 +129,16 @@ def on_message(message):
earthpornr = list(earthporn) earthpornr = list(earthporn)
yield from client.send_message(message.channel, random.choice(earthpornr).url) yield from client.send_message(message.channel, random.choice(earthpornr).url)
#Link some porn! (actually SFW)
elif message.content.lower().startswith('!porn'):
earthporn = reddit.subreddit('earthporn').hot(limit=5)
serverporn = reddit.subreddit('ServerPorn').hot(limit=5)
cableporn = reddit.subreddit('cableporn').hot(limit=5)
foodporn = reddit.subreddit('FoodPorn').hot(limit=5)
shittyfoodporn = reddit.subreddit('shittyfoodporn').hot(limit=5)
porn_multi_r = list(earthporn) + list(serverporn) + list(cableporn) + list(foodporn) + list(shittyfoodporn)
yield from client.send_message(message.channel, random.choice(porn_multi_r).url)
client.loop.create_task(ups_check()) client.loop.create_task(ups_check())
client.run(token) client.run(token)