forked from threeoh6000/joltik
im stupid actuall make it work
This commit is contained in:
parent
cb65ea2710
commit
c87acc3d23
1 changed files with 4 additions and 2 deletions
6
bot.lua
6
bot.lua
|
@ -1,5 +1,7 @@
|
||||||
local discordia = require('discordia')
|
local discordia = require('discordia')
|
||||||
local client = discordia.Client()
|
local client = discordia.Client {
|
||||||
|
gatewayIntents = 3276541,
|
||||||
|
}
|
||||||
local http = require("simple-http")
|
local http = require("simple-http")
|
||||||
local json = require('json')
|
local json = require('json')
|
||||||
local prefix = ","
|
local prefix = ","
|
||||||
|
@ -50,7 +52,7 @@ client:on('messageCreate', function(message)
|
||||||
if message.content == prefix .. 'ping' then
|
if message.content == prefix .. 'ping' then
|
||||||
message.channel:send({embed = {title = "Ping?",description = "Pong!",color = 0x00FFFF}})
|
message.channel:send({embed = {title = "Ping?",description = "Pong!",color = 0x00FFFF}})
|
||||||
end
|
end
|
||||||
if string.find(message.content:lower(), "sako") and ((string.find(message.content:lower(), "shut")) and string.find(message.content:lower(), "up") or (string.find(message.content:lower(), "stfu")) or (string.find(message.content:lower(),"quiet"))) and message.author.id == 1270071562183245884 then
|
if string.find(message.content:lower(), "sako") and ((string.find(message.content:lower(), "shut")) and string.find(message.content:lower(), "up") or (string.find(message.content:lower(), "stfu")) or (string.find(message.content:lower(),"quiet"))) and message.author.id ~= client.user.id then
|
||||||
local counter = load("counter.txt")
|
local counter = load("counter.txt")
|
||||||
counter = tonumber(counter)
|
counter = tonumber(counter)
|
||||||
message:addReaction("1️⃣")
|
message:addReaction("1️⃣")
|
||||||
|
|
Reference in a new issue