Skip to content
This repository was archived by the owner on May 24, 2021. It is now read-only.

Commit d3a882d

Browse files
committed
Fix any errored responses
1 parent bffbcde commit d3a882d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wikilinker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ bot.on('message', (msg) => {
4646

4747
Promise.all(mps)
4848
.then(preparedSend => {
49+
preparedSend = preparedSend.filter(item => item !== undefined);
4950
if (preparedSend.length > 1) {
5051
console.log('Sending message...');
5152
msg.channel.sendMessage(preparedSend);

0 commit comments

Comments
 (0)