Skip to content

Commit

Permalink
fix: staff variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Noxturnix committed Jan 7, 2024
1 parent baf5815 commit 63f7a1b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/command/messageCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ const messageCommands: MessageCommand[] = [
},
{
command: [createCommandString("say")],
isDevCommand: true,
isStaffCommand: true,
fn(functionCall) {
let replyUsage = () => {
functionCall.message.reply({
Expand All @@ -439,7 +439,7 @@ const messageCommands: MessageCommand[] = [
},
{
command: [createCommandString("eval")],
isDevCommand: true,
isStaffCommand: true,
fn(functionCall) {
functionCall.message.reply("This command is temporary disabled");
// if (!functionCall.args.length) {
Expand All @@ -456,7 +456,7 @@ const messageCommands: MessageCommand[] = [
},
{
command: [createCommandString("testboost")],
isDevCommand: true,
isStaffCommand: true,
fn(functionCall) {
let now = new Date().toISOString();
let oldMember = Reflect.construct(GuildMember, [
Expand Down
4 changes: 2 additions & 2 deletions src/interface/MessageCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface MessageCommandFunctionCall {
args: string[];
matchedCommand: string;
fromBot: boolean;
isDev: boolean;
isStaff: boolean;
isAdmin: boolean;
}

Expand All @@ -14,6 +14,6 @@ export interface MessageCommand {
fn(functionCall: MessageCommandFunctionCall): any;
allowBot?: boolean;
ignoreCase?: boolean;
isDevCommand?: boolean;
isStaffCommand?: boolean;
isAdminCommand?: boolean;
}
4 changes: 2 additions & 2 deletions src/interface/MessageContain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ export interface MessageContainFunctionCall {
message: Message;
matchedContain: string;
fromBot: boolean;
isDev: boolean;
isStaff: boolean;
isAdmin: boolean;
}

export interface MessageContain {
contain: string[];
fn(functionCall: MessageContainFunctionCall): any;
allowBot?: boolean;
isDevContain?: boolean;
isStaffContain?: boolean;
isAdminContain?: boolean;
}
2 changes: 1 addition & 1 deletion src/lib/roleId.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import splitEnvStringToArray from "./splitEnvStringToArray";

export default {
devRoleIds: splitEnvStringToArray(process.env.STAFF_ROLE_ID),
staffRoleIds: splitEnvStringToArray(process.env.STAFF_ROLE_ID),
adminRoleIds: splitEnvStringToArray(process.env.ADMIN_ROLE_ID)
};

0 comments on commit 63f7a1b

Please sign in to comment.