Increased jokes fetched from a week to a month.
parent
a56a56a5eb
commit
6784e9424f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue