Skip to content

Commit

Permalink
Add UAC info file with levels and minor utility functions
Browse files Browse the repository at this point in the history
  • Loading branch information
MinusGix committed Mar 5, 2020
1 parent 133740a commit 3569d42
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions server/src/commands/utility/UAC/info.js
Original file line number Diff line number Diff line change
@@ -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.',
};

0 comments on commit 3569d42

Please sign in to comment.