-
Notifications
You must be signed in to change notification settings - Fork 21
Running the bot
Now that you've created the bot application on Discord, you need to run the bot.
Docker Container
Instantly deploy on a server using Docker: https://hub.docker.com/r/ethorbit/discord_sticky-message-bot
mkdir ./sticky-bot
chown 6969 ./sticky-bot
6969 is the default UID the bot will run as, you can change it by rebuilding the image and passing --build-arg PUID=#
docker run -dit -e BOT_TOKEN="Your bot token" -e STICKY_COOLDOWN="20000" -v "$PWD/sticky-bot/:/botdb" --name sticky-bot ethorbit/discord_sticky-message-bot:latest
Manually
-
Run command:
git clone "https://github.com/Ethorbit/Discord_Sticky-Message-Bot.git"
-
Go into the directory Discord_Sticky-Message-Bot/
-
Install the packages by running this command:
npm install
-
Create a file called
.env, and add this to it:BOT_TOKEN="Your bot's token here" DB_PATH="Where you want the sqlite database to be saved" STICKY_COOLDOWN=20000 -
Run command to start bot:
node ./src/bot.js
Wait a little and the bot should come online.
If this is a server, you need to configure it so that this command runs when the system starts up.