diff --git a/.vscode/settings.json b/.vscode/settings.json index 3a27fca..5225b02 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,7 @@ { "robloxLsp.diagnostics.globals": [ "goto", - "nd" + "nd", + "io" ] } \ No newline at end of file diff --git a/src/modules/commands/restart.lua b/src/modules/commands/restart.lua index 3023d04..bb88776 100644 --- a/src/modules/commands/restart.lua +++ b/src/modules/commands/restart.lua @@ -1,7 +1,7 @@ local discordia=require('discordia') local commands=require('./../commands.lua') discordia.extensions() -function wait(n)c=os.clock t=c()while c()-t < n do end;end +function wait(n)local c=os.clock local t=c()while c()-t < n do end;end commands:Add('restart',{},"restart bot [dev]", function(t) if t.message.author==t.t[1].owner then t.message:addReaction('👍') diff --git a/src/modules/http.lua b/src/modules/http.lua index 94ee226..8cd3ccd 100644 --- a/src/modules/http.lua +++ b/src/modules/http.lua @@ -1,6 +1,6 @@ local http = require('coro-http') local json = require('json') -function wait(n)c=os.clock t=c()while c()-t<=n do end;end +function wait(n)local c=os.clock local t=c()while c()-t<=n do end;end --[[ 1: method 2: url