This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Post a message to discord api via a bot | |
-- Originally created by ianklatzco, forked and ported to lua by xxxYoloxxx999#2166 (preindex) | |
-- You don't need a library to do this, you just need something that runs lua to execute and a request function. | |
local channelId = 'your_id_goes_here' | |
local botToken = 'your_token_here' | |
local ToPost = { -- Stuff you need to post | |
['content'] = 'hello world!' | |
} |