-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.py
71 lines (58 loc) · 1.73 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import random
# Configure multiple Reddit accounts
class Config:
accounts = [
{
"client_id": "",
"client_secret": "",
"username": "",
"password": "",
},
# Add more accounts as needed
{
"client_id": "AnotherClientID",
"client_secret": "AnotherClientSecret",
"username": "AnotherUsername",
"password": "AnotherPassword",
},
]
class Botconfig:
proxies = [
# Add more proxies as needed
]
new_posts = False
# Interval between posts or comments in minutes
cooldown = 10
# Set to True if you need to setup webhook for logs
webhook = ""
discord_webhook = False
# Select purpose of bot: 'ai', 'ad', or 'post'
type = "ai"
all_subreddits = True
ads = [
'''
Advertisement 1: Type what u want to advertise here the exact same message will be commented on random posts!
''',
'''
Advertisement 2: Another ad message here!
''',
'''
Advertisement 3: Yet another ad message here!
''',
]
# If set to False, will only post in the specific subreddits
subreddits = [
"test",
"gachagaming",
"TowerofGod",
]
posts = [
{"title": "Hey there, upvote for an upvote!", "body": "UPVOTE PLEASE"},
{"title": "Upvote for upvote, part 2!", "body": "UPVOTE PLEASE"}
]
log_file = "commented_posts.txt"
@staticmethod
def get_random_proxy():
if Botconfig.proxies:
return random.choice(Botconfig.proxies)
return None