update readme, fix .gitignore

This commit is contained in:
Er2 2022-02-26 10:08:26 +03:00
parent 455869fa0c
commit 14ba3d7a00
2 changed files with 7 additions and 1 deletions

2
.gitignore vendored
View file

@ -2,4 +2,4 @@
*~
\#*#
src/*.lua
src/*/*.lua

View file

@ -15,6 +15,8 @@ and use it or fallback to English.
Bot uses an OOP-style of Lua
as [[https://is.gd/f0Vadk][described on Wikipedia]].
For more readability bot's userland written in MoonScript.
Maybe I will rewrite bot's core to C but here already so many Lua code.
* Installation
@ -27,6 +29,8 @@ Maybe I will rewrite bot's core to C but here already so many Lua code.
+ Install LuaSec for https requests: ~luarocks-5.3 install luasec~
+ Install MoonScript: ~luarocks-5.1 install moonscript~
+ Create user: ~adduser user~
setup it (add to doas) and login to this user
@ -37,6 +41,8 @@ Maybe I will rewrite bot's core to C but here already so many Lua code.
+ Change token and owner in *config.lua*
+ Compile bot: ~moonc src/~
+ Add service ~doas cp bot.rc /etc/init.d/mybot && doas chmod +x /etc/init.d/mybot~
+ Configure it ~doas vi /etc/init.d/mybot~ (change user)