A simple Discord Bot, written in Javascript to create Lists in every channel
Let's add everything we need on a community list!
A couple of friends and me wanted to keep track of the movies we wanted to watch on our discord server, so I created ListBot to do that
To get started locally, follow these instructions:
- Clone to your local computer using
git. - Make sure you have Node installed; see instructions here.
- Make also sure that you have MongoDB installed; see instructions here.
- Create a copy of the
.env.examplefile named.envand replace the placeholders with your bot token and MongoDB credentials - Run
npm runto install dependencies.
Once the bot is running and connected to your discord channel and database you can use the following commands
* add <component>: adds a component to the list
* help: shows you a message with the commands
* list: lists all the components in the channel's list
* log: a log of the versions
* poll: creates a poll on all the lists components
* random: gives you a random component
* remove <component>: removes the desired componentYou can run ListBot using Docker and Docker Compose following this steps below:
- Adjust
.envwith yout bot token. - Adjust
.envby set theUSE_DOCKER_FOR_DEVELOP=trueconfig. - Run
docker-composer up -d. This will build all containers on the first run and will be in placed in background. - If you want to see the logs, just type
docker-compose logs -f - If you want to stop, run
docker-compose down
- fork and clone this repository
- Make a new branch using
git checkout -b change/username - Commit the desired changes to that branch
- Sign off your commits using
git commit -s -m w/signoff - Push your changes to the branch and open a pull request.
