quick perm
This commit is contained in:
parent
3e92dc3bc7
commit
b75f72f4de
1 changed files with 9 additions and 7 deletions
16
bot.lua
16
bot.lua
|
@ -114,13 +114,15 @@ client:on('messageCreate', function(message)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if message.content == prefix .. 'update' then
|
if message.content == prefix .. 'update' then
|
||||||
local guildinfo = getinfo(message.guild)
|
if message.author.id == "867901290336223242" or message.author.id == message.guild.owner.user.id then
|
||||||
local guildchns = getchannels(message.guild)
|
local guildinfo = getinfo(message.guild)
|
||||||
if guildchns ~= false and guildinfo ~= false then
|
local guildchns = getchannels(message.guild)
|
||||||
guildchns[1]:setName("⭐|Members: "..guildinfo[1])
|
if guildchns ~= false and guildinfo ~= false then
|
||||||
guildchns[2]:setName("🤖|Bots: "..guildinfo[2])
|
guildchns[1]:setName("⭐|Members: "..guildinfo[1])
|
||||||
else
|
guildchns[2]:setName("🤖|Bots: "..guildinfo[2])
|
||||||
message.channel:send("update unsuccessful")
|
else
|
||||||
|
message.channel:send("update unsuccessful")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if message.content:startswith(prefix .. "botchn") then
|
if message.content:startswith(prefix .. "botchn") then
|
||||||
|
|
Loading…
Reference in a new issue