Telegram bot written in Lua
Find a file
2022-01-18 18:50:00 +00:00
etc split api 2021-08-16 11:56:28 +03:00
src add uptime 2022-01-18 18:50:00 +00:00
.gitignore remove neednt db 2021-08-16 11:17:12 +03:00
.gitmodules split api 2021-08-16 11:56:28 +03:00
bot.rc openrc script, some changes 2022-01-18 18:25:18 +03:00
config.lua remove neednt db 2021-08-16 11:17:12 +03:00
init.lua split api 2021-08-16 11:56:28 +03:00
LICENSE add readme, some code refactoring 2021-07-19 10:55:01 +03:00
readme.org remove neednt db 2021-08-16 11:17:12 +03:00
start.sh openrc script, some changes 2022-01-18 18:25:18 +03:00

Computer bot

Now, GitHub contains mirror, original is here.


This bot is a continue of my Discord bot, but on Telegram.

Bot uses an OOP-style of Lua as described on Wikipedia.

Also bot reads client language and automatically loads needing locale.

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

Installation

Alpine linux, root:

  • Enable community repo (described in wiki)
  • Install lua and tools: apk add sudo git lua5.3 luarocks openssl-dev
  • Install LuaSec for https requests: luarocks-5.3 install luasec
  • Create user: adduser user and login to this user
  • Clone repo: git clone --recursive https://gitdab.com/er2/comp-tg and enter cd comp-tg
  • Change token and owner in config.lua
  • Run: lua5.3 init.lua