Do you ever want to react with your emotions? This clip lets you express your emotions.Type "+react help" for help.
// Some help:
// Type command "+react help" for help.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
if (context.params.event.content.match(`help`)) {
await lib.discord.channels['@0.3.0'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: '',
tts: false,
embeds: [
{
type: 'rich',
title: `SUPER-REACTION HELP`,
description: `**+react happy** - Be happy.\n**+react angry** - Be angry.\n**+react sad** - Be sad.\n**+react cry** - Cry out.\n**+react cool** - Be cool`,
color: 0xc8ff00,
},
],
});
}
if (context.params.event.content.match(`happy`)) {
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `😀`,
});
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${context.params.event.author.username} is happy!`,
});
}
if (context.params.event.content.match(`angry`)) {
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `😡`,
});
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${context.params.event.author.username} is angry!`,
});
}
if (context.params.event.content.match(`sad`)) {
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `🙁`,
});
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${context.params.event.author.username} is sad!`,
});
}
if (context.params.event.content.match(`cry`)) {
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `😭`,
});
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${context.params.event.author.username} is crying!`,
});
}
if (context.params.event.content.match(`cool`)) {
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `😎`,
});
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${context.params.event.author.username} is cool!`,
});
}
// You can add even more emotions.
// Help:
//if (context.params.event.content.match(`[name of your emote]]`)) {
// await lib.discord.channels['@0.3.2'].messages.create({
// channel_id: `${context.params.event.channel_id}`,
// content: `[your emoji (npr. 😎)]`,
// });
// await lib.discord.channels['@0.3.2'].messages.create({
// channel_id: `${context.params.event.channel_id}`,
// content: `${context.params.event.author.username} is [emote message]!`,
// });
//}