Skip to content

An example to implement JavaScript function in luvit with discordia

License

Notifications You must be signed in to change notification settings

Fastering18/JS-like-discordia-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS-like-discordia-bot

An example to implement JavaScript function in luvit with discordia

This source is used by Scanner 5 as website staff bot

Get started

Make sure to downloaded all luvit binaries
Install discordia using following command

lit install SinisterRectus/discordia

make sure lit command installed from luvit.io

Run your bot

Add environment variable BotToken containing your bot token
Run following command

luvit main.lua

Ouputs

Host discord bot

replit.com

Visit website here
Register an account and create new repl
Run following bash command to install luvit

git clone --recursive https://github.com/luvit/lit.git lit-src
./build/luvi lit-src -- make lit-src

binaries installed will be in repl root folder, you can run it using ./luvit [any] adding to PATH require root permission, run manually instead

Run discord bot

luvit main.lua

About

An example to implement JavaScript function in luvit with discordia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages