Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log("Hello!");
- const Discord = require("discord.js");
- const bot = new Discord.Client();
- bot.login("Bot Token")
- bot.on('ready', () => { var channel = bot.channels.get("Channel ID ").send("!cauvong <@&ROLE_ID> "); /// < role or roleID
- })
- bot.on("message", (message) => {
- if (message.content == "!cauvong **@Role Name**") { < /// role name
- setTimeout(function(){
- bot.channels.get("Channel ID").send("!cauvong <@&ROLE_ID>);
- }, 900000) /// < 15min
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement