This commit is contained in:
Benjamin Kyd
2019-04-09 20:55:44 +01:00
parent 7dce6cab72
commit 6761ddab08
93 changed files with 14575 additions and 0 deletions

14
Lua/rpbot/main.lua Normal file
View File

@@ -0,0 +1,14 @@
local discordia = require('discordia')
local client = discordia.Client()
client:on('ready', function()
print('Logged in as '.. client.user.username)
end)
client:on('messageCreate', function(message)
if message.content == '!ping' then
message.channel:send('Pong!')
end
end)
client:run('Bot ')