Faddi
Member
Hello I made a script tha should react to any message in specific channels. It doesn't work can you please help me?
Code:
registerPlugin({
name: 'Reaction',
version: 'beta0.0.1',
backends: ['ts3', 'discord'],
description: 'Here you can make automatic reactions on specific channels',
author: 'Faddi <[email protected]>',
vars: []
}, (sinusbot, config) => {
// import modules
const engine = require('engine');
const event = require('event');
// listen for chat event
client.on("message", msg => {
if(msg.channel.name === "memes") {
msg.react('??')
msg.react('??')
msg.react('??')
}
if(msg.channel.name === "clips") {
msg.react('??')
msg.react('??')
msg.react('??')
}
});
});