fix restart command not working if you dont have luvit in env

This commit is contained in:
tommy 2024-01-12 22:33:34 -05:00
parent 8b152d9452
commit a580264d3e
No known key found for this signature in database
GPG Key ID: AF3CD89B80478500

View File

@ -8,7 +8,7 @@ commands:Add('restart',{},"restart bot [dev]", function(t)
t.t[1]:stop()
wait(1.5)
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('.\\exes\\luvit ./src/main.lua')
end
end)
commands:Add('leave',{},'leave',function(t)