-
Notifications
You must be signed in to change notification settings - Fork 1
Install & Configure Flare on Linux
This guide will go through the necessities for Flare to work like a Discord bot, identifiers, and a watcher that needs to be running all the time. The watcher keeps your webserver updated with encrypted data for AKoDAuth to read.
-
Go to the Discord Developer Portal at https://discord.com/developers/applications and click on "New Application." Enter a name for your application and click "Create."
-
In your application's settings, navigate to the "Bot" tab and click on "Add Bot." Confirm the creation of the bot.
-
Under bot settings, click on the "Bot" section, and under Token click on "Copy" to copy your bot's token. This token is like a password and should be kept private.
-
Under the "OAuth2" tab, select the "bot" scope and Administrator permissions. Copy the generated invite link and paste it into your web browser.
-
Select a server to invite your bot to.
-
On the Discord authorization screen, authorize your bot to join the selected server by clicking "Authorize."
Users in your Discord server can validate their keys by running the command "/validate ACTIVATION-KEY LOGIN PASSWORD".
Any member of you discord server by default will be set to a 30 day cooldown in order to prevent any type of fraud. To change this cooldown you can edit the "'const remainingTime = Math.ceil((30 * 24 * 60 * 60 * 1000 - (Date.now() - lastUsage)) / (1000 * 60 * 60 * 24));" line in commands/validate.js to a set amount of milliseconds.
As the owner, you can remove users cooldowns, add keys, and remove accounts that are registered to a key
- /removecooldown USERID
- /remove ACCOUNT-NAME
- /keyadd KEY LOCK-TYPE
-
Clone the repo:
git clone https://github.com/tagoworks/flare
-
CD into the folder:
cd flare -
Download required python modules:
pip3 install -r requirements.txt
-
Download the required node modules:
npm install
Install the web dashboard to input these values way easier, and to get your private/public identifiers
-
Open the
config.jsonfile with sudo nano, and input all the values- token: Your discord bot token
- ownerID: The owner's user ID (will be allowed to add custom keys, remove cooldowns, and delete validated accounts)
- guildID: The server ID which the bot will be in (for permission sets)
- onlySendIn: The channel ID's where the bot will be allowed to respond
- logChannel: The channel ID where the bot will send key activation logs
- webdavDir: Local WebDAV path, by default it should be
/var/www/accs/ - webdavLink: Your public WebDAV Cloudflared tunneled link, it should be like
https://auth.yourdomain.com/
-
CD into the
assetsdirectory and in run the python file in sudo in order to generate youridentifiers.txtfile and clone the repo- These keys are backed up as they should not ever be regenerated, if you publish your projects and use this key and later on change it you will not be able to validate any keys.
sudo python3 watcher.py
-
View and save your keys somewhere:
sudo nano identifiers.txt
-
Input your custom keys in the
validkeys.txtfile- Remember to make a new line for each new activation key
- If your using ValidateV2 and are adding HWID or IP locks, add a colon followed by the lock type
ABCD-1234-ABCD-1234:HWID ABCD-1234-ABCD-1234:IP
-
Modify the
blacklist.txtfile to add any additional blocked usernames, like your username or other developers. -
Now create your Flask API for Flare!