Advertisement
Nimbi

config.ts

May 26th, 2022 (edited)
860
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import * as IMAGE_CONFIG from './config/images';
  2. import * as CHANNEL_CONFIG from './config/channels';
  3. import * as ROLE_CONFIG from './config/roles';
  4. import * as EMBED_CONFIG from './config/embeds';
  5. import * as ZONE_CONFIG from './config/zones';
  6.  
  7. export const CLIENT = {
  8.   SLASHCOMMANDS: discord.interactions.commands,
  9.   COMMANDS: new discord.command.CommandGroup({
  10.     defaultPrefix: '.',
  11.     mentionPrefix: true,
  12.     additionalPrefixes: ['-', '+'],
  13.   }),
  14.   OWNER: ROLE_CONFIG.ROLES.OWNER,
  15.   GUILD: discord.getGuildId(),
  16.   ZONE: {
  17.     BRAZIL: ZONE_CONFIG.ZONES.BZ,
  18.     HONG_KONG: ZONE_CONFIG.ZONES.HK,
  19.     INDIA: ZONE_CONFIG.ZONES.IA,
  20.     JAPAN: ZONE_CONFIG.ZONES.JP,
  21.     ROTTERDAM: ZONE_CONFIG.ZONES.RD,
  22.     RUSSIA: ZONE_CONFIG.ZONES.RU,
  23.     SINGAPORE: ZONE_CONFIG.ZONES.SP,
  24.     SOUTH_AFRICA: ZONE_CONFIG.ZONES.ZA,
  25.     SYDNEY: ZONE_CONFIG.ZONES.AU,
  26.     US_CENTRAL: ZONE_CONFIG.ZONES.US.CE,
  27.     US_EAST: ZONE_CONFIG.ZONES.US.EA,
  28.     US_SOUTH: ZONE_CONFIG.ZONES.US.SO,
  29.     US_WEST: ZONE_CONFIG.ZONES.US.WE,
  30.   },
  31. };
  32.  
  33. export const ME = {
  34.   USER: discord.getBotUser,
  35.   ID: discord.getBotId(),
  36. };
  37.  
  38. export const CHANNELS = {
  39.   ENABLED: true,
  40.   LOGGING_CHANNEL: CHANNEL_CONFIG.CHANNELS.LOGGING_CHANNEL,
  41.   ERROR_CHANNEL: CHANNEL_CONFIG.CHANNELS.ERROR_CHANNEL,
  42.   STAFF_COMMANDS: CHANNEL_CONFIG.CHANNELS.STAFF_COMMANDS,
  43.   USER_COMMANDS: CHANNEL_CONFIG.CHANNELS.USER_COMMANDS,
  44. };
  45.  
  46. export const EMBEDS = {
  47.   ENABLED: true,
  48.   FOOTER_TEXT: EMBED_CONFIG.EMBEDS.FOOTER.TEXT,
  49.   NEWS_HEADER_TEXT: EMBED_CONFIG.EMBEDS.NEWS_HEADER.TEXT,
  50.   ERRORS_HEADER_TEXT: EMBED_CONFIG.EMBEDS.ERRORS_HEADER.TEXT,
  51.   BAN_HEADER_TEXT: EMBED_CONFIG.EMBEDS.BAN_HEADER.TEXT,
  52.   BANLIST_HEADER_TEXT: EMBED_CONFIG.EMBEDS.BANLIST_HEADER.TEXT,
  53.   KICK_HEADER_TEXT: EMBED_CONFIG.EMBEDS.KICK_HEADER.TEXT,
  54.   DEFAULT_COLOR: {
  55.     BLUE: discord.decor.RoleColors.BLUE,
  56.     RED: discord.decor.RoleColors.RED,
  57.     CYAN: discord.decor.RoleColors.CYAN,
  58.     PURPLE: discord.decor.RoleColors.PURPLE,
  59.     GREEN: discord.decor.RoleColors.GREEN,
  60.     ORANGE: discord.decor.RoleColors.ORANGE,
  61.     PINK: discord.decor.RoleColors.PINK,
  62.     DARK_BLUE: discord.decor.RoleColors.DARK_BLUE,
  63.     DARK_RED: discord.decor.RoleColors.DARK_RED,
  64.     DARK_CYAN: discord.decor.RoleColors.DARK_CYAN,
  65.     DARK_PURPLE: discord.decor.RoleColors.DARK_PURPLE,
  66.     DARK_GREEN: discord.decor.RoleColors.DARK_GREEN,
  67.     DARK_ORANGE: discord.decor.RoleColors.DARK_ORANGE,
  68.     DARK_PINK: discord.decor.RoleColors.DARK_PINK,
  69.   },
  70. };
  71.  
  72. export const IMAGES = {
  73.   ENABLED: true,
  74.   PYLON_LOGO: IMAGE_CONFIG.IMAGES.PYLON,
  75.   TWITTER_LOGO: IMAGE_CONFIG.IMAGES.TWITTER,
  76.   LOADING_IMAGE: IMAGE_CONFIG.IMAGES.LOADING,
  77. };
  78.  
  79. export const PERMISSIONS = {
  80.   ENABLED: true,
  81.   FILTER: {
  82.     CREATE_INSTANT_INVITE: discord.Permissions.CREATE_INSTANT_INVITE,
  83.     KICK_MEMBERS: discord.Permissions.KICK_MEMBERS,
  84.     BAN_MEMBERS: discord.Permissions.BAN_MEMBERS,
  85.     ADMINISTRATOR: discord.Permissions.ADMINISTRATOR,
  86.     ADD_REACTIONS: discord.Permissions.ADD_REACTIONS,
  87.     EMBED_LINKS: discord.Permissions.EMBED_LINKS,
  88.     ATTATCH_FILES: discord.Permissions.ATTACH_FILES,
  89.     MENTION_EVERYONE: discord.Permissions.MENTION_EVERYONE,
  90.     VIEW_GUILD_ANALYTICS: discord.Permissions.VIEW_GUILD_ANALYTICS,
  91.     CHANGE_NICKNAME: discord.Permissions.CHANGE_NICKNAME,
  92.     REQUEST_TO_SPEAK: discord.Permissions.REQUEST_TO_SPEAK,
  93.     MANAGE_GUILD: discord.Permissions.MANAGE_GUILD,
  94.     MANAGE_MESSAGES: discord.Permissions.MANAGE_MESSAGES,
  95.     MANAGE_CHANNELS: discord.Permissions.MANAGE_CHANNELS,
  96.     MANAGE_ROLES: discord.Permissions.MANAGE_ROLES,
  97.     MANAGE_WEBHOOKS: discord.Permissions.MANAGE_WEBHOOKS,
  98.     MANAGE_NICKNAMES: discord.Permissions.MANAGE_NICKNAMES,
  99.     MANAGE_EMOJIS: discord.Permissions.MANAGE_EMOJIS,
  100.     SEND_MESSAGES: discord.Permissions.SEND_MESSAGES,
  101.     SEND_TTS_MESSAGES: discord.Permissions.SEND_TTS_MESSAGES,
  102.     READ_MESSAGE_HISTORY: discord.Permissions.READ_MESSAGE_HISTORY,
  103.     STREAM: discord.Permissions.STREAM,
  104.   },
  105.   LEVEL: {
  106.     ADMINISTRATOR: discord.command.filters.and(
  107.       discord.command.filters.isAdministrator(),
  108.       discord.command.filters.canManageMessages(),
  109.       discord.command.filters.canMoveMembers(),
  110.       discord.command.filters.canMuteMembers(),
  111.       discord.command.filters.canBanMembers(),
  112.       discord.command.filters.canKickMembers(),
  113.       discord.command.filters.canDeafenMembers(),
  114.       discord.command.filters.canMentionEveryone(),
  115.       discord.command.filters.canPrioritySpeaker(),
  116.       discord.command.filters.canConnect(),
  117.       discord.command.filters.canSpeak(),
  118.       discord.command.filters.canStream(),
  119.       discord.command.filters.canUseVoiceActivity(),
  120.       discord.command.filters.canReadMessageHistory(),
  121.       discord.command.filters.canEmbedLinks(),
  122.       discord.command.filters.canAddReactions(),
  123.       discord.command.filters.canAttachFiles(),
  124.       discord.command.filters.canUseExternalEmojis(),
  125.       discord.command.filters.canMoveMembers(),
  126.       discord.command.filters.canMuteMembers(),
  127.       discord.command.filters.canManageMessages(),
  128.       discord.command.filters.canViewAuditLog(),
  129.       discord.command.filters.canViewGuildInsights(),
  130.       discord.command.filters.canManageChannelWebhooks(),
  131.       discord.command.filters.canManageGuildWebhooks(),
  132.       discord.command.filters.canManageEmojis(),
  133.       discord.command.filters.canManageGuild()
  134.     ),
  135.     MANAGER: discord.command.filters.and(
  136.       discord.command.filters.canManageMessages(),
  137.       discord.command.filters.canMoveMembers(),
  138.       discord.command.filters.canMuteMembers(),
  139.       discord.command.filters.canDeafenMembers(),
  140.       discord.command.filters.canMentionEveryone(),
  141.       discord.command.filters.canPrioritySpeaker(),
  142.       discord.command.filters.canConnect(),
  143.       discord.command.filters.canSpeak(),
  144.       discord.command.filters.canStream(),
  145.       discord.command.filters.canUseVoiceActivity(),
  146.       discord.command.filters.canReadMessageHistory(),
  147.       discord.command.filters.canEmbedLinks(),
  148.       discord.command.filters.canAddReactions(),
  149.       discord.command.filters.canAttachFiles(),
  150.       discord.command.filters.canUseExternalEmojis(),
  151.       discord.command.filters.canMoveMembers(),
  152.       discord.command.filters.canMuteMembers(),
  153.       discord.command.filters.canManageMessages(),
  154.       discord.command.filters.canViewAuditLog(),
  155.       discord.command.filters.canViewGuildInsights(),
  156.       discord.command.filters.canManageChannelWebhooks(),
  157.       discord.command.filters.canManageGuildWebhooks(),
  158.       discord.command.filters.canManageEmojis(),
  159.       discord.command.filters.canManageGuild()
  160.     ),
  161.     MODERATOR: discord.command.filters.and(
  162.       discord.command.filters.canConnect(),
  163.       discord.command.filters.canSpeak(),
  164.       discord.command.filters.canStream(),
  165.       discord.command.filters.canUseVoiceActivity(),
  166.       discord.command.filters.canReadMessageHistory(),
  167.       discord.command.filters.canEmbedLinks(),
  168.       discord.command.filters.canAddReactions(),
  169.       discord.command.filters.canAttachFiles(),
  170.       discord.command.filters.canUseExternalEmojis(),
  171.       discord.command.filters.canManageMessages(),
  172.       discord.command.filters.canMoveMembers(),
  173.       discord.command.filters.canMuteMembers(),
  174.       discord.command.filters.canMentionEveryone()
  175.     ),
  176.     HELPER: discord.command.filters.and(
  177.       discord.command.filters.canConnect(),
  178.       discord.command.filters.canSpeak(),
  179.       discord.command.filters.canStream(),
  180.       discord.command.filters.canUseVoiceActivity(),
  181.       discord.command.filters.canReadMessageHistory(),
  182.       discord.command.filters.canEmbedLinks(),
  183.       discord.command.filters.canAddReactions(),
  184.       discord.command.filters.canAttachFiles(),
  185.       discord.command.filters.canUseExternalEmojis(),
  186.       discord.command.filters.canMoveMembers(),
  187.       discord.command.filters.canMuteMembers(),
  188.       discord.command.filters.canDeafenMembers(),
  189.       discord.command.filters.canManageMessages()
  190.     ),
  191.     USER: discord.command.filters.and(
  192.       discord.command.filters.canConnect(),
  193.       discord.command.filters.canSpeak(),
  194.       discord.command.filters.canStream(),
  195.       discord.command.filters.canUseVoiceActivity(),
  196.       discord.command.filters.canReadMessageHistory(),
  197.       discord.command.filters.canEmbedLinks(),
  198.       discord.command.filters.canAddReactions(),
  199.       discord.command.filters.canAttachFiles(),
  200.       discord.command.filters.canUseExternalEmojis()
  201.     ),
  202.     BOT: discord.command.filters.and(
  203.       discord.command.filters.isAdministrator(),
  204.       discord.command.filters.canManageMessages(),
  205.       discord.command.filters.canMoveMembers(),
  206.       discord.command.filters.canMuteMembers(),
  207.       discord.command.filters.canBanMembers(),
  208.       discord.command.filters.canKickMembers(),
  209.       discord.command.filters.canDeafenMembers(),
  210.       discord.command.filters.canMentionEveryone(),
  211.       discord.command.filters.canPrioritySpeaker(),
  212.       discord.command.filters.canConnect(),
  213.       discord.command.filters.canSpeak(),
  214.       discord.command.filters.canStream(),
  215.       discord.command.filters.canUseVoiceActivity(),
  216.       discord.command.filters.canReadMessageHistory(),
  217.       discord.command.filters.canEmbedLinks(),
  218.       discord.command.filters.canAddReactions(),
  219.       discord.command.filters.canAttachFiles(),
  220.       discord.command.filters.canUseExternalEmojis(),
  221.       discord.command.filters.canMoveMembers(),
  222.       discord.command.filters.canMuteMembers(),
  223.       discord.command.filters.canManageMessages(),
  224.       discord.command.filters.canViewAuditLog(),
  225.       discord.command.filters.canViewGuildInsights(),
  226.       discord.command.filters.canManageChannelWebhooks(),
  227.       discord.command.filters.canManageGuildWebhooks(),
  228.       discord.command.filters.canManageEmojis(),
  229.       discord.command.filters.canManageGuild()
  230.     ),
  231.   },
  232.   ROLE: {
  233.     ADMINISTRATOR: ROLE_CONFIG.ROLES.ADMINISTRATOR,
  234.     MANAGER: ROLE_CONFIG.ROLES.MANAGER,
  235.     MODERATOR: ROLE_CONFIG.ROLES.MODERATOR,
  236.     HELPER: ROLE_CONFIG.ROLES.HELPER,
  237.     MEMBER: ROLE_CONFIG.ROLES.MEMBER,
  238.     HUMAN: ROLE_CONFIG.ROLES.HUMAN,
  239.     BOT: ROLE_CONFIG.ROLES.BOT,
  240.   },
  241. };
  242.  
Advertisement
RAW Paste Data Copied
Advertisement