Skip to content

Commit

Permalink
updated README, fixed starboard bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
sabattle committed Sep 5, 2020
1 parent 4b01d03 commit c9df941
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ Calypso also comes packed with a variety of features, such as:
* Server **verification** via reactions
* **Welcome messages** and **farewell messages**
* **Logging** for mod commands and various events
* **Moderator Only** channels
* **Moderator only** channels
* A **starboard**
* **Auto kicking** when a warn limit is reached
* Auto **random colors** when members join
* Per **command disabling**
Expand Down
2 changes: 2 additions & 0 deletions src/events/messageReactionAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ module.exports = async (client, messageReaction, user) => {
const extension = message.embeds[0].url.split('.').pop();
if (/(jpg|jpeg|png|gif)/gi.test(extension)) image = message.embeds[0].url;
}

if (!message.content && !image) return;

const embed = new MessageEmbed()
.setAuthor(message.author.tag, message.author.displayAvatarURL({ dynamic: true}))
Expand Down

0 comments on commit c9df941

Please sign in to comment.