added debug
This commit is contained in:
6
bot.js
6
bot.js
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user