mirror of
https://github.com/jwinterm/monerobux.git
synced 2026-10-17 05:21:27 +02:00
rotten
This commit is contained in:
+13
@@ -521,6 +521,19 @@ def romerito(bot, trigger):
|
||||
silly_string = "Et tu, Romerito!"
|
||||
bot.say(silly_string)
|
||||
|
||||
@sopel.module.commands('rotten')
|
||||
def rotten(bot, trigger):
|
||||
reddit = praw.Reddit(client_id=client.client_id, client_secret=client.client_secret, user_agent='asdfasdfasdfjhwrgth', username=client.username, password=client.password)
|
||||
try:
|
||||
sub=reddit.subreddit('4chan')
|
||||
posts=sub.hot(limit=100)
|
||||
n=random.randint(0,100)
|
||||
for i, post in enumerate(posts):
|
||||
if i==n:
|
||||
bot.say(post.url)
|
||||
except:
|
||||
bot.say("Something something reddit's servers")
|
||||
|
||||
@sopel.module.commands('ryo')
|
||||
def ryo(bot, trigger):
|
||||
bot.say(u'https://i.imgflip.com/2nn22t.jpg')
|
||||
|
||||
Reference in New Issue
Block a user