An EPIC Discord bot written in JavaScript
To create your bot application, you can read the official
discord.js guide
After getting the bot token you can copy it and put in .env
file which will be explained in the
running the bot section
To add your bot to your server, look here
The invite link should look like this:
https://discord.com/api/oauth2/authorize?client_id=762578055939620864&permissions=8&scope=bot
You can try this bot by inviting the public bot with the link above
.env is file that stored super secret information like your bot token.
Here is the list of variable you should put in .env file :
TOKEN
= Token from the application in discord developer portal.MONGO_URL
= Full URL of the MongoDB cluster if you're using a remote databaseLAVA_HOST
= Address of your lavalink serverLAVA_PASS
= Password of your lavalink server
Download lavalink binaries from the CI server and put the jar file
in the root directory of this project and start lavalink server with
$ java -jar ./Lavalink.jar
.
After prerequisites are installed and your bot is already in your server,
follow the steps below to run it:
- Clone this repo with
git clone <this repo url>
, or download the zipped file. - Then move to the project root directory and begin with setting up the
.env
file.
First copy the.env.example
file still in the current directory then paste and rename it to only.env
.
Now open the file and change the value ofTOKEN
with your secret bot token,
andMONGO_URL
with your Mongo database URI. - After that you can install required dependencies with
yarn install
. (Make sure you're using yarn 2 withyarn set version 2
) - Before starting the bot please check the MongoDB service if it's running and if you're running Mongo in locally
- And finally you can run the bot with the command
yarn start
ornpm start
- Congrats! You've run the bot 🥳
You can contribute almost anything from fixing grammar/typos, fixing bugs, or adding a feature
(you can create an issue to discuss if the feature is worth to add).
Just fork this project and create a pull request. Any contribution will be appreciated!
Create a suggestion such as new commands or features in the issues tab.
Made with ❤ by Cudiph#7298