Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.51 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.51 KB

NadoBot

CI/CD Pipeline

Alt

Models

  • Model declaration can be done under MODELS in the .env file. Your choices are 2022, 2022abs, 2024, and 2024abs or you can leave it blank and receive all four of them

Build From Source

  • git clone https://github.com/Zachdehooge/NadoBot.git
  • cd into the cloned directory and runpython -m venv venv
  • Ensure Discord is running
  • Create a bot at: https://discord.com/developers/applications
  • Click on the bot you created -> Bot -> Copy token
  • Set envars in the .env file
    • TOKEN with the value being your discord bot token
    • URL with the value being http://data.nadocast.com/
    • MODELS (can be left blank)
  • Run python3 main.py

Docker Containerization

  • In order to run Nadobot through Docker you will need to perform the following from where the Dockerfile is located:

    • Clone the repo and cd into the directory
    • Build the Image: docker build -t Nadobot .
    • Run the Container: docker run -d \ -e TOKEN=your_token_here \ -e URL=http://data.nadocast.com/ \ -e MODELS=your_model_here \ --name Nadobot Nadobot
      • Alternatively in the Docker GUI, set the envars there before creating the container
  • Alternatively

    • Go to Dockerhub on Docker desktop and run the image