From a580264d3e7ffc9408bb2b33cee9f0d76734a456 Mon Sep 17 00:00:00 2001 From: tommy Date: Fri, 12 Jan 2024 22:33:34 -0500 Subject: [PATCH] fix restart command not working if you dont have luvit in env --- src/modules/commands/restart.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commands/restart.lua b/src/modules/commands/restart.lua index bb88776..0a81c02 100644 --- a/src/modules/commands/restart.lua +++ b/src/modules/commands/restart.lua @@ -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)