quick perm
This commit is contained in:
parent
3e92dc3bc7
commit
b75f72f4de
1 changed files with 9 additions and 7 deletions
2
bot.lua
2
bot.lua
|
@ -114,6 +114,7 @@ client:on('messageCreate', function(message)
|
|||
end
|
||||
end
|
||||
if message.content == prefix .. 'update' then
|
||||
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
|
||||
|
@ -123,6 +124,7 @@ client:on('messageCreate', function(message)
|
|||
message.channel:send("update unsuccessful")
|
||||
end
|
||||
end
|
||||
end
|
||||
if message.content:startswith(prefix .. "botchn") then
|
||||
if message.author.id == "867901290336223242" or message.author.id == message.guild.owner.user.id then
|
||||
local chn = message.content:gsub(prefix.."botchn ","")
|
||||
|
|
Loading…
Reference in a new issue