quick perm

This commit is contained in:
abbie 2024-08-26 18:36:15 +01:00
parent 3e92dc3bc7
commit b75f72f4de
Signed by: threeoh6000
GPG key ID: 801FE4AD456E922C

16
bot.lua
View file

@ -114,13 +114,15 @@ client:on('messageCreate', function(message)
end
end
if message.content == prefix .. 'update' then
local guildinfo = getinfo(message.guild)
local guildchns = getchannels(message.guild)
if guildchns ~= false and guildinfo ~= false then
guildchns[1]:setName("Members: "..guildinfo[1])
guildchns[2]:setName("🤖Bots: "..guildinfo[2])
else
message.channel:send("update unsuccessful")
if message.author.id == "867901290336223242" or message.author.id == message.guild.owner.user.id then
local guildinfo = getinfo(message.guild)
local guildchns = getchannels(message.guild)
if guildchns ~= false and guildinfo ~= false then
guildchns[1]:setName("Members: "..guildinfo[1])
guildchns[2]:setName("🤖Bots: "..guildinfo[2])
else
message.channel:send("update unsuccessful")
end
end
end
if message.content:startswith(prefix .. "botchn") then