Browse Source

Fix malformed arrow function

master
Abheek Dhawan 4 years ago
parent
commit
79e9bc4982
  1. 8
      index.js

8
index.js

@ -7,7 +7,7 @@ client.on("ready", () => {
console.log("Logged in as " + client.user.tag + "!"); console.log("Logged in as " + client.user.tag + "!");
}); });
client.on("message" => { client.on("message", () => {
switch (message.content.toLowerCase()) { switch (message.content.toLowerCase()) {
case '$score': case '$score':
startScoring(message); startScoring(message);
@ -84,7 +84,7 @@ client.on('messageDelete', message => {
.setThumbnail(messageAvatar) .setThumbnail(messageAvatar)
.setFooter("ID: " + messageID) .setFooter("ID: " + messageID)
.setTimestamp() .setTimestamp()
.setColor('ff748c'); .setColor('ff0000');
client.guilds.cache.get("826506878976000030").channels.cache.get("826876551756513314").send(deleteEmbed).catch(console.error); client.guilds.cache.get("826506878976000030").channels.cache.get("826876551756513314").send(deleteEmbed).catch(console.error);
}); });
@ -99,7 +99,7 @@ client.on('messageUpdate', (originalMessage, editedMessage) => {
.setThumbnail(editedMessage.author.avatarURL()) .setThumbnail(editedMessage.author.avatarURL())
.setFooter("ID: " + editedMessage.id) .setFooter("ID: " + editedMessage.id)
.setTimestamp() .setTimestamp()
.setColor('8cbfe9'); .setColor('006699');
client.guilds.cache.get("826506878976000030").channels.cache.get("826876551756513314").send(editEmbed).catch(console.error); client.guilds.cache.get("826506878976000030").channels.cache.get("826876551756513314").send(editEmbed).catch(console.error);
}); });
@ -121,7 +121,7 @@ client.on('channelCreate', channel => {
.addField("Category", channelCategory) .addField("Category", channelCategory)
.setFooter("ID: " + channelID) .setFooter("ID: " + channelID)
.setTimestamp() .setTimestamp()
.setColor('8cbfe9'); .setColor('00aaff');
client.guilds.cache.get("826506878976000030").channels.cache.get("826876551756513314").send(channelCreateEmbed).catch(console.error); client.guilds.cache.get("826506878976000030").channels.cache.get("826876551756513314").send(channelCreateEmbed).catch(console.error);
} }
}); });

Loading…
Cancel
Save