mirror of
https://github.com/jwinterm/monerobux.git
synced 2026-10-17 05:21:27 +02:00
Fix praw stuff
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
client.py
|
||||
*.pyc
|
||||
apikey.py
|
||||
redditcredentials.py
|
||||
|
||||
+4
-6
@@ -4,7 +4,7 @@ import random
|
||||
import re
|
||||
import requests
|
||||
import praw
|
||||
from client import *
|
||||
import client
|
||||
from threading import Timer
|
||||
|
||||
@sopel.module.commands('4matter')
|
||||
@@ -156,6 +156,8 @@ def hitler(bot, trigger):
|
||||
|
||||
@sopel.module.commands('hmm', 'hmmm')
|
||||
def hmm(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('hmmm')
|
||||
posts=sub.new(limit=100)
|
||||
@@ -444,13 +446,9 @@ def trivia(bot, trigger):
|
||||
bot.say("No trivia for you!")
|
||||
|
||||
|
||||
reddit=praw.Reddit(client_id=client_id,
|
||||
client_secret=client_secret,
|
||||
user_agent='monerobux',
|
||||
username=username,
|
||||
password=password)
|
||||
@sopel.module.commands('tinytrump')
|
||||
def tinytrump(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('tinytrump')
|
||||
posts=sub.new(limit=100)
|
||||
|
||||
Reference in New Issue
Block a user