From 3569d42f2deae8215d0cf872413810400177b547 Mon Sep 17 00:00:00 2001 From: MinusGix Date: Thu, 5 Mar 2020 10:48:33 -0600 Subject: Add UAC info file with levels and minor utility functions --- server/src/commands/utility/UAC/info.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 server/src/commands/utility/UAC/info.js (limited to 'server') diff --git a/server/src/commands/utility/UAC/info.js b/server/src/commands/utility/UAC/info.js new file mode 100644 index 0000000..220e14d --- /dev/null +++ b/server/src/commands/utility/UAC/info.js @@ -0,0 +1,32 @@ +export const levels = { + admin : 9999999, + moderator : 999999, + + channelOwner : 99999, + channelModerator : 9999, + + user : 100, +}; + +export function isAdmin (level) { + return level >= levels.admin; +} + +export function isModerator (level) { + return level >= levels.moderator; +} + +export function isChannelOwner (level) { + return level >= levels.channelOwner; +} + +export function isChannelModerator (level) { + return level >= levels.channelModerator; +} + +export async function run (core, server, socket, data) {} + +export const info = { + name: 'uac_info', + description: 'This module contains information about UAC levels, and minor utility functions.', +}; \ No newline at end of file -- cgit v1.2.1