smh
This commit is contained in:
14
Lua/rpbot/main.lua
Normal file
14
Lua/rpbot/main.lua
Normal 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 ')
|
||||
Reference in New Issue
Block a user