-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathrkr.js
executable file
·26 lines (26 loc) · 1.03 KB
/
rkr.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = {
noDisplay: true,
help: `Starts the 9PM tour in Hindi.`,
permissions: 'none',
commandFunction: function (Bot, by, args, client) {
if (!tools.hasPermission(by, 'beta', 'hindi')) return;
const hindi = Bot.rooms.hindi;
if (hindi.tourPinged === 1) return Bot.pm(by, 'Sniped!');
hindi.tourPinged = 1;
if (!args.length) {
Bot.say('hindi', '/addrankuhtml %, RkR, <button disabled>9 PM Tour</button>');
Bot.say('hindi', '/notifyoffrank %');
Bot.say('hindi', '~tour poll');
const timeLeft = 60 * 60 * 1000 - (Date.now() + 30 * 60 * 1000) % (60 * 60 * 1000);
setTimeout(() => {
Bot.say('hindi', `/notifyrank %, Tour start, Type ~tour start`);
Bot.say('hindi', `/addrankuhtml %, RkR, <button name="send" value="~tour start">Start!</button>`);
}, timeLeft);
} else {
Bot.say('hindi', '/addrankuhtml %, RkR, <button disabled>9 PM Tour</button>');
Bot.say('hindi', '/notifyoffrank %');
Bot.say('hindi', `/tour create ${args.join(' ')}, elim`);
Bot.say('hindi', `/tour scouting disallow`);
}
}
};