fff-infopunkt-pythonbackend

The FFF Infopunkt Backend written in Python made by @pascalboehler

View on GitHub

License: GPL v3 docker JugendHackt

FFF Info Python Backend / Telegram chatbot

logo

The Python backend for the FFF-Infopunkt website and for the FFF Infopunkt Javascript backend

What does this service do?

How to get this working

1. Use python3

  1. Clone Repository to your local disk
  2. Install with pip install telepot pynamodb
  3. Create config.json with your dynalite server and chatbot id (to use ours please use the docker version), the config file is needed because we are getting the api keys from this file: Please format the file in the following way: config.json:
    {
      "bot": {
     "private_key": "botprivatekey",
     "updateId": 0
      },
      "aws": {
     "access_key": "awsaccesskey",
     "private_key": "privatekey",
     "region": "region"
      }
    }
    
  4. Run server with python3 bot.py
  5. Format the messages as shown below and have fun
  1. Run on an x64 machine docker run -d pboehler/fffinfopythonbackendserver
  2. Run on an arm machine like the Raspberry Pi docker run -d pboehler/fffinfopythonbackendserver:rpi

Format the messages:

The messages need to be formatted with the following pattern:

  1. bot:
  2. A title
  3. A short description (need to be one line)
  4. The organisation
  5. The date
  6. The start time
  7. The meeting point / starting point
  8. The end point
  9. A website url

The ‘bot:’ statement is needed to let the bot know that the message is meant for him / her

If an element does not exists add ‘None’ / ‘none’ / ‘NONE’ to the line

Other information about running the system:

Planned for future: