leave server command
This commit is contained in:
parent
d4482f7167
commit
573d348139
@ -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()
|
io.open('restart.txt','w+'):write(t.message.guild.id..','..t.message.channel.id..','..t.message.id):close()
|
||||||
os.execute('luvit ./src/main.lua')
|
os.execute('luvit ./src/main.lua')
|
||||||
end
|
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)
|
end)
|
Loading…
Reference in New Issue
Block a user