Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.on('message', async msg => {
- const args = msg.content.slice(config.prefix.length).trim().split(/ +/g);
- const command = args.shift().toLowerCase();
- if(command === "olá") {
- msg.reply("Olá, Tudo bem?")
- } else if(command === "tchau") {
- msg.reply("Tchau.")
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement