Skip to content

The-May/docker_dicebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This bot has several dices in it which can be rolled:

/prost: rolls dices in german upcoming: /love /dice /w6 /w8 /w10 /w12 /w20 /w100

  1. Create docker-compose.yml file in your favourite directory:

#example:
version: '3'

services:
  telegram-saufbot:
    container_name: telegram_saufbot
    build:
      context: https://github.com/The-May/docker_saufbot.git
      dockerfile: Dockerfile  # Path to the Dockerfile within the repository
    environment:
      - USE_LANGUAGE=de  # Set your desired language here
      - TELEGRAM_BOT_TOKEN=user:pass  # Set your Telegram bot token here
    volumes:
      - telegram_saufbot_data:/app  # Mount a named volume for app files
    restart: always

volumes:
  telegram_saufbot_data:  # Friendly name for the volume

  1. run docker-compose.sh to deploy docker-compose.yml file (be sure to maybe change paths)

alternatively for testing (for example in vscode):

  1. optional: set venv-> pip install -r requirements.txt -> venv\Scripts\activate
  2. install requirements.txt in venv -> pip install -r requirements.txt
  3. set env manually:
  • $env:USE_LANGUAGE="de"
  • $env:TELEGRAM_BOT_TOKEN="a:b"
  1. start saufbot.py with python

##protip: When updating, use docker builder prune --all --force before using docker-compose up --build --force-recreate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks