ed6598b145
Rewritten back to Lua. Using more beautiful classes. Add Arabic (lol idk why).
33 lines
884 B
Org Mode
33 lines
884 B
Org Mode
* Computer bot
|
|
|
|
Original is *[[https://gitdab.com/er2/comp-tg][here]]* and [[https://git.er2.tech/er2/comp-tg][here]].
|
|
Mirrors can update irregularly.
|
|
|
|
-----
|
|
|
|
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.
|
|
|
|
Bot uses an OOP-style of Lua
|
|
as [[https://is.gd/f0Vadk][described on Wikipedia]].
|
|
|
|
Maybe I will rewrite bot's core to C but here already so many Lua code.
|
|
|
|
* Installation
|
|
|
|
Officially supported only [[https://docker.com][Docker]], but you can use it without Docker.
|
|
|
|
Docker installation:
|
|
|
|
+ Clone repository with submodules: ~git clone --recursive https://gitdab.com/er2/comp-tg~
|
|
|
|
and enter ~cd comp-tg~
|
|
|
|
+ Build image: ~docker build -t comp-tg .~
|
|
|
|
+ Start it: ~docker run -d -e .env --name comp-tg --restart always comp-tg~
|
|
|