async edits
This commit is contained in:
3
bot.js
3
bot.js
@@ -233,6 +233,9 @@ function asyncSiteRequest(url, process) {
|
|||||||
.then(data => {
|
.then(data => {
|
||||||
return process(data);
|
return process(data);
|
||||||
})
|
})
|
||||||
|
.then(res => {
|
||||||
|
return res;
|
||||||
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
sendToBotTestingChannel('async:' + error.message);
|
sendToBotTestingChannel('async:' + error.message);
|
||||||
return "";
|
return "";
|
||||||
|
Reference in New Issue
Block a user