then it up
This commit is contained in:
2
bot.js
2
bot.js
@@ -684,11 +684,11 @@ client.on('message', message => {
|
|||||||
|
|
||||||
case 'async':
|
case 'async':
|
||||||
let link = asyncImageRequest(message)
|
let link = asyncImageRequest(message)
|
||||||
|
.then(link => message.channel.send(link))
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.error('async:' + error.message);
|
console.error('async:' + error.message);
|
||||||
});
|
});
|
||||||
sendToBotTestingChannel('link promise: ' + JSON.stringify(link));
|
sendToBotTestingChannel('link promise: ' + JSON.stringify(link));
|
||||||
message.channel.send(link);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Voice commands
|
// Voice commands
|
||||||
|
Reference in New Issue
Block a user