Skip to content

GooeyTuxedo/metadata-analytics-bot

Repository files navigation

Gooey Discord Bot Docker Image

Introduction

This Docker image contains a Discord bot built with Node.js and utilizes SQLite for storage.

Requirements

  • Docker + Docker Compose
  • A Discord bot token
  • An Alchemy API key

Usage

  1. Clone the repository to your local machine
git clone https://github.com/GooeyTuxedo/metadata-analytics-bot.git
  1. Create a .env file in the root of the project and add the following environment variables:
ALCHEMY_API_KEY=<your alchemy api key>
DISCORD_TOKEN=<your discord bot token>
DISCORD_CLIENT=<your discord client ID>
  1. Run the Docker container
docker compose up -d
  1. Deploy discord slash commands (on first run)
docker exec -it gooeylytics node scripts/deploy-commands.js
  • Destroy discord slash commands (if needed)
docker exec -it gooeylytics node scripts/destroy-commands.js
  • View container logs
docker logs -f gooeylytics

Rebuilding with new changes

  1. Stop the running bot and remove container by same name
docker compose down
  1. Pull the new work
git pull
  1. Build and Run
docker compose up -d --build

Note: You may want to occasionally clear unused docker images and cache items (this can take a very long time):

docker system prune

Environment Variables

The following environment variables must be set in the .env file in order for the bot to function properly:

  • ALCHEMY_API_KEY: your alchemy api key.
  • DISCORD_TOKEN: the Oauth2 token for your Discord bot.
  • DISCORD_CLIENT: the client ID for your Discord bot. (app ID)

About

A discord bot for collection metadata analysis with onboard db

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors