Skip to content

Lua-solver is a Discord bot capable of interpreting the Lua code you send to it.

Notifications You must be signed in to change notification settings

thewrath/lua-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lua-Solver

example

Discord lua interpreter

Lua-solver is a Discord bot capable of interpreting the Lua code you send to it.

How to use

Simply send a message mentioning the bot with lua code between 6 backquotes :

example

How to install

Firstly, create bot with Discord developer portal.

Create Oauth2 link with "Send messages" right, add the bot to your server.

Clone this repository, add env.lua file with this content :

return {
    DISCORD_GATEWAY_URI = "wss://gateway.discord.gg/?v=6&encoding=json",
    DISCORD_API_URL = "https://discordapp.com/api",
    BOT_TOKEN = "your-bot-token",
    BOT_CLIENT_ID = "your-bot-client-id"
}

Now you can launch the bot with lua main.lua

TODO

  • Add commands (help, library, ...)
  • Return print call (display like in lua interpreter)
  • Return error message
  • Create special file to store discord message

Thank to

About

Lua-solver is a Discord bot capable of interpreting the Lua code you send to it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages