From 3e2cf95a209e29bb647f691dd9741ccdc45f6b9b Mon Sep 17 00:00:00 2001 From: tommy aka doge <59783653+dowoge@users.noreply.github.com> Date: Mon, 7 Nov 2022 12:21:00 -0500 Subject: [PATCH] remove warnings in vsc --- .vscode/settings.json | 3 ++- src/modules/commands/restart.lua | 2 +- src/modules/http.lua | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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