-
Notifications
You must be signed in to change notification settings - Fork 11
/
main.py
152 lines (119 loc) · 6.42 KB
/
main.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
import requests
import time
import random
from multiprocessing import Process
#Imports
#########################################
###REPLACE THOSE###
channel_id = 'The id of your channel to farm in' # <--- PUT YOUR CHANNEL ID BETWEEN THE ' '
id = 'Your user id for receiving money' # <--- PUT YOUR USER ID BETWEEN THE ' '
###REPLACE THOSE###
#########################################
# FROM HERE ON DOWNWARDS NOTHING NEEDS TO BE CHANGED
# FROM HERE ON DOWNWARDS NOTHING NEEDS TO BE CHANGED
# FROM HERE ON DOWNWARDS NOTHING NEEDS TO BE CHANGED
# FROM HERE ON DOWNWARDS NOTHING NEEDS TO BE CHANGED
print("""
https://github.com/ScobraScope/dankmemer-farm/
This script is able to automatic farm dankmemer credits on multiple accounts
at once. It sends post requests to discords API and can run in the background.
Make sure to change the following variables in the python file before running it:
channel_id
id
If the script is not working at all, feel free to contact me on discord, https://discord.gg/kjsdxkbtjw
Made by 6A31 - https://github.com/scobrascope
GNU GENERAL PUBLIC LICENSE V3
Please follow the license at https://github.com/ScobraScope/dankmemer-farm/blob/main/LICENSE.md
---------------------------------------------------------------
""")
#███╗░░░███╗░█████╗░██████╗░███████╗
#████╗░████║██╔══██╗██╔══██╗██╔════╝
#██╔████╔██║███████║██║░░██║█████╗░░
#██║╚██╔╝██║██╔══██║██║░░██║██╔══╝░░
#██║░╚═╝░██║██║░░██║██████╔╝███████╗
#╚═╝░░░░░╚═╝╚═╝░░╚═╝╚═════╝░╚══════╝
#██████╗░██╗░░░██╗
#██╔══██╗╚██╗░██╔╝
#██████╦╝░╚████╔╝░
#██╔══██╗░░╚██╔╝░░
#██████╦╝░░░██║░░░
#╚═════╝░░░░╚═╝░░░
#░█████╗░░█████╗░██████╗░░░███╗░░
#██╔═══╝░██╔══██╗╚════██╗░████║░░
#██████╗░███████║░█████╔╝██╔██║░░
#██╔══██╗██╔══██║░╚═══██╗╚═╝██║░░
#╚█████╔╝██║░░██║██████╔╝███████╗
#░╚════╝░╚═╝░░╚═╝╚═════╝░╚══════╝
if channel_id == 'The id of your channel to farm in': #DON'T TOUCH THIS, THIS IS JUST A CHECK!
print("ERROR: Make sure to specify a channel id. If you don't know how to obtain channel id's use Google.")
time.sleep(5)
quit()
if channel_id == 'Your user id for receiving money': #DON'T TOUCH THIS, THIS IS JUST A CHECK!
print("ERROR: Please specify what user to send the money to. specify a user id above. If you don't know how to obtain user id's use Google")
time.sleep(5)
quit()
try:
token = open("tokens.txt", "r")
tokenlist = token.read().split("\n") #Creates a list with all the Tokens from the file
except:
print("-" * 20)
print("ERROR: No file with tokens detected. Please place a file in the same directory as the script, called 'tokens.txt'")
def sendmessage(token):
message = "pls beg"
messagedig = "pls dig"
messagefish = "pls fish"
messagehunt = "pls hunt"
message2 = f"random text to bypass the bot protection {random.randint(1, 99999) * random.randint(1, 9999) + random.randint(1,99999)}" #Sends a string with random numbers to trick dankmemer's macro detection
pay = f"pls share max <@{id}>"
headers = {'Authorization': token}
i = 0
while True:
try:
res = requests.post(f'https://discordapp.com/api/v6/channels/{channel_id}/messages', headers=headers, json={'content': messagehunt})
if res.status_code == 200:
print("Hunted successfully")
else:
print(f"Failed to hunt. Errorcode {res}")
time.sleep(5)
res = requests.post(f'https://discordapp.com/api/v6/channels/{channel_id}/messages', headers=headers, json={'content': message})
if res.status_code == 200:
print("Begged successfully")
else:
print(f"Failed to beg. Errorcode {res}")
time.sleep(5)
res = requests.post(f'https://discordapp.com/api/v6/channels/{channel_id}/messages', headers=headers, json={'content': messagefish})
if res.status_code == 200:
print("Fished successfully")
else:
print(f"Failed to fish. Errorcode {res}")
time.sleep(5)
res = requests.post(f'https://discordapp.com/api/v6/channels/{channel_id}/messages', headers=headers, json={'content': messagedig})
if res.status_code == 200:
print("Fished successfully")
else:
print(f"Failed to fish. Errorcode {res}")
time.sleep(5)
time.sleep(random.randint(1,6))
res = requests.post(f'https://discordapp.com/api/v6/channels/{channel_id}/messages', headers=headers, json={'content': message2})
if res.status_code == 200:
print("Bypassed message send successfully")
else:
print(f"Bypassmessage failed. Errorcode: {res}")
time.sleep(25 + random.randint(1,5))
i += 1
if i > 2:
res = requests.post(f'https://discordapp.com/api/v6/channels/{channel_id}/messages', headers=headers, json={'content': pay})
if res.status_code == 200:
print("Payout successful")
else:
print(f"Failed to pay. Errorcode {res}")
i = 0
except:
print(f"Failed on token: {token}")
print("If the script is not working at all, feel free to contact me on discord, https://discord.gg/kjsdxkbtjw")
pass
#Start script
if __name__=='__main__':
for token in tokenlist:
p1 = Process(target=sendmessage, args=(token,))
p1.start()