mirror of
https://github.com/logos-storage/discord-bot.git
synced 2026-01-02 13:13:08 +00:00
Discord Bot
Prerequisites
- Docker and Docker Compose (for Docker deployment)
- Node.js and npm (for local deployment)
Installation
Option 1: Running with Docker (Recommended)
- Install Docker and Docker Compose on your system
- Create a
.envfile with your environment variables:
DISCORD_BOT_TOKEN=your_discord_bot_token
SUPABASE_URL=your_supabase_url
SUPABASE_SERVICE_ROLE_KEY=your_supabase_key
- Build and run the container:
docker-compose up -d
To view logs:
docker-compose logs -f
To stop the bot:
docker-compose down
Option 2: Running Locally
- Install Node.js dependencies:
npm install
- Create a
.envfile in the root directory with your environment variables - Start the bot:
node index.js
Docker Image Distribution
To share the Docker image:
- Build the image:
docker build -t discord-bot .
- Save the image to a file:
docker save discord-bot > discord-bot.tar
- Share the
discord-bot.tarfile with others. They can load it using:
docker load < discord-bot.tar
Description
Languages
JavaScript
97.3%
Dockerfile
2.7%