Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as IMAGE_CONFIG from './config/images';
- import * as CHANNEL_CONFIG from './config/channels';
- import * as ROLE_CONFIG from './config/roles';
- import * as EMBED_CONFIG from './config/embeds';
- import * as ZONE_CONFIG from './config/zones';
- export const CLIENT = {
- SLASHCOMMANDS: discord.interactions.commands,
- COMMANDS: new discord.command.CommandGroup({
- defaultPrefix: '.',
- mentionPrefix: true,
- additionalPrefixes: ['-', '+'],
- }),
- OWNER: ROLE_CONFIG.ROLES.OWNER,
- GUILD: discord.getGuildId(),
- ZONE: {
- BRAZIL: ZONE_CONFIG.ZONES.BZ,
- HONG_KONG: ZONE_CONFIG.ZONES.HK,
- INDIA: ZONE_CONFIG.ZONES.IA,
- JAPAN: ZONE_CONFIG.ZONES.JP,
- ROTTERDAM: ZONE_CONFIG.ZONES.RD,
- RUSSIA: ZONE_CONFIG.ZONES.RU,
- SINGAPORE: ZONE_CONFIG.ZONES.SP,
- SOUTH_AFRICA: ZONE_CONFIG.ZONES.ZA,
- SYDNEY: ZONE_CONFIG.ZONES.AU,
- US_CENTRAL: ZONE_CONFIG.ZONES.US.CE,
- US_EAST: ZONE_CONFIG.ZONES.US.EA,
- US_SOUTH: ZONE_CONFIG.ZONES.US.SO,
- US_WEST: ZONE_CONFIG.ZONES.US.WE,
- },
- };
- export const ME = {
- USER: discord.getBotUser,
- ID: discord.getBotId(),
- };
- export const CHANNELS = {
- ENABLED: true,
- LOGGING_CHANNEL: CHANNEL_CONFIG.CHANNELS.LOGGING_CHANNEL,
- ERROR_CHANNEL: CHANNEL_CONFIG.CHANNELS.ERROR_CHANNEL,
- STAFF_COMMANDS: CHANNEL_CONFIG.CHANNELS.STAFF_COMMANDS,
- USER_COMMANDS: CHANNEL_CONFIG.CHANNELS.USER_COMMANDS,
- };
- export const EMBEDS = {
- ENABLED: true,
- FOOTER_TEXT: EMBED_CONFIG.EMBEDS.FOOTER.TEXT,
- NEWS_HEADER_TEXT: EMBED_CONFIG.EMBEDS.NEWS_HEADER.TEXT,
- ERRORS_HEADER_TEXT: EMBED_CONFIG.EMBEDS.ERRORS_HEADER.TEXT,
- BAN_HEADER_TEXT: EMBED_CONFIG.EMBEDS.BAN_HEADER.TEXT,
- BANLIST_HEADER_TEXT: EMBED_CONFIG.EMBEDS.BANLIST_HEADER.TEXT,
- KICK_HEADER_TEXT: EMBED_CONFIG.EMBEDS.KICK_HEADER.TEXT,
- DEFAULT_COLOR: {
- BLUE: discord.decor.RoleColors.BLUE,
- RED: discord.decor.RoleColors.RED,
- CYAN: discord.decor.RoleColors.CYAN,
- PURPLE: discord.decor.RoleColors.PURPLE,
- GREEN: discord.decor.RoleColors.GREEN,
- ORANGE: discord.decor.RoleColors.ORANGE,
- PINK: discord.decor.RoleColors.PINK,
- DARK_BLUE: discord.decor.RoleColors.DARK_BLUE,
- DARK_RED: discord.decor.RoleColors.DARK_RED,
- DARK_CYAN: discord.decor.RoleColors.DARK_CYAN,
- DARK_PURPLE: discord.decor.RoleColors.DARK_PURPLE,
- DARK_GREEN: discord.decor.RoleColors.DARK_GREEN,
- DARK_ORANGE: discord.decor.RoleColors.DARK_ORANGE,
- DARK_PINK: discord.decor.RoleColors.DARK_PINK,
- },
- };
- export const IMAGES = {
- ENABLED: true,
- PYLON_LOGO: IMAGE_CONFIG.IMAGES.PYLON,
- TWITTER_LOGO: IMAGE_CONFIG.IMAGES.TWITTER,
- LOADING_IMAGE: IMAGE_CONFIG.IMAGES.LOADING,
- };
- export const PERMISSIONS = {
- ENABLED: true,
- FILTER: {
- CREATE_INSTANT_INVITE: discord.Permissions.CREATE_INSTANT_INVITE,
- KICK_MEMBERS: discord.Permissions.KICK_MEMBERS,
- BAN_MEMBERS: discord.Permissions.BAN_MEMBERS,
- ADMINISTRATOR: discord.Permissions.ADMINISTRATOR,
- ADD_REACTIONS: discord.Permissions.ADD_REACTIONS,
- EMBED_LINKS: discord.Permissions.EMBED_LINKS,
- ATTATCH_FILES: discord.Permissions.ATTACH_FILES,
- MENTION_EVERYONE: discord.Permissions.MENTION_EVERYONE,
- VIEW_GUILD_ANALYTICS: discord.Permissions.VIEW_GUILD_ANALYTICS,
- CHANGE_NICKNAME: discord.Permissions.CHANGE_NICKNAME,
- REQUEST_TO_SPEAK: discord.Permissions.REQUEST_TO_SPEAK,
- MANAGE_GUILD: discord.Permissions.MANAGE_GUILD,
- MANAGE_MESSAGES: discord.Permissions.MANAGE_MESSAGES,
- MANAGE_CHANNELS: discord.Permissions.MANAGE_CHANNELS,
- MANAGE_ROLES: discord.Permissions.MANAGE_ROLES,
- MANAGE_WEBHOOKS: discord.Permissions.MANAGE_WEBHOOKS,
- MANAGE_NICKNAMES: discord.Permissions.MANAGE_NICKNAMES,
- MANAGE_EMOJIS: discord.Permissions.MANAGE_EMOJIS,
- SEND_MESSAGES: discord.Permissions.SEND_MESSAGES,
- SEND_TTS_MESSAGES: discord.Permissions.SEND_TTS_MESSAGES,
- READ_MESSAGE_HISTORY: discord.Permissions.READ_MESSAGE_HISTORY,
- STREAM: discord.Permissions.STREAM,
- },
- LEVEL: {
- ADMINISTRATOR: discord.command.filters.and(
- discord.command.filters.isAdministrator(),
- discord.command.filters.canManageMessages(),
- discord.command.filters.canMoveMembers(),
- discord.command.filters.canMuteMembers(),
- discord.command.filters.canBanMembers(),
- discord.command.filters.canKickMembers(),
- discord.command.filters.canDeafenMembers(),
- discord.command.filters.canMentionEveryone(),
- discord.command.filters.canPrioritySpeaker(),
- discord.command.filters.canConnect(),
- discord.command.filters.canSpeak(),
- discord.command.filters.canStream(),
- discord.command.filters.canUseVoiceActivity(),
- discord.command.filters.canReadMessageHistory(),
- discord.command.filters.canEmbedLinks(),
- discord.command.filters.canAddReactions(),
- discord.command.filters.canAttachFiles(),
- discord.command.filters.canUseExternalEmojis(),
- discord.command.filters.canMoveMembers(),
- discord.command.filters.canMuteMembers(),
- discord.command.filters.canManageMessages(),
- discord.command.filters.canViewAuditLog(),
- discord.command.filters.canViewGuildInsights(),
- discord.command.filters.canManageChannelWebhooks(),
- discord.command.filters.canManageGuildWebhooks(),
- discord.command.filters.canManageEmojis(),
- discord.command.filters.canManageGuild()
- ),
- MANAGER: discord.command.filters.and(
- discord.command.filters.canManageMessages(),
- discord.command.filters.canMoveMembers(),
- discord.command.filters.canMuteMembers(),
- discord.command.filters.canDeafenMembers(),
- discord.command.filters.canMentionEveryone(),
- discord.command.filters.canPrioritySpeaker(),
- discord.command.filters.canConnect(),
- discord.command.filters.canSpeak(),
- discord.command.filters.canStream(),
- discord.command.filters.canUseVoiceActivity(),
- discord.command.filters.canReadMessageHistory(),
- discord.command.filters.canEmbedLinks(),
- discord.command.filters.canAddReactions(),
- discord.command.filters.canAttachFiles(),
- discord.command.filters.canUseExternalEmojis(),
- discord.command.filters.canMoveMembers(),
- discord.command.filters.canMuteMembers(),
- discord.command.filters.canManageMessages(),
- discord.command.filters.canViewAuditLog(),
- discord.command.filters.canViewGuildInsights(),
- discord.command.filters.canManageChannelWebhooks(),
- discord.command.filters.canManageGuildWebhooks(),
- discord.command.filters.canManageEmojis(),
- discord.command.filters.canManageGuild()
- ),
- MODERATOR: discord.command.filters.and(
- discord.command.filters.canConnect(),
- discord.command.filters.canSpeak(),
- discord.command.filters.canStream(),
- discord.command.filters.canUseVoiceActivity(),
- discord.command.filters.canReadMessageHistory(),
- discord.command.filters.canEmbedLinks(),
- discord.command.filters.canAddReactions(),
- discord.command.filters.canAttachFiles(),
- discord.command.filters.canUseExternalEmojis(),
- discord.command.filters.canManageMessages(),
- discord.command.filters.canMoveMembers(),
- discord.command.filters.canMuteMembers(),
- discord.command.filters.canMentionEveryone()
- ),
- HELPER: discord.command.filters.and(
- discord.command.filters.canConnect(),
- discord.command.filters.canSpeak(),
- discord.command.filters.canStream(),
- discord.command.filters.canUseVoiceActivity(),
- discord.command.filters.canReadMessageHistory(),
- discord.command.filters.canEmbedLinks(),
- discord.command.filters.canAddReactions(),
- discord.command.filters.canAttachFiles(),
- discord.command.filters.canUseExternalEmojis(),
- discord.command.filters.canMoveMembers(),
- discord.command.filters.canMuteMembers(),
- discord.command.filters.canDeafenMembers(),
- discord.command.filters.canManageMessages()
- ),
- USER: discord.command.filters.and(
- discord.command.filters.canConnect(),
- discord.command.filters.canSpeak(),
- discord.command.filters.canStream(),
- discord.command.filters.canUseVoiceActivity(),
- discord.command.filters.canReadMessageHistory(),
- discord.command.filters.canEmbedLinks(),
- discord.command.filters.canAddReactions(),
- discord.command.filters.canAttachFiles(),
- discord.command.filters.canUseExternalEmojis()
- ),
- BOT: discord.command.filters.and(
- discord.command.filters.isAdministrator(),
- discord.command.filters.canManageMessages(),
- discord.command.filters.canMoveMembers(),
- discord.command.filters.canMuteMembers(),
- discord.command.filters.canBanMembers(),
- discord.command.filters.canKickMembers(),
- discord.command.filters.canDeafenMembers(),
- discord.command.filters.canMentionEveryone(),
- discord.command.filters.canPrioritySpeaker(),
- discord.command.filters.canConnect(),
- discord.command.filters.canSpeak(),
- discord.command.filters.canStream(),
- discord.command.filters.canUseVoiceActivity(),
- discord.command.filters.canReadMessageHistory(),
- discord.command.filters.canEmbedLinks(),
- discord.command.filters.canAddReactions(),
- discord.command.filters.canAttachFiles(),
- discord.command.filters.canUseExternalEmojis(),
- discord.command.filters.canMoveMembers(),
- discord.command.filters.canMuteMembers(),
- discord.command.filters.canManageMessages(),
- discord.command.filters.canViewAuditLog(),
- discord.command.filters.canViewGuildInsights(),
- discord.command.filters.canManageChannelWebhooks(),
- discord.command.filters.canManageGuildWebhooks(),
- discord.command.filters.canManageEmojis(),
- discord.command.filters.canManageGuild()
- ),
- },
- ROLE: {
- ADMINISTRATOR: ROLE_CONFIG.ROLES.ADMINISTRATOR,
- MANAGER: ROLE_CONFIG.ROLES.MANAGER,
- MODERATOR: ROLE_CONFIG.ROLES.MODERATOR,
- HELPER: ROLE_CONFIG.ROLES.HELPER,
- MEMBER: ROLE_CONFIG.ROLES.MEMBER,
- HUMAN: ROLE_CONFIG.ROLES.HUMAN,
- BOT: ROLE_CONFIG.ROLES.BOT,
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement