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