An open source Discord bot thats currently in alpha, originally made for The Alien Empire community Discord but open sourced for anyone that wants it!
https://thealiendoctor.com/AddAlienBot
Install Nodejs from https://nodejs.dev/download/
Create a new Bot application:
1. Go to [Discord dev portal](https://discord.com/developers/applications)
2. Click on "New Application"
3. Enter the name of the bot
4. Go to the "Bot" section (will be on the left)
5. Click on "Add bot"
6. Click on "Reset Token"
7. Copy the token and save it for a later step
8. Go to "OAuth2" section (will be on the left)
9. Copy "client id" and save if for a later step
10. Go to "General Information" section (will be on the left)
11. scroll down and copy "Application ID" and save it for a later step
Create a new Firebase Project:
-
Go to Firebase Developer Console and login if you need to
-
Click on "Add Project"
-
Enter a name for the project
-
Click on continue until you reach "Configure Google Analytics"
-
Choose "default account for firebase" then click on create project
-
Click on project settings (the gear icon on the top-left corner)
-
Click on "Service Accounts"
-
Click on "generate key pair" and download your whole keypair from the downloaded .json file and save it for a later step
First of all you need to clone this repo:
$ git clone https://github.com/UFO-Studios/AlienBot-2.0.git
Now cd into the bot's directory:
$ cd alienbot-2.0
Then create a config.json file which will look like this:
{
"TOKEN": "your-bot-token",
"CHANNEL_ID": "dev-channel-id",
"CLIENT_ID": "your-client-id",
"GUILD_ID": "dev-guild-id",
"APP_ID": "bot-app-id",
"ENV": "prod || dev",
"DEFAULT_VCID": "default-voice-channel-id",
"FIREBASE-CONFIG": {
"your": "firebase",
"service": "account",
"config": "goes here"
}
}
Now install all the required dependencies:
$ npm install
Now run this:
$ ./start.sh
We'll be needing help, so contributions are always welcome! :D