This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
name: 'ranklock', | |
description: '!ranklock [username1]', | |
execute(message, args) { | |
const {groupID, firebaseBASEURL, hicomRole, officerRole} = require('./settings/config.json'); | |
var groupIDB = await roblox.getGroup(groupID) | |
if (!message.member.roles.exists('name', `${hicomRole}`) && !message.member.roles.exists('name', `${officerRole}`)) { | |
return message.channel.send(`Sorry ${message.author}, but only officers+ can use this command!`).then(message => message.delete(5000)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config(); | |
exports.run = async (client, message, args) => { | |
return message.channel.send({embed: { | |
color: 7948427, | |
description: `**Here are my commands:**\n` | |
+ `\`${process.env.prefix}help\` - Shows this list of commands.\n` | |
+ `\`${process.env.prefix}setrank <user> <rank name/number>\` - Ranks the user in the Roblox group to the specified rank number or name.\n` | |
+ `\`${process.env.prefix}promote <user>\` - Moves the user 1 rank up in the Roblox group.\n` | |
+ `\`${process.env.prefix}demote <user>\` - Moves the user 1 rank down in the Roblox group.\n` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require('discord.js'); | |
const PREFIX = "/"; | |
module.exports = { | |
name: 'warn', | |
aliases: 'suggestion', | |
description: "Posts a suggestion", | |
async execute(bot, message, args, catchErr){ | |
if(message.author.bot) return; | |
if(!message.content.startsWith(PREFIX)) return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-inline-comments */ | |
const Discord = require('discord.js'); | |
const PREFIX = '/'; | |
module.exports = { | |
name: 'help', | |
aliases: 'h', | |
description: 'Lists all commands', | |
execute(bot, message, args, catchErr) { | |
if (message.author.bot) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require('discord.js'); | |
const PREFIX = "/"; | |
module.exports = { | |
name: 'announce', | |
description: "Announcement", | |
execute: (message, args, catchErr) => { | |
if(!message.content.startsWith(PREFIX)) return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextChannel { | |
type: 'text', | |
deleted: false, | |
id: '768198249068494859', | |
name: 'errors', | |
rawPosition: 21, | |
parentID: '768198207875317781', | |
permissionOverwrites: Collection [Map] { | |
'767413344558514236' => PermissionOverwrites { | |
id: '767413344558514236', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"test": "ODYuMTQ4LjU3LjE4MA==" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"test": "R3JhdmVz" | |
} |