Telegram bot written in Lua
Go to file
Er2 ed6598b145 Update
Rewritten back to Lua.

Using more beautiful classes.

Add Arabic (lol idk why).
2022-08-10 12:51:49 +03:00
etc Update 2022-08-10 12:51:49 +03:00
src Update 2022-08-10 12:51:49 +03:00
.dockerignore Update 2022-08-10 12:51:49 +03:00
.gitignore Update 2022-08-10 12:51:49 +03:00
.gitmodules more reply reactions and match whole words, replace Unicode library 2022-02-27 13:22:07 +03:00
Dockerfile Update 2022-08-10 12:51:49 +03:00
config.lua Update 2022-08-10 12:51:49 +03:00
example.env Update 2022-08-10 12:51:49 +03:00
init.lua luajit support 2022-01-23 18:18:53 +03:00
license Update 2022-08-10 12:51:49 +03:00
readme.org Update 2022-08-10 12:51:49 +03:00
run.sh Update 2022-08-10 12:51:49 +03:00

readme.org

Computer bot

Original is here and 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 described on Wikipedia.

Maybe I will rewrite bot's core to C but here already so many Lua code.

Installation

Officially supported only 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