leave server command

This commit is contained in:
tommy aka doge 2022-10-10 23:37:06 -04:00
parent d4482f7167
commit 573d348139

View File

@ -10,4 +10,13 @@ commands:Add('restart',{},"restart bot [dev]", function(t)
io.open('restart.txt','w+'):write(t.message.guild.id..','..t.message.channel.id..','..t.message.id):close()
os.execute('luvit ./src/main.lua')
end
end)
commands:Add('leave',{},'leave',function(t)
if t.message.author==t.t[1].owner then
t.message:delete()
local left = t.message.guild:leave()
if left then
print('left')
end
end
end)