Helpful chat minion build with Lua.
Luabot uses the Discordia Discord library on top of Luvit. See their wiki for help getting the environment set up. Luabot uses the coro-fs replacement for Luvit's builtin fs lib.
Luabot uses LPEG for the text parsing. It's baked in with Luvit and not an additional dependency.
Notable features include:
- Can match multiple commands in 1 message
- Commands can take variable amount of user mentions or queries
- Handy utilities to dynamically load comamnds and create new patterns
See Discordia Wiki for instructions
git clone https://github.com/ryanford-frontend/luabot-discord.git
cd
into the project root and run lit install SinisterRectus/discordia
lit install creationix/coro-fs
local config = {
token = 'Bot YOUR_TOKEN_HERE',
}
return config
luvit bot.lua