local L=require("\046\046\047\105\110\105\116")local u=L.session()local c=L.events u.login("\084\079\075\069\078")u.listen(c.messageCreate,function(L)local u=L.reply("\072\105 \116\104\101\114\101\033")assert(not u,"\067\111\117\108\100 \110\111\116 \115\101\110\100 \109\101\115\115\097\103\101 \058\040 \n\082\101\097\115\111\110\058 "..u)end)u.connect()
--// Creating session
local Lumi = require '../init'

--// Session is a factory function
local Session = Lumi.session()

--// Events constants, needed to listen to events
local Events = Lumi.events

--// Authenticate your token in the Discord API
Session.login('TOKEN')

Session.listen(Events.messageCreate, function(message)
    --// Methods that interact direct with Discord can return data and an error or just an error.
    local err = message.reply('Hi there!')

    --//In that case, message.reply() only returns an error
    assert(not err, 'Could not send message :( \nReason: ' .. err)

    --// Error handling is recommended in public bots.
    --// Otherwise, if your bot is private, has all permissions
    --// and you think there's no need to do it, go for it.
end)

--// Open gateway connection, your bot should go online now
Session.connect()