Skip to content

Commit

Permalink
add debug record block if you might have a token visible
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 13, 2021
1 parent 3e830af commit d748a76
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ public void execute(ScriptEntry scriptEntry) {
if (requireObject.apply(code, "code")) {
return;
}
if (scriptEntry.dbCallShouldDebug() && com.denizenscript.denizen.utilities.debugging.Debug.record) {
Debug.echoError("You almost recorded debug of your Discord token - record automatically disabled to protect you.");
com.denizenscript.denizen.utilities.debugging.Debug.record = false;
}
if (DenizenDiscordBot.instance.connections.containsKey(id.asString())) {
Debug.echoError(scriptEntry.getResidingQueue(), "Failed to connect: duplicate ID!");
return;
Expand Down

0 comments on commit d748a76

Please sign in to comment.