local Discord = require('discordia')
local Client = Discord.Client()
Client:on("ready", function()
print("Bot is ready!")
end)
Client:on('messageCreate', function(Message)
local rawContent = Message.content
print(Message.content) -- That is printing nothing ! ! !
if (rawContent:lower() == '!hello') then
print("Got it")
--Message:reply(string.format('Hello, %s', Message.author.mentionString))
end
end)
local TokenFile = io.open("Token.txt", "r")
local TokenString = TokenFile:read('*a')
TokenFile:close()
Client:run('Bot '.. TokenString)
My Code :
for some reason its printing nothing.