open source Discord bot coded in Node js with Discord.js and Mongoose. Feel free to add a star ⭐ to the repository to promote the project!
Currently we have few commands but eventually we will try to grow it !!
git clone this repo and cd into it
touch .env
file and add following content
token=
mongoPath=
npm i
node index.js
Running our bot with -d
runs the container in detatched mode (as in it runs in the background). If you want to see what is happening, remove that option.
Let's get to it! Running the following:
docker run -d my-bot
Will deploy our bot to it's own nice little server to play with.
If you want more of a sanity check here are some following commands you can run!
# Get the container!
docker ps
# Get addition information
docker ps -a
docker ps -a -q
# Print the logs
docker logs <our container's ID>
That will give us our information and current running logs.
If you need to get inside the container you can run:
docker exec -it <container id> /bin/bash
docker stop $(docker ps -q)
this project uses Node v16.9.1