1
0
Fork 0
forked from threeoh6000/joltik

im stupid actuall make it work

This commit is contained in:
abbie 2024-08-05 18:56:27 +01:00
parent cb65ea2710
commit c87acc3d23
Signed by: threeoh6000
GPG key ID: 801FE4AD456E922C

View file

@ -1,5 +1,7 @@
local discordia = require('discordia')
local client = discordia.Client()
local client = discordia.Client {
gatewayIntents = 3276541,
}
local http = require("simple-http")
local json = require('json')
local prefix = ","
@ -50,7 +52,7 @@ client:on('messageCreate', function(message)
if message.content == prefix .. 'ping' then
message.channel:send({embed = {title = "Ping?",description = "Pong!",color = 0x00FFFF}})
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")
counter = tonumber(counter)
message:addReaction("1")