SHOW:
|
|
- or go back to the newest paste.
1 | console.log("Hello!"); | |
2 | const Discord = require("discord.js"); | |
3 | const bot = new Discord.Client(); | |
4 | - | const talkedRecently = new Set(); |
4 | + | |
5 | - | var cooldowns = {} |
5 | + | bot.login("Bot Token") |
6 | - | var minute = 60000; |
6 | + | |
7 | - | var hour = minute * 24; |
7 | + | bot.on('ready', () => { var channel = bot.channels.get("Channel ID ").send("!cauvong <@&ROLE_ID> "); /// < role or roleID |
8 | }) | |
9 | - | bot.login("token bot") |
9 | + | |
10 | bot.on("message", (message) => { | |
11 | - | bot.on('ready', () => { var channel = bot.channels.get("channel ID").send("!cauvong role name"); |
11 | + | if (message.content == "!cauvong **@Role Name**") { < /// role name |
12 | setTimeout(function(){ | |
13 | bot.channels.get("Channel ID").send("!cauvong <@&ROLE_ID>); | |
14 | }, 900000) /// < 15min | |
15 | - | if (message.content == "!cauvong **@Role Name**") { |
15 | + | |
16 | }); |