2018-12-12 20:58:49 +01:00
2018-12-09 23:31:02 +01:00
2018-12-12 12:38:55 +01:00
2018-05-31 00:28:58 +02:00
2018-12-11 16:18:00 +01:00
2018-12-05 18:08:46 +01:00
2018-05-31 00:28:58 +02:00
2018-05-31 00:28:58 +02:00
2018-07-18 13:18:40 +02:00
2018-05-31 00:28:58 +02:00

Luxmed Bot

Build Status Docker Hub

Non official Telegram bot for Portal Pacjenta LUX MED.

With its help user can book a visit to a doctor, create term monitoring, view upcoming visits and visit history.

It is available here @luxmedbot

Screenshot

To setup your own telegram bot

  1. create telegram bot using @BotFather
  2. install docker and docker-compose
  3. skip if you don't use docker-machine
    • install docker-machine
    • Start docker-machine
      $ docker-machine start
      
    • Connect to it
      $ docker-machine ssh
      
    • Elevate yourself to super user
      $ sudo -i
      
  4. create a docker volume and name it lbs:
    $ docker volume create lbs
    
  5. find physical location of the volume:
    docker volume inspect lbs
    
    this will produce the following output:
    [
        {
            "CreatedAt": "2018-12-05T14:32:35Z",
            "Driver": "local",
            "Labels": {
                "com.docker.compose.project": "docker",
                "com.docker.compose.version": "1.23.1",
                "com.docker.compose.volume": "lbs"
            },
            "Mountpoint": "/var/lib/docker/volumes/lbs/_data",
            "Name": "lbs",
            "Options": null,
            "Scope": "local"
        }
    ]
    
  6. using value from Mountpoint create config folder:
    mkdir /var/lib/docker/volumes/lbs/_data/config
    
  7. create env file in that folder
    touch /var/lib/docker/volumes/lbs/_data/config/env
    
  8. edit the file by adding TELEGRAM_TOKEN and SECURITY_SECRET
    nano /var/lib/docker/volumes/lbs/_data/config/env
    
    SECURITY_SECRET=randomly generated string
    TELEGRAM_TOKEN=12345678:telegram token
    
  9. download docker-compose.xml
  10. go to folder with downloaded docker-compose.xml and run command:
    $ docker-compose up
    
  11. send /start command to your bot
Description
Non official telegram bot for Portal Pacjenta LUX MED
Readme MIT 90 MiB
Languages
Scala 99.7%
Shell 0.2%
Dockerfile 0.1%