Skip to content

Commit

Permalink
Merge pull request #15 from husnuljahneer/deepsource-fix-d90865fd
Browse files Browse the repository at this point in the history
Replace  `==`/`!=` with `===`/`!==`
  • Loading branch information
husnuljahneer authored Jul 6, 2022
2 parents c90b393 + 73a320c commit 5feb127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ client.on("message", async (message) => {
db.add(`peppercommands_${server}_${user.id}`, 1);
}
if (pepperCommands % 100 == 0) {
if (message.author.bot || pepperCommands == null || message.member.id == null || message.guild.id == null) return;
if (message.author.bot || pepperCommands === null || message.member.id === null || message.guild.id === null) return;
await mongoCurrency.giveCoins(message.member.id, message.guild.id, 1500)
await mongoCurrency.giveBankSpace(message.member.id, message.guild.id, 1000)
let embed = new Discord.MessageEmbed()
Expand Down

0 comments on commit 5feb127

Please sign in to comment.