diff options
| -rw-r--r-- | .vscode/launch.json | 14 | ||||
| -rw-r--r-- | bot_discord.js | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index c2b08f1..ae7bde3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,19 @@ "type": "node", "request": "launch", "name": "Launch Program", - "program": "${workspaceFolder}/bot_discord.js" + "program": "${workspaceFolder}/bot_discord.js", + "console": "integratedTerminal", + + }, + { + "type": "node", + "request": "launch", + "name": "Launch Program with debug mode", + "program": "${workspaceFolder}/bot_discord.js", + "console": "integratedTerminal", + "args": [ + "--debug" + ] } ] }
\ No newline at end of file diff --git a/bot_discord.js b/bot_discord.js index 5034885..2149538 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -38,7 +38,7 @@ console.log ('This is free software, and you are welcome to redistribute it'); console.log ('under certain conditions; type `show c\' for details.\n')
if (process.argv.indexOf("--debug") == -1) {
- log("Running AleeBot without --debug command line flag. Debug output disabled.");
+ console.log("Running AleeBot without --debug command line flag. Debug output disabled.\n");
} else {
console.log('[!] Entering debug mode...')
client.on('debug', function(info) {
|
