flofriday / brobot

This is just a mirror, repo moved to GitLab.

Home Page:https://gitlab.com/flofriday/brobot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brobot

My personal telegram bot

Screenshot

Run the bot

go build
TELEGRAM_TOKEN=XXXX ./brobot

Replace the XXXX with your telegram token

Run the bot with docker

docker build -t brobot-template .
docker run -e TELEGRAM_TOKEN=XXXX --rm --name brobot-container brobot-template

Replace the XXXX with your telegram token

Note: Those commands will run the bot in a docker container, however all state will be lost, when you shut down the container. To prevent this you can use:

docker volume create brobot-volume
docker build -t brobot-template .
docker run --env TELEGRAM_TOKEN=XXXX \
      --mount type=volume,source=brobot-volume,target=/app/data \
      --name brobot-container brobot-template \

Deploy the bot

Look into deploy.md to see how I deploy the bot.

About

This is just a mirror, repo moved to GitLab.

https://gitlab.com/flofriday/brobot

License:MIT License


Languages

Language:Go 91.1%Language:Shell 6.6%Language:Dockerfile 2.3%