Increased jokes fetched from a week to a month.

dev
pocketjawa 2017-10-22 16:50:05 -04:00
parent a56a56a5eb
commit 6784e9424f
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ def on_message(message):
#Random jokes from /r/jokes
elif message.content.lower().startswith('!joke'):
jokes = reddit.subreddit('jokes').top('week')
jokes = reddit.subreddit('jokes').top('month')
jokesr = random.choice(list(jokes))
jokemsg = jokesr.title + '\n\n' + jokesr.selftext
yield from client.send_message(message.channel, jokemsg)