Skip to content

asiantbd/discord-ani-schedule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-ani-schedule

discord-ani-schedule

Prerequisites

  • Rust: Required for local builds. Install Rust by following the official instructions here: Install Rust.
  • Docker: Required for containerized builds. All dependencies are already defined in the Dockerfile.

Main Lib/Crate Used

Build Instructions

Create a config.json file first.

{
  "discord_token": "your_discord_token_here"
}

Local Build with Cargo

Execute the following commands to build and run locally:

cargo build && \
./target/debug/discord-ani-schedule

Docker - Debug Build

To create and run a debug build using Docker:

docker build --target build-debug -t discord-ani-schedule:debug . && \
    docker run --init -it --rm -v ./config.json:/config.json discord-ani-schedule:debug

Docker - Production Release

For an optimized production build in a minimal container:

docker build --target release -t discord-ani-schedule:latest . && \
    docker run --init -it --rm discord-ani-schedule:latest