Telegram bot written in Lua
Find a file
2021-07-19 10:55:01 +03:00
cmds add readme, some code refactoring 2021-07-19 10:55:01 +03:00
core add readme, some code refactoring 2021-07-19 10:55:01 +03:00
db add readme, some code refactoring 2021-07-19 10:55:01 +03:00
events Add DB + some things 2021-04-17 12:20:00 +03:00
config.lua Add DB + some things 2021-04-17 12:20:00 +03:00
init.lua add readme, some code refactoring 2021-07-19 10:55:01 +03:00
LICENSE add readme, some code refactoring 2021-07-19 10:55:01 +03:00
README.md add readme, some code refactoring 2021-07-19 10:55:01 +03:00

Computer bot

This bot is a reborn of this bot, but on Telegram.

Bot uses an OOP-style of lua as described on Wikipedia

TODO: Rewrite core to C, lua have C API and C is faster.

Installation

Alpine Linux, root:

  • Enable community repo (in wiki)

  • Install: apk add sudo git lua5.3 luarocks openssl-dev

  • Install dependencies: luarocks-5.3 install luasec

  • Create user: adduser user setup sudo and login to user

  • Get repo: git clone https://github.com/Er2ch/comp-tg and cd comp-tg

  • Change token and owner in config.lua TODO: Use env instaed of config

  • Run: lua5.3 init.lua