comp-tg/readme.org

34 lines
884 B
Org Mode
Raw Normal View History

2021-08-16 08:17:12 +00:00
* Computer bot
Original is *[[https://gitdab.com/er2/comp-tg][here]]* and [[https://git.er2.tech/er2/comp-tg][here]].
2022-01-18 20:21:34 +00:00
Mirrors can update irregularly.
2021-08-16 08:17:12 +00:00
-----
2022-01-18 20:21:34 +00:00
This is a bot for Telegram.
It haven't got much possibilities,
but this code can be used in other bots.
Bot can use locale of Telegram client (unlike much bots)
and use it or fallback to English.
2021-08-16 08:17:12 +00:00
Bot uses an OOP-style of Lua
as [[https://is.gd/f0Vadk][described on Wikipedia]].
2022-01-18 20:21:34 +00:00
Maybe I will rewrite bot's core to C but here already so many Lua code.
2021-08-16 08:17:12 +00:00
* Installation
Officially supported only [[https://docker.com][Docker]], but you can use it without Docker.
2021-08-16 08:17:12 +00:00
Docker installation:
2021-08-16 08:17:12 +00:00
+ Clone repository with submodules: ~git clone --recursive https://gitdab.com/er2/comp-tg~
2021-08-16 08:17:12 +00:00
and enter ~cd comp-tg~
2022-02-26 07:08:26 +00:00
+ Build image: ~docker build -t comp-tg .~
2022-01-18 20:21:34 +00:00
+ Start it: ~docker run -d -e .env --name comp-tg --restart always comp-tg~
2021-08-16 08:17:12 +00:00