A Discord bot used for authenticating and migrating users.
- Go to the discord developer portal
- Login to your discord account
- Click on
New Application
- Enter the name of your bot and press create
- Click on the
Bot
tab on the left menu bar - Click on
Add Bot
- Scroll down and enable
PRESENCE INTENT
andSERVER MEMBERS INTENT
, then pressSave Changes
- Press
OAuth2
on the left menu bar - Check the
bot
checkbox and pressCopy
- You can paste this link in your browser and add this bot to any discord server you want. You can use this link again to add the bot into other servers!
- You should have git pre-installed if you are using mac or linux. If not, download and install git here
- Go to the github page of this repo and press
⬇Code
, selectHTTPS
, then copy the link - Start a terminal
- Use the
cd
command to navigate to wherever you want the bot files to be placed in - Type
git clone [paste in the link here]
(add sudo if you are on linux and it gives you an error) - Login to your github account in the terminal
- Navigate to the folder that contains the bot's code in a file explorer
- Rename all files ending with
.json.example
to.json
, removing the.example
, such as renamingconfig.json.example
toconfig.json
-
Click on the
Bot
tab on the left menu bar -
Click on
Copy
underTOKEN
. Remember, never give this token to strangers, as they can gain full access to your bot if they gain access to this token! -
Fill in the token into config.json
Here is an example:
... "TOKEN": "ODE4NDY3Mzc0NzE3OTkzMDAx.YEYfJA.j_vM2raH-LOsGDcZGavrBjqk9hk" ...
-
Click on the
General Information
tab on the left menu bar -
Copy the
CLIENT ID
-
Fill in the ID into config.json
Here is an example:
... "ID": "761048219479421520" ...
-
Copy the
CLIENT SECRET
-
Fill in the secret into config.json
Here is an example:
... "SECRET": "c9sPUBgO1cj4y3v-wK9rNKb5jOVgkiIe" ...
- Go here to download ngrok
- Unzip the zip file that you just downloaded
- Get your authentication token here
- Run
./ngrok authtoken [TOKEN]
at the location that you unqipped the file to. Replace[TOKEN]
with your authentication token - Run
./ngrok http [PORT]
. Replace[PORT]
with the port that you want to use (if you don't know which port to use, use 3000) - Copy the link that is displaying in the window. It should look something like
http://3af3b4364d80.ngrok.io
(not the https one) - Paste it into the config.json, after the
"REDIRECT"
attribute - Also enter the port you used after the
"PORT"
attribute
A. Host it locally on your computer (which needs to be on 24/7) B. Rent a VPS yourself and pay a one-time $20 fee for me to help you set up the bot on it. C. Pay $10 a month for me to host the bot for you, with setup included.
You will have to do the config steps above yourself anyways, since there is no way for me to access your accounts to do them for you. If you chose step A, or if you have a VPS and would like to do the setup yourself, proceed:
- Go to the NodeJs website
- Download and install NodeJs on your computer/server
- Start a command prompt/terminal
- Use the
cd
command to navigate to the folder that cointains the bot's code - Type
npm install
in the terminal and then press enter - Type
node .
in the terminal to run the bot! Pressctrl + c
to stop the bot.