mod=0 is default

Remove subreddit references
master
chadbsduser 1 year ago
parent 363d8d39ac
commit 511b1755ab

@ -8,6 +8,7 @@ Steps:
Copy the app key (below name) and replace <oauth key> with the key
Copy the app secret and replace <oauth secret> with the secret
Replace <username> and <password> with your bot's credentials
Replace <subreddit> with subreddit name
Workaround for spam filter:
Add your bot to your subreddit as a mod with perms to manage posts

@ -1,7 +1,8 @@
import requests, json
from time import sleep
mod = 1
mod = 0
sr = '<subreddit>
headers = {'User-Agent': 'Wowbot/1.0.0'}
key = '<oauth key>'
secret = '<oauth secret>'
@ -25,7 +26,7 @@ def fix_token():
headers["Authorization"] = f'bearer {token}'
def reddit_post(title, url):
data = {"api_type": 'json', "kind": 'image', "url": url, "title": title, "sr": 'bottest200000'}
data = {"api_type": 'json', "kind": 'image', "url": url, "title": title, "sr": sr}
request = {"headers": headers, "data": data}
response = requests.post('https://oauth.reddit.com/api/submit', **request)

Loading…
Cancel
Save