False moove reactions fixed
This commit is contained in:
parent
99123aa608
commit
28db7dba47
1 changed files with 1 additions and 2 deletions
3
moove.js
3
moove.js
|
@ -3,8 +3,6 @@ const help = require('./helpFunctions');
|
||||||
const client = require('./main');
|
const client = require('./main');
|
||||||
|
|
||||||
function moove(message) {
|
function moove(message) {
|
||||||
message.react('🐮');
|
|
||||||
|
|
||||||
const content = message.content.trim();
|
const content = message.content.trim();
|
||||||
|
|
||||||
if (content.search(/<#[0-9]*>$/g) != 0) {
|
if (content.search(/<#[0-9]*>$/g) != 0) {
|
||||||
|
@ -19,6 +17,7 @@ function moove(message) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message.react('🐮');
|
||||||
originalChannel.messages.fetch(msgToMooveId).then(msg => {
|
originalChannel.messages.fetch(msgToMooveId).then(msg => {
|
||||||
const sentBy = `Sent by ${msg.author}\nmooved ${message.author}\n`;
|
const sentBy = `Sent by ${msg.author}\nmooved ${message.author}\n`;
|
||||||
if (msg.embeds.length > 0 && msg.content == '' && msg.attachments.size == 0) {
|
if (msg.embeds.length > 0 && msg.content == '' && msg.attachments.size == 0) {
|
||||||
|
|
Loading…
Reference in a new issue