messing with events
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
name: 'interactionCreate',
|
||||
execute(interaction) {
|
||||
console.log(`${interaction.user.tag} in #${interaction.channel.name} triggered an interaction.`);
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
name: 'ready',
|
||||
once: true,
|
||||
execute(client) {
|
||||
console.log(`Ready! Logged in as ${client.user.tag}`);
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,10 @@
|
||||
module.exports = {
|
||||
name: 'messageCreate',
|
||||
execute(client) {
|
||||
console.log('user has sent a message');
|
||||
if (client.messageCreate.content.includes('reee')) {
|
||||
const channel = client.channels.cache.get('id');
|
||||
channel.send('reee');
|
||||
}
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user