Added SFW subreddit porn command
parent
8be6b0a440
commit
db237e9f88
|
@ -13,3 +13,4 @@
|
||||||
**!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)
|
10
pocketbot.py
10
pocketbot.py
|
@ -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)
|
Loading…
Reference in New Issue