이세린

add .react, does not work in calm.js yet

......@@ -4,17 +4,26 @@ module.exports = {
name: 'calm',
description: 'Actual help section',
async run(client, message, args){
const breathe_emoji = '🫁 ';
const cute_emoji = '🐶';
const checklist_emoji = '🗒️';
const chat_emoji = '🗣️';
const calm = new Discord.MessageEmbed()
.setColor('#91B2C7')
.setDescription("It's okay, I'm here to help! What would you like to do?")
.addFields(
{name: ';breathe', value: "A gif to sync your breathing to!"},
{name: ';cute', value: "Some cute animal pictures to banish the bad feels!"},
{name: ';checklist', value: "I'll guide you through an anxiety checklist"},
{name: ';chat', value: "If you just want a chat with me, I'm all ears!"}
{name: ';breathe', value: `${breathe_emoji} A gif to sync your breathing to!`},
{name: ';cute', value: `${cute_emoji} Some cute animal pictures to banish the bad feels!`},
{name: ';checklist', value: `${checklist_emoji} I'll guide you through an anxiety checklist`},
{name: ';chat', value: `${chat_emoji} If you just want a chat with me, I'm all ears!`}
);
message.channel.send(calm);
}
}
//Add reaction event flag later
\ No newline at end of file
message.channel.send({embed: calm}).then(messageEmbed => {
messageEmbed.react(breathe_emoji);
messageEmbed.react(cute_emoji);
messageEmbed.react(checklist_emoji);
messageEmbed.react(chat_emoji);
});
}
}
\ No newline at end of file
......
//bot basic primer
const Discord = require('discord.js');
const client = new Discord.Client();
const client = new Discord.Client({partials: ["MESSAGE", "CHANNEL", "REACTION"]});
const prefix = ';';
......@@ -47,6 +47,12 @@ client.on('message', async message => {
message.channel.send('pong!');
}
if (command === 'react') {
message.channel.send('react?').then(reactmessage => {
reactmessage.react('😄');
})
}
if(!client.commands.has(command)){
return;
}
......