added debug

This commit is contained in:
Dalton
2018-12-12 19:58:51 -08:00
parent 5e169bb2ac
commit 822a5f55bd

6
bot.js
View File

@@ -229,8 +229,8 @@ async function loadJson(url, auth) {
let response;
if (auth) {
response = await fetch(url, auth);
sendToBotTestingChannel(url);
sendToBotTestingChannel(auth);
sendToBotTestingChannel('imgur url:' + url);
sendToBotTestingChannel('imgur auth:' + auth);
} else {
response = await fetch(url);
}
@@ -679,7 +679,7 @@ client.on('message', message => {
case 'async':
asyncImageRequest(message)
.catch(error => {
sendToBotTestingChannel(error.message);
sendToBotTestingChannel('async:' + error.message);
});
break;