I love automation, so i made this to find secret codes automatically. I'm lazy.
Usage:
usage: main.py [-h] [--mode MODE] [--prize PRIZE] [--id ID]
optional arguments:
-h, --help show this help message and exit
--mode MODE, -m MODE t = twitter, d = discord, b = hybrid
--prize PRIZE, -p PRIZE
Finds all codes that have a specific prize name.
--id ID, -i ID Finds all codes that have a specific giveaway id.
This script only finds secret codes either from PLAYRgg's twitter or the secret-codes channel in Playrgg's discord server.
Before using this script you need to fill the stuff in the keys.json file
DISCORD_API_TOKEN
is your discord token. This script makes a self-bot that only reads the messages from the secret code channel. To get it you need to follow this guide.
Make sure you are in the Playrgg discord server if you want the discord self-bot part to work!!
API_KEY
is twitter API keyAPI_SECRET
is twitter API secretACCESS_TOKEN
is twitter Access TokenACCESS_SECRET
is twitter Access secret
You will need to create a twitter app in Twitter Developers. You can follow this guide.
keys.json
template
{
"DISCORD_API_TOKEN": "",
"twitterapi": {
"API_KEY": "",
"API_SECRET": "",
"ACCESS_TOKEN": "",
"ACCESS_TOKEN_SECRET": ""
}
}