leave server command
This commit is contained in:
parent
d4482f7167
commit
573d348139
@ -11,3 +11,12 @@ commands:Add('restart',{},"restart bot [dev]", function(t)
|
||||
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)
|
Loading…
Reference in New Issue
Block a user