removed useless thing
This commit is contained in:
parent
c5e59152d4
commit
72fe5d572b
1 changed files with 1 additions and 6 deletions
7
index.js
7
index.js
|
@ -69,18 +69,13 @@ client.registry
|
||||||
|
|
||||||
client.on("message", async (message) => {
|
client.on("message", async (message) => {
|
||||||
let message_content = message.content.toLowerCase();
|
let message_content = message.content.toLowerCase();
|
||||||
|
|
||||||
// React to the message and send an auto response with it
|
// React to the message and send an auto response with it
|
||||||
if (message.author.bot) return; {
|
if (message.author.bot) return; {
|
||||||
// Reply with images as attachement
|
// Reply with images as attachement
|
||||||
if(imgResponseObject[message_content]) {
|
if(imgResponseObject[message_content]) {
|
||||||
message.channel.send({files: [imgResponseObject[message_content]]});
|
message.channel.send({files: [imgResponseObject[message_content]]});
|
||||||
}
|
|
||||||
else if(responseObject[message_content] && reactObject[message_content]) {
|
|
||||||
message.channel.send(responseObject[message_content]);
|
|
||||||
message.react(reactObject[message_content]);
|
|
||||||
// React only to the messages
|
|
||||||
}
|
}
|
||||||
|
// React only to the messages
|
||||||
else if(reactObject[message_content]) {
|
else if(reactObject[message_content]) {
|
||||||
message.react(reactObject[message_content]);
|
message.react(reactObject[message_content]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue