π™‘π™‰π˜Ύπ™‰π™
π™‘π™‰π˜Ύπ™‰π™
DIAdiscord.js - Imagine an app
Created by π™‘π™‰π˜Ύπ™‰π™ on 6/11/2024 in #djs-questions
How can i automate message?
Okay thank you it worked perfectly πŸ‘
25 replies
DIAdiscord.js - Imagine an app
Created by π™‘π™‰π˜Ύπ™‰π™ on 6/11/2024 in #djs-questions
How can i automate message?
module.exports = {
name: Events.ClientReady,
once: true,
execute(client) {
const channel = client.channels.cache.get("1250036747732127848");
console.log(`Ready! Logged in as ${client.user.tag}`);
channel.send('Bot is ready!')
.then(message => console.log(`Sent message: ${message.content}`))
.catch(console.error);
},
};
module.exports = {
name: Events.ClientReady,
once: true,
execute(client) {
const channel = client.channels.cache.get("1250036747732127848");
console.log(`Ready! Logged in as ${client.user.tag}`);
channel.send('Bot is ready!')
.then(message => console.log(`Sent message: ${message.content}`))
.catch(console.error);
},
};
is this good?
25 replies
DIAdiscord.js - Imagine an app
Created by π™‘π™‰π˜Ύπ™‰π™ on 6/11/2024 in #djs-questions
How can i automate message?
oh okay
25 replies
DIAdiscord.js - Imagine an app
Created by π™‘π™‰π˜Ύπ™‰π™ on 6/11/2024 in #djs-questions
How can i automate message?
okay let me try it
25 replies
DIAdiscord.js - Imagine an app
Created by π™‘π™‰π˜Ύπ™‰π™ on 6/11/2024 in #djs-questions
How can i automate message?
oh i means i need to change the channel id and channel name?
25 replies
DIAdiscord.js - Imagine an app
Created by π™‘π™‰π˜Ύπ™‰π™ on 6/11/2024 in #djs-questions
How can i automate message?
const channel = client.channels.cache.get("222086648706498562");
const channel = client.channels.cache.get("222086648706498562");
what are these numbers suppose to mean? should i change it?
25 replies
DIAdiscord.js - Imagine an app
Created by π™‘π™‰π˜Ύπ™‰π™ on 6/11/2024 in #djs-questions
How can i automate message?
okay let me try
25 replies
DIAdiscord.js - Imagine an app
Created by π™‘π™‰π˜Ύπ™‰π™ on 6/11/2024 in #djs-questions
How can i automate message?
execute(client) {
console.log(`Ready! Logged in as ${client.user.tag}`);
channel.send('Bot is ready!')
.then(message => console.log(`Sent message: ${message.content}`))
.catch(console.error);
},
execute(client) {
console.log(`Ready! Logged in as ${client.user.tag}`);
channel.send('Bot is ready!')
.then(message => console.log(`Sent message: ${message.content}`))
.catch(console.error);
},
25 replies
DIAdiscord.js - Imagine an app
Created by π™‘π™‰π˜Ύπ™‰π™ on 6/11/2024 in #djs-questions
How can i automate message?
let me try
25 replies
DIAdiscord.js - Imagine an app
Created by π™‘π™‰π˜Ύπ™‰π™ on 6/11/2024 in #djs-questions
How can i automate message?
okay
25 replies
DIAdiscord.js - Imagine an app
Created by π™‘π™‰π˜Ύπ™‰π™ on 6/11/2024 in #djs-questions
How can i automate message?
execute(client) {
console.log(`Ready! Logged in as ${client.user.tag}`);
},
execute(client) {
console.log(`Ready! Logged in as ${client.user.tag}`);
},
so i just add send a message here? (sorry, im a beginner)
25 replies