Skip to content

Commit

Permalink
🔥 Remove unused configuration entries
Browse files Browse the repository at this point in the history
  • Loading branch information
noftaly committed Sep 15, 2023
1 parent 55fbb5d commit a597f36
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
14 changes: 0 additions & 14 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,10 @@ GUILD_ID=""

# Staff role
STAFF_ROLE=""
# Forum moderator role
FORUM_MODERATOR_ROLE=""
# Everyone role
EVERYONE_ROLE=""
# Active member role
ACTIVE_MEMBER_ROLE=""
# Banned role
BAN_ROLE=""
# Muted role
MUTE_ROLE=""

# +----------------------+
# | Channels IDs |
Expand All @@ -54,16 +48,8 @@ SKRIPT_TALK_CHANNEL=""
IDEA_CHANNEL=""
# Suggestions channel
SUGGESTIONS_CHANNEL=""
# Bot channel
BOT_CHANNEL=""
# Code snippets channel
SNIPPETS_CHANNEL=""
# Skript creations channel
SKRIPT_CREATIONS_CHANNEL=""
# Skript help channels (separated by a coma, without spaces)
SKRIPT_HELP_CHANNELS=""
# Other help channels (separated by a coma, without spaces)
OTHER_HELP_CHANNELS=""
# Moderation log channel
LOG_CHANNEL=""
# Channel that will contain bans' threads
Expand Down
11 changes: 0 additions & 11 deletions config/settings.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import type { HexColorString } from 'discord.js';
import type { SwanCommandOptions } from '#types/index';

const skriptHelp = process.env.SKRIPT_HELP_CHANNELS.split(',');
const otherHelp = process.env.OTHER_HELP_CHANNELS.split(',');

export const bot = {
avatar: 'https://raw.githubusercontent.com/Skript-MC/Swan/01f67192c18107a2f9a47beb4f7a082ac63696be/assets/logo.png',
guild: process.env.GUILD_ID,
Expand Down Expand Up @@ -61,24 +58,16 @@ export const apis = {

export const roles = {
staff: process.env.STAFF_ROLE,
forumModerator: process.env.FORUM_MODERATOR_ROLE,
everyone: process.env.EVERYONE_ROLE,
activeMember: process.env.ACTIVE_MEMBER_ROLE,
ban: process.env.BAN_ROLE,
mute: process.env.MUTE_ROLE,
} as const;

export const channels = {
idea: process.env.IDEA_CHANNEL,
suggestions: process.env.SUGGESTIONS_CHANNEL,
bot: process.env.BOT_CHANNEL,
main: process.env.MAIN_CHANNEL,
snippets: process.env.SNIPPETS_CHANNEL,
skriptHelp,
otherHelp,
help: [...skriptHelp, ...otherHelp],
skriptTalk: process.env.SKRIPT_TALK_CHANNEL,
creations: process.env.SKRIPT_CREATIONS_CHANNEL,
log: process.env.LOG_CHANNEL,
forumUpdates: process.env.FORUM_FEED_CHANNEL,
banChannel: process.env.BAN_CHANNEL,
Expand Down
7 changes: 0 additions & 7 deletions typings/nodejs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,13 @@ declare namespace NodeJS {
GUILD_ID: string;

STAFF_ROLE: string;
FORUM_MODERATOR_ROLE: string;
EVERYONE_ROLE: string;
ACTIVE_MEMBER_ROLE: string;
BAN_ROLE: string;
MUTE_ROLE: string;

SKRIPT_TALK_CHANNEL: string;
IDEA_CHANNEL: string;
SUGGESTIONS_CHANNEL: string;
BOT_CHANNEL: string;
SNIPPETS_CHANNEL: string;
SKRIPT_CREATIONS_CHANNEL: string;
SKRIPT_HELP_CHANNELS: string;
OTHER_HELP_CHANNELS: string;
LOG_CHANNEL: string;
BAN_CHANNEL: string;
MAIN_CHANNEL: string;
Expand Down

0 comments on commit a597f36

Please sign in to comment.