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; let response;
if (auth) { if (auth) {
response = await fetch(url, auth); response = await fetch(url, auth);
sendToBotTestingChannel(url); sendToBotTestingChannel('imgur url:' + url);
sendToBotTestingChannel(auth); sendToBotTestingChannel('imgur auth:' + auth);
} else { } else {
response = await fetch(url); response = await fetch(url);
} }
@@ -679,7 +679,7 @@ client.on('message', message => {
case 'async': case 'async':
asyncImageRequest(message) asyncImageRequest(message)
.catch(error => { .catch(error => {
sendToBotTestingChannel(error.message); sendToBotTestingChannel('async:' + error.message);
}); });
break; break;