Giter Site home page Giter Site logo

katze719 / bszet_it_bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 100 KB

A Discord-bot for downloading a pdf document with basic HTTPS authentication and posting it in a discord channel as png

License: GNU General Public License v2.0

Dockerfile 1.09% Python 98.91%
bot discord-bot discord-py pdf-to-png

bszet_it_bot's Introduction

BSZET_IT_BOT

current username + password:

  • username: bsz-et-2324
  • password: schulleiter#23

Usage

invite the bot to your discord via https://discord.com/oauth2/authorize?client_id=1150762234620944464&permissions=8&scope=bot

and type /activate in your discord server to activate the bot

Self-Hosting with Docker-Compose

version: '3'

services:
  schulbot:
    image: ghcr.io/katze719/bszet_it_bot:latest
    restart: always
    environment:
      DISCORD_BOT_TOKEN: ${DISCORD_BOT_TOKEN}
    volumes:
      - ./settings:/settings
mkdir settings
docker-compose up -d

Activate the Bot with the command /activate

Updating the Bot

docker-compose down
docker pull ghcr.io/katze719/bszet_it_bot:latest
docker-compose up -d

Commands

Admin Commands

Command Description
/activate Activates the bot
/deactivate Deactivates the bot
/deactivate_experimental_features Deactivates experimental features
/activate_experimental_features Activates experimental features
/set <variable_name> <value> Sets the specified variable to the given value
/reset Resets all variables to their default values

User Commands

Command Description Requires Experimental Features to be on
/help Displays a help message false
/ping Checks the bot's responsiveness false
/plan Retrieves the current plan false
/get <variable_name> Retrieves the value of the specified variable false
/status Checks if the bot is currently active false
/feedback <message> Submits user feedback false
/print_parsed_table_experimental Displays the parsed table true
/news_experimental Retrieves the latest news true

Dev Setup

  1. Setup venv
git clone https://github.com/Katze719/BSZET_IT_BOT.git;
cd BSZET_IT_BOT;
python3 -m venv venv;
source ./venv/bin/activate;
pip install -r requirements.txt;
  1. Run the bot
export DISCORD_BOT_TOKEN="<my token>"
python3 ./bot.py

bszet_it_bot's People

Contributors

katze719 avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.