diff --git a/assets/commands.json b/assets/commands.json index 85eacf0bb..b82ba67d8 100644 --- a/assets/commands.json +++ b/assets/commands.json @@ -1 +1 @@ -{"bot_owner":[{"name":"announce","description":"It allows you to send announcements to the announcement channels in the servers where it has been set.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["announce --message MESSAGE","announce --title TITLE --message MESSAGE"]},{"name":"blacklist","description":"It allows you to blacklist users and servers that. Blacklisted servers and users don't have access to Bastion's commands.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["blacklist --users USER_ID","blacklist --servers SERVER_ID","blacklist --users USER_ID --remove","blacklist --servers SERVER_ID --remove"]},{"name":"commandModule","description":"It allows you to temporarily enable or disable a command module until the next restart. It also allows you to check whether the command is currently enabled.","triggers":["command"],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["commandModule COMMAND","commandModule COMMAND --disable","commandModule COMMAND --enable"]},{"name":"eval","description":"It allows you to execute JavaScript code inside Bastion's context.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":true,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["eval --code JAVASCRIPT_CODE","eval --code JAVASCRIPT_CODE --broadcast","eval --code JAVASCRIPT_CODE --delete","eval --code JAVASCRIPT_CODE --quiet"]},{"name":"exec","description":"It allows you to execute commands in the termial where Bastion is running.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":true,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["exec --command COMMAND","exec --command COMMAND --delete","exec --command COMMAND --quiet"]},{"name":"relayDirectMessages","description":"It allows you to toggle Bastion's Direct Message Relay. If enabled, Bastion will relay all direct messages to the bot owners.","triggers":["relayDMs"],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"reloadSettings","description":"It allows you to reload Bastion's settings without needing to restart Bastion.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"setAvatar","description":"It allows you to update Bastion's avatar directly from Discord.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["setAvatar --image LINK"]},{"name":"setNick","description":"It allows you to update Bastion's nickname in the server.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["setNick","setNick NICKNAME"]},{"name":"setPresence","description":"It allows you to update Bastion's presence in the shard.","triggers":["setActivity"],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["setPresence --status STATUS","setPresence --game GAME --type TYPE --url TWITCH_URL"]},{"name":"setUsername","description":"It allows you to update Bastion's username directly from Discord.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["setUsername USERNAME"]},{"name":"shutdown","description":"It allows you to shutdown Bastion directly from Discord.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["shutdown","shutdown --now"]}],"comics":[{"name":"garfield","description":"It allows you to see the latest Garfield comic strip.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"xkcd","description":"It allows you to see the latest xkcd comic strip.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]}],"configuration":[{"name":"announcements","description":"It allows you to enable (and disable) Bastion's Announcements in the server. It sets the channel as the Announcement Channel that will receive the announcement broadcasts sent by the bot owners using the `announce` command.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["announcements","announcements --disable"]},{"name":"autoRoles","description":"It allows you to set up Auto Roles in the server. Auto Roles are the roles which are assigned to users automatically when they join the server. You can optionally set up Auto Roles for either bots or humans.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["autoRoles","autoRoles --add ROLE","autoRoles --add ROLE --bot","autoRoles --add ROLE --user","autoRoles --remove ROLE"]},{"name":"farewells","description":"It allows you to enable (and disable) farewells in the server. It also allows you to set farewell message and timeout.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["farewells --enable","farewells --disable","farewells --timeout TIMEOUT_IN_MINUTES","farewells -- MESSAGE"]},{"name":"gambling","description":"It allows you to enable (or disable) gambling in the server. When enabled, members can use their Bastion Coins to gamble in games.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["gambling","gambling --multiplier 1..13"]},{"name":"gamification","description":"It allows you to enable (or disable) gamification in the server. When enabled, users gain experience and level up in the server by participating in the server, competing against each other to climb the leaderboard. It also allows you to toggle level up messages and set the level up multiplier.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["gamification","gamification --messages","gamification --multiplier NUMBER"]},{"name":"greetings","description":"It allows you to enable (and disable) greetings in the server. It also allows you to set greeting message and timeout.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["greetings --enable","greetings --disable","greetings --timeout TIMEOUT_IN_MINUTES","greetings -- MESSAGE"]},{"name":"inviteFilter","description":"It allows you to enable (and disable) Invite Filter in the server. And it also allows you to configure if violation of this filter should be considered an infraction.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["inviteFilter","inviteFilter --enable","inviteFilter --disable","inviteFilter --infraction","inviteFilter --no-infraction"]},{"name":"languages","description":"It allows you to see the languages available in Bastion and set one of them as the default language for your server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["languages","languages --set LANGUAGE"]},{"name":"linkFilter","description":"It allows you to enable (and disable) Link Filter in the server. And it also allows you to configure if violation of this filter should be considered an infraction.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["linkFilter","linkFilter --enable","linkFilter --disable","linkFilter --infraction","linkFilter --no-infraction"]},{"name":"membersOnly","description":"It allows you to enable (and disable) Members Only mode in the server. If enabled, only the members who have at least one role in the server can use Bastion.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":[]},{"name":"mentionSpam","description":"It allows you to set (and unset) the threshold for mention spam in the server. If set, Bastion will warn the users who violate this and add it to their infractions.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["mentionSpam","mentionSpam --threshold NUMBER"]},{"name":"messageFilter","description":"It allows you to enable (and disable) Message Filter in the server. When enabled, it filters the messages that matches the patterns specified by you. And it also allows you to configure if violation of this filter should be considered an infraction.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["messageFilter","messageFilter PATTERN","messageFilter --clear","messageFilter --enable","messageFilter --disable","messageFilter --infraction","messageFilter --no-infraction"]},{"name":"moderationLogs","description":"It allows you to enable (and disable) logging of the moderation events in the server. It sets the channel as the Moderation Log Channel that will log the moderation events in the server.","triggers":["modLogs"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["moderationLogs","moderationLogs --disable"]},{"name":"prefix","description":"It allows you set custom prefixes for Bastion in your server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["prefix","prefix -- PREFIX"]},{"name":"reactionAnnouncements","description":"It allows you to enable (and disable) Reaction Announcements in the server. If enabled, and an Announcement Channel is set, when someone with proper permission adds a Megaphone or Loudspeaker reaction to a message, the message gets announced in the Announcement Channel.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":[]},{"name":"reactionPinning","description":"It allows you to enable (and disable) Reaction Pinning in the server. If enabled, when someone with proper permission adds a Pin reaction to a message, the message gets pinned in the channel.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":[]},{"name":"reports","description":"It allows you to enable (and disable) user reports in the server. It sets the channel as the Report Channel that will receive the user reports, reported by the server members using the `report` command.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["reports","reports --disable"]},{"name":"selfRoles","description":"It allows you to set up Self Roles in the server. Self Roles are the roles which server members can assign (and unassign) to themselves.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["selfRoles","selfRoles --add ROLE","selfRoles --remove ROLE"]},{"name":"serverLogs","description":"It allows you to enable (and disable) logging of the server events. It sets the channel as the Server Log Channel that will log the server events.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["serverLogs","serverLogs --disable"]},{"name":"starboard","description":"It allows you to enable (and disable) Starboard in the server. It sets the channel as the Starboard Channel that will log the starred messages of the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["starboard","starboard --disable"]},{"name":"streamerRole","description":"It allows to set the Streamer Role for the server. When a member goes live in the server, they're assigned to this role, provided they have at least one role in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["streamerRole ROLE","streamerRole --remove"]},{"name":"streamers","description":"It allows you to follow streamers, from various platforms, in the server. When the streamers go live, or post a video, Bastion will notify about it in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["streamers","streamers --twitch USERNAME","streamers --twitch USERNAME --remove"]},{"name":"suggestions","description":"It allows you to enable (and disable) suggestions in the server. It sets the channel as the Suggestion Channel that will receive the suggestions, suggested by the server members using the `suggest` command.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["suggestions","suggestions --disable"]},{"name":"triggers","description":"It allows you to add (and remove) Triggers in the server. When a trigger is set, and Bastion sees a message from a human containing the pattern specified in the trigger, it'll respond with either the specified response message or reaction, or both.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["triggers","triggers --pattern PATTERN -- RESPONSE","triggers --pattern PATTERN --reaction EMOJI","triggers --delete PATTERN","triggers --clear"]},{"name":"voiceSessions","description":"It allows you manage Voice Sessions (or Temporary Voice Channels, if you prefer), in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["voiceSessions --create"]},{"name":"votingChannels","description":"It allows you to set (and unset) channels as Voting Channels. If a channel is set as a Voting Channel, anything sent in the channel will be set up for everyone to vote.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["votingChannels","votingChannels --add","votingChannels --remove"]}],"games":[{"name":"acrophobia","description":"It allows you to play the Acrophobia game with your fellow server members. Bastion generates a random acronym and players compete by racing to create the most coherent or humorous sentence that fits the acronym - a backronym. After the submissions are over, in the specified amount of time, everyone then votes anonymously for their favorite answer. The most popular backronym wins.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"flip","description":"It allows you to flip any number of coins and see the result. It also supports gambling.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["flip","flip --coins NUMBER","flip --bet OUTCOME"]},{"name":"gameServer","description":"It allows you to fetch information from nearly any game server that makes its status publicly available.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["gameServer GAME --host HOSTNAME --port PORT"]},{"name":"magic8ball","description":"It allows you to get answers to your polar questions from the Magic 8 Ball.","triggers":["8ball"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["magic8ball QUESTION"]},{"name":"roll","description":"It allows you to roll dice and see the result. It supports dice notation. It also supports gambling.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["roll","roll NOTATION","roll --bet RESULT"]},{"name":"rps","description":"It allows you to play Rock Paper Scissor with Bastion. It also supports gambling.","triggers":["rockPaperScissor"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["rps CHOICE","rps CHOICE --bet"]},{"name":"russianRoulette","description":"It allows you to play Russian Roulette. Let's see if you can last all the 7 rounds.","triggers":["rockPaperScissor"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["rps","rps --rounds ROUNDS"]}],"help":[{"name":"changelog","description":"It allows you to see the changes that have been introduced in the current version of Bastion.","triggers":["changes"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"commands","description":"It allows you the see the list of commands available in Bastion. You can also use it to search for commands matching a given query.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["commands","commands CATEGORY","commands --search QUERY"]},{"name":"donate","description":"It allows you to see the ways you can contribute to Bastion and it's development.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"help","description":"It allows you to see the help message of Bastion that shows you basic information you need to start using Bastion.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]}],"info":[{"name":"avatar","description":"It allows you see the avatar of a user.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["avatar","avatar USER"]},{"name":"channel","description":"It allows you see the information of a channel.","triggers":["channelInfo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["channel","channel CHANNEL"]},{"name":"emoji","description":"It allows you see the information of an emoji.","triggers":["emojiInfo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["emoji EMOJI"]},{"name":"patrons","description":"It allows you to see our Patrons, the amazing people who support the development of The Bastion Bot Project.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"role","description":"It allows you see the information of a role. It also allows you to see the members in a role.","triggers":["roleInfo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["role ROLE","role ROLE --members PAGE"]},{"name":"server","description":"It allows you see the information of the server.","triggers":["serverInfo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"status","description":"It allows you to see Bastion's status, at a glance. It also allows you to see status of the current shard.","triggers":["stats","info"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["status","status --shard"]},{"name":"user","description":"It allows you see the information of a user.","triggers":["member","userInfo","memberInfo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["user","user USER"]}],"management":[{"name":"channels","description":"It allows you create, delete and update channels in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_CHANNELS"],"syntax":["channels --create NAME -- REASON","channels --create NAME --type TYPE -- REASON","channels --create NAME --category ID -- REASON","channels --create NAME --topic TOPIC -- REASON","channels --create NAME --limit 1-99 -- REASON","channels --create NAME --slowmode -- REASON","channels --create NAME --nsfw -- REASON","channels --delete -- REASON","channels --rename NAME -- REASON"]},{"name":"edit","description":"It allows you to edit any message sent by Bastion in the current channel.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["ADMINISTRATOR"],"syntax":["edit --message MESSAGE_ID -- NEW MESSAGE"]},{"name":"giveaway","description":"It allows you to run giveaway events in the server for at least an hour and at most a month. You can set any number of winners for the event. And it also allows you to reroll the winners, if need be, after the end of the event.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_CHANNELS"],"syntax":["giveaway -- ITEM","giveaway --winners NUMBER -- ITEM","giveaway --timeout HOURS -- ITEM"]},{"name":"grant","description":"It allows you to grant experience or coins to the members of the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["grant --xp NUMBER","grant --coins NUMBER","grant --user USER --xp NUMBER","grant --user USER --coins NUMBER"]},{"name":"iam","description":"It allows you add (and remove) yourself to (and from) the Self Roles set in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["iam ROLE","iam --not ROLE"]},{"name":"leave","description":"It allows you to ask Bastion to leave the server and clear all data it has on server and its members.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":[]},{"name":"levelUpRoles","description":"It allows you to add roles to a level. When members reach that level, they'll be awarded those roles.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["levelUpRoles","levelUpRoles --level NUMBER","levelUpRoles --level NUMBER --role ROLE","levelUpRoles --level NUMBER --remove"]},{"name":"lockSession","description":"It allows you lock the Voice Session channel that you're currently in so that anyone else can't join unless they're invited.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["lockSession"]},{"name":"lockdown","description":"It allows you lockdown a channel in the server from users who don't have permission to manage messages or the channel.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["lockdown","lockdown --remove"]},{"name":"prune","description":"It allows you to prune members without any roles, from the server, based on how long they have been inactive.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["prune -- REASON","prune --days NUMBER -- REASON"]},{"name":"reactionRoles","description":"It allows you to create (and delete) Reaction Role Groups. A Reaction Role Group is a group of reactions emojis that can be used by a member on the Reaction Role Message to add (or remove) roles to themselves. Reaction Roles in a single group can also be set as mutually exclusive. It also allows you to assign emojis to roles, that can be used in reacting to the Reaction Role Message.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["reactionRoles","reactionRoles --role ROLE --emoji EMOJI","reactionRoles --role ROLE --no-emoji","reactionRoles --message ID --role ROLES...","reactionRoles --message ID --role ROLES... --exclusive","reactionRoles --message ID --delete"]},{"name":"roleStore","description":"It allows you to set up a Role Store in the server. Server managers can sell roles in the server and members can buy them with Bastion Coins.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["roleStore","roleStore ROLE --sell AMOUNT","roleStore ROLE --buy","roleStore ROLE --unlist"]},{"name":"roles","description":"It allows you create, delete and update roles in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["roles --create NAME -- REASON","roles --create NAME --color COLOR -- REASON","roles --create NAME --hoist -- REASON","roles --create NAME --mentionable -- REASON","roles --rename ROLE --name NAME -- REASON","roles --delete ROLE -- REASON"]},{"name":"suggest","description":"It allows you send a suggestion to the suggestion staff, provided a Suggestion Channel has been set in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["suggest SUGGESTION"]}],"moderation":[{"name":"ban","description":"It allows you to ban (or soft ban) users from the server, and optionally clear their messages from the specified number of days. It also allows you to list all the users banned in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["BAN_MEMBERS"],"syntax":["ban --list","ban --list --page 3","ban --user USER_ID -- REASON","ban --user USER_ID --soft -- REASON","ban --user USER_ID --days NUMBER -- REASON"]},{"name":"case","description":"It allows you to see the moderation case log for the specified case number.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["case --number NUMBER"]},{"name":"clear","description":"It allows you to clear a specified number of messages in a channel. You can optionally filter the messages that should be cleard based on the message author, or since when it was sent, or whether it is pinned or system message or a bot sent it.","triggers":["clean","purge"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_MESSAGES"],"syntax":["clear -- REASON","clear --limit 42 -- REASON","clear --user USER_ID -- REASON","clear --bots -- REASON","clear --pinned -- REASON","clear --system -- REASON","clear --time 1586478504946 -- REASON"]},{"name":"deaf","description":"It allows you to deafen (and undeafen) users in the server. Deafened users can't listen anything in the server's voice channels.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["DEAFEN_MEMBERS"],"syntax":["deaf --user USER_ID -- REASON","deaf --unset --user USER_ID -- REASON"]},{"name":"infractions","description":"It allows you to list all your infractions. If you're a server manager, it also allows you to set the thresholds for the actions that should be taken for violating infractions.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["infractions","infractions --kick 5","infractions --ban 10"]},{"name":"kick","description":"It allows you to kick users from the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["KICK_MEMBERS"],"syntax":["kick --user USER_ID -- REASON"]},{"name":"nickname","description":"It allows you to set (and unset) nicknames of the server members.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["KICK_MEMBERS"],"syntax":["nickname --user USER_ID --nick NICKNAME -- REASON","nickname --user USER_ID -- REASON"]},{"name":"reason","description":"It allows you to update the reason of a moderation case. Forgot to set a reason? Did a typo? Here's your second chance.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["reason --case NUMBER -- REASON"]},{"name":"report","description":"It allows you to report a server member to the moderators of the server, provided a Report Channel is set.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["report --user USER_ID -- REASON"]},{"name":"textMute","description":"It allows you to text mute (and unmute) users in a channel (or category). Text muted users can't send messages in the channels they are muted.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MUTE_MEMBERS"],"syntax":["textMute --user USER_ID -- REASON","textMute --user USER_ID --channel -- REASON","textMute --unset --user USER_ID -- REASON","textMute --unset --user USER_ID --channel -- REASON"]},{"name":"unban","description":"It allows you to unban the users who're banned in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["BAN_MEMBERS"],"syntax":["unban --user USER_ID -- REASON"]},{"name":"updateRoles","description":"It allows you to update roles of server members.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["updateRoles --user USER_ID --add ROLE_ID","updateRoles --user USER_ID --remove ROLE_ID","updateRoles --user USER_ID --remove-all"]},{"name":"voiceMute","description":"It allows you to voice mute (and unmute) users in a channel. Voice muted users can't speak in the voice channels they are muted.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MUTE_MEMBERS"],"syntax":["voiceMute --user USER_ID -- REASON","voiceMute --unset --user USER_ID -- REASON"]},{"name":"warn","description":"It allows you to warn server members, as well as clear their infractions. It also allows you to list all the infractions.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["KICK_MEMBERS"],"syntax":["warn --list","warn --user USER_ID -- REASON","warn --user USER_ID --clear -- REASON"]}],"music":[{"name":"music","description":"It toggles Bastion's music support in the specified server. Once enabled, you can use all music commands in the server.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["music","music --server SERVER_ID"]},{"name":"musicChannel","description":"It allows you to set (and unset) Bastion's Music Channels.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["musicChannel --voice-channel VOICE_CHANNEL_ID","musicChannel"]},{"name":"musicMaster","description":"It allows you to set (and unset) Bastion's Music Master role.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["musicMaster --role ROLE_ID","musicMaster"]},{"name":"nowPlaying","description":"It shows you the music track that is currently being played in the server.","triggers":["np"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"pause","description":"It allows you to pause the music track that is currently being played in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"play","description":"It allows you to play a music in the server, from the given queury or from any supported source.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["play Remember The Name by Ed Sheeran","play --link https://www.youtube.com/watch?v=dQw4w9WgXcQ"]},{"name":"queue","description":"It allows you to see the current music queue of the server. It also allows you to clear, or shuffle the music queue as well as remove a song from the queue, or set (and unset) the queue in loop.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["queue","queue --loop","queue --shuffle","queue --clear","queue --remove 13"]},{"name":"resume","description":"It allows you to resume the music track that was paused in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"skip","description":"It allows you to skip the music track that is currently being played in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"stop","description":"It allows you to stop the current music playback in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"volume","description":"It allows you to set the volume of the music track that is currently being played in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["volume 42"]}],"player_stats":[{"name":"apexLegends","description":"It allows you to see the stats of any Apex Legends player in any supported platform.","triggers":["apex"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["apexLegends USERNAME","apexLegends USERNAME --platform PLATFORM"]},{"name":"counterStrikeGlobalOffensive","description":"It allows you to see the stats of any Counter-Strike: Global Offensive player in any supported platform.","triggers":["csgo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["counterStrikeGlobalOffensive USERNAME","counterStrikeGlobalOffensive USERNAME --platform PLATFORM"]},{"name":"destiny2","description":"It allows you to see the stats of any Destiny 2 player in any supported platform.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["destiny2 USERNAME","destiny2 USERNAME --platform PLATFORM"]},{"name":"fortnite","description":"It allows you to see the stats of any Fortnite player in any supported platform.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["fortnite USERNAME","fortnite USERNAME --platform PLATFORM"]},{"name":"overwatch","description":"It allows you to see the stats of any Overwatch player in any supported platform.","triggers":["ow"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["overwatch USERNAME","overwatch USERNAME --platform PLATFORM"]},{"name":"pubg","description":"It allows you to see the stats of any Playerunknown's Battlegrounds player in any supported platform. It also allows you to see the stats in separate game modes.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["pubg USERNAME","pubg USERNAME --platform PLATFORM","pubg USERNAME --platform PLATFORM --mode MODE"]},{"name":"rainbow6","description":"It allows you to see the stats of any Rainbow 6 player in any supported platform.","triggers":["r6"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["rainbow6 USERNAME","rainbow6 USERNAME --platform PLATFORM"]},{"name":"rocketLeague","description":"It allows you to see the stats of any Rocket League player in any supported platform.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["rocketLeague USERNAME","rocketLeague USERNAME --platform PLATFORM"]}],"profile":[{"name":"coins","description":"It allows you to see your Bastion Account.","triggers":["balance"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"daily","description":"It allows you to claim Bastion Coins, that every member receives as a reward for being in the server. You can claim your rewards once every 24 hours.","triggers":["claim"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"karma","description":"It allows you to give someone the sweet little internet points, we call karma, if you think they're worth it. You can give up to 3 karmas every 6 hours, so spend it wisely.","triggers":["rep"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":21600,"ratelimit":3,"userPermissions":[],"syntax":["karma USER"]},{"name":"leaderboard","description":"It allows you to see the leaderboard of your server. You're ranked based on your level, experience, karma, and Bastion Coins; in that exact order.","triggers":["lb"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"profile","description":"It allows you to see your (or any of the server member's) Bastion Profile.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["profile","profile USER"]},{"name":"rank","description":"It allows you to see your (or any of the server member's) rank, level, experience, and karma.","triggers":["level","xp"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["rank","rank USER"]}],"searches":[{"name":"anime","description":"It allows you to search for information on the specified anime.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["anime TITLE"]},{"name":"apod","description":"It allows you to discover the cosmos! Each day a different image or photograph of our fascinating universe is featured, along with a brief explanation written by a professional astronomer.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"cryptocurrency","description":"It allows you to see some information on the specified cryptocurrency.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["cryptocurrency SYMBOL"]},{"name":"game","description":"It allows you to search for information on the specified game.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["game TITLE"]},{"name":"manga","description":"It allows you to search for information on the specified manga.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["manga TITLE"]},{"name":"movie","description":"It allows you to search for information on the specified movie.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["movie TITLE"]},{"name":"pokemon","description":"It allows you to search for information on the specified Pokémon.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["pokemon NAME","pokemon NUMBER"]},{"name":"tvShow","description":"It allows you to search for information on the specified TV Show.","triggers":["tv"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["tvShow TITLE"]},{"name":"urbanDictionary","description":"It allows you to search the Urban Dictionary for definitions of the specified word.","triggers":["ud"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":true,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["urbanDictionary WORD"]},{"name":"weather","description":"It allows you to see the current weather forcast of the specified location.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["weather LOCATION"]},{"name":"wikipedia","description":"It allows you to search the Wikipedia for the specified title.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["wikipedia TITLE"]}],"utility":[{"name":"calculate","description":"It allows you to evaluate mathematical expressions and see their result.","triggers":["calc"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["calculate -- EXPRESSION"]},{"name":"choose","description":"It allows you to ask Bastion to choose an option from the given set of options. Let Bastion make a decision for you.","triggers":["decide"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["choose -- OPTIONS..."]},{"name":"cite","description":"It allows you to cite a message from any channel in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["cite MESSAGE_ID","cite MESSAGE_ID --channel CHANNEL_ID"]},{"name":"color","description":"It allows you the convert the specified color in one format into many differt formats.","triggers":["colour"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["color HEX","color R G B","color C M Y K"]},{"name":"datetime","description":"It allows you to see the current time in multiple different time zones. It also allows you to convert the specified time into multiple different time zones.","triggers":["date","time","now"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["datetime","datetime TIMEZONE...","datetime --convert DATE","datetime --convert DATE -- TIMEZONE..."]},{"name":"definitions","description":"It allows you to look up definitions for the specified word.","triggers":["define"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["definitions WORD"]},{"name":"echo","description":"It allows you to echo a message through Bastion. It also supports Bastion embed objects.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_MESSAGES"],"syntax":["echo -- MESSAGE"]},{"name":"followRedirects","description":"It follows all the redirects in the specified URL and allows you to see the final URL.","triggers":["followURL"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["followRedirects URL"]},{"name":"invite","description":"It allows you to generate an instant invite for the server. Optionally, the invite can be a temporary which will kick the members from the server if they aren't assigned a role within 24 hours. It also shows you the invite link to invite Bastion to your server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["invite","invite --temporary"]},{"name":"lmstfy","description":"It allows you to send a LMGTFY link for the specified search query. Use it to teach people how to do an internet search and get answers to their questions.","triggers":["lmgtfy"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["lmstfy QUERY","lmstfy --duckduckgo QUERY","lmstfy --google QUERY"]},{"name":"poll","description":"It allows you to run polls in the server for at least an hour and at most a month. You can set at most 13 options for the poll. It also allows you to see the status of a running poll.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_CHANNELS"],"syntax":["poll --status POLL_MESSAGE_ID","poll --option OPTIONS... -- QUESTION","poll --timeout HOURS --option OPTIONS... -- QUESTION"]},{"name":"translate","description":"It allows you to translate the specified text from one language to another.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["translate -- TEXT","translate --to LANGUAGE -- TEXT","translate --from LANGUAGE --to LANGUAGE -- TEXT"]}]} \ No newline at end of file +{"bot_owner":[{"name":"announce","description":"It allows you to send announcements to the announcement channels in the servers where it has been set.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["announce --message MESSAGE","announce --title TITLE --message MESSAGE"]},{"name":"blacklist","description":"It allows you to blacklist users and servers that. Blacklisted servers and users don't have access to Bastion's commands.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["blacklist --users USER_ID","blacklist --servers SERVER_ID","blacklist --users USER_ID --remove","blacklist --servers SERVER_ID --remove"]},{"name":"commandModule","description":"It allows you to temporarily enable or disable a command module until the next restart. It also allows you to check whether the command is currently enabled.","triggers":["command"],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["commandModule COMMAND","commandModule COMMAND --disable","commandModule COMMAND --enable"]},{"name":"eval","description":"It allows you to execute JavaScript code inside Bastion's context.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":true,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["eval --code JAVASCRIPT_CODE","eval --code JAVASCRIPT_CODE --broadcast","eval --code JAVASCRIPT_CODE --delete","eval --code JAVASCRIPT_CODE --quiet"]},{"name":"exec","description":"It allows you to execute commands in the termial where Bastion is running.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":true,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["exec --command COMMAND","exec --command COMMAND --delete","exec --command COMMAND --quiet"]},{"name":"relayDirectMessages","description":"It allows you to toggle Bastion's Direct Message Relay. If enabled, Bastion will relay all direct messages to the bot owners.","triggers":["relayDMs"],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"reloadSettings","description":"It allows you to reload Bastion's settings without needing to restart Bastion.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"setAvatar","description":"It allows you to update Bastion's avatar directly from Discord.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["setAvatar --image LINK"]},{"name":"setNick","description":"It allows you to update Bastion's nickname in the server.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["setNick","setNick NICKNAME"]},{"name":"setPresence","description":"It allows you to update Bastion's presence in the shard.","triggers":["setActivity"],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["setPresence --status STATUS","setPresence --game GAME --type TYPE --url TWITCH_URL"]},{"name":"setUsername","description":"It allows you to update Bastion's username directly from Discord.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["setUsername USERNAME"]},{"name":"shutdown","description":"It allows you to shutdown Bastion directly from Discord.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["shutdown","shutdown --now"]}],"comics":[{"name":"garfield","description":"It allows you to see the latest Garfield comic strip.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"xkcd","description":"It allows you to see the latest xkcd comic strip.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]}],"configuration":[{"name":"announcements","description":"It allows you to enable (and disable) Bastion's Announcements in the server. It sets the channel as the Announcement Channel that will receive the announcement broadcasts sent by the bot owners using the `announce` command.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["announcements","announcements --disable"]},{"name":"autoRoles","description":"It allows you to set up Auto Roles in the server. Auto Roles are the roles which are assigned to users automatically when they join the server. You can optionally set up Auto Roles for either bots or humans.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["autoRoles","autoRoles --add ROLE","autoRoles --add ROLE --bot","autoRoles --add ROLE --user","autoRoles --remove ROLE"]},{"name":"farewells","description":"It allows you to enable (and disable) farewells in the server. It also allows you to set farewell message and timeout.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["farewells --enable","farewells --disable","farewells --timeout TIMEOUT_IN_MINUTES","farewells -- MESSAGE"]},{"name":"gambling","description":"It allows you to enable (or disable) gambling in the server. When enabled, members can use their Bastion Coins to gamble in games.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["gambling","gambling --multiplier 1..13"]},{"name":"gamification","description":"It allows you to enable (or disable) gamification in the server. When enabled, users gain experience and level up in the server by participating in the server, competing against each other to climb the leaderboard. It also allows you to toggle level up messages and set the level up multiplier.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["gamification","gamification --messages","gamification --multiplier NUMBER"]},{"name":"greetings","description":"It allows you to enable (and disable) greetings in the server. It also allows you to set greeting message and timeout.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["greetings --enable","greetings --disable","greetings --timeout TIMEOUT_IN_MINUTES","greetings -- MESSAGE"]},{"name":"inviteFilter","description":"It allows you to enable (and disable) Invite Filter in the server. And it also allows you to configure if violation of this filter should be considered an infraction.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["inviteFilter","inviteFilter --enable","inviteFilter --disable","inviteFilter --infraction","inviteFilter --no-infraction"]},{"name":"languages","description":"It allows you to see the languages available in Bastion and set one of them as the default language for your server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["languages","languages --set LANGUAGE"]},{"name":"linkFilter","description":"It allows you to enable (and disable) Link Filter in the server. And it also allows you to configure if violation of this filter should be considered an infraction.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["linkFilter","linkFilter --enable","linkFilter --disable","linkFilter --infraction","linkFilter --no-infraction"]},{"name":"membersOnly","description":"It allows you to enable (and disable) Members Only mode in the server. If enabled, only the members who have at least one role in the server can use Bastion.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":[]},{"name":"mentionSpam","description":"It allows you to set (and unset) the threshold for mention spam in the server. If set, Bastion will warn the users who violate this and add it to their infractions.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["mentionSpam","mentionSpam --threshold NUMBER"]},{"name":"messageFilter","description":"It allows you to enable (and disable) Message Filter in the server. When enabled, it filters the messages that matches the patterns specified by you. And it also allows you to configure if violation of this filter should be considered an infraction.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["messageFilter","messageFilter PATTERN","messageFilter --clear","messageFilter --enable","messageFilter --disable","messageFilter --infraction","messageFilter --no-infraction"]},{"name":"moderationLogs","description":"It allows you to enable (and disable) logging of the moderation events in the server. It sets the channel as the Moderation Log Channel that will log the moderation events in the server.","triggers":["modLogs"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["moderationLogs","moderationLogs --disable"]},{"name":"prefix","description":"It allows you set custom prefixes for Bastion in your server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["prefix","prefix -- PREFIX"]},{"name":"reactionAnnouncements","description":"It allows you to enable (and disable) Reaction Announcements in the server. If enabled, and an Announcement Channel is set, when someone with proper permission adds a Megaphone or Loudspeaker reaction to a message, the message gets announced in the Announcement Channel.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":[]},{"name":"reactionPinning","description":"It allows you to enable (and disable) Reaction Pinning in the server. If enabled, when someone with proper permission adds a Pin reaction to a message, the message gets pinned in the channel.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":[]},{"name":"reports","description":"It allows you to enable (and disable) user reports in the server. It sets the channel as the Report Channel that will receive the user reports, reported by the server members using the `report` command.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["reports","reports --disable"]},{"name":"selfRoles","description":"It allows you to set up Self Roles in the server. Self Roles are the roles which server members can assign (and unassign) to themselves.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["selfRoles","selfRoles --add ROLE","selfRoles --remove ROLE"]},{"name":"serverLogs","description":"It allows you to enable (and disable) logging of the server events. It sets the channel as the Server Log Channel that will log the server events.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["serverLogs","serverLogs --disable"]},{"name":"starboard","description":"It allows you to enable (and disable) Starboard in the server. It sets the channel as the Starboard Channel that will log the starred messages of the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["starboard","starboard --disable"]},{"name":"streamerRole","description":"It allows to set the Streamer Role for the server. When a member goes live in the server, they're assigned to this role, provided they have at least one role in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["streamerRole ROLE","streamerRole --remove"]},{"name":"streamers","description":"It allows you to follow streamers, from various platforms, in the server. When the streamers go live, or post a video, Bastion will notify about it in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["streamers","streamers --twitch USERNAME","streamers --twitch USERNAME --remove"]},{"name":"suggestions","description":"It allows you to enable (and disable) suggestions in the server. It sets the channel as the Suggestion Channel that will receive the suggestions, suggested by the server members using the `suggest` command.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["suggestions","suggestions --disable"]},{"name":"triggers","description":"It allows you to add (and remove) Triggers in the server. When a trigger is set, and Bastion sees a message from a human containing the pattern specified in the trigger, it'll respond with either the specified response message or reaction, or both.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["triggers","triggers --pattern PATTERN -- RESPONSE","triggers --pattern PATTERN --reaction EMOJI","triggers --delete PATTERN","triggers --clear"]},{"name":"voiceSessions","description":"It allows you manage Voice Sessions (or Temporary Voice Channels, if you prefer), in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["voiceSessions --create"]},{"name":"votingChannels","description":"It allows you to set (and unset) channels as Voting Channels. If a channel is set as a Voting Channel, anything sent in the channel will be set up for everyone to vote.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["votingChannels","votingChannels --add","votingChannels --remove"]}],"games":[{"name":"acrophobia","description":"It allows you to play the Acrophobia game with your fellow server members. Bastion generates a random acronym and players compete by racing to create the most coherent or humorous sentence that fits the acronym - a backronym. After the submissions are over, in the specified amount of time, everyone then votes anonymously for their favorite answer. The most popular backronym wins.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"flip","description":"It allows you to flip any number of coins and see the result. It also supports gambling.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["flip","flip --coins NUMBER","flip --bet OUTCOME"]},{"name":"gameServer","description":"It allows you to fetch information from nearly any game server that makes its status publicly available.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["gameServer GAME --host HOSTNAME --port PORT"]},{"name":"magic8ball","description":"It allows you to get answers to your polar questions from the Magic 8 Ball.","triggers":["8ball"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["magic8ball QUESTION"]},{"name":"roll","description":"It allows you to roll dice and see the result. It supports dice notation. It also supports gambling.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["roll","roll NOTATION","roll --bet RESULT"]},{"name":"rps","description":"It allows you to play Rock Paper Scissor with Bastion. It also supports gambling.","triggers":["rockPaperScissor"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["rps CHOICE","rps CHOICE --bet"]},{"name":"russianRoulette","description":"It allows you to play Russian Roulette. Let's see if you can last all the 7 rounds.","triggers":["rockPaperScissor"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["rps","rps --rounds ROUNDS"]}],"help":[{"name":"changelog","description":"It allows you to see the changes that have been introduced in the current version of Bastion.","triggers":["changes"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"commands","description":"It allows you the see the list of commands available in Bastion. You can also use it to search for commands matching a given query.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["commands","commands CATEGORY","commands --search QUERY"]},{"name":"donate","description":"It allows you to see the ways you can contribute to Bastion and it's development.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"help","description":"It allows you to see the help message of Bastion that shows you basic information you need to start using Bastion.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]}],"info":[{"name":"avatar","description":"It allows you see the avatar of a user.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["avatar","avatar USER"]},{"name":"channel","description":"It allows you see the information of a channel.","triggers":["channelInfo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["channel","channel CHANNEL"]},{"name":"emoji","description":"It allows you see the information of an emoji.","triggers":["emojiInfo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["emoji EMOJI"]},{"name":"patrons","description":"It allows you to see our Patrons, the amazing people who support the development of The Bastion Bot Project.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"role","description":"It allows you see the information of a role. It also allows you to see the members in a role.","triggers":["roleInfo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["role ROLE","role ROLE --members PAGE"]},{"name":"server","description":"It allows you see the information of the server.","triggers":["serverInfo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"status","description":"It allows you to see Bastion's status, at a glance. It also allows you to see status of the current shard. You can also see a summary of Discord's status.","triggers":["stats","info"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["status","status --shard","status --discord"]},{"name":"user","description":"It allows you see the information of a user.","triggers":["member","userInfo","memberInfo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["user","user USER"]}],"management":[{"name":"channels","description":"It allows you create, delete and update channels in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_CHANNELS"],"syntax":["channels --create NAME -- REASON","channels --create NAME --type TYPE -- REASON","channels --create NAME --category ID -- REASON","channels --create NAME --topic TOPIC -- REASON","channels --create NAME --limit 1-99 -- REASON","channels --create NAME --slowmode -- REASON","channels --create NAME --nsfw -- REASON","channels --delete -- REASON","channels --rename NAME -- REASON"]},{"name":"edit","description":"It allows you to edit any message sent by Bastion in the current channel.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["ADMINISTRATOR"],"syntax":["edit --message MESSAGE_ID -- NEW MESSAGE"]},{"name":"giveaway","description":"It allows you to run giveaway events in the server for at least an hour and at most a month. You can set any number of winners for the event. And it also allows you to reroll the winners, if need be, after the end of the event.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_CHANNELS"],"syntax":["giveaway -- ITEM","giveaway --winners NUMBER -- ITEM","giveaway --timeout HOURS -- ITEM"]},{"name":"grant","description":"It allows you to grant experience or coins to the members of the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["grant --xp NUMBER","grant --coins NUMBER","grant --user USER --xp NUMBER","grant --user USER --coins NUMBER"]},{"name":"iam","description":"It allows you add (and remove) yourself to (and from) the Self Roles set in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["iam ROLE","iam --not ROLE"]},{"name":"leave","description":"It allows you to ask Bastion to leave the server and clear all data it has on server and its members.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":[]},{"name":"levelUpRoles","description":"It allows you to add roles to a level. When members reach that level, they'll be awarded those roles.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["levelUpRoles","levelUpRoles --level NUMBER","levelUpRoles --level NUMBER --role ROLE","levelUpRoles --level NUMBER --remove"]},{"name":"lockSession","description":"It allows you lock the Voice Session channel that you're currently in so that anyone else can't join unless they're invited.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["lockSession"]},{"name":"lockdown","description":"It allows you lockdown a channel in the server from users who don't have permission to manage messages or the channel.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["lockdown","lockdown --remove"]},{"name":"prune","description":"It allows you to prune members without any roles, from the server, based on how long they have been inactive.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["prune -- REASON","prune --days NUMBER -- REASON"]},{"name":"reactionRoles","description":"It allows you to create (and delete) Reaction Role Groups. A Reaction Role Group is a group of reactions emojis that can be used by a member on the Reaction Role Message to add (or remove) roles to themselves. Reaction Roles in a single group can also be set as mutually exclusive. It also allows you to assign emojis to roles, that can be used in reacting to the Reaction Role Message.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["reactionRoles","reactionRoles --role ROLE --emoji EMOJI","reactionRoles --role ROLE --no-emoji","reactionRoles --message ID --role ROLES...","reactionRoles --message ID --role ROLES... --exclusive","reactionRoles --message ID --delete"]},{"name":"roleStore","description":"It allows you to set up a Role Store in the server. Server managers can sell roles in the server and members can buy them with Bastion Coins.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["roleStore","roleStore ROLE --sell AMOUNT","roleStore ROLE --buy","roleStore ROLE --unlist"]},{"name":"roles","description":"It allows you create, delete and update roles in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["roles --create NAME -- REASON","roles --create NAME --color COLOR -- REASON","roles --create NAME --hoist -- REASON","roles --create NAME --mentionable -- REASON","roles --rename ROLE --name NAME -- REASON","roles --delete ROLE -- REASON"]},{"name":"suggest","description":"It allows you send a suggestion to the suggestion staff, provided a Suggestion Channel has been set in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["suggest SUGGESTION"]}],"moderation":[{"name":"ban","description":"It allows you to ban (or soft ban) users from the server, and optionally clear their messages from the specified number of days. It also allows you to list all the users banned in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["BAN_MEMBERS"],"syntax":["ban --list","ban --list --page 3","ban --user USER_ID -- REASON","ban --user USER_ID --soft -- REASON","ban --user USER_ID --days NUMBER -- REASON"]},{"name":"case","description":"It allows you to see the moderation case log for the specified case number.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["case --number NUMBER"]},{"name":"clear","description":"It allows you to clear a specified number of messages in a channel. You can optionally filter the messages that should be cleard based on the message author, or since when it was sent, or whether it is pinned or system message or a bot sent it.","triggers":["clean","purge"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_MESSAGES"],"syntax":["clear -- REASON","clear --limit 42 -- REASON","clear --user USER_ID -- REASON","clear --bots -- REASON","clear --pinned -- REASON","clear --system -- REASON","clear --time 1586478504946 -- REASON"]},{"name":"deaf","description":"It allows you to deafen (and undeafen) users in the server. Deafened users can't listen anything in the server's voice channels.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["DEAFEN_MEMBERS"],"syntax":["deaf --user USER_ID -- REASON","deaf --unset --user USER_ID -- REASON"]},{"name":"infractions","description":"It allows you to list all your infractions. If you're a server manager, it also allows you to set the thresholds for the actions that should be taken for violating infractions.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["infractions","infractions --kick 5","infractions --ban 10"]},{"name":"kick","description":"It allows you to kick users from the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["KICK_MEMBERS"],"syntax":["kick --user USER_ID -- REASON"]},{"name":"nickname","description":"It allows you to set (and unset) nicknames of the server members.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["KICK_MEMBERS"],"syntax":["nickname --user USER_ID --nick NICKNAME -- REASON","nickname --user USER_ID -- REASON"]},{"name":"reason","description":"It allows you to update the reason of a moderation case. Forgot to set a reason? Did a typo? Here's your second chance.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["reason --case NUMBER -- REASON"]},{"name":"report","description":"It allows you to report a server member to the moderators of the server, provided a Report Channel is set.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["report --user USER_ID -- REASON"]},{"name":"textMute","description":"It allows you to text mute (and unmute) users in a channel (or category). Text muted users can't send messages in the channels they are muted.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MUTE_MEMBERS"],"syntax":["textMute --user USER_ID -- REASON","textMute --user USER_ID --channel -- REASON","textMute --unset --user USER_ID -- REASON","textMute --unset --user USER_ID --channel -- REASON"]},{"name":"unban","description":"It allows you to unban the users who're banned in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["BAN_MEMBERS"],"syntax":["unban --user USER_ID -- REASON"]},{"name":"updateRoles","description":"It allows you to update roles of server members.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_ROLES"],"syntax":["updateRoles --user USER_ID --add ROLE_ID","updateRoles --user USER_ID --remove ROLE_ID","updateRoles --user USER_ID --remove-all"]},{"name":"voiceMute","description":"It allows you to voice mute (and unmute) users in a channel. Voice muted users can't speak in the voice channels they are muted.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MUTE_MEMBERS"],"syntax":["voiceMute --user USER_ID -- REASON","voiceMute --unset --user USER_ID -- REASON"]},{"name":"warn","description":"It allows you to warn server members, as well as clear their infractions. It also allows you to list all the infractions.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["KICK_MEMBERS"],"syntax":["warn --list","warn --user USER_ID -- REASON","warn --user USER_ID --clear -- REASON"]}],"music":[{"name":"music","description":"It toggles Bastion's music support in the specified server. Once enabled, you can use all music commands in the server.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["music","music --server SERVER_ID"]},{"name":"musicChannel","description":"It allows you to set (and unset) Bastion's Music Channels.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["musicChannel --voice-channel VOICE_CHANNEL_ID","musicChannel"]},{"name":"musicMaster","description":"It allows you to set (and unset) Bastion's Music Master role.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["musicMaster --role ROLE_ID","musicMaster"]},{"name":"nowPlaying","description":"It shows you the music track that is currently being played in the server.","triggers":["np"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"pause","description":"It allows you to pause the music track that is currently being played in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"play","description":"It allows you to play a music in the server, from the given queury or from any supported source.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["play Remember The Name by Ed Sheeran","play --link https://www.youtube.com/watch?v=dQw4w9WgXcQ"]},{"name":"queue","description":"It allows you to see the current music queue of the server. It also allows you to clear, or shuffle the music queue as well as remove a song from the queue, or set (and unset) the queue in loop.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["queue","queue --loop","queue --shuffle","queue --clear","queue --remove 13"]},{"name":"resume","description":"It allows you to resume the music track that was paused in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"skip","description":"It allows you to skip the music track that is currently being played in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"stop","description":"It allows you to stop the current music playback in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"volume","description":"It allows you to set the volume of the music track that is currently being played in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["volume 42"]}],"player_stats":[{"name":"apexLegends","description":"It allows you to see the stats of any Apex Legends player in any supported platform.","triggers":["apex"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["apexLegends USERNAME","apexLegends USERNAME --platform PLATFORM"]},{"name":"counterStrikeGlobalOffensive","description":"It allows you to see the stats of any Counter-Strike: Global Offensive player in any supported platform.","triggers":["csgo"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["counterStrikeGlobalOffensive USERNAME","counterStrikeGlobalOffensive USERNAME --platform PLATFORM"]},{"name":"destiny2","description":"It allows you to see the stats of any Destiny 2 player in any supported platform.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["destiny2 USERNAME","destiny2 USERNAME --platform PLATFORM"]},{"name":"fortnite","description":"It allows you to see the stats of any Fortnite player in any supported platform.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["fortnite USERNAME","fortnite USERNAME --platform PLATFORM"]},{"name":"overwatch","description":"It allows you to see the stats of any Overwatch player in any supported platform.","triggers":["ow"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["overwatch USERNAME","overwatch USERNAME --platform PLATFORM"]},{"name":"pubg","description":"It allows you to see the stats of any Playerunknown's Battlegrounds player in any supported platform. It also allows you to see the stats in separate game modes.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["pubg USERNAME","pubg USERNAME --platform PLATFORM","pubg USERNAME --platform PLATFORM --mode MODE"]},{"name":"rainbow6","description":"It allows you to see the stats of any Rainbow 6 player in any supported platform.","triggers":["r6"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["rainbow6 USERNAME","rainbow6 USERNAME --platform PLATFORM"]},{"name":"rocketLeague","description":"It allows you to see the stats of any Rocket League player in any supported platform.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["rocketLeague USERNAME","rocketLeague USERNAME --platform PLATFORM"]}],"profile":[{"name":"coins","description":"It allows you to see your Bastion Account.","triggers":["balance"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"daily","description":"It allows you to claim Bastion Coins, that every member receives as a reward for being in the server. You can claim your rewards once every 24 hours.","triggers":["claim"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"karma","description":"It allows you to give someone the sweet little internet points, we call karma, if you think they're worth it. You can give up to 3 karmas every 6 hours, so spend it wisely.","triggers":["rep"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":21600,"ratelimit":3,"userPermissions":[],"syntax":["karma USER"]},{"name":"leaderboard","description":"It allows you to see the leaderboard of your server. You're ranked based on your level, experience, karma, and Bastion Coins; in that exact order.","triggers":["lb"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"profile","description":"It allows you to see your (or any of the server member's) Bastion Profile.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["profile","profile USER"]},{"name":"rank","description":"It allows you to see your (or any of the server member's) rank, level, experience, and karma.","triggers":["level","xp"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["rank","rank USER"]}],"searches":[{"name":"anime","description":"It allows you to search for information on the specified anime.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["anime TITLE"]},{"name":"apod","description":"It allows you to discover the cosmos! Each day a different image or photograph of our fascinating universe is featured, along with a brief explanation written by a professional astronomer.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"cryptocurrency","description":"It allows you to see some information on the specified cryptocurrency.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["cryptocurrency SYMBOL"]},{"name":"game","description":"It allows you to search for information on the specified game.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["game TITLE"]},{"name":"manga","description":"It allows you to search for information on the specified manga.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["manga TITLE"]},{"name":"movie","description":"It allows you to search for information on the specified movie.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["movie TITLE"]},{"name":"pokemon","description":"It allows you to search for information on the specified Pokémon.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["pokemon NAME","pokemon NUMBER"]},{"name":"tvShow","description":"It allows you to search for information on the specified TV Show.","triggers":["tv"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["tvShow TITLE"]},{"name":"urbanDictionary","description":"It allows you to search the Urban Dictionary for definitions of the specified word.","triggers":["ud"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":true,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["urbanDictionary WORD"]},{"name":"weather","description":"It allows you to see the current weather forcast of the specified location.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["weather LOCATION"]},{"name":"wikipedia","description":"It allows you to search the Wikipedia for the specified title.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["wikipedia TITLE"]}],"utility":[{"name":"calculate","description":"It allows you to evaluate mathematical expressions and see their result.","triggers":["calc"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["calculate -- EXPRESSION"]},{"name":"choose","description":"It allows you to ask Bastion to choose an option from the given set of options. Let Bastion make a decision for you.","triggers":["decide"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["choose -- OPTIONS..."]},{"name":"cite","description":"It allows you to cite a message from any channel in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["cite MESSAGE_ID","cite MESSAGE_ID --channel CHANNEL_ID"]},{"name":"color","description":"It allows you the convert the specified color in one format into many differt formats.","triggers":["colour"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["color HEX","color R G B","color C M Y K"]},{"name":"datetime","description":"It allows you to see the current time in multiple different time zones. It also allows you to convert the specified time into multiple different time zones.","triggers":["date","time","now"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["datetime","datetime TIMEZONE...","datetime --convert DATE","datetime --convert DATE -- TIMEZONE..."]},{"name":"definitions","description":"It allows you to look up definitions for the specified word.","triggers":["define"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["definitions WORD"]},{"name":"echo","description":"It allows you to echo a message through Bastion. It also supports Bastion embed objects.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_MESSAGES"],"syntax":["echo -- MESSAGE"]},{"name":"followRedirects","description":"It follows all the redirects in the specified URL and allows you to see the final URL.","triggers":["followURL"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["followRedirects URL"]},{"name":"invite","description":"It allows you to generate an instant invite for the server. Optionally, the invite can be a temporary which will kick the members from the server if they aren't assigned a role within 24 hours. It also shows you the invite link to invite Bastion to your server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["invite","invite --temporary"]},{"name":"lmstfy","description":"It allows you to send a LMGTFY link for the specified search query. Use it to teach people how to do an internet search and get answers to their questions.","triggers":["lmgtfy"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["lmstfy QUERY","lmstfy --duckduckgo QUERY","lmstfy --google QUERY"]},{"name":"poll","description":"It allows you to run polls in the server for at least an hour and at most a month. You can set at most 13 options for the poll. It also allows you to see the status of a running poll.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_CHANNELS"],"syntax":["poll --status POLL_MESSAGE_ID","poll --option OPTIONS... -- QUESTION","poll --timeout HOURS --option OPTIONS... -- QUESTION"]},{"name":"translate","description":"It allows you to translate the specified text from one language to another.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["translate -- TEXT","translate --to LANGUAGE -- TEXT","translate --from LANGUAGE --to LANGUAGE -- TEXT"]}]} \ No newline at end of file diff --git a/bastion.js b/bastion.js index d718b014a..32dbeca44 100644 --- a/bastion.js +++ b/bastion.js @@ -1 +1 @@ -const a0_0x1cc1=['DIRECT_MESSAGE_TYPING','Intents','defineProperty','MESSAGE','error','Logger','@bastion/tesseract','initialize','catch','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','ALL','shard','GUILD_MESSAGE_TYPING','return\x20/\x22\x20+\x20this\x20+\x20\x22/','ids','constructor','discord.js','then','join'];(function(_0x3165f0,_0x1cc141){const _0x30de06=function(_0x25c916){while(--_0x25c916){_0x3165f0['push'](_0x3165f0['shift']());}},_0x3b4909=function(){const _0x349628={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x32224f,_0x444fdf,_0x38a65c,_0x48916c){_0x48916c=_0x48916c||{};let _0x4ed8a6=_0x444fdf+'='+_0x38a65c,_0x1cdbfb=0x0;for(let _0x3b299a=0x0,_0xa42fbf=_0x32224f['length'];_0x3b299a<_0xa42fbf;_0x3b299a++){const _0x2d0d1a=_0x32224f[_0x3b299a];_0x4ed8a6+=';\x20'+_0x2d0d1a;const _0x57398f=_0x32224f[_0x2d0d1a];_0x32224f['push'](_0x57398f),_0xa42fbf=_0x32224f['length'],_0x57398f!==!![]&&(_0x4ed8a6+='='+_0x57398f);}_0x48916c['cookie']=_0x4ed8a6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2d1150,_0x4d6aff){_0x2d1150=_0x2d1150||function(_0x526cbf){return _0x526cbf;};const _0x26e88a=_0x2d1150(new RegExp('(?:^|;\x20)'+_0x4d6aff['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x195b9b=function(_0x22d365,_0x498368){_0x22d365(++_0x498368);};return _0x195b9b(_0x30de06,_0x1cc141),_0x26e88a?decodeURIComponent(_0x26e88a[0x1]):undefined;}},_0x40022a=function(){const _0x376ca8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x376ca8['test'](_0x349628['removeCookie']['toString']());};_0x349628['updateCookie']=_0x40022a;let _0x1fe526='';const _0x4ab657=_0x349628['updateCookie']();if(!_0x4ab657)_0x349628['setCookie'](['*'],'counter',0x1);else _0x4ab657?_0x1fe526=_0x349628['getCookie'](null,'counter'):_0x349628['removeCookie']();};_0x3b4909();}(a0_0x1cc1,0x133));const a0_0x30de=function(_0x3165f0,_0x1cc141){_0x3165f0=_0x3165f0-0x0;let _0x30de06=a0_0x1cc1[_0x3165f0];return _0x30de06;};const a0_0x38a65c=function(){let _0x490d07=!![];return function(_0x4f304c,_0x336a7e){const _0x51d4d5=_0x490d07?function(){if(_0x336a7e){const _0x36af39=_0x336a7e['apply'](_0x4f304c,arguments);return _0x336a7e=null,_0x36af39;}}:function(){};return _0x490d07=![],_0x51d4d5;};}(),a0_0x444fdf=a0_0x38a65c(this,function(){const _0x4d094f=function(){const _0x31b0e8=_0x4d094f[a0_0x30de('0xc')](a0_0x30de('0xa'))()[a0_0x30de('0xc')](a0_0x30de('0x6'));return!_0x31b0e8['test'](a0_0x444fdf);};return _0x4d094f();});a0_0x444fdf();'use strict';Object[a0_0x30de('0x12')](exports,'__esModule',{'value':!![]});const tesseract=require(a0_0x30de('0x3')),discord_js_1=require(a0_0x30de('0xd'));tesseract['StructureManager'][a0_0x30de('0x4')]();const Bastion=new tesseract['Client']({'messageCacheMaxSize':0xd,'messageCacheLifetime':0xe10,'messageSweepInterval':0xe10,'partials':[a0_0x30de('0x0'),'REACTION'],'ws':{'intents':new discord_js_1['Intents'](discord_js_1[a0_0x30de('0x11')][a0_0x30de('0x7')])['remove']('DIRECT_MESSAGE_REACTIONS',a0_0x30de('0x10'),'GUILD_INTEGRATIONS',a0_0x30de('0x9'),'GUILD_WEBHOOKS')}});Bastion['login']()[a0_0x30de('0xe')](()=>{tesseract[a0_0x30de('0x2')]['info']('Shard\x20'+Bastion[a0_0x30de('0x8')][a0_0x30de('0xb')][a0_0x30de('0xf')](',\x20')+'\x20-\x20Launched');})[a0_0x30de('0x5')](console[a0_0x30de('0x1')]); \ No newline at end of file +const a0_0x14b3=['shard','ALL','Intents','apply','then','__esModule','GUILD_WEBHOOKS','join','Client','DIRECT_MESSAGE_REACTIONS','Shard\x20','DIRECT_MESSAGE_TYPING','constructor','defineProperty','discord.js','GUILD_MESSAGE_TYPING','catch','REACTION','info','remove','Logger','\x20-\x20Launched','initialize','test','error','MESSAGE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0xd743a4,_0x14b359){const _0x4e4d70=function(_0x1a690d){while(--_0x1a690d){_0xd743a4['push'](_0xd743a4['shift']());}},_0x3368c1=function(){const _0x4c3381={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5cae68,_0x51c062,_0x3e7666,_0x239b0c){_0x239b0c=_0x239b0c||{};let _0x2a69ee=_0x51c062+'='+_0x3e7666,_0x48b734=0x0;for(let _0x50dbc6=0x0,_0x2960ce=_0x5cae68['length'];_0x50dbc6<_0x2960ce;_0x50dbc6++){const _0x339954=_0x5cae68[_0x50dbc6];_0x2a69ee+=';\x20'+_0x339954;const _0xf1c984=_0x5cae68[_0x339954];_0x5cae68['push'](_0xf1c984),_0x2960ce=_0x5cae68['length'],_0xf1c984!==!![]&&(_0x2a69ee+='='+_0xf1c984);}_0x239b0c['cookie']=_0x2a69ee;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1359e8,_0x297533){_0x1359e8=_0x1359e8||function(_0x5b40bd){return _0x5b40bd;};const _0x4ea349=_0x1359e8(new RegExp('(?:^|;\x20)'+_0x297533['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4134ad=function(_0x31fbbb,_0x17642e){_0x31fbbb(++_0x17642e);};return _0x4134ad(_0x4e4d70,_0x14b359),_0x4ea349?decodeURIComponent(_0x4ea349[0x1]):undefined;}},_0x10a1c7=function(){const _0x3ba0fd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3ba0fd['test'](_0x4c3381['removeCookie']['toString']());};_0x4c3381['updateCookie']=_0x10a1c7;let _0x15e739='';const _0x3e23f4=_0x4c3381['updateCookie']();if(!_0x3e23f4)_0x4c3381['setCookie'](['*'],'counter',0x1);else _0x3e23f4?_0x15e739=_0x4c3381['getCookie'](null,'counter'):_0x4c3381['removeCookie']();};_0x3368c1();}(a0_0x14b3,0x9c));const a0_0x4e4d=function(_0xd743a4,_0x14b359){_0xd743a4=_0xd743a4-0x0;let _0x4e4d70=a0_0x14b3[_0xd743a4];return _0x4e4d70;};const a0_0x3e7666=function(){let _0x541788=!![];return function(_0x387d98,_0x2878b3){const _0x3dd669=_0x541788?function(){if(_0x2878b3){const _0x294e0d=_0x2878b3[a0_0x4e4d('0x9')](_0x387d98,arguments);return _0x2878b3=null,_0x294e0d;}}:function(){};return _0x541788=![],_0x3dd669;};}(),a0_0x51c062=a0_0x3e7666(this,function(){const _0x191ed1=function(){const _0x4c8ec9=_0x191ed1['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a0_0x4e4d('0x12')](a0_0x4e4d('0x5'));return!_0x4c8ec9[a0_0x4e4d('0x2')](a0_0x51c062);};return _0x191ed1();});a0_0x51c062();'use strict';Object[a0_0x4e4d('0x13')](exports,a0_0x4e4d('0xb'),{'value':!![]});const tesseract=require('@bastion/tesseract'),discord_js_1=require(a0_0x4e4d('0x14'));tesseract['StructureManager'][a0_0x4e4d('0x1')]();const Bastion=new tesseract[(a0_0x4e4d('0xe'))]({'messageCacheMaxSize':0xd,'messageCacheLifetime':0xe10,'messageSweepInterval':0xe10,'partials':[a0_0x4e4d('0x4'),a0_0x4e4d('0x17')],'ws':{'intents':new discord_js_1[(a0_0x4e4d('0x8'))](discord_js_1[a0_0x4e4d('0x8')][a0_0x4e4d('0x7')])[a0_0x4e4d('0x19')](a0_0x4e4d('0xf'),a0_0x4e4d('0x11'),'GUILD_INTEGRATIONS',a0_0x4e4d('0x15'),a0_0x4e4d('0xc'))}});Bastion['login']()[a0_0x4e4d('0xa')](()=>{tesseract[a0_0x4e4d('0x1a')][a0_0x4e4d('0x18')](a0_0x4e4d('0x10')+Bastion[a0_0x4e4d('0x6')]['ids'][a0_0x4e4d('0xd')](',\x20')+a0_0x4e4d('0x0'));})[a0_0x4e4d('0x16')](console[a0_0x4e4d('0x3')]); \ No newline at end of file diff --git a/changelog.yaml b/changelog.yaml index 4b78ae764..64714c472 100644 --- a/changelog.yaml +++ b/changelog.yaml @@ -1,13 +1,19 @@ -date: July 26, 2020 +date: August 4, 2020 image: https://i.imgur.com/L8CJkNz.gif changes: + New Stuff: + - title: Discord Status + description: You can now see Discord's status without visiting Discord's status page. Use the `--discord` option with the `status` command. + - title: New Trigger Variables + description: You can now use `{id}`, `{content}`, and `{content.clean}` variables in trigger responses to resolve the message ID, content, and cleaned content (with all mentions replaced by the equivalent text), respectively. + - title: Multiple Unique Presence + description: You were previously able to set Bastion's activity to automatically cycle through multiple games. But that wasn't enough. So, now you can cycle through multiple presence. That means, not only multiple games, but multiple activities, status, and streaming URL! Some Improvements: - - description: Voice Sessions categories will now have Create Invite permission, by default, so that even when the session is locked, members can still invite others to join the sessions. + - description: Bot owners can now bypass command cooldowns. - description: Some under-the-hood improvements, to make Bastion better than ever. - Killed these Bugs: - - description: Fixed an issue where you weren't able to add infractions to members if their profile wasn't already created. - - description: Fixed an issue where you weren't able to `blacklist` a user in some cases. - - description: Fixed an issue that some servers were facing with Level up Messages and Level up Roles. + Squashed these Bugs: + - description: Fixed an issue where you weren't able to `blacklist` a server in some cases. + - description: Fixed an issue where Level-up Messages would show your previous level. - description: Some under-the-hood fixes. Bastion V8: - title: Dashboard diff --git a/commands/bot_owner/announce.js b/commands/bot_owner/announce.js index 1e8bb3152..fc9ea0b42 100644 --- a/commands/bot_owner/announce.js +++ b/commands/bot_owner/announce.js @@ -1 +1 @@ -const a1_0x203b=['channels','message','announcementsChannelId','default','apply','COLORS','DiscordError','send','find','title','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','BASTION_ERROR_TYPE','test','Command','exec','announce\x20--title\x20TITLE\x20--message\x20MESSAGE','../../utils/errors','announce\x20--message\x20MESSAGE','@bastion/tesseract','cache','catch','\x20/\x20','has','author','client','join','IRIS','INVALID_COMMAND_SYNTAX','../../models/Guild','📣\x20','tag','PUPIL','constructor'];(function(_0x4c5758,_0x203b5e){const _0x1e9234=function(_0x54c0f3){while(--_0x54c0f3){_0x4c5758['push'](_0x4c5758['shift']());}},_0x2385d2=function(){const _0x4d24f8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5d20c7,_0xd24936,_0xe270b1,_0x1d19a2){_0x1d19a2=_0x1d19a2||{};let _0x44d94a=_0xd24936+'='+_0xe270b1,_0x513b9b=0x0;for(let _0x4d2c5e=0x0,_0x172378=_0x5d20c7['length'];_0x4d2c5e<_0x172378;_0x4d2c5e++){const _0x453c28=_0x5d20c7[_0x4d2c5e];_0x44d94a+=';\x20'+_0x453c28;const _0x1eb950=_0x5d20c7[_0x453c28];_0x5d20c7['push'](_0x1eb950),_0x172378=_0x5d20c7['length'],_0x1eb950!==!![]&&(_0x44d94a+='='+_0x1eb950);}_0x1d19a2['cookie']=_0x44d94a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3e1cbf,_0x735c70){_0x3e1cbf=_0x3e1cbf||function(_0x22f3b7){return _0x22f3b7;};const _0x2fac83=_0x3e1cbf(new RegExp('(?:^|;\x20)'+_0x735c70['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5c8076=function(_0x53fff8,_0x5b0fb7){_0x53fff8(++_0x5b0fb7);};return _0x5c8076(_0x1e9234,_0x203b5e),_0x2fac83?decodeURIComponent(_0x2fac83[0x1]):undefined;}},_0x5b3b4e=function(){const _0xc210ec=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xc210ec['test'](_0x4d24f8['removeCookie']['toString']());};_0x4d24f8['updateCookie']=_0x5b3b4e;let _0x2082cd='';const _0x1da671=_0x4d24f8['updateCookie']();if(!_0x1da671)_0x4d24f8['setCookie'](['*'],'counter',0x1);else _0x1da671?_0x2082cd=_0x4d24f8['getCookie'](null,'counter'):_0x4d24f8['removeCookie']();};_0x2385d2();}(a1_0x203b,0x1a4));const a1_0x1e92=function(_0x4c5758,_0x203b5e){_0x4c5758=_0x4c5758-0x0;let _0x1e9234=a1_0x203b[_0x4c5758];return _0x1e9234;};const a1_0xe270b1=function(){let _0x1b6d96=!![];return function(_0x143c9a,_0x3cf404){const _0x59f921=_0x1b6d96?function(){if(_0x3cf404){const _0x972bc6=_0x3cf404[a1_0x1e92('0x1a')](_0x143c9a,arguments);return _0x3cf404=null,_0x972bc6;}}:function(){};return _0x1b6d96=![],_0x59f921;};}(),a1_0xd24936=a1_0xe270b1(this,function(){const _0x4eddc3=function(){const _0x58d8de=_0x4eddc3['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a1_0x1e92('0x15')](a1_0x1e92('0x21'));return!_0x58d8de[a1_0x1e92('0x1')](a1_0xd24936);};return _0x4eddc3();});a1_0xd24936();'use strict';const tesseract_1=require(a1_0x1e92('0x7')),Guild_1=require(a1_0x1e92('0x11')),errors=require(a1_0x1e92('0x5'));module['exports']=class Announce extends tesseract_1[a1_0x1e92('0x2')]{constructor(){super('announce',{'description':'It\x20allows\x20you\x20to\x20send\x20announcements\x20to\x20the\x20announcement\x20channels\x20in\x20the\x20servers\x20where\x20it\x20has\x20been\x20set.','triggers':[],'arguments':{'array':[a1_0x1e92('0x17'),a1_0x1e92('0x1f')],'string':['message',a1_0x1e92('0x1f')]},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a1_0x1e92('0x6'),a1_0x1e92('0x4')]}),this[a1_0x1e92('0x3')]=async(_0x26b5e3,_0x17365a)=>{const _0x30a0d2=_0x17365a[a1_0x1e92('0x1f')]&&_0x17365a[a1_0x1e92('0x1f')]['join']('\x20'),_0x562737=_0x17365a[a1_0x1e92('0x17')]&&_0x17365a['message'][a1_0x1e92('0xe')]('\x20');if(!_0x562737)throw new errors[(a1_0x1e92('0x1c'))](errors[a1_0x1e92('0x0')][a1_0x1e92('0x10')],this['name']);const _0x323150=await Guild_1[a1_0x1e92('0x19')][a1_0x1e92('0x1e')]({'announcementsChannelId':{'$exists':!![]}});for(const _0x56b09d of _0x323150){if(this[a1_0x1e92('0xd')][a1_0x1e92('0x16')][a1_0x1e92('0x8')][a1_0x1e92('0xb')](_0x56b09d[a1_0x1e92('0x18')])){const _0x4954d2=this[a1_0x1e92('0xd')][a1_0x1e92('0x16')][a1_0x1e92('0x8')]['get'](_0x56b09d['announcementsChannelId']);_0x4954d2[a1_0x1e92('0x1d')]({'embed':{'color':tesseract_1[a1_0x1e92('0x20')][a1_0x1e92('0x1b')][a1_0x1e92('0xf')],'title':_0x30a0d2,'description':_0x562737,'footer':{'text':a1_0x1e92('0x12')+_0x26b5e3['author'][a1_0x1e92('0x13')]+a1_0x1e92('0xa')+_0x26b5e3[a1_0x1e92('0xc')]['id']}}})[a1_0x1e92('0x9')](()=>{});}}await _0x26b5e3['channel'][a1_0x1e92('0x1d')]({'embed':{'color':tesseract_1['Constants'][a1_0x1e92('0x1b')][a1_0x1e92('0x14')],'author':{'name':'Announced'},'title':_0x30a0d2,'description':_0x562737,'footer':{'text':a1_0x1e92('0x12')+_0x26b5e3['author'][a1_0x1e92('0x13')]+a1_0x1e92('0xa')+_0x26b5e3[a1_0x1e92('0xc')]['id']}}})[a1_0x1e92('0x9')](()=>{});};}}; \ No newline at end of file +const a1_0x190c=['Constants','channels','name','announce\x20--message\x20MESSAGE','message','get','\x20/\x20','apply','announcementsChannelId','Command','constructor','📣\x20','tag','client','DiscordError','test','cache','COLORS','channel','PUPIL','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','send','title','announce','has','guild','../../models/Guild','Announced','IRIS','catch','../../utils/errors','join','exports','author'];(function(_0x5e0d39,_0x190c9e){const _0x106174=function(_0x202bfb){while(--_0x202bfb){_0x5e0d39['push'](_0x5e0d39['shift']());}},_0x55808e=function(){const _0x197bce={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5454c6,_0x447360,_0x38f642,_0x1077a0){_0x1077a0=_0x1077a0||{};let _0x43f7d7=_0x447360+'='+_0x38f642,_0x398312=0x0;for(let _0x486354=0x0,_0x44d6b1=_0x5454c6['length'];_0x486354<_0x44d6b1;_0x486354++){const _0x178665=_0x5454c6[_0x486354];_0x43f7d7+=';\x20'+_0x178665;const _0x2079a3=_0x5454c6[_0x178665];_0x5454c6['push'](_0x2079a3),_0x44d6b1=_0x5454c6['length'],_0x2079a3!==!![]&&(_0x43f7d7+='='+_0x2079a3);}_0x1077a0['cookie']=_0x43f7d7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ad777,_0x1c85fb){_0x4ad777=_0x4ad777||function(_0xf09fc1){return _0xf09fc1;};const _0x11ab03=_0x4ad777(new RegExp('(?:^|;\x20)'+_0x1c85fb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2da2d9=function(_0x402eb9,_0x48b4e2){_0x402eb9(++_0x48b4e2);};return _0x2da2d9(_0x106174,_0x190c9e),_0x11ab03?decodeURIComponent(_0x11ab03[0x1]):undefined;}},_0x54793b=function(){const _0x11c81b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x11c81b['test'](_0x197bce['removeCookie']['toString']());};_0x197bce['updateCookie']=_0x54793b;let _0x16147e='';const _0x3c05f4=_0x197bce['updateCookie']();if(!_0x3c05f4)_0x197bce['setCookie'](['*'],'counter',0x1);else _0x3c05f4?_0x16147e=_0x197bce['getCookie'](null,'counter'):_0x197bce['removeCookie']();};_0x55808e();}(a1_0x190c,0x1ef));const a1_0x1061=function(_0x5e0d39,_0x190c9e){_0x5e0d39=_0x5e0d39-0x0;let _0x106174=a1_0x190c[_0x5e0d39];return _0x106174;};const a1_0x38f642=function(){let _0x34fe50=!![];return function(_0x51de22,_0x14a7a8){const _0x544dbc=_0x34fe50?function(){if(_0x14a7a8){const _0x3990e7=_0x14a7a8[a1_0x1061('0x16')](_0x51de22,arguments);return _0x14a7a8=null,_0x3990e7;}}:function(){};return _0x34fe50=![],_0x544dbc;};}(),a1_0x447360=a1_0x38f642(this,function(){const _0x58c6fa=function(){const _0x50f0a5=_0x58c6fa[a1_0x1061('0x19')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a1_0x1061('0x19')](a1_0x1061('0x1'));return!_0x50f0a5[a1_0x1061('0x1e')](a1_0x447360);};return _0x58c6fa();});a1_0x447360();'use strict';const tesseract_1=require('@bastion/tesseract'),Guild_1=require(a1_0x1061('0x7')),errors=require(a1_0x1061('0xb'));module[a1_0x1061('0xd')]=class Announce extends tesseract_1[a1_0x1061('0x18')]{constructor(){super(a1_0x1061('0x4'),{'description':'It\x20allows\x20you\x20to\x20send\x20announcements\x20to\x20the\x20announcement\x20channels\x20in\x20the\x20servers\x20where\x20it\x20has\x20been\x20set.','triggers':[],'arguments':{'array':[a1_0x1061('0x13'),'title'],'string':[a1_0x1061('0x13'),'title']},'scope':a1_0x1061('0x6'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a1_0x1061('0x12'),'announce\x20--title\x20TITLE\x20--message\x20MESSAGE']}),this['exec']=async(_0x57af8b,_0xf64620)=>{const _0x5460cb=_0xf64620[a1_0x1061('0x3')]&&_0xf64620[a1_0x1061('0x3')][a1_0x1061('0xc')]('\x20'),_0x1254ed=_0xf64620[a1_0x1061('0x13')]&&_0xf64620['message']['join']('\x20');if(!_0x1254ed)throw new errors[(a1_0x1061('0x1d'))](errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX'],this[a1_0x1061('0x11')]);const _0x452dc6=await Guild_1['default']['find']({'announcementsChannelId':{'$exists':!![]}});for(const _0x1021b1 of _0x452dc6){if(this['client'][a1_0x1061('0x10')][a1_0x1061('0x1f')][a1_0x1061('0x5')](_0x1021b1[a1_0x1061('0x17')])){const _0xf0a1f0=this[a1_0x1061('0x1c')]['channels'][a1_0x1061('0x1f')][a1_0x1061('0x14')](_0x1021b1['announcementsChannelId']);_0xf0a1f0[a1_0x1061('0x2')]({'embed':{'color':tesseract_1[a1_0x1061('0xf')]['COLORS'][a1_0x1061('0x9')],'title':_0x5460cb,'description':_0x1254ed,'footer':{'text':a1_0x1061('0x1a')+_0x57af8b[a1_0x1061('0xe')][a1_0x1061('0x1b')]+a1_0x1061('0x15')+_0x57af8b[a1_0x1061('0xe')]['id']}}})['catch'](()=>{});}}await _0x57af8b[a1_0x1061('0x21')]['send']({'embed':{'color':tesseract_1[a1_0x1061('0xf')][a1_0x1061('0x20')][a1_0x1061('0x0')],'author':{'name':a1_0x1061('0x8')},'title':_0x5460cb,'description':_0x1254ed,'footer':{'text':a1_0x1061('0x1a')+_0x57af8b[a1_0x1061('0xe')]['tag']+a1_0x1061('0x15')+_0x57af8b['author']['id']}}})[a1_0x1061('0xa')](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/blacklist.js b/commands/bot_owner/blacklist.js index 857a998ef..e2dcfddb3 100644 --- a/commands/bot_owner/blacklist.js +++ b/commands/bot_owner/blacklist.js @@ -1 +1 @@ -const a2_0x2b24=['getString','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','guild','push','client','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','constructor','blacklist\x20--servers\x20SERVER_ID\x20--remove','findById','blacklist\x20--users\x20USER_ID\x20--remove','blacklist\x20--servers\x20SERVER_ID','remove','language','DiscordError','test','bastionBlacklistUpdate','toBulletList','\x20Blacklisted\x20Servers\x20/\x20','default','blacklist\x20--users\x20USER_ID','\x20Blacklisted\x20Users','info','bastionBlacklistUnchanged','../../models/Config','Constants','INVALID_COMMAND_SYNTAX','../../utils/arrays','locale','Users','isValid','filter','blacklistedUserIds','Bastion\x27s\x20Blacklist','tag','Servers','blacklistedGuildIds','send','servers','users','Command','includes','PUPIL','save','exec','apply','document','../../utils/snowflake','It\x20allows\x20you\x20to\x20blacklist\x20users\x20and\x20servers\x20that.\x20Blacklisted\x20servers\x20and\x20users\x20don\x27t\x20have\x20access\x20to\x20Bastion\x27s\x20commands.','catch','name','length','BASTION_ERROR_TYPE','blacklist'];(function(_0x3a6da2,_0x2b2454){const _0x5c4ed2=function(_0x17d000){while(--_0x17d000){_0x3a6da2['push'](_0x3a6da2['shift']());}},_0x5c5b9e=function(){const _0x9bbbd7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x438ac6,_0x3f8fd3,_0x1ad521,_0xc1848a){_0xc1848a=_0xc1848a||{};let _0x31f4cb=_0x3f8fd3+'='+_0x1ad521,_0x504aeb=0x0;for(let _0xa66931=0x0,_0x1bf1b6=_0x438ac6['length'];_0xa66931<_0x1bf1b6;_0xa66931++){const _0x26bb0c=_0x438ac6[_0xa66931];_0x31f4cb+=';\x20'+_0x26bb0c;const _0x4f34b7=_0x438ac6[_0x26bb0c];_0x438ac6['push'](_0x4f34b7),_0x1bf1b6=_0x438ac6['length'],_0x4f34b7!==!![]&&(_0x31f4cb+='='+_0x4f34b7);}_0xc1848a['cookie']=_0x31f4cb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1404e1,_0x5500a0){_0x1404e1=_0x1404e1||function(_0x29a5bc){return _0x29a5bc;};const _0x316d7c=_0x1404e1(new RegExp('(?:^|;\x20)'+_0x5500a0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x52f14f=function(_0x2383f3,_0x5f6156){_0x2383f3(++_0x5f6156);};return _0x52f14f(_0x5c4ed2,_0x2b2454),_0x316d7c?decodeURIComponent(_0x316d7c[0x1]):undefined;}},_0x3a5795=function(){const _0x625a95=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x625a95['test'](_0x9bbbd7['removeCookie']['toString']());};_0x9bbbd7['updateCookie']=_0x3a5795;let _0x228777='';const _0x44ec84=_0x9bbbd7['updateCookie']();if(!_0x44ec84)_0x9bbbd7['setCookie'](['*'],'counter',0x1);else _0x44ec84?_0x228777=_0x9bbbd7['getCookie'](null,'counter'):_0x9bbbd7['removeCookie']();};_0x5c5b9e();}(a2_0x2b24,0x159));const a2_0x5c4e=function(_0x3a6da2,_0x2b2454){_0x3a6da2=_0x3a6da2-0x0;let _0x5c4ed2=a2_0x2b24[_0x3a6da2];return _0x5c4ed2;};const a2_0x1ad521=function(){let _0xfa1459=!![];return function(_0x31d382,_0x4688d4){const _0x40a2e7=_0xfa1459?function(){if(_0x4688d4){const _0x51a327=_0x4688d4[a2_0x5c4e('0x26')](_0x31d382,arguments);return _0x4688d4=null,_0x51a327;}}:function(){};return _0xfa1459=![],_0x40a2e7;};}(),a2_0x3f8fd3=a2_0x1ad521(this,function(){const _0x26aae6=function(){const _0x4e80e8=_0x26aae6['constructor'](a2_0x5c4e('0x36'))()[a2_0x5c4e('0x0')](a2_0x5c4e('0x30'));return!_0x4e80e8[a2_0x5c4e('0x8')](a2_0x3f8fd3);};return _0x26aae6();});a2_0x3f8fd3();'use strict';const tesseract_1=require(a2_0x5c4e('0x31')),Config_1=require(a2_0x5c4e('0x11')),arrays=require(a2_0x5c4e('0x14')),errors=require('../../utils/errors'),snowflake=require(a2_0x5c4e('0x28'));module[a2_0x5c4e('0x35')]=class Blacklist extends tesseract_1[a2_0x5c4e('0x21')]{constructor(){super(a2_0x5c4e('0x2e'),{'description':a2_0x5c4e('0x29'),'triggers':[],'arguments':{'array':[a2_0x5c4e('0x1f'),a2_0x5c4e('0x20')],'boolean':['remove'],'string':['servers','users']},'scope':a2_0x5c4e('0x32'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a2_0x5c4e('0xd'),a2_0x5c4e('0x4'),a2_0x5c4e('0x3'),a2_0x5c4e('0x1')]}),this[a2_0x5c4e('0x25')]=async(_0x46826f,_0x4309ba)=>{const _0x125ce1=await Config_1[a2_0x5c4e('0xc')][a2_0x5c4e('0x2')](this['client']['user']['id']),_0x44948c=_0x4309ba[a2_0x5c4e('0x1f')]?_0x4309ba[a2_0x5c4e('0x1f')]['filter'](_0x554ab8=>snowflake[a2_0x5c4e('0x17')](_0x554ab8)):[],_0x55d59a=_0x4309ba[a2_0x5c4e('0x20')]?_0x4309ba[a2_0x5c4e('0x20')]['filter'](_0x36f724=>snowflake[a2_0x5c4e('0x17')](_0x36f724)):[];if(!_0x44948c[a2_0x5c4e('0x2c')]&&!_0x55d59a[a2_0x5c4e('0x2c')])throw new errors[(a2_0x5c4e('0x7'))](errors[a2_0x5c4e('0x2d')][a2_0x5c4e('0x13')],this[a2_0x5c4e('0x2b')]);const _0x45bb87=[];if(_0x44948c[a2_0x5c4e('0x2c')]){if(_0x4309ba['remove'])_0x125ce1[a2_0x5c4e('0x1d')]=_0x125ce1[a2_0x5c4e('0x1d')][a2_0x5c4e('0x18')](_0x3affec=>!_0x44948c[a2_0x5c4e('0x22')](_0x3affec));else _0x125ce1[a2_0x5c4e('0x1d')]=[..._0x55d59a,..._0x125ce1[a2_0x5c4e('0x1d')]];_0x125ce1['blacklistedGuildIds']=[...new Set(_0x125ce1['blacklistedGuildIds'])],_0x45bb87[a2_0x5c4e('0x33')]({'name':a2_0x5c4e('0x1c'),'value':arrays[a2_0x5c4e('0xa')](_0x44948c),'inline':!![]});}if(_0x55d59a[a2_0x5c4e('0x2c')]){if(_0x4309ba[a2_0x5c4e('0x5')])_0x125ce1[a2_0x5c4e('0x19')]=_0x125ce1['blacklistedUserIds']['filter'](_0x5d0867=>!_0x55d59a[a2_0x5c4e('0x22')](_0x5d0867));else _0x125ce1[a2_0x5c4e('0x19')]=[..._0x55d59a,..._0x125ce1[a2_0x5c4e('0x19')]];_0x125ce1[a2_0x5c4e('0x19')]=[...new Set(_0x125ce1[a2_0x5c4e('0x19')])],_0x45bb87[a2_0x5c4e('0x33')]({'name':a2_0x5c4e('0x16'),'value':arrays[a2_0x5c4e('0xa')](_0x55d59a),'inline':!![]});}await _0x125ce1[a2_0x5c4e('0x24')](),await _0x46826f['channel'][a2_0x5c4e('0x1e')]({'embed':{'color':tesseract_1[a2_0x5c4e('0x12')][a2_0x5c4e('0x37')][a2_0x5c4e('0x23')],'title':a2_0x5c4e('0x1a'),'description':this[a2_0x5c4e('0x34')][a2_0x5c4e('0x15')][a2_0x5c4e('0x2f')](_0x46826f[a2_0x5c4e('0x32')][a2_0x5c4e('0x27')][a2_0x5c4e('0x6')],a2_0x5c4e('0xf'),_0x44948c['length']||_0x55d59a[a2_0x5c4e('0x2c')]?a2_0x5c4e('0x9'):a2_0x5c4e('0x10'),_0x46826f['author'][a2_0x5c4e('0x1b')]),'fields':_0x45bb87,'footer':{'text':_0x125ce1[a2_0x5c4e('0x1d')][a2_0x5c4e('0x2c')]+a2_0x5c4e('0xb')+_0x125ce1[a2_0x5c4e('0x19')][a2_0x5c4e('0x2c')]+a2_0x5c4e('0xe')}}})[a2_0x5c4e('0x2a')](()=>{});};}}; \ No newline at end of file +const a2_0x2ede=['Servers','servers','push','locale','tag','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','getString','exports','blacklist\x20--servers\x20SERVER_ID\x20--remove','filter','blacklist\x20--servers\x20SERVER_ID','includes','default','author','\x20Blacklisted\x20Servers\x20/\x20','users','length','document','blacklistedUserIds','blacklistedGuildIds','It\x20allows\x20you\x20to\x20blacklist\x20users\x20and\x20servers\x20that.\x20Blacklisted\x20servers\x20and\x20users\x20don\x27t\x20have\x20access\x20to\x20Bastion\x27s\x20commands.','blacklist\x20--users\x20USER_ID\x20--remove','client','test','../../models/Config','constructor','../../utils/snowflake','Constants','info','Users','send','../../utils/arrays','remove','Bastion\x27s\x20Blacklist','blacklist\x20--users\x20USER_ID','PUPIL','toBulletList','save','isValid','blacklist','findById','guild'];(function(_0x39d40f,_0x2ede30){const _0x3393e9=function(_0x54ff8f){while(--_0x54ff8f){_0x39d40f['push'](_0x39d40f['shift']());}},_0x391c2c=function(){const _0x35cbfb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x18a9b2,_0x3f66dd,_0x3e7c81,_0x179865){_0x179865=_0x179865||{};let _0x490a7b=_0x3f66dd+'='+_0x3e7c81,_0x20179f=0x0;for(let _0x4ac3ff=0x0,_0x57dbb5=_0x18a9b2['length'];_0x4ac3ff<_0x57dbb5;_0x4ac3ff++){const _0x73939a=_0x18a9b2[_0x4ac3ff];_0x490a7b+=';\x20'+_0x73939a;const _0x310da5=_0x18a9b2[_0x73939a];_0x18a9b2['push'](_0x310da5),_0x57dbb5=_0x18a9b2['length'],_0x310da5!==!![]&&(_0x490a7b+='='+_0x310da5);}_0x179865['cookie']=_0x490a7b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x42cb54,_0x42cfbb){_0x42cb54=_0x42cb54||function(_0x2ab38e){return _0x2ab38e;};const _0x3fb224=_0x42cb54(new RegExp('(?:^|;\x20)'+_0x42cfbb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1e370b=function(_0x4e4a96,_0x2f2880){_0x4e4a96(++_0x2f2880);};return _0x1e370b(_0x3393e9,_0x2ede30),_0x3fb224?decodeURIComponent(_0x3fb224[0x1]):undefined;}},_0x51fe6d=function(){const _0x3222b9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3222b9['test'](_0x35cbfb['removeCookie']['toString']());};_0x35cbfb['updateCookie']=_0x51fe6d;let _0x4f1d45='';const _0x4bdf92=_0x35cbfb['updateCookie']();if(!_0x4bdf92)_0x35cbfb['setCookie'](['*'],'counter',0x1);else _0x4bdf92?_0x4f1d45=_0x35cbfb['getCookie'](null,'counter'):_0x35cbfb['removeCookie']();};_0x391c2c();}(a2_0x2ede,0x157));const a2_0x3393=function(_0x39d40f,_0x2ede30){_0x39d40f=_0x39d40f-0x0;let _0x3393e9=a2_0x2ede[_0x39d40f];return _0x3393e9;};const a2_0x3e7c81=function(){let _0x26584f=!![];return function(_0xe4bf39,_0x3506b){const _0x16f566=_0x26584f?function(){if(_0x3506b){const _0x41e66c=_0x3506b['apply'](_0xe4bf39,arguments);return _0x3506b=null,_0x41e66c;}}:function(){};return _0x26584f=![],_0x16f566;};}(),a2_0x3f66dd=a2_0x3e7c81(this,function(){const _0xe151e8=function(){const _0x173183=_0xe151e8[a2_0x3393('0x1b')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a2_0x3393('0x7'));return!_0x173183[a2_0x3393('0x19')](a2_0x3f66dd);};return _0xe151e8();});a2_0x3f66dd();'use strict';const tesseract_1=require(a2_0x3393('0x6')),Config_1=require(a2_0x3393('0x1a')),arrays=require(a2_0x3393('0x21')),snowflake=require(a2_0x3393('0x1c'));module[a2_0x3393('0x9')]=class Blacklist extends tesseract_1['Command']{constructor(){super(a2_0x3393('0x29'),{'description':a2_0x3393('0x16'),'triggers':[],'arguments':{'array':['servers','users'],'boolean':[a2_0x3393('0x22')],'string':[a2_0x3393('0x2'),a2_0x3393('0x11')]},'scope':a2_0x3393('0x0'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a2_0x3393('0x24'),a2_0x3393('0xc'),a2_0x3393('0x17'),a2_0x3393('0xa')]}),this['exec']=async(_0x53ecc5,_0x518044)=>{const _0x38e1cf=await Config_1[a2_0x3393('0xe')][a2_0x3393('0x2a')](this[a2_0x3393('0x18')]['user']['id']),_0x128345=_0x518044[a2_0x3393('0x2')]?_0x518044['servers']['filter'](_0x50d9cb=>snowflake[a2_0x3393('0x28')](_0x50d9cb)):[],_0x56e8bd=_0x518044['users']?_0x518044[a2_0x3393('0x11')][a2_0x3393('0xb')](_0x5ae4df=>snowflake['isValid'](_0x5ae4df)):[],_0x1740cb=[];if(_0x518044[a2_0x3393('0x22')])_0x38e1cf[a2_0x3393('0x15')]=_0x38e1cf[a2_0x3393('0x15')]['filter'](_0x13e033=>!_0x128345[a2_0x3393('0xd')](_0x13e033));else _0x38e1cf[a2_0x3393('0x15')]=[..._0x128345,..._0x38e1cf['blacklistedGuildIds']];_0x38e1cf[a2_0x3393('0x15')]=[...new Set(_0x38e1cf[a2_0x3393('0x15')])];const _0x55e2f8=arrays[a2_0x3393('0x26')](_0x38e1cf[a2_0x3393('0x15')]);_0x55e2f8&&_0x1740cb[a2_0x3393('0x3')]({'name':a2_0x3393('0x1'),'value':_0x55e2f8,'inline':!![]});if(_0x518044[a2_0x3393('0x22')])_0x38e1cf[a2_0x3393('0x14')]=_0x38e1cf[a2_0x3393('0x14')][a2_0x3393('0xb')](_0x390bef=>!_0x56e8bd['includes'](_0x390bef));else _0x38e1cf['blacklistedUserIds']=[..._0x56e8bd,..._0x38e1cf['blacklistedUserIds']];_0x38e1cf[a2_0x3393('0x14')]=[...new Set(_0x38e1cf[a2_0x3393('0x14')])];const _0x29f65c=arrays[a2_0x3393('0x26')](_0x38e1cf[a2_0x3393('0x14')]);_0x29f65c&&_0x1740cb[a2_0x3393('0x3')]({'name':a2_0x3393('0x1f'),'value':_0x29f65c,'inline':!![]}),await _0x38e1cf[a2_0x3393('0x27')](),await _0x53ecc5['channel'][a2_0x3393('0x20')]({'embed':{'color':tesseract_1[a2_0x3393('0x1d')]['COLORS'][a2_0x3393('0x25')],'title':a2_0x3393('0x23'),'description':this[a2_0x3393('0x18')][a2_0x3393('0x4')][a2_0x3393('0x8')](_0x53ecc5[a2_0x3393('0x0')][a2_0x3393('0x13')]['language'],a2_0x3393('0x1e'),_0x128345[a2_0x3393('0x12')]||_0x56e8bd[a2_0x3393('0x12')]?'bastionBlacklistUpdate':'bastionBlacklistUnchanged',_0x53ecc5[a2_0x3393('0xf')][a2_0x3393('0x5')]),'fields':_0x1740cb,'footer':{'text':_0x38e1cf[a2_0x3393('0x15')][a2_0x3393('0x12')]+a2_0x3393('0x10')+_0x38e1cf['blacklistedUserIds'][a2_0x3393('0x12')]+'\x20Blacklisted\x20Users'}}});};}}; \ No newline at end of file diff --git a/commands/bot_owner/commandModule.js b/commands/bot_owner/commandModule.js index d6af92b6e..2b9ef358d 100644 --- a/commands/bot_owner/commandModule.js +++ b/commands/bot_owner/commandModule.js @@ -1 +1 @@ -const a3_0x3114=['Command','return\x20/\x22\x20+\x20this\x20+\x20\x22/','enabled','commandModule\x20COMMAND\x20--disable','DiscordError','find','@bastion/tesseract','document','getString','commandModule','PUPIL','test','client','name','catch','enable','BASTION_ERROR_TYPE','COLORS','commandNotFound','exec','apply','commandDisabled','modules','locale','author','ERROR','Constants','join','language','Command\x20Module','commandModule\x20COMMAND','tag','disable','volatileCommandDisable','It\x20allows\x20you\x20to\x20temporarily\x20enable\x20or\x20disable\x20a\x20command\x20module\x20until\x20the\x20next\x20restart.\x20It\x20also\x20allows\x20you\x20to\x20check\x20whether\x20the\x20command\x20is\x20currently\x20enabled.','toLowerCase','guild','commandEnabled','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','errors','commandModule\x20COMMAND\x20--enable','manager','length'];(function(_0x1ad23c,_0x31149a){const _0x1af477=function(_0x2a6c6a){while(--_0x2a6c6a){_0x1ad23c['push'](_0x1ad23c['shift']());}},_0x377567=function(){const _0x112c4e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x7ac772,_0x3d0f4a,_0x2dc975,_0x15e872){_0x15e872=_0x15e872||{};let _0xe306d5=_0x3d0f4a+'='+_0x2dc975,_0x3884a3=0x0;for(let _0x3cfce0=0x0,_0x2ca69b=_0x7ac772['length'];_0x3cfce0<_0x2ca69b;_0x3cfce0++){const _0x205a3d=_0x7ac772[_0x3cfce0];_0xe306d5+=';\x20'+_0x205a3d;const _0x6c788e=_0x7ac772[_0x205a3d];_0x7ac772['push'](_0x6c788e),_0x2ca69b=_0x7ac772['length'],_0x6c788e!==!![]&&(_0xe306d5+='='+_0x6c788e);}_0x15e872['cookie']=_0xe306d5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2e7f7e,_0x5d4ee6){_0x2e7f7e=_0x2e7f7e||function(_0x281803){return _0x281803;};const _0x4b7391=_0x2e7f7e(new RegExp('(?:^|;\x20)'+_0x5d4ee6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x245032=function(_0x303de0,_0x4fafad){_0x303de0(++_0x4fafad);};return _0x245032(_0x1af477,_0x31149a),_0x4b7391?decodeURIComponent(_0x4b7391[0x1]):undefined;}},_0x25ae5d=function(){const _0x3d6899=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3d6899['test'](_0x112c4e['removeCookie']['toString']());};_0x112c4e['updateCookie']=_0x25ae5d;let _0x13ab5a='';const _0xf0ad08=_0x112c4e['updateCookie']();if(!_0xf0ad08)_0x112c4e['setCookie'](['*'],'counter',0x1);else _0xf0ad08?_0x13ab5a=_0x112c4e['getCookie'](null,'counter'):_0x112c4e['removeCookie']();};_0x377567();}(a3_0x3114,0xd4));const a3_0x1af4=function(_0x1ad23c,_0x31149a){_0x1ad23c=_0x1ad23c-0x0;let _0x1af477=a3_0x3114[_0x1ad23c];return _0x1af477;};const a3_0x2dc975=function(){let _0x4a6761=!![];return function(_0x32c1a7,_0xbbc131){const _0x552046=_0x4a6761?function(){if(_0xbbc131){const _0x1f54c6=_0xbbc131[a3_0x1af4('0x1c')](_0x32c1a7,arguments);return _0xbbc131=null,_0x1f54c6;}}:function(){};return _0x4a6761=![],_0x552046;};}(),a3_0x3d0f4a=a3_0x2dc975(this,function(){const _0x2fc21c=function(){const _0x11bafc=_0x2fc21c[a3_0x1af4('0x2')](a3_0x1af4('0x9'))()[a3_0x1af4('0x2')](a3_0x1af4('0x3'));return!_0x11bafc[a3_0x1af4('0x13')](a3_0x3d0f4a);};return _0x2fc21c();});a3_0x3d0f4a();'use strict';const tesseract_1=require(a3_0x1af4('0xe')),errors=require('../../utils/errors');module['exports']=class CommandModuleCommand extends tesseract_1[a3_0x1af4('0x8')]{constructor(){super(a3_0x1af4('0x11'),{'description':a3_0x1af4('0x2a'),'triggers':['command'],'arguments':{'alias':{'disable':['d'],'enable':['e']},'boolean':[a3_0x1af4('0x28'),'enable']},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a3_0x1af4('0x26'),a3_0x1af4('0xb'),a3_0x1af4('0x5')]}),this[a3_0x1af4('0x1b')]=async(_0xf1e912,_0x8bcedf)=>{if(!_0x8bcedf['_'][a3_0x1af4('0x7')])throw new errors[(a3_0x1af4('0xc'))](errors[a3_0x1af4('0x18')]['INVALID_COMMAND_SYNTAX'],this[a3_0x1af4('0x15')]);const _0x149e21=this[a3_0x1af4('0x6')][a3_0x1af4('0x1e')][a3_0x1af4('0xd')](_0x41adbf=>_0x41adbf['name'][a3_0x1af4('0x2b')]()===_0x8bcedf['_'][a3_0x1af4('0x23')]('')[a3_0x1af4('0x2b')]());if(!_0x149e21)throw new errors[(a3_0x1af4('0xc'))](errors[a3_0x1af4('0x18')][a3_0x1af4('0x21')],this[a3_0x1af4('0x14')][a3_0x1af4('0x1f')]['getString'](_0xf1e912[a3_0x1af4('0x0')][a3_0x1af4('0xf')][a3_0x1af4('0x24')],a3_0x1af4('0x4'),a3_0x1af4('0x1a')));_0x149e21[a3_0x1af4('0xa')]=_0x8bcedf[a3_0x1af4('0x17')]?!![]:_0x8bcedf[a3_0x1af4('0x28')]?![]:_0x149e21[a3_0x1af4('0xa')],await _0xf1e912['channel']['send']({'embed':{'color':_0x8bcedf[a3_0x1af4('0x17')]?tesseract_1[a3_0x1af4('0x22')][a3_0x1af4('0x19')]['GREEN']:_0x8bcedf['disable']?tesseract_1['Constants'][a3_0x1af4('0x19')]['RED']:tesseract_1['Constants']['COLORS'][a3_0x1af4('0x12')],'author':{'name':_0x149e21[a3_0x1af4('0x15')]},'title':a3_0x1af4('0x25'),'description':this[a3_0x1af4('0x14')][a3_0x1af4('0x1f')][a3_0x1af4('0x10')](_0xf1e912[a3_0x1af4('0x0')]['document'][a3_0x1af4('0x24')],'info',_0x8bcedf['enable']?'volatileCommandEnable':_0x8bcedf['disable']?a3_0x1af4('0x29'):_0x149e21[a3_0x1af4('0xa')]?a3_0x1af4('0x1'):a3_0x1af4('0x1d'),_0xf1e912[a3_0x1af4('0x20')][a3_0x1af4('0x27')],_0x149e21['name'])}})[a3_0x1af4('0x16')](()=>{});};}}; \ No newline at end of file +const a3_0x31d4=['commandModule\x20COMMAND','BASTION_ERROR_TYPE','enabled','getString','volatileCommandDisable','apply','PUPIL','Command\x20Module','tag','commandNotFound','name','locale','find','constructor','info','@bastion/tesseract','modules','COLORS','commandModule\x20COMMAND\x20--disable','GREEN','toLowerCase','Command','DiscordError','test','document','guild','commandModule','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','disable','RED','exec','commandModule\x20COMMAND\x20--enable','channel','INVALID_COMMAND_SYNTAX','exports','commandDisabled','client','enable','It\x20allows\x20you\x20to\x20temporarily\x20enable\x20or\x20disable\x20a\x20command\x20module\x20until\x20the\x20next\x20restart.\x20It\x20also\x20allows\x20you\x20to\x20check\x20whether\x20the\x20command\x20is\x20currently\x20enabled.','commandEnabled','ERROR','command','Constants','manager'];(function(_0x3db1c4,_0x31d4b9){const _0x2ea8de=function(_0x4945fd){while(--_0x4945fd){_0x3db1c4['push'](_0x3db1c4['shift']());}},_0x4d2793=function(){const _0x2ae6fb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x35ca6c,_0x2b8664,_0x30b1f1,_0x14b863){_0x14b863=_0x14b863||{};let _0x271ea6=_0x2b8664+'='+_0x30b1f1,_0x15e1ac=0x0;for(let _0x52d0c3=0x0,_0x143e3a=_0x35ca6c['length'];_0x52d0c3<_0x143e3a;_0x52d0c3++){const _0x627e83=_0x35ca6c[_0x52d0c3];_0x271ea6+=';\x20'+_0x627e83;const _0x1b533f=_0x35ca6c[_0x627e83];_0x35ca6c['push'](_0x1b533f),_0x143e3a=_0x35ca6c['length'],_0x1b533f!==!![]&&(_0x271ea6+='='+_0x1b533f);}_0x14b863['cookie']=_0x271ea6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1680e5,_0x4dfb72){_0x1680e5=_0x1680e5||function(_0x11ce1f){return _0x11ce1f;};const _0x36474a=_0x1680e5(new RegExp('(?:^|;\x20)'+_0x4dfb72['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x35dacb=function(_0x2ee05b,_0x306762){_0x2ee05b(++_0x306762);};return _0x35dacb(_0x2ea8de,_0x31d4b9),_0x36474a?decodeURIComponent(_0x36474a[0x1]):undefined;}},_0x41679c=function(){const _0x172fdb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x172fdb['test'](_0x2ae6fb['removeCookie']['toString']());};_0x2ae6fb['updateCookie']=_0x41679c;let _0x39633d='';const _0x1721e4=_0x2ae6fb['updateCookie']();if(!_0x1721e4)_0x2ae6fb['setCookie'](['*'],'counter',0x1);else _0x1721e4?_0x39633d=_0x2ae6fb['getCookie'](null,'counter'):_0x2ae6fb['removeCookie']();};_0x4d2793();}(a3_0x31d4,0x74));const a3_0x2ea8=function(_0x3db1c4,_0x31d4b9){_0x3db1c4=_0x3db1c4-0x0;let _0x2ea8de=a3_0x31d4[_0x3db1c4];return _0x2ea8de;};const a3_0x30b1f1=function(){let _0x424d97=!![];return function(_0x2adcde,_0x590a55){const _0x4c0732=_0x424d97?function(){if(_0x590a55){const _0x5e6e0c=_0x590a55[a3_0x2ea8('0x15')](_0x2adcde,arguments);return _0x590a55=null,_0x5e6e0c;}}:function(){};return _0x424d97=![],_0x4c0732;};}(),a3_0x2b8664=a3_0x30b1f1(this,function(){const _0x4ea5e8=function(){const _0x3d7098=_0x4ea5e8[a3_0x2ea8('0x1d')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a3_0x2ea8('0x1d')](a3_0x2ea8('0x2b'));return!_0x3d7098[a3_0x2ea8('0x27')](a3_0x2b8664);};return _0x4ea5e8();});a3_0x2b8664();'use strict';const tesseract_1=require(a3_0x2ea8('0x1f')),errors=require('../../utils/errors');module[a3_0x2ea8('0x6')]=class CommandModuleCommand extends tesseract_1[a3_0x2ea8('0x25')]{constructor(){super(a3_0x2ea8('0x2a'),{'description':a3_0x2ea8('0xa'),'triggers':[a3_0x2ea8('0xd')],'arguments':{'alias':{'disable':['d'],'enable':['e']},'boolean':[a3_0x2ea8('0x0'),a3_0x2ea8('0x9')]},'scope':a3_0x2ea8('0x29'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a3_0x2ea8('0x10'),a3_0x2ea8('0x22'),a3_0x2ea8('0x3')]}),this[a3_0x2ea8('0x2')]=async(_0x236d97,_0x2b0a89)=>{if(!_0x2b0a89['_']['length'])throw new errors[(a3_0x2ea8('0x26'))](errors[a3_0x2ea8('0x11')][a3_0x2ea8('0x5')],this['name']);const _0x129f41=this[a3_0x2ea8('0xf')][a3_0x2ea8('0x20')][a3_0x2ea8('0x1c')](_0x2fa645=>_0x2fa645[a3_0x2ea8('0x1a')][a3_0x2ea8('0x24')]()===_0x2b0a89['_']['join']('')['toLowerCase']());if(!_0x129f41)throw new errors[(a3_0x2ea8('0x26'))](errors[a3_0x2ea8('0x11')][a3_0x2ea8('0xc')],this[a3_0x2ea8('0x8')]['locale'][a3_0x2ea8('0x13')](_0x236d97[a3_0x2ea8('0x29')][a3_0x2ea8('0x28')]['language'],'errors',a3_0x2ea8('0x19')));_0x129f41[a3_0x2ea8('0x12')]=_0x2b0a89[a3_0x2ea8('0x9')]?!![]:_0x2b0a89['disable']?![]:_0x129f41['enabled'],await _0x236d97[a3_0x2ea8('0x4')]['send']({'embed':{'color':_0x2b0a89[a3_0x2ea8('0x9')]?tesseract_1[a3_0x2ea8('0xe')][a3_0x2ea8('0x21')][a3_0x2ea8('0x23')]:_0x2b0a89[a3_0x2ea8('0x0')]?tesseract_1[a3_0x2ea8('0xe')][a3_0x2ea8('0x21')][a3_0x2ea8('0x1')]:tesseract_1[a3_0x2ea8('0xe')][a3_0x2ea8('0x21')][a3_0x2ea8('0x16')],'author':{'name':_0x129f41['name']},'title':a3_0x2ea8('0x17'),'description':this[a3_0x2ea8('0x8')][a3_0x2ea8('0x1b')][a3_0x2ea8('0x13')](_0x236d97[a3_0x2ea8('0x29')][a3_0x2ea8('0x28')]['language'],a3_0x2ea8('0x1e'),_0x2b0a89[a3_0x2ea8('0x9')]?'volatileCommandEnable':_0x2b0a89[a3_0x2ea8('0x0')]?a3_0x2ea8('0x14'):_0x129f41[a3_0x2ea8('0x12')]?a3_0x2ea8('0xb'):a3_0x2ea8('0x7'),_0x236d97['author'][a3_0x2ea8('0x18')],_0x129f41['name'])}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/eval.js b/commands/bot_owner/eval.js index aa9f35b36..2d8a175d0 100644 --- a/commands/bot_owner/eval.js +++ b/commands/bot_owner/eval.js @@ -1 +1 @@ -const a4_0x1dec=['code','return\x20/\x22\x20+\x20this\x20+\x20\x22/','BASTION_ERROR_TYPE','eval\x20--code\x20JAVASCRIPT_CODE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Constants','sanitize','join','```','broadcastEval','INPUT','Evaluator','client','toString','length','It\x20allows\x20you\x20to\x20execute\x20JavaScript\x20code\x20inside\x20Bastion\x27s\x20context.','inspect','@bastion/tesseract','delete','send','exports','PUPIL','quiet','eval\x20--code\x20JAVASCRIPT_CODE\x20--delete','\x0a...','name','eval\x20--code\x20JAVASCRIPT_CODE\x20--broadcast','ERROR','Command','string','test','```js\x0a','DiscordError','INVALID_COMMAND_SYNTAX','constructor','guild','../../utils/errors','broadcast'];(function(_0xcbaa3d,_0x1dec65){const _0x584c01=function(_0x267a14){while(--_0x267a14){_0xcbaa3d['push'](_0xcbaa3d['shift']());}},_0x2965e0=function(){const _0x48309a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x41f020,_0x2001c5,_0x234d8b,_0x5b9f20){_0x5b9f20=_0x5b9f20||{};let _0x562aa6=_0x2001c5+'='+_0x234d8b,_0x2b7cf5=0x0;for(let _0x16a68d=0x0,_0x3d3779=_0x41f020['length'];_0x16a68d<_0x3d3779;_0x16a68d++){const _0x2bcb62=_0x41f020[_0x16a68d];_0x562aa6+=';\x20'+_0x2bcb62;const _0x36d264=_0x41f020[_0x2bcb62];_0x41f020['push'](_0x36d264),_0x3d3779=_0x41f020['length'],_0x36d264!==!![]&&(_0x562aa6+='='+_0x36d264);}_0x5b9f20['cookie']=_0x562aa6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x31c660,_0x4c9669){_0x31c660=_0x31c660||function(_0x77483c){return _0x77483c;};const _0x29ce84=_0x31c660(new RegExp('(?:^|;\x20)'+_0x4c9669['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1a87c1=function(_0x4f29a2,_0x45bf13){_0x4f29a2(++_0x45bf13);};return _0x1a87c1(_0x584c01,_0x1dec65),_0x29ce84?decodeURIComponent(_0x29ce84[0x1]):undefined;}},_0xa678c1=function(){const _0x18637f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x18637f['test'](_0x48309a['removeCookie']['toString']());};_0x48309a['updateCookie']=_0xa678c1;let _0x2ddd74='';const _0x1f24e6=_0x48309a['updateCookie']();if(!_0x1f24e6)_0x48309a['setCookie'](['*'],'counter',0x1);else _0x1f24e6?_0x2ddd74=_0x48309a['getCookie'](null,'counter'):_0x48309a['removeCookie']();};_0x2965e0();}(a4_0x1dec,0x99));const a4_0x584c=function(_0xcbaa3d,_0x1dec65){_0xcbaa3d=_0xcbaa3d-0x0;let _0x584c01=a4_0x1dec[_0xcbaa3d];return _0x584c01;};const a4_0x234d8b=function(){let _0x5dab2a=!![];return function(_0x308c9e,_0x22dd83){const _0x51ef07=_0x5dab2a?function(){if(_0x22dd83){const _0x585598=_0x22dd83['apply'](_0x308c9e,arguments);return _0x22dd83=null,_0x585598;}}:function(){};return _0x5dab2a=![],_0x51ef07;};}(),a4_0x2001c5=a4_0x234d8b(this,function(){const _0x466b78=function(){const _0x134f0b=_0x466b78[a4_0x584c('0x21')](a4_0x584c('0x0'))()[a4_0x584c('0x21')](a4_0x584c('0x3'));return!_0x134f0b[a4_0x584c('0x1d')](a4_0x2001c5);};return _0x466b78();});a4_0x2001c5();'use strict';const tesseract_1=require(a4_0x584c('0x10')),util_1=require('util'),errors=require(a4_0x584c('0x23'));module[a4_0x584c('0x13')]=class Eval extends tesseract_1[a4_0x584c('0x1b')]{constructor(){super('eval',{'description':a4_0x584c('0xe'),'triggers':[],'arguments':{'alias':{'broadcast':['b'],'code':['c'],'delete':['d'],'quiet':['q']},'array':[a4_0x584c('0x25')],'boolean':[a4_0x584c('0x24'),a4_0x584c('0x11'),'quiet'],'string':['code']},'scope':a4_0x584c('0x22'),'owner':!![],'unsafe':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a4_0x584c('0x2'),a4_0x584c('0x19'),a4_0x584c('0x16'),'eval\x20--code\x20JAVASCRIPT_CODE\x20--quiet']}),this[a4_0x584c('0x5')]=_0x5772ca=>{return _0x5772ca['length']>0x3e8?_0x5772ca['slice'](0x0,0x3e8)+a4_0x584c('0x17'):_0x5772ca;},this['exec']=async(_0x5e2a7c,_0x6bdfd3)=>{if(!_0x6bdfd3[a4_0x584c('0x25')]||!_0x6bdfd3[a4_0x584c('0x25')][a4_0x584c('0xd')])throw new errors[(a4_0x584c('0x1f'))](errors[a4_0x584c('0x1')][a4_0x584c('0x20')],this[a4_0x584c('0x18')]);const _0x12eb7c=_0x6bdfd3[a4_0x584c('0x25')][a4_0x584c('0x6')]('\x20');let _0x2dfa4b,_0x5eae91;try{_0x2dfa4b=_0x6bdfd3[a4_0x584c('0x24')]?await this[a4_0x584c('0xb')]['shard'][a4_0x584c('0x8')](_0x12eb7c):eval(_0x12eb7c);if(typeof _0x2dfa4b!==a4_0x584c('0x1c'))_0x2dfa4b=util_1[a4_0x584c('0xf')](_0x2dfa4b);}catch(_0x54282c){_0x5eae91=_0x54282c[a4_0x584c('0xc')]();}!_0x6bdfd3[a4_0x584c('0x15')]&&await _0x5e2a7c['channel'][a4_0x584c('0x12')]({'embed':{'color':tesseract_1[a4_0x584c('0x4')]['COLORS'][a4_0x584c('0x14')],'title':a4_0x584c('0xa'),'fields':[{'name':a4_0x584c('0x9'),'value':a4_0x584c('0x1e')+this[a4_0x584c('0x5')](_0x12eb7c)+'```'},{'name':_0x5eae91?a4_0x584c('0x1a'):'OUTPUT','value':a4_0x584c('0x1e')+this['sanitize'](_0x5eae91?_0x5eae91:_0x2dfa4b)+a4_0x584c('0x7')}]}})['then'](_0x128d09=>{if(_0x6bdfd3[a4_0x584c('0x11')]){if(_0x5e2a7c['deletable'])_0x5e2a7c[a4_0x584c('0x11')]({'timeout':0x2710});_0x128d09[a4_0x584c('0x11')]({'timeout':0x2710});}});};}}; \ No newline at end of file +const a4_0x2108=['\x0a...','Constants','util','delete','send','sanitize','length','PUPIL','then','BASTION_ERROR_TYPE','eval\x20--code\x20JAVASCRIPT_CODE\x20--delete','deletable','string','@bastion/tesseract','INPUT','name','ERROR','quiet','broadcast','constructor','COLORS','guild','```','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../../utils/errors','Evaluator','code','It\x20allows\x20you\x20to\x20execute\x20JavaScript\x20code\x20inside\x20Bastion\x27s\x20context.','toString','```js\x0a','test','channel','broadcastEval','exports','slice','DiscordError','eval\x20--code\x20JAVASCRIPT_CODE\x20--broadcast','apply','join','inspect','OUTPUT'];(function(_0x464ddf,_0x210805){const _0x35bb2b=function(_0x1e22a1){while(--_0x1e22a1){_0x464ddf['push'](_0x464ddf['shift']());}},_0x1a2599=function(){const _0x35e649={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x403a35,_0x32f1a1,_0x49393b,_0x33b006){_0x33b006=_0x33b006||{};let _0x2dd9a5=_0x32f1a1+'='+_0x49393b,_0x5a017d=0x0;for(let _0x15ada9=0x0,_0x1b09c7=_0x403a35['length'];_0x15ada9<_0x1b09c7;_0x15ada9++){const _0x59e256=_0x403a35[_0x15ada9];_0x2dd9a5+=';\x20'+_0x59e256;const _0x1054b2=_0x403a35[_0x59e256];_0x403a35['push'](_0x1054b2),_0x1b09c7=_0x403a35['length'],_0x1054b2!==!![]&&(_0x2dd9a5+='='+_0x1054b2);}_0x33b006['cookie']=_0x2dd9a5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x368767,_0x22ea73){_0x368767=_0x368767||function(_0x555640){return _0x555640;};const _0x20a3e5=_0x368767(new RegExp('(?:^|;\x20)'+_0x22ea73['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x14c30c=function(_0x571b23,_0x187c6f){_0x571b23(++_0x187c6f);};return _0x14c30c(_0x35bb2b,_0x210805),_0x20a3e5?decodeURIComponent(_0x20a3e5[0x1]):undefined;}},_0x2ce2f0=function(){const _0x160c0e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x160c0e['test'](_0x35e649['removeCookie']['toString']());};_0x35e649['updateCookie']=_0x2ce2f0;let _0x5b0d12='';const _0x27609f=_0x35e649['updateCookie']();if(!_0x27609f)_0x35e649['setCookie'](['*'],'counter',0x1);else _0x27609f?_0x5b0d12=_0x35e649['getCookie'](null,'counter'):_0x35e649['removeCookie']();};_0x1a2599();}(a4_0x2108,0x18b));const a4_0x35bb=function(_0x464ddf,_0x210805){_0x464ddf=_0x464ddf-0x0;let _0x35bb2b=a4_0x2108[_0x464ddf];return _0x35bb2b;};const a4_0x49393b=function(){let _0x2fa759=!![];return function(_0x26b0fa,_0xf1a71c){const _0x43afb0=_0x2fa759?function(){if(_0xf1a71c){const _0x95ce35=_0xf1a71c[a4_0x35bb('0xb')](_0x26b0fa,arguments);return _0xf1a71c=null,_0x95ce35;}}:function(){};return _0x2fa759=![],_0x43afb0;};}(),a4_0x32f1a1=a4_0x49393b(this,function(){const _0x18fb2e=function(){const _0x5bb1b2=_0x18fb2e['constructor'](a4_0x35bb('0x26'))()[a4_0x35bb('0x22')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5bb1b2[a4_0x35bb('0x4')](a4_0x32f1a1);};return _0x18fb2e();});a4_0x32f1a1();'use strict';const tesseract_1=require(a4_0x35bb('0x1c')),util_1=require(a4_0x35bb('0x11')),errors=require(a4_0x35bb('0x27'));module[a4_0x35bb('0x7')]=class Eval extends tesseract_1['Command']{constructor(){super('eval',{'description':a4_0x35bb('0x1'),'triggers':[],'arguments':{'alias':{'broadcast':['b'],'code':['c'],'delete':['d'],'quiet':['q']},'array':[a4_0x35bb('0x0')],'boolean':[a4_0x35bb('0x21'),a4_0x35bb('0x12'),'quiet'],'string':[a4_0x35bb('0x0')]},'scope':a4_0x35bb('0x24'),'owner':!![],'unsafe':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['eval\x20--code\x20JAVASCRIPT_CODE',a4_0x35bb('0xa'),a4_0x35bb('0x19'),'eval\x20--code\x20JAVASCRIPT_CODE\x20--quiet']}),this['sanitize']=_0x1b0690=>{return _0x1b0690[a4_0x35bb('0x15')]>0x3e8?_0x1b0690[a4_0x35bb('0x8')](0x0,0x3e8)+a4_0x35bb('0xf'):_0x1b0690;},this['exec']=async(_0x47ae47,_0x7da305)=>{if(!_0x7da305[a4_0x35bb('0x0')]||!_0x7da305['code'][a4_0x35bb('0x15')])throw new errors[(a4_0x35bb('0x9'))](errors[a4_0x35bb('0x18')]['INVALID_COMMAND_SYNTAX'],this[a4_0x35bb('0x1e')]);const _0x53d87b=_0x7da305['code'][a4_0x35bb('0xc')]('\x20');let _0x3a9170,_0xe15a47;try{_0x3a9170=_0x7da305[a4_0x35bb('0x21')]?await this['client']['shard'][a4_0x35bb('0x6')](_0x53d87b):eval(_0x53d87b);if(typeof _0x3a9170!==a4_0x35bb('0x1b'))_0x3a9170=util_1[a4_0x35bb('0xd')](_0x3a9170);}catch(_0x4aaba5){_0xe15a47=_0x4aaba5[a4_0x35bb('0x2')]();}!_0x7da305[a4_0x35bb('0x20')]&&await _0x47ae47[a4_0x35bb('0x5')][a4_0x35bb('0x13')]({'embed':{'color':tesseract_1[a4_0x35bb('0x10')][a4_0x35bb('0x23')][a4_0x35bb('0x16')],'title':a4_0x35bb('0x28'),'fields':[{'name':a4_0x35bb('0x1d'),'value':a4_0x35bb('0x3')+this[a4_0x35bb('0x14')](_0x53d87b)+'```'},{'name':_0xe15a47?a4_0x35bb('0x1f'):a4_0x35bb('0xe'),'value':a4_0x35bb('0x3')+this[a4_0x35bb('0x14')](_0xe15a47?_0xe15a47:_0x3a9170)+a4_0x35bb('0x25')}]}})[a4_0x35bb('0x17')](_0x11f7ae=>{if(_0x7da305[a4_0x35bb('0x12')]){if(_0x47ae47[a4_0x35bb('0x1a')])_0x47ae47[a4_0x35bb('0x12')]({'timeout':0x2710});_0x11f7ae[a4_0x35bb('0x12')]({'timeout':0x2710});}});};}}; \ No newline at end of file diff --git a/commands/bot_owner/exec.js b/commands/bot_owner/exec.js index 39a7b0c63..07be78138 100644 --- a/commands/bot_owner/exec.js +++ b/commands/bot_owner/exec.js @@ -1 +1 @@ -const a5_0x1636=['quiet','child_process','delete','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','PUPIL','```bash\x0a','exec\x20--command\x20COMMAND\x20--quiet','util','DiscordError','INPUT','constructor','exec\x20--command\x20COMMAND','promisify','#\x20TIMED\x20OUT','test','guild','Command','deletable','push','exports','then','exec\x20--command\x20COMMAND\x20--delete','It\x20allows\x20you\x20to\x20execute\x20commands\x20in\x20the\x20termial\x20where\x20Bastion\x20is\x20running.','```','BASTION_ERROR_TYPE','stderr','OUTPUT','apply','INVALID_COMMAND_SYNTAX','stdout','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','\x0a...','command','length','join','@bastion/tesseract'];(function(_0x4d809f,_0x16369c){const _0x3a376f=function(_0x376936){while(--_0x376936){_0x4d809f['push'](_0x4d809f['shift']());}},_0x58c6b0=function(){const _0xcd00bf={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2e3917,_0x3dbce5,_0x21f024,_0x35ed83){_0x35ed83=_0x35ed83||{};let _0x2f7b71=_0x3dbce5+'='+_0x21f024,_0x56d6c5=0x0;for(let _0x372927=0x0,_0x1f418f=_0x2e3917['length'];_0x372927<_0x1f418f;_0x372927++){const _0x2ad78e=_0x2e3917[_0x372927];_0x2f7b71+=';\x20'+_0x2ad78e;const _0x1a50b9=_0x2e3917[_0x2ad78e];_0x2e3917['push'](_0x1a50b9),_0x1f418f=_0x2e3917['length'],_0x1a50b9!==!![]&&(_0x2f7b71+='='+_0x1a50b9);}_0x35ed83['cookie']=_0x2f7b71;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2f8be5,_0x40e532){_0x2f8be5=_0x2f8be5||function(_0x34697f){return _0x34697f;};const _0x900b6f=_0x2f8be5(new RegExp('(?:^|;\x20)'+_0x40e532['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x52feac=function(_0x4dfd78,_0x39bef1){_0x4dfd78(++_0x39bef1);};return _0x52feac(_0x3a376f,_0x16369c),_0x900b6f?decodeURIComponent(_0x900b6f[0x1]):undefined;}},_0x18885f=function(){const _0x2b2663=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2b2663['test'](_0xcd00bf['removeCookie']['toString']());};_0xcd00bf['updateCookie']=_0x18885f;let _0x58ae88='';const _0x5d6e62=_0xcd00bf['updateCookie']();if(!_0x5d6e62)_0xcd00bf['setCookie'](['*'],'counter',0x1);else _0x5d6e62?_0x58ae88=_0xcd00bf['getCookie'](null,'counter'):_0xcd00bf['removeCookie']();};_0x58c6b0();}(a5_0x1636,0x1a9));const a5_0x3a37=function(_0x4d809f,_0x16369c){_0x4d809f=_0x4d809f-0x0;let _0x3a376f=a5_0x1636[_0x4d809f];return _0x3a376f;};const a5_0x21f024=function(){let _0x25fecd=!![];return function(_0x268326,_0x37609b){const _0x566088=_0x25fecd?function(){if(_0x37609b){const _0xba3734=_0x37609b[a5_0x3a37('0x9')](_0x268326,arguments);return _0x37609b=null,_0xba3734;}}:function(){};return _0x25fecd=![],_0x566088;};}(),a5_0x3dbce5=a5_0x21f024(this,function(){const _0x58374a=function(){const _0x49f900=_0x58374a['constructor'](a5_0x3a37('0xc'))()[a5_0x3a37('0x1d')](a5_0x3a37('0x16'));return!_0x49f900[a5_0x3a37('0x21')](a5_0x3dbce5);};return _0x58374a();});a5_0x3dbce5();'use strict';const tesseract_1=require(a5_0x3a37('0x12')),util_1=require(a5_0x3a37('0x1a')),child_process_1=require(a5_0x3a37('0x14')),errors=require('../../utils/errors'),exec=util_1[a5_0x3a37('0x1f')](child_process_1['exec']);module[a5_0x3a37('0x1')]=class Exec extends tesseract_1[a5_0x3a37('0x23')]{constructor(){super('exec',{'description':a5_0x3a37('0x4'),'triggers':[],'arguments':{'alias':{'command':['c'],'delete':['d'],'quiet':['q']},'array':[a5_0x3a37('0xf')],'boolean':[a5_0x3a37('0x15'),a5_0x3a37('0x13')],'string':[a5_0x3a37('0xf')]},'scope':a5_0x3a37('0x22'),'owner':!![],'unsafe':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a5_0x3a37('0x1e'),a5_0x3a37('0x3'),a5_0x3a37('0x19')]}),this['sanitize']=_0x328a3f=>{return _0x328a3f['length']>0x3e8?_0x328a3f['slice'](0x0,0x3e8)+a5_0x3a37('0xe'):_0x328a3f;},this[a5_0x3a37('0xd')]=async(_0x2340de,_0x195b0d)=>{if(!_0x195b0d['command']||!_0x195b0d[a5_0x3a37('0xf')][a5_0x3a37('0x10')])throw new errors[(a5_0x3a37('0x1b'))](errors[a5_0x3a37('0x6')][a5_0x3a37('0xa')],this['name']);const _0x14ecd5=_0x195b0d[a5_0x3a37('0xf')][a5_0x3a37('0x11')]('\x20');let _0x22a32a,_0x3cda12;await exec(_0x14ecd5,{'timeout':0xea60})[a5_0x3a37('0x2')](_0x498161=>{if(_0x498161[a5_0x3a37('0xb')])_0x22a32a=_0x498161[a5_0x3a37('0xb')];if(_0x498161[a5_0x3a37('0x7')])_0x3cda12=_0x498161[a5_0x3a37('0x7')];})['catch'](_0x225526=>{if(_0x225526[a5_0x3a37('0xb')])_0x22a32a=_0x225526[a5_0x3a37('0xb')];if(_0x225526[a5_0x3a37('0x7')])_0x3cda12=_0x225526[a5_0x3a37('0x7')];if(!_0x225526[a5_0x3a37('0xb')]&&!_0x225526[a5_0x3a37('0x7')])_0x3cda12=a5_0x3a37('0x20');});const _0x31c952=[{'name':a5_0x3a37('0x1c'),'value':a5_0x3a37('0x18')+_0x14ecd5+a5_0x3a37('0x5')}];_0x22a32a&&_0x31c952[a5_0x3a37('0x0')]({'name':a5_0x3a37('0x8'),'value':a5_0x3a37('0x18')+this['sanitize'](_0x22a32a)+a5_0x3a37('0x5')}),_0x3cda12&&_0x31c952['push']({'name':'ERROR','value':a5_0x3a37('0x18')+this['sanitize'](_0x3cda12)+a5_0x3a37('0x5')}),!_0x195b0d['quiet']&&await _0x2340de['channel']['send']({'embed':{'color':tesseract_1['Constants']['COLORS'][a5_0x3a37('0x17')],'title':'Evaluator','fields':_0x31c952}})[a5_0x3a37('0x2')](_0x9aabde=>{if(_0x195b0d[a5_0x3a37('0x15')]){if(_0x2340de[a5_0x3a37('0x24')])_0x2340de[a5_0x3a37('0x15')]({'timeout':0x2710});_0x9aabde[a5_0x3a37('0x15')]({'timeout':0x2710});}});};}}; \ No newline at end of file +const a5_0x2bb3=['deletable','util','exec\x20--command\x20COMMAND\x20--quiet','COLORS','guild','channel','child_process','exports','It\x20allows\x20you\x20to\x20execute\x20commands\x20in\x20the\x20termial\x20where\x20Bastion\x20is\x20running.','DiscordError','length','```','```bash\x0a','../../utils/errors','send','catch','BASTION_ERROR_TYPE','stderr','then','ERROR','exec\x20--command\x20COMMAND','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Evaluator','\x0a...','sanitize','INPUT','slice','exec\x20--command\x20COMMAND\x20--delete','push','exec','quiet','stdout','apply','OUTPUT','constructor','INVALID_COMMAND_SYNTAX','join','command','test','delete','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x5c8a94,_0x2bb389){const _0x56bae0=function(_0xaeb616){while(--_0xaeb616){_0x5c8a94['push'](_0x5c8a94['shift']());}},_0xf3f062=function(){const _0x220889={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1b06e0,_0x385d9c,_0x4cd77d,_0x16ed08){_0x16ed08=_0x16ed08||{};let _0x43685f=_0x385d9c+'='+_0x4cd77d,_0x3aaf3a=0x0;for(let _0x199404=0x0,_0x14ab91=_0x1b06e0['length'];_0x199404<_0x14ab91;_0x199404++){const _0xe70438=_0x1b06e0[_0x199404];_0x43685f+=';\x20'+_0xe70438;const _0x183d20=_0x1b06e0[_0xe70438];_0x1b06e0['push'](_0x183d20),_0x14ab91=_0x1b06e0['length'],_0x183d20!==!![]&&(_0x43685f+='='+_0x183d20);}_0x16ed08['cookie']=_0x43685f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5f4d7b,_0x23787b){_0x5f4d7b=_0x5f4d7b||function(_0x4b7618){return _0x4b7618;};const _0x3eaa3e=_0x5f4d7b(new RegExp('(?:^|;\x20)'+_0x23787b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x24e932=function(_0x30f0e1,_0x14db37){_0x30f0e1(++_0x14db37);};return _0x24e932(_0x56bae0,_0x2bb389),_0x3eaa3e?decodeURIComponent(_0x3eaa3e[0x1]):undefined;}},_0x39d54c=function(){const _0x5885ab=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5885ab['test'](_0x220889['removeCookie']['toString']());};_0x220889['updateCookie']=_0x39d54c;let _0x34d0aa='';const _0x2c39c7=_0x220889['updateCookie']();if(!_0x2c39c7)_0x220889['setCookie'](['*'],'counter',0x1);else _0x2c39c7?_0x34d0aa=_0x220889['getCookie'](null,'counter'):_0x220889['removeCookie']();};_0xf3f062();}(a5_0x2bb3,0x1e9));const a5_0x56ba=function(_0x5c8a94,_0x2bb389){_0x5c8a94=_0x5c8a94-0x0;let _0x56bae0=a5_0x2bb3[_0x5c8a94];return _0x56bae0;};const a5_0x4cd77d=function(){let _0x286644=!![];return function(_0x3387d6,_0x55fc5f){const _0x47de9d=_0x286644?function(){if(_0x55fc5f){const _0x2a3406=_0x55fc5f[a5_0x56ba('0x23')](_0x3387d6,arguments);return _0x55fc5f=null,_0x2a3406;}}:function(){};return _0x286644=![],_0x47de9d;};}(),a5_0x385d9c=a5_0x4cd77d(this,function(){const _0x1c5935=function(){const _0x232000=_0x1c5935[a5_0x56ba('0x25')](a5_0x56ba('0x18'))()[a5_0x56ba('0x25')](a5_0x56ba('0x2'));return!_0x232000[a5_0x56ba('0x0')](a5_0x385d9c);};return _0x1c5935();});a5_0x385d9c();'use strict';const tesseract_1=require('@bastion/tesseract'),util_1=require(a5_0x56ba('0x4')),child_process_1=require(a5_0x56ba('0x9')),errors=require(a5_0x56ba('0x10')),exec=util_1['promisify'](child_process_1[a5_0x56ba('0x20')]);module[a5_0x56ba('0xa')]=class Exec extends tesseract_1['Command']{constructor(){super(a5_0x56ba('0x20'),{'description':a5_0x56ba('0xb'),'triggers':[],'arguments':{'alias':{'command':['c'],'delete':['d'],'quiet':['q']},'array':['command'],'boolean':[a5_0x56ba('0x1'),a5_0x56ba('0x21')],'string':[a5_0x56ba('0x28')]},'scope':a5_0x56ba('0x7'),'owner':!![],'unsafe':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a5_0x56ba('0x17'),a5_0x56ba('0x1e'),a5_0x56ba('0x5')]}),this[a5_0x56ba('0x1b')]=_0x1ec2cf=>{return _0x1ec2cf[a5_0x56ba('0xd')]>0x3e8?_0x1ec2cf[a5_0x56ba('0x1d')](0x0,0x3e8)+a5_0x56ba('0x1a'):_0x1ec2cf;},this[a5_0x56ba('0x20')]=async(_0x1fccd6,_0x640d46)=>{if(!_0x640d46[a5_0x56ba('0x28')]||!_0x640d46['command'][a5_0x56ba('0xd')])throw new errors[(a5_0x56ba('0xc'))](errors[a5_0x56ba('0x13')][a5_0x56ba('0x26')],this['name']);const _0xad6e44=_0x640d46[a5_0x56ba('0x28')][a5_0x56ba('0x27')]('\x20');let _0x467a00,_0x3f0a25;await exec(_0xad6e44,{'timeout':0xea60})[a5_0x56ba('0x15')](_0x45a21a=>{if(_0x45a21a['stdout'])_0x467a00=_0x45a21a[a5_0x56ba('0x22')];if(_0x45a21a[a5_0x56ba('0x14')])_0x3f0a25=_0x45a21a[a5_0x56ba('0x14')];})[a5_0x56ba('0x12')](_0x260a2e=>{if(_0x260a2e[a5_0x56ba('0x22')])_0x467a00=_0x260a2e[a5_0x56ba('0x22')];if(_0x260a2e[a5_0x56ba('0x14')])_0x3f0a25=_0x260a2e[a5_0x56ba('0x14')];if(!_0x260a2e[a5_0x56ba('0x22')]&&!_0x260a2e[a5_0x56ba('0x14')])_0x3f0a25='#\x20TIMED\x20OUT';});const _0x46d791=[{'name':a5_0x56ba('0x1c'),'value':a5_0x56ba('0xf')+_0xad6e44+'```'}];_0x467a00&&_0x46d791['push']({'name':a5_0x56ba('0x24'),'value':'```bash\x0a'+this[a5_0x56ba('0x1b')](_0x467a00)+a5_0x56ba('0xe')}),_0x3f0a25&&_0x46d791[a5_0x56ba('0x1f')]({'name':a5_0x56ba('0x16'),'value':'```bash\x0a'+this[a5_0x56ba('0x1b')](_0x3f0a25)+a5_0x56ba('0xe')}),!_0x640d46[a5_0x56ba('0x21')]&&await _0x1fccd6[a5_0x56ba('0x8')][a5_0x56ba('0x11')]({'embed':{'color':tesseract_1['Constants'][a5_0x56ba('0x6')]['PUPIL'],'title':a5_0x56ba('0x19'),'fields':_0x46d791}})[a5_0x56ba('0x15')](_0x353ee7=>{if(_0x640d46[a5_0x56ba('0x1')]){if(_0x1fccd6[a5_0x56ba('0x3')])_0x1fccd6[a5_0x56ba('0x1')]({'timeout':0x2710});_0x353ee7[a5_0x56ba('0x1')]({'timeout':0x2710});}});};}}; \ No newline at end of file diff --git a/commands/bot_owner/relayDirectMessages.js b/commands/bot_owner/relayDirectMessages.js index acf4bdbe5..794c03c4e 100644 --- a/commands/bot_owner/relayDirectMessages.js +++ b/commands/bot_owner/relayDirectMessages.js @@ -1 +1 @@ -const a6_0x1ca2=['default','directMessagesRelayDisable','exports','client','apply','COLORS','test','GREEN','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','RED','author','catch','tag','getString','directMessagesRelayEnable','It\x20allows\x20you\x20to\x20toggle\x20Bastion\x27s\x20Direct\x20Message\x20Relay.\x20If\x20enabled,\x20Bastion\x20will\x20relay\x20all\x20direct\x20messages\x20to\x20the\x20bot\x20owners.','guild','save','Constants','Direct\x20Messages\x20Relay','send','@bastion/tesseract','user','../../models/Config','language','exec','Command','document','relayDirectMessages','locale'];(function(_0x33b9e5,_0x1ca236){const _0x11f629=function(_0x234f4d){while(--_0x234f4d){_0x33b9e5['push'](_0x33b9e5['shift']());}},_0x2dd6fd=function(){const _0xb491f1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x44d7ed,_0xd54a04,_0x2f503c,_0x33f8b3){_0x33f8b3=_0x33f8b3||{};let _0x1f01f0=_0xd54a04+'='+_0x2f503c,_0x57832c=0x0;for(let _0x5a4b09=0x0,_0x5d95ca=_0x44d7ed['length'];_0x5a4b09<_0x5d95ca;_0x5a4b09++){const _0x2b88e3=_0x44d7ed[_0x5a4b09];_0x1f01f0+=';\x20'+_0x2b88e3;const _0x119432=_0x44d7ed[_0x2b88e3];_0x44d7ed['push'](_0x119432),_0x5d95ca=_0x44d7ed['length'],_0x119432!==!![]&&(_0x1f01f0+='='+_0x119432);}_0x33f8b3['cookie']=_0x1f01f0;},'removeCookie':function(){return'dev';},'getCookie':function(_0xff7a9,_0x1335d4){_0xff7a9=_0xff7a9||function(_0x37141e){return _0x37141e;};const _0x399cf2=_0xff7a9(new RegExp('(?:^|;\x20)'+_0x1335d4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1c1e61=function(_0xac26b9,_0x573787){_0xac26b9(++_0x573787);};return _0x1c1e61(_0x11f629,_0x1ca236),_0x399cf2?decodeURIComponent(_0x399cf2[0x1]):undefined;}},_0x44f6f0=function(){const _0x21808c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x21808c['test'](_0xb491f1['removeCookie']['toString']());};_0xb491f1['updateCookie']=_0x44f6f0;let _0x10e519='';const _0x41a7bf=_0xb491f1['updateCookie']();if(!_0x41a7bf)_0xb491f1['setCookie'](['*'],'counter',0x1);else _0x41a7bf?_0x10e519=_0xb491f1['getCookie'](null,'counter'):_0xb491f1['removeCookie']();};_0x2dd6fd();}(a6_0x1ca2,0x13d));const a6_0x11f6=function(_0x33b9e5,_0x1ca236){_0x33b9e5=_0x33b9e5-0x0;let _0x11f629=a6_0x1ca2[_0x33b9e5];return _0x11f629;};const a6_0x2f503c=function(){let _0x538fc6=!![];return function(_0x3ac676,_0x2146bc){const _0x49873b=_0x538fc6?function(){if(_0x2146bc){const _0x1cc6a=_0x2146bc[a6_0x11f6('0x11')](_0x3ac676,arguments);return _0x2146bc=null,_0x1cc6a;}}:function(){};return _0x538fc6=![],_0x49873b;};}(),a6_0xd54a04=a6_0x2f503c(this,function(){const _0x3dac06=function(){const _0x2ef318=_0x3dac06['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a6_0x11f6('0x15'));return!_0x2ef318[a6_0x11f6('0x13')](a6_0xd54a04);};return _0x3dac06();});a6_0xd54a04();'use strict';const tesseract_1=require(a6_0x11f6('0x4')),Config_1=require(a6_0x11f6('0x6'));module[a6_0x11f6('0xf')]=class RelayDirectMessages extends tesseract_1[a6_0x11f6('0x9')]{constructor(){super(a6_0x11f6('0xb'),{'description':a6_0x11f6('0x1c'),'triggers':['relayDMs'],'arguments':{},'scope':a6_0x11f6('0x1d'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a6_0x11f6('0x8')]=async _0x3117f7=>{const _0x495e45=await Config_1[a6_0x11f6('0xd')]['findById'](this['client'][a6_0x11f6('0x5')]['id']);_0x495e45[a6_0x11f6('0xb')]=_0x495e45[a6_0x11f6('0xb')]?undefined:!![],await _0x495e45[a6_0x11f6('0x0')](),await _0x3117f7['channel'][a6_0x11f6('0x3')]({'embed':{'color':_0x495e45['relayDirectMessages']?tesseract_1['Constants'][a6_0x11f6('0x12')][a6_0x11f6('0x14')]:tesseract_1[a6_0x11f6('0x1')][a6_0x11f6('0x12')][a6_0x11f6('0x16')],'title':a6_0x11f6('0x2'),'description':this[a6_0x11f6('0x10')][a6_0x11f6('0xc')][a6_0x11f6('0x1a')](_0x3117f7['guild'][a6_0x11f6('0xa')][a6_0x11f6('0x7')],'info',_0x495e45[a6_0x11f6('0xb')]?a6_0x11f6('0x1b'):a6_0x11f6('0xe'),_0x3117f7[a6_0x11f6('0x17')][a6_0x11f6('0x19')])}})[a6_0x11f6('0x18')](()=>{});};}}; \ No newline at end of file +const a6_0x4155=['language','default','channel','send','catch','Constants','document','author','Direct\x20Messages\x20Relay','client','../../models/Config','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','GREEN','locale','relayDirectMessages','apply','save','guild','user','tag','directMessagesRelayEnable','exports','COLORS','relayDMs','constructor','@bastion/tesseract','exec','RED','info','directMessagesRelayDisable','It\x20allows\x20you\x20to\x20toggle\x20Bastion\x27s\x20Direct\x20Message\x20Relay.\x20If\x20enabled,\x20Bastion\x20will\x20relay\x20all\x20direct\x20messages\x20to\x20the\x20bot\x20owners.'];(function(_0x2668c8,_0x415506){const _0x3aa804=function(_0x5d5f49){while(--_0x5d5f49){_0x2668c8['push'](_0x2668c8['shift']());}},_0xeec866=function(){const _0x558cb7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x44d63,_0x1790ad,_0x2c3e47,_0x5a85e1){_0x5a85e1=_0x5a85e1||{};let _0x3030a9=_0x1790ad+'='+_0x2c3e47,_0x54b481=0x0;for(let _0x5dbdd4=0x0,_0xef84e9=_0x44d63['length'];_0x5dbdd4<_0xef84e9;_0x5dbdd4++){const _0x4657bc=_0x44d63[_0x5dbdd4];_0x3030a9+=';\x20'+_0x4657bc;const _0x4a417e=_0x44d63[_0x4657bc];_0x44d63['push'](_0x4a417e),_0xef84e9=_0x44d63['length'],_0x4a417e!==!![]&&(_0x3030a9+='='+_0x4a417e);}_0x5a85e1['cookie']=_0x3030a9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x298d56,_0x1985b2){_0x298d56=_0x298d56||function(_0xc2978d){return _0xc2978d;};const _0x4360c8=_0x298d56(new RegExp('(?:^|;\x20)'+_0x1985b2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x53f04a=function(_0x32d792,_0x2141a0){_0x32d792(++_0x2141a0);};return _0x53f04a(_0x3aa804,_0x415506),_0x4360c8?decodeURIComponent(_0x4360c8[0x1]):undefined;}},_0x4db13e=function(){const _0x5c5d3a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5c5d3a['test'](_0x558cb7['removeCookie']['toString']());};_0x558cb7['updateCookie']=_0x4db13e;let _0x29be00='';const _0x6d43c3=_0x558cb7['updateCookie']();if(!_0x6d43c3)_0x558cb7['setCookie'](['*'],'counter',0x1);else _0x6d43c3?_0x29be00=_0x558cb7['getCookie'](null,'counter'):_0x558cb7['removeCookie']();};_0xeec866();}(a6_0x4155,0x105));const a6_0x3aa8=function(_0x2668c8,_0x415506){_0x2668c8=_0x2668c8-0x0;let _0x3aa804=a6_0x4155[_0x2668c8];return _0x3aa804;};const a6_0x2c3e47=function(){let _0x4cd03b=!![];return function(_0x15aa11,_0x44c3cd){const _0x113c83=_0x4cd03b?function(){if(_0x44c3cd){const _0x340d43=_0x44c3cd[a6_0x3aa8('0x2')](_0x15aa11,arguments);return _0x44c3cd=null,_0x340d43;}}:function(){};return _0x4cd03b=![],_0x113c83;};}(),a6_0x1790ad=a6_0x2c3e47(this,function(){const _0x530a6d=function(){const _0x426d8d=_0x530a6d['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a6_0x3aa8('0xb')](a6_0x3aa8('0x1d'));return!_0x426d8d['test'](a6_0x1790ad);};return _0x530a6d();});a6_0x1790ad();'use strict';const tesseract_1=require(a6_0x3aa8('0xc')),Config_1=require(a6_0x3aa8('0x1c'));module[a6_0x3aa8('0x8')]=class RelayDirectMessages extends tesseract_1['Command']{constructor(){super(a6_0x3aa8('0x1'),{'description':a6_0x3aa8('0x11'),'triggers':[a6_0x3aa8('0xa')],'arguments':{},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a6_0x3aa8('0xd')]=async _0x5ccdbd=>{const _0x3b3770=await Config_1[a6_0x3aa8('0x13')]['findById'](this[a6_0x3aa8('0x1b')][a6_0x3aa8('0x5')]['id']);_0x3b3770[a6_0x3aa8('0x1')]=_0x3b3770[a6_0x3aa8('0x1')]?undefined:!![],await _0x3b3770[a6_0x3aa8('0x3')](),await _0x5ccdbd[a6_0x3aa8('0x14')][a6_0x3aa8('0x15')]({'embed':{'color':_0x3b3770[a6_0x3aa8('0x1')]?tesseract_1['Constants'][a6_0x3aa8('0x9')][a6_0x3aa8('0x1e')]:tesseract_1[a6_0x3aa8('0x17')][a6_0x3aa8('0x9')][a6_0x3aa8('0xe')],'title':a6_0x3aa8('0x1a'),'description':this[a6_0x3aa8('0x1b')][a6_0x3aa8('0x0')]['getString'](_0x5ccdbd[a6_0x3aa8('0x4')][a6_0x3aa8('0x18')][a6_0x3aa8('0x12')],a6_0x3aa8('0xf'),_0x3b3770['relayDirectMessages']?a6_0x3aa8('0x7'):a6_0x3aa8('0x10'),_0x5ccdbd[a6_0x3aa8('0x19')][a6_0x3aa8('0x6')])}})[a6_0x3aa8('0x16')](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/reloadSettings.js b/commands/bot_owner/reloadSettings.js index 9c7d384f6..00f3f11af 100644 --- a/commands/bot_owner/reloadSettings.js +++ b/commands/bot_owner/reloadSettings.js @@ -1 +1 @@ -const a7_0x38ee=['channel','test','tag','language','shard','exec','settingsReload','catch','Command','this.loadSettings()','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','@bastion/tesseract','apply','locale','Constants','constructor','broadcastEval','PUPIL','reloadSettings','guild','getString','client','info','send','document'];(function(_0x2f9953,_0x38eed7){const _0x4f8509=function(_0x1837b4){while(--_0x1837b4){_0x2f9953['push'](_0x2f9953['shift']());}},_0x370b06=function(){const _0xa2a0bd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x53dca9,_0x3d5d39,_0x555b4e,_0x257212){_0x257212=_0x257212||{};let _0x45cd48=_0x3d5d39+'='+_0x555b4e,_0x26b5b7=0x0;for(let _0x3ea790=0x0,_0xb47555=_0x53dca9['length'];_0x3ea790<_0xb47555;_0x3ea790++){const _0x4af368=_0x53dca9[_0x3ea790];_0x45cd48+=';\x20'+_0x4af368;const _0x22095f=_0x53dca9[_0x4af368];_0x53dca9['push'](_0x22095f),_0xb47555=_0x53dca9['length'],_0x22095f!==!![]&&(_0x45cd48+='='+_0x22095f);}_0x257212['cookie']=_0x45cd48;},'removeCookie':function(){return'dev';},'getCookie':function(_0x15907a,_0x117ad6){_0x15907a=_0x15907a||function(_0x5bb9ac){return _0x5bb9ac;};const _0x3dfa8d=_0x15907a(new RegExp('(?:^|;\x20)'+_0x117ad6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4199af=function(_0x7441f9,_0x36de2d){_0x7441f9(++_0x36de2d);};return _0x4199af(_0x4f8509,_0x38eed7),_0x3dfa8d?decodeURIComponent(_0x3dfa8d[0x1]):undefined;}},_0x2d0fdb=function(){const _0x5bec52=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5bec52['test'](_0xa2a0bd['removeCookie']['toString']());};_0xa2a0bd['updateCookie']=_0x2d0fdb;let _0x434a8d='';const _0x48d716=_0xa2a0bd['updateCookie']();if(!_0x48d716)_0xa2a0bd['setCookie'](['*'],'counter',0x1);else _0x48d716?_0x434a8d=_0xa2a0bd['getCookie'](null,'counter'):_0xa2a0bd['removeCookie']();};_0x370b06();}(a7_0x38ee,0x12c));const a7_0x4f85=function(_0x2f9953,_0x38eed7){_0x2f9953=_0x2f9953-0x0;let _0x4f8509=a7_0x38ee[_0x2f9953];return _0x4f8509;};const a7_0x555b4e=function(){let _0x4d40bd=!![];return function(_0x2c0440,_0x5c120e){const _0x5add6a=_0x4d40bd?function(){if(_0x5c120e){const _0xfa3a91=_0x5c120e[a7_0x4f85('0x19')](_0x2c0440,arguments);return _0x5c120e=null,_0xfa3a91;}}:function(){};return _0x4d40bd=![],_0x5add6a;};}(),a7_0x3d5d39=a7_0x555b4e(this,function(){const _0x5ab2eb=function(){const _0x6f3ab2=_0x5ab2eb[a7_0x4f85('0x2')](a7_0x4f85('0x16'))()[a7_0x4f85('0x2')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x6f3ab2[a7_0x4f85('0xd')](a7_0x3d5d39);};return _0x5ab2eb();});a7_0x3d5d39();'use strict';const tesseract_1=require(a7_0x4f85('0x18'));module[a7_0x4f85('0x17')]=class ReloadSettings extends tesseract_1[a7_0x4f85('0x14')]{constructor(){super(a7_0x4f85('0x5'),{'description':'It\x20allows\x20you\x20to\x20reload\x20Bastion\x27s\x20settings\x20without\x20needing\x20to\x20restart\x20Bastion.','triggers':[],'arguments':{},'scope':a7_0x4f85('0x6'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a7_0x4f85('0x11')]=async _0x25cbfb=>{this[a7_0x4f85('0x8')][a7_0x4f85('0x10')][a7_0x4f85('0x3')](a7_0x4f85('0x15')),await _0x25cbfb[a7_0x4f85('0xc')][a7_0x4f85('0xa')]({'embed':{'color':tesseract_1[a7_0x4f85('0x1')]['COLORS'][a7_0x4f85('0x4')],'description':this[a7_0x4f85('0x8')][a7_0x4f85('0x0')][a7_0x4f85('0x7')](_0x25cbfb[a7_0x4f85('0x6')][a7_0x4f85('0xb')][a7_0x4f85('0xf')],a7_0x4f85('0x9'),a7_0x4f85('0x12'),_0x25cbfb['author'][a7_0x4f85('0xe')])}})[a7_0x4f85('0x13')](()=>{});};}}; \ No newline at end of file +const a7_0x370e=['Constants','this.loadSettings()','broadcastEval','channel','locale','COLORS','constructor','catch','reloadSettings','guild','test','document','tag','language','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','shard','PUPIL','getString','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract','exports'];(function(_0x28100b,_0x370e51){const _0x38cb04=function(_0x29c429){while(--_0x29c429){_0x28100b['push'](_0x28100b['shift']());}},_0x37d37a=function(){const _0x1653df={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1cfe10,_0x5e4c65,_0x161c23,_0x40564e){_0x40564e=_0x40564e||{};let _0x5d6209=_0x5e4c65+'='+_0x161c23,_0x2d0090=0x0;for(let _0x20e45e=0x0,_0x39b5e1=_0x1cfe10['length'];_0x20e45e<_0x39b5e1;_0x20e45e++){const _0x40dc5e=_0x1cfe10[_0x20e45e];_0x5d6209+=';\x20'+_0x40dc5e;const _0x3dfe19=_0x1cfe10[_0x40dc5e];_0x1cfe10['push'](_0x3dfe19),_0x39b5e1=_0x1cfe10['length'],_0x3dfe19!==!![]&&(_0x5d6209+='='+_0x3dfe19);}_0x40564e['cookie']=_0x5d6209;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3886eb,_0x39d5a1){_0x3886eb=_0x3886eb||function(_0x5ed0b4){return _0x5ed0b4;};const _0x56f077=_0x3886eb(new RegExp('(?:^|;\x20)'+_0x39d5a1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x19ec60=function(_0xbdaf2a,_0x5d9285){_0xbdaf2a(++_0x5d9285);};return _0x19ec60(_0x38cb04,_0x370e51),_0x56f077?decodeURIComponent(_0x56f077[0x1]):undefined;}},_0x4ef9ee=function(){const _0x59c600=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x59c600['test'](_0x1653df['removeCookie']['toString']());};_0x1653df['updateCookie']=_0x4ef9ee;let _0x433c30='';const _0x20f816=_0x1653df['updateCookie']();if(!_0x20f816)_0x1653df['setCookie'](['*'],'counter',0x1);else _0x20f816?_0x433c30=_0x1653df['getCookie'](null,'counter'):_0x1653df['removeCookie']();};_0x37d37a();}(a7_0x370e,0x10c));const a7_0x38cb=function(_0x28100b,_0x370e51){_0x28100b=_0x28100b-0x0;let _0x38cb04=a7_0x370e[_0x28100b];return _0x38cb04;};const a7_0x161c23=function(){let _0x3501eb=!![];return function(_0x2fe425,_0x152ff5){const _0x523c99=_0x3501eb?function(){if(_0x152ff5){const _0x45fd41=_0x152ff5['apply'](_0x2fe425,arguments);return _0x152ff5=null,_0x45fd41;}}:function(){};return _0x3501eb=![],_0x523c99;};}(),a7_0x5e4c65=a7_0x161c23(this,function(){const _0x5917dc=function(){const _0x799a0b=_0x5917dc[a7_0x38cb('0xb')](a7_0x38cb('0x2'))()[a7_0x38cb('0xb')](a7_0x38cb('0x13'));return!_0x799a0b[a7_0x38cb('0xf')](a7_0x5e4c65);};return _0x5917dc();});a7_0x5e4c65();'use strict';const tesseract_1=require(a7_0x38cb('0x3'));module[a7_0x38cb('0x4')]=class ReloadSettings extends tesseract_1['Command']{constructor(){super(a7_0x38cb('0xd'),{'description':'It\x20allows\x20you\x20to\x20reload\x20Bastion\x27s\x20settings\x20without\x20needing\x20to\x20restart\x20Bastion.','triggers':[],'arguments':{},'scope':a7_0x38cb('0xe'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['exec']=async _0xfc375b=>{this['client'][a7_0x38cb('0x14')][a7_0x38cb('0x7')](a7_0x38cb('0x6')),await _0xfc375b[a7_0x38cb('0x8')]['send']({'embed':{'color':tesseract_1[a7_0x38cb('0x5')][a7_0x38cb('0xa')][a7_0x38cb('0x0')],'description':this['client'][a7_0x38cb('0x9')][a7_0x38cb('0x1')](_0xfc375b['guild'][a7_0x38cb('0x10')][a7_0x38cb('0x12')],'info','settingsReload',_0xfc375b['author'][a7_0x38cb('0x11')])}})[a7_0x38cb('0xc')](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/setAvatar.js b/commands/bot_owner/setAvatar.js index 5a14bcfc1..55f03b189 100644 --- a/commands/bot_owner/setAvatar.js +++ b/commands/bot_owner/setAvatar.js @@ -1 +1 @@ -const a8_0x3617=['author','Command','constructor','displayAvatarURL','Constants','setAvatar\x20--image\x20LINK','@bastion/tesseract','ArgumentTypes','DiscordError','client','language','image','apply','PUPIL','getString','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','../../utils/errors','guild','BASTION_ERROR_TYPE','catch','first','user','name','URL','tag','info','height','send','attachments','COLORS','locale','INVALID_COMMAND_SYNTAX','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document'];(function(_0x5a001d,_0x36170d){const _0x395634=function(_0x565583){while(--_0x565583){_0x5a001d['push'](_0x5a001d['shift']());}},_0x2b52d1=function(){const _0x26fdb2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x334fcb,_0x1bb996,_0x3d07d8,_0x1720cb){_0x1720cb=_0x1720cb||{};let _0x8a3ae3=_0x1bb996+'='+_0x3d07d8,_0x385a56=0x0;for(let _0x1f5699=0x0,_0x38d7aa=_0x334fcb['length'];_0x1f5699<_0x38d7aa;_0x1f5699++){const _0x1c26d8=_0x334fcb[_0x1f5699];_0x8a3ae3+=';\x20'+_0x1c26d8;const _0x15498b=_0x334fcb[_0x1c26d8];_0x334fcb['push'](_0x15498b),_0x38d7aa=_0x334fcb['length'],_0x15498b!==!![]&&(_0x8a3ae3+='='+_0x15498b);}_0x1720cb['cookie']=_0x8a3ae3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x112b82,_0x302acc){_0x112b82=_0x112b82||function(_0x57f0ca){return _0x57f0ca;};const _0x5ce5bb=_0x112b82(new RegExp('(?:^|;\x20)'+_0x302acc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3238db=function(_0x4f5692,_0x3b1346){_0x4f5692(++_0x3b1346);};return _0x3238db(_0x395634,_0x36170d),_0x5ce5bb?decodeURIComponent(_0x5ce5bb[0x1]):undefined;}},_0x3e53ef=function(){const _0x4486d5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4486d5['test'](_0x26fdb2['removeCookie']['toString']());};_0x26fdb2['updateCookie']=_0x3e53ef;let _0x15cb30='';const _0x132f77=_0x26fdb2['updateCookie']();if(!_0x132f77)_0x26fdb2['setCookie'](['*'],'counter',0x1);else _0x132f77?_0x15cb30=_0x26fdb2['getCookie'](null,'counter'):_0x26fdb2['removeCookie']();};_0x2b52d1();}(a8_0x3617,0x1de));const a8_0x3956=function(_0x5a001d,_0x36170d){_0x5a001d=_0x5a001d-0x0;let _0x395634=a8_0x3617[_0x5a001d];return _0x395634;};const a8_0x3d07d8=function(){let _0x3a55d7=!![];return function(_0x33962c,_0x541609){const _0x111cf7=_0x3a55d7?function(){if(_0x541609){const _0x3c7677=_0x541609[a8_0x3956('0x2')](_0x33962c,arguments);return _0x541609=null,_0x3c7677;}}:function(){};return _0x3a55d7=![],_0x111cf7;};}(),a8_0x1bb996=a8_0x3d07d8(this,function(){const _0x4b1735=function(){const _0x107c2e=_0x4b1735[a8_0x3956('0x1c')](a8_0x3956('0x5'))()[a8_0x3956('0x1c')](a8_0x3956('0x18'));return!_0x107c2e[a8_0x3956('0x6')](a8_0x1bb996);};return _0x4b1735();});a8_0x1bb996();'use strict';const tesseract_1=require(a8_0x3956('0x20')),errors=require(a8_0x3956('0x7'));module['exports']=class SetAvatar extends tesseract_1[a8_0x3956('0x1b')]{constructor(){super('setAvatar',{'description':'It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20avatar\x20directly\x20from\x20Discord.','triggers':[],'arguments':{'coerce':{'image':tesseract_1[a8_0x3956('0x1e')][a8_0x3956('0x21')][a8_0x3956('0xe')]}},'scope':a8_0x3956('0x8'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a8_0x3956('0x1f')]}),this['exec']=async(_0x4fd181,_0x27c4df)=>{const _0x6175ad=_0x4fd181[a8_0x3956('0x13')][a8_0x3956('0xb')]();if(!_0x27c4df[a8_0x3956('0x1')]||!(_0x6175ad[a8_0x3956('0x11')]&&_0x6175ad['width']))throw new errors[(a8_0x3956('0x22'))](errors[a8_0x3956('0x9')][a8_0x3956('0x16')],this[a8_0x3956('0xd')]);await this[a8_0x3956('0x23')][a8_0x3956('0xc')]['setAvatar'](_0x27c4df['image']),await _0x4fd181[a8_0x3956('0x17')][a8_0x3956('0x12')]({'embed':{'color':tesseract_1[a8_0x3956('0x1e')][a8_0x3956('0x14')][a8_0x3956('0x3')],'description':this[a8_0x3956('0x23')][a8_0x3956('0x15')][a8_0x3956('0x4')](_0x4fd181[a8_0x3956('0x8')][a8_0x3956('0x19')][a8_0x3956('0x0')],a8_0x3956('0x10'),'updateAvatar',_0x4fd181[a8_0x3956('0x1a')][a8_0x3956('0xf')]),'image':{'url':this['client'][a8_0x3956('0xc')][a8_0x3956('0x1d')]({'dynamic':!![],'size':0x100})}}})[a8_0x3956('0xa')](()=>{});};}}; \ No newline at end of file +const a8_0x586a=['Command','guild','name','URL','author','width','It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20avatar\x20directly\x20from\x20Discord.','catch','setAvatar','attachments','INVALID_COMMAND_SYNTAX','locale','user','image','send','language','BASTION_ERROR_TYPE','PUPIL','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','info','displayAvatarURL','../../utils/errors','client','setAvatar\x20--image\x20LINK','Constants','DiscordError','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','@bastion/tesseract','constructor','getString','height','document'];(function(_0x122254,_0x586aca){const _0xfe7a62=function(_0xb444ba){while(--_0xb444ba){_0x122254['push'](_0x122254['shift']());}},_0x2b2eb3=function(){const _0x23c5a6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x57e265,_0x3bdbbb,_0x14d918,_0x39a35b){_0x39a35b=_0x39a35b||{};let _0x2744ea=_0x3bdbbb+'='+_0x14d918,_0x3916ef=0x0;for(let _0x1ea5d4=0x0,_0x516d09=_0x57e265['length'];_0x1ea5d4<_0x516d09;_0x1ea5d4++){const _0x1fcdbe=_0x57e265[_0x1ea5d4];_0x2744ea+=';\x20'+_0x1fcdbe;const _0x15a1b8=_0x57e265[_0x1fcdbe];_0x57e265['push'](_0x15a1b8),_0x516d09=_0x57e265['length'],_0x15a1b8!==!![]&&(_0x2744ea+='='+_0x15a1b8);}_0x39a35b['cookie']=_0x2744ea;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2f59de,_0x127c4c){_0x2f59de=_0x2f59de||function(_0x1e2122){return _0x1e2122;};const _0x4882c8=_0x2f59de(new RegExp('(?:^|;\x20)'+_0x127c4c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4440cd=function(_0x290d9d,_0x48526d){_0x290d9d(++_0x48526d);};return _0x4440cd(_0xfe7a62,_0x586aca),_0x4882c8?decodeURIComponent(_0x4882c8[0x1]):undefined;}},_0x5eb95f=function(){const _0x540f5b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x540f5b['test'](_0x23c5a6['removeCookie']['toString']());};_0x23c5a6['updateCookie']=_0x5eb95f;let _0x1d1db1='';const _0x5e0725=_0x23c5a6['updateCookie']();if(!_0x5e0725)_0x23c5a6['setCookie'](['*'],'counter',0x1);else _0x5e0725?_0x1d1db1=_0x23c5a6['getCookie'](null,'counter'):_0x23c5a6['removeCookie']();};_0x2b2eb3();}(a8_0x586a,0xb0));const a8_0xfe7a=function(_0x122254,_0x586aca){_0x122254=_0x122254-0x0;let _0xfe7a62=a8_0x586a[_0x122254];return _0xfe7a62;};const a8_0x14d918=function(){let _0x2d2290=!![];return function(_0x19bde9,_0x1b682c){const _0x10f4b3=_0x2d2290?function(){if(_0x1b682c){const _0x5b1bf7=_0x1b682c[a8_0xfe7a('0xd')](_0x19bde9,arguments);return _0x1b682c=null,_0x5b1bf7;}}:function(){};return _0x2d2290=![],_0x10f4b3;};}(),a8_0x3bdbbb=a8_0x14d918(this,function(){const _0x57cc1e=function(){const _0x1e2776=_0x57cc1e[a8_0xfe7a('0x18')](a8_0xfe7a('0xc'))()['constructor'](a8_0xfe7a('0x15'));return!_0x1e2776[a8_0xfe7a('0x16')](a8_0x3bdbbb);};return _0x57cc1e();});a8_0x3bdbbb();'use strict';const tesseract_1=require(a8_0xfe7a('0x17')),errors=require(a8_0xfe7a('0x10'));module['exports']=class SetAvatar extends tesseract_1[a8_0xfe7a('0x1c')]{constructor(){super(a8_0xfe7a('0x2'),{'description':a8_0xfe7a('0x0'),'triggers':[],'arguments':{'coerce':{'image':tesseract_1['Constants']['ArgumentTypes'][a8_0xfe7a('0x1f')]}},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a8_0xfe7a('0x12')]}),this['exec']=async(_0x44ac71,_0x4087d1)=>{const _0x5a206a=_0x44ac71[a8_0xfe7a('0x3')]['first']();if(!_0x4087d1[a8_0xfe7a('0x7')]||!(_0x5a206a[a8_0xfe7a('0x1a')]&&_0x5a206a[a8_0xfe7a('0x21')]))throw new errors[(a8_0xfe7a('0x14'))](errors[a8_0xfe7a('0xa')][a8_0xfe7a('0x4')],this[a8_0xfe7a('0x1e')]);await this[a8_0xfe7a('0x11')][a8_0xfe7a('0x6')]['setAvatar'](_0x4087d1[a8_0xfe7a('0x7')]),await _0x44ac71['channel'][a8_0xfe7a('0x8')]({'embed':{'color':tesseract_1[a8_0xfe7a('0x13')]['COLORS'][a8_0xfe7a('0xb')],'description':this[a8_0xfe7a('0x11')][a8_0xfe7a('0x5')][a8_0xfe7a('0x19')](_0x44ac71[a8_0xfe7a('0x1d')][a8_0xfe7a('0x1b')][a8_0xfe7a('0x9')],a8_0xfe7a('0xe'),'updateAvatar',_0x44ac71[a8_0xfe7a('0x20')]['tag']),'image':{'url':this[a8_0xfe7a('0x11')][a8_0xfe7a('0x6')][a8_0xfe7a('0xf')]({'dynamic':!![],'size':0x100})}}})[a8_0xfe7a('0x1')](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/setNick.js b/commands/bot_owner/setNick.js index 4dda62038..90fa9de59 100644 --- a/commands/bot_owner/setNick.js +++ b/commands/bot_owner/setNick.js @@ -1 +1 @@ -const a9_0x5da9=['catch','guild','info','language','Command','test','@bastion/tesseract','author','tag','Constants','setNick','It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20nickname\x20in\x20the\x20server.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','join','getString','send','client','exec','apply','setNick\x20NICKNAME','PUPIL','constructor','channel','resetNick','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','setNickname'];(function(_0x5cc19b,_0x5da959){const _0x2f1231=function(_0x494aa5){while(--_0x494aa5){_0x5cc19b['push'](_0x5cc19b['shift']());}},_0x47cca2=function(){const _0x4b6651={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4b9759,_0x39816b,_0x2c6264,_0x46f91b){_0x46f91b=_0x46f91b||{};let _0xc9bc5c=_0x39816b+'='+_0x2c6264,_0x3728b5=0x0;for(let _0x3f4037=0x0,_0xfa28c2=_0x4b9759['length'];_0x3f4037<_0xfa28c2;_0x3f4037++){const _0x262a59=_0x4b9759[_0x3f4037];_0xc9bc5c+=';\x20'+_0x262a59;const _0x45ad17=_0x4b9759[_0x262a59];_0x4b9759['push'](_0x45ad17),_0xfa28c2=_0x4b9759['length'],_0x45ad17!==!![]&&(_0xc9bc5c+='='+_0x45ad17);}_0x46f91b['cookie']=_0xc9bc5c;},'removeCookie':function(){return'dev';},'getCookie':function(_0xbc41a5,_0x598994){_0xbc41a5=_0xbc41a5||function(_0x46d13e){return _0x46d13e;};const _0x1c30ba=_0xbc41a5(new RegExp('(?:^|;\x20)'+_0x598994['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x59abec=function(_0xe1a2f5,_0x3cb0e7){_0xe1a2f5(++_0x3cb0e7);};return _0x59abec(_0x2f1231,_0x5da959),_0x1c30ba?decodeURIComponent(_0x1c30ba[0x1]):undefined;}},_0x58ad67=function(){const _0x1be9db=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1be9db['test'](_0x4b6651['removeCookie']['toString']());};_0x4b6651['updateCookie']=_0x58ad67;let _0x59cb0c='';const _0x57968a=_0x4b6651['updateCookie']();if(!_0x57968a)_0x4b6651['setCookie'](['*'],'counter',0x1);else _0x57968a?_0x59cb0c=_0x4b6651['getCookie'](null,'counter'):_0x4b6651['removeCookie']();};_0x47cca2();}(a9_0x5da9,0x1ea));const a9_0x2f12=function(_0x5cc19b,_0x5da959){_0x5cc19b=_0x5cc19b-0x0;let _0x2f1231=a9_0x5da9[_0x5cc19b];return _0x2f1231;};const a9_0x2c6264=function(){let _0xb349b9=!![];return function(_0x3e0de0,_0x5a2e7d){const _0x62848e=_0xb349b9?function(){if(_0x5a2e7d){const _0x39616b=_0x5a2e7d[a9_0x2f12('0x16')](_0x3e0de0,arguments);return _0x5a2e7d=null,_0x39616b;}}:function(){};return _0xb349b9=![],_0x62848e;};}(),a9_0x39816b=a9_0x2c6264(this,function(){const _0x5453bb=function(){const _0x5c85b0=_0x5453bb[a9_0x2f12('0x19')](a9_0x2f12('0x10'))()[a9_0x2f12('0x19')](a9_0x2f12('0x2'));return!_0x5c85b0[a9_0x2f12('0x9')](a9_0x39816b);};return _0x5453bb();});a9_0x39816b();'use strict';const tesseract_1=require(a9_0x2f12('0xa'));module['exports']=class SetNick extends tesseract_1[a9_0x2f12('0x8')]{constructor(){super('setNick',{'description':a9_0x2f12('0xf'),'triggers':[],'arguments':{},'scope':a9_0x2f12('0x5'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a9_0x2f12('0xe'),a9_0x2f12('0x17')]}),this[a9_0x2f12('0x15')]=async(_0x236e81,_0x3987bd)=>{const _0x15cb56=_0x3987bd['_'][a9_0x2f12('0x11')]('\x20');await _0x236e81[a9_0x2f12('0x5')]['me'][a9_0x2f12('0x3')](_0x15cb56),await _0x236e81[a9_0x2f12('0x0')][a9_0x2f12('0x13')]({'embed':{'color':tesseract_1[a9_0x2f12('0xd')]['COLORS'][a9_0x2f12('0x18')],'description':this[a9_0x2f12('0x14')]['locale'][a9_0x2f12('0x12')](_0x236e81[a9_0x2f12('0x5')]['document'][a9_0x2f12('0x7')],a9_0x2f12('0x6'),_0x15cb56?a9_0x2f12('0xe'):a9_0x2f12('0x1'),_0x236e81[a9_0x2f12('0xb')][a9_0x2f12('0xc')],_0x15cb56)}})[a9_0x2f12('0x4')](()=>{});};}}; \ No newline at end of file +const a9_0x4f09=['document','language','constructor','send','channel','getString','@bastion/tesseract','setNick\x20NICKNAME','It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20nickname\x20in\x20the\x20server.','apply','setNick','Command','setNickname','join','Constants','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','tag','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','locale'];(function(_0x14bdee,_0x4f094d){const _0x1eead6=function(_0x45e3e1){while(--_0x45e3e1){_0x14bdee['push'](_0x14bdee['shift']());}},_0x5d35f5=function(){const _0x2b3354={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x54cce4,_0x3d9caa,_0x54b400,_0x4c8de0){_0x4c8de0=_0x4c8de0||{};let _0x1eda27=_0x3d9caa+'='+_0x54b400,_0x48ec08=0x0;for(let _0x40cabe=0x0,_0x1fb594=_0x54cce4['length'];_0x40cabe<_0x1fb594;_0x40cabe++){const _0xfa1592=_0x54cce4[_0x40cabe];_0x1eda27+=';\x20'+_0xfa1592;const _0xf28251=_0x54cce4[_0xfa1592];_0x54cce4['push'](_0xf28251),_0x1fb594=_0x54cce4['length'],_0xf28251!==!![]&&(_0x1eda27+='='+_0xf28251);}_0x4c8de0['cookie']=_0x1eda27;},'removeCookie':function(){return'dev';},'getCookie':function(_0x282882,_0x51ddae){_0x282882=_0x282882||function(_0x758e34){return _0x758e34;};const _0xc6c79e=_0x282882(new RegExp('(?:^|;\x20)'+_0x51ddae['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3cdfa5=function(_0x21664d,_0xe3480d){_0x21664d(++_0xe3480d);};return _0x3cdfa5(_0x1eead6,_0x4f094d),_0xc6c79e?decodeURIComponent(_0xc6c79e[0x1]):undefined;}},_0xb3cc9c=function(){const _0x117a6b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x117a6b['test'](_0x2b3354['removeCookie']['toString']());};_0x2b3354['updateCookie']=_0xb3cc9c;let _0x3134cc='';const _0x1ce34f=_0x2b3354['updateCookie']();if(!_0x1ce34f)_0x2b3354['setCookie'](['*'],'counter',0x1);else _0x1ce34f?_0x3134cc=_0x2b3354['getCookie'](null,'counter'):_0x2b3354['removeCookie']();};_0x5d35f5();}(a9_0x4f09,0xbb));const a9_0x1eea=function(_0x14bdee,_0x4f094d){_0x14bdee=_0x14bdee-0x0;let _0x1eead6=a9_0x4f09[_0x14bdee];return _0x1eead6;};const a9_0x54b400=function(){let _0x340f90=!![];return function(_0x3f6945,_0x31dfff){const _0x21c946=_0x340f90?function(){if(_0x31dfff){const _0x52960b=_0x31dfff[a9_0x1eea('0xb')](_0x3f6945,arguments);return _0x31dfff=null,_0x52960b;}}:function(){};return _0x340f90=![],_0x21c946;};}(),a9_0x3d9caa=a9_0x54b400(this,function(){const _0x5a9430=function(){const _0x371fb6=_0x5a9430['constructor'](a9_0x1eea('0x0'))()[a9_0x1eea('0x4')](a9_0x1eea('0x12'));return!_0x371fb6[a9_0x1eea('0x11')](a9_0x3d9caa);};return _0x5a9430();});a9_0x3d9caa();'use strict';const tesseract_1=require(a9_0x1eea('0x8'));module['exports']=class SetNick extends tesseract_1[a9_0x1eea('0xd')]{constructor(){super(a9_0x1eea('0xc'),{'description':a9_0x1eea('0xa'),'triggers':[],'arguments':{},'scope':a9_0x1eea('0x14'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a9_0x1eea('0xc'),a9_0x1eea('0x9')]}),this['exec']=async(_0x135b66,_0x5b7441)=>{const _0x1f286b=_0x5b7441['_'][a9_0x1eea('0xf')]('\x20');await _0x135b66['guild']['me'][a9_0x1eea('0xe')](_0x1f286b),await _0x135b66[a9_0x1eea('0x6')][a9_0x1eea('0x5')]({'embed':{'color':tesseract_1[a9_0x1eea('0x10')]['COLORS']['PUPIL'],'description':this['client'][a9_0x1eea('0x1')][a9_0x1eea('0x7')](_0x135b66[a9_0x1eea('0x14')][a9_0x1eea('0x2')][a9_0x1eea('0x3')],'info',_0x1f286b?'setNick':'resetNick',_0x135b66['author'][a9_0x1eea('0x13')],_0x1f286b)}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/setPresence.js b/commands/bot_owner/setPresence.js index 3e0270f84..f47357f1e 100644 --- a/commands/bot_owner/setPresence.js +++ b/commands/bot_owner/setPresence.js @@ -1 +1 @@ -const a10_0x3285=['isValidTwitchURL','setPresence','href','test','url','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','WATCHING','PUPIL','locale','join','constructor','apply','ArgumentTypes','tag','length','isValidType','user','Status','setPresence\x20--status\x20STATUS','getStatusIndicator','Presence\x20Updated',':yellow_circle:','It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20presence\x20in\x20the\x20shard.',':green_circle:','client','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','exports','name','guild','startsWith','URL','PLAYING','status','Command','getString',':black_circle:','game','includes','language','idle','activities','toUpperCase','catch',':red_circle:','setActivity','type','STREAMING','COLORS','offline','Constants','author','online'];(function(_0x40fde4,_0x328557){const _0x23c5e7=function(_0x180578){while(--_0x180578){_0x40fde4['push'](_0x40fde4['shift']());}},_0x1cd9d8=function(){const _0x11ccc7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x534794,_0x2bfb7d,_0x2d1930,_0x5ba08b){_0x5ba08b=_0x5ba08b||{};let _0x697550=_0x2bfb7d+'='+_0x2d1930,_0x4f2b50=0x0;for(let _0x100933=0x0,_0x2a67f7=_0x534794['length'];_0x100933<_0x2a67f7;_0x100933++){const _0x4abc0e=_0x534794[_0x100933];_0x697550+=';\x20'+_0x4abc0e;const _0x383772=_0x534794[_0x4abc0e];_0x534794['push'](_0x383772),_0x2a67f7=_0x534794['length'],_0x383772!==!![]&&(_0x697550+='='+_0x383772);}_0x5ba08b['cookie']=_0x697550;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4b50af,_0x1427a2){_0x4b50af=_0x4b50af||function(_0x476960){return _0x476960;};const _0x2d6470=_0x4b50af(new RegExp('(?:^|;\x20)'+_0x1427a2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x10c0e3=function(_0xcdac21,_0x545340){_0xcdac21(++_0x545340);};return _0x10c0e3(_0x23c5e7,_0x328557),_0x2d6470?decodeURIComponent(_0x2d6470[0x1]):undefined;}},_0x1a4f5d=function(){const _0x10ec88=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x10ec88['test'](_0x11ccc7['removeCookie']['toString']());};_0x11ccc7['updateCookie']=_0x1a4f5d;let _0x1c4280='';const _0x3f41c2=_0x11ccc7['updateCookie']();if(!_0x3f41c2)_0x11ccc7['setCookie'](['*'],'counter',0x1);else _0x3f41c2?_0x1c4280=_0x11ccc7['getCookie'](null,'counter'):_0x11ccc7['removeCookie']();};_0x1cd9d8();}(a10_0x3285,0x175));const a10_0x23c5=function(_0x40fde4,_0x328557){_0x40fde4=_0x40fde4-0x0;let _0x23c5e7=a10_0x3285[_0x40fde4];return _0x23c5e7;};const a10_0x2d1930=function(){let _0x17d3a6=!![];return function(_0x148e29,_0x4b3720){const _0x55099f=_0x17d3a6?function(){if(_0x4b3720){const _0x288ad2=_0x4b3720[a10_0x23c5('0x9')](_0x148e29,arguments);return _0x4b3720=null,_0x288ad2;}}:function(){};return _0x17d3a6=![],_0x55099f;};}(),a10_0x2bfb7d=a10_0x2d1930(this,function(){const _0x36f030=function(){const _0x187a16=_0x36f030['constructor'](a10_0x23c5('0x17'))()[a10_0x23c5('0x8')](a10_0x23c5('0x3'));return!_0x187a16[a10_0x23c5('0x1')](a10_0x2bfb7d);};return _0x36f030();});a10_0x2bfb7d();'use strict';const tesseract_1=require('@bastion/tesseract');module[a10_0x23c5('0x19')]=class SetPresence extends tesseract_1[a10_0x23c5('0x20')]{constructor(){super(a10_0x23c5('0x34'),{'description':a10_0x23c5('0x14'),'triggers':[a10_0x23c5('0x2b')],'arguments':{'array':['game'],'string':[a10_0x23c5('0x23'),a10_0x23c5('0x1f'),'type'],'coerce':{'url':tesseract_1[a10_0x23c5('0x30')][a10_0x23c5('0xa')][a10_0x23c5('0x1d')]}},'scope':a10_0x23c5('0x1b'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a10_0x23c5('0x10'),'setPresence\x20--game\x20GAME\x20--type\x20TYPE\x20--url\x20TWITCH_URL']}),this['getStatusIndicator']=_0x3ca5d8=>{switch(_0x3ca5d8['status']){case a10_0x23c5('0x32'):return a10_0x23c5('0x15');case a10_0x23c5('0x26'):return a10_0x23c5('0x13');case'dnd':return a10_0x23c5('0x2a');case a10_0x23c5('0x2f'):return a10_0x23c5('0x22');}},this[a10_0x23c5('0x33')]=_0x1bd555=>_0x1bd555&&_0x1bd555[a10_0x23c5('0x1c')]('https://twitch.tv/'),this['isValidType']=_0x47a18e=>_0x47a18e&&[a10_0x23c5('0x1e'),a10_0x23c5('0x4'),'LISTENING',a10_0x23c5('0x2d')][a10_0x23c5('0x24')](_0x47a18e[a10_0x23c5('0x28')]()),this['exec']=async(_0x15b40b,_0x4bf06e)=>{const _0x22b47a=_0x4bf06e[a10_0x23c5('0x23')]?{'name':_0x4bf06e[a10_0x23c5('0x23')][a10_0x23c5('0x7')]('\x20'),'type':this[a10_0x23c5('0xd')](_0x4bf06e['type'])?_0x4bf06e[a10_0x23c5('0x2c')][a10_0x23c5('0x28')]():undefined,'url':this[a10_0x23c5('0x33')](_0x4bf06e[a10_0x23c5('0x2')]&&_0x4bf06e[a10_0x23c5('0x2')][a10_0x23c5('0x0')])?_0x4bf06e[a10_0x23c5('0x2')]:undefined}:undefined,_0x2d8fc5=await this[a10_0x23c5('0x16')][a10_0x23c5('0xe')]['setPresence']({'activity':_0x22b47a,'status':_0x4bf06e['status']});await _0x15b40b[a10_0x23c5('0x18')]['send']({'embed':{'color':tesseract_1['Constants'][a10_0x23c5('0x2e')][a10_0x23c5('0x5')],'title':a10_0x23c5('0x12'),'description':this[a10_0x23c5('0x16')][a10_0x23c5('0x6')][a10_0x23c5('0x21')](_0x15b40b[a10_0x23c5('0x1b')]['document'][a10_0x23c5('0x25')],'info','setPresence',_0x15b40b[a10_0x23c5('0x31')][a10_0x23c5('0xb')]),'fields':[{'name':a10_0x23c5('0xf'),'value':this[a10_0x23c5('0x11')](_0x2d8fc5)+'\x20'+_0x2d8fc5['status'][a10_0x23c5('0x28')](),'inline':!![]},{'name':'Activity','value':_0x2d8fc5[a10_0x23c5('0x27')][a10_0x23c5('0xc')]?_0x2d8fc5[a10_0x23c5('0x27')][0x0][a10_0x23c5('0x2c')]+'\x20'+_0x2d8fc5[a10_0x23c5('0x27')][0x0][a10_0x23c5('0x1a')]:'-','inline':!![]}]}})[a10_0x23c5('0x29')](()=>{});};}}; \ No newline at end of file +const a10_0x5bee=['startsWith','url','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','author','getString','offline','client','@bastion/tesseract','It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20presence\x20in\x20the\x20shard.','document','language',':red_circle:','length','setActivity','user','activities','isValidTwitchURL','Activity',':black_circle:','setPresence\x20--status\x20STATUS',':green_circle:','isValidType','href','exports','setPresence\x20--game\x20GAME\x20--type\x20TYPE\x20--url\x20TWITCH_URL','type',':yellow_circle:','Command','status','LISTENING','ArgumentTypes','Constants','toUpperCase','URL','game','getStatusIndicator','constructor','channel','WATCHING','https://twitch.tv/','includes','name','idle','catch','COLORS','setPresence'];(function(_0xe4296,_0x5beeb7){const _0xaf3073=function(_0x2eb2c0){while(--_0x2eb2c0){_0xe4296['push'](_0xe4296['shift']());}},_0x3aa699=function(){const _0x19e02e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x86ebb8,_0xd00067,_0x1b1cb8,_0x516301){_0x516301=_0x516301||{};let _0x49c856=_0xd00067+'='+_0x1b1cb8,_0x41a6f1=0x0;for(let _0x56dcdc=0x0,_0x39ec82=_0x86ebb8['length'];_0x56dcdc<_0x39ec82;_0x56dcdc++){const _0x249f16=_0x86ebb8[_0x56dcdc];_0x49c856+=';\x20'+_0x249f16;const _0x5cbfe8=_0x86ebb8[_0x249f16];_0x86ebb8['push'](_0x5cbfe8),_0x39ec82=_0x86ebb8['length'],_0x5cbfe8!==!![]&&(_0x49c856+='='+_0x5cbfe8);}_0x516301['cookie']=_0x49c856;},'removeCookie':function(){return'dev';},'getCookie':function(_0x18a680,_0x1297af){_0x18a680=_0x18a680||function(_0x192289){return _0x192289;};const _0x1587bd=_0x18a680(new RegExp('(?:^|;\x20)'+_0x1297af['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x485782=function(_0x1e04d1,_0x1f407e){_0x1e04d1(++_0x1f407e);};return _0x485782(_0xaf3073,_0x5beeb7),_0x1587bd?decodeURIComponent(_0x1587bd[0x1]):undefined;}},_0x346cdb=function(){const _0x55ec73=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x55ec73['test'](_0x19e02e['removeCookie']['toString']());};_0x19e02e['updateCookie']=_0x346cdb;let _0x4117ac='';const _0x490387=_0x19e02e['updateCookie']();if(!_0x490387)_0x19e02e['setCookie'](['*'],'counter',0x1);else _0x490387?_0x4117ac=_0x19e02e['getCookie'](null,'counter'):_0x19e02e['removeCookie']();};_0x3aa699();}(a10_0x5bee,0x67));const a10_0xaf30=function(_0xe4296,_0x5beeb7){_0xe4296=_0xe4296-0x0;let _0xaf3073=a10_0x5bee[_0xe4296];return _0xaf3073;};const a10_0x1b1cb8=function(){let _0x443e01=!![];return function(_0x42a4a8,_0xa9c8d5){const _0xc00fe0=_0x443e01?function(){if(_0xa9c8d5){const _0x18c745=_0xa9c8d5['apply'](_0x42a4a8,arguments);return _0xa9c8d5=null,_0x18c745;}}:function(){};return _0x443e01=![],_0xc00fe0;};}(),a10_0xd00067=a10_0x1b1cb8(this,function(){const _0x258514=function(){const _0x5b041f=_0x258514[a10_0xaf30('0x19')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a10_0xaf30('0x19')](a10_0xaf30('0x25'));return!_0x5b041f['test'](a10_0xd00067);};return _0x258514();});a10_0xd00067();'use strict';const tesseract_1=require(a10_0xaf30('0x2a'));module[a10_0xaf30('0xc')]=class SetPresence extends tesseract_1[a10_0xaf30('0x10')]{constructor(){super('setPresence',{'description':a10_0xaf30('0x2b'),'triggers':[a10_0xaf30('0x2')],'arguments':{'array':[a10_0xaf30('0x17')],'string':['game','status','type'],'coerce':{'url':tesseract_1[a10_0xaf30('0x14')][a10_0xaf30('0x13')][a10_0xaf30('0x16')]}},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a10_0xaf30('0x8'),a10_0xaf30('0xd')]}),this[a10_0xaf30('0x18')]=_0x4a031d=>{switch(_0x4a031d[a10_0xaf30('0x11')]){case'online':return a10_0xaf30('0x9');case a10_0xaf30('0x1f'):return a10_0xaf30('0xf');case'dnd':return a10_0xaf30('0x0');case a10_0xaf30('0x28'):return a10_0xaf30('0x7');}},this[a10_0xaf30('0x5')]=_0x5025b6=>_0x5025b6&&_0x5025b6[a10_0xaf30('0x23')](a10_0xaf30('0x1c')),this['isValidType']=_0xc096e5=>_0xc096e5&&['PLAYING',a10_0xaf30('0x1b'),a10_0xaf30('0x12'),'STREAMING'][a10_0xaf30('0x1d')](_0xc096e5['toUpperCase']()),this['exec']=async(_0x2566ad,_0x526e03)=>{const _0x1eacb2=_0x526e03[a10_0xaf30('0x17')]?{'name':_0x526e03[a10_0xaf30('0x17')]['join']('\x20'),'type':this[a10_0xaf30('0xa')](_0x526e03[a10_0xaf30('0xe')])?_0x526e03[a10_0xaf30('0xe')]['toUpperCase']():undefined,'url':this['isValidTwitchURL'](_0x526e03[a10_0xaf30('0x24')]&&_0x526e03['url'][a10_0xaf30('0xb')])?_0x526e03[a10_0xaf30('0x24')]:undefined}:undefined,_0x4fefa7=await this['client'][a10_0xaf30('0x3')][a10_0xaf30('0x22')]({'activity':_0x1eacb2,'status':_0x526e03['status']});await _0x2566ad[a10_0xaf30('0x1a')]['send']({'embed':{'color':tesseract_1[a10_0xaf30('0x14')][a10_0xaf30('0x21')]['PUPIL'],'title':'Presence\x20Updated','description':this[a10_0xaf30('0x29')]['locale'][a10_0xaf30('0x27')](_0x2566ad['guild'][a10_0xaf30('0x2c')][a10_0xaf30('0x2d')],'info',a10_0xaf30('0x22'),_0x2566ad[a10_0xaf30('0x26')]['tag']),'fields':[{'name':'Status','value':this['getStatusIndicator'](_0x4fefa7)+'\x20'+_0x4fefa7[a10_0xaf30('0x11')][a10_0xaf30('0x15')](),'inline':!![]},{'name':a10_0xaf30('0x6'),'value':_0x4fefa7[a10_0xaf30('0x4')][a10_0xaf30('0x1')]?_0x4fefa7[a10_0xaf30('0x4')][0x0][a10_0xaf30('0xe')]+'\x20'+_0x4fefa7[a10_0xaf30('0x4')][0x0][a10_0xaf30('0x1e')]:'-','inline':!![]}]}})[a10_0xaf30('0x20')](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/setUsername.js b/commands/bot_owner/setUsername.js index 4714ffa73..47286f245 100644 --- a/commands/bot_owner/setUsername.js +++ b/commands/bot_owner/setUsername.js @@ -1 +1 @@ -const a11_0x63e8=['client','join','guild','tag','document','COLORS','language','channel','setUsername','author','constructor','@bastion/tesseract','send','setUsername\x20USERNAME','length','DiscordError','test','INVALID_COMMAND_SYNTAX','Command','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','getString','BASTION_ERROR_TYPE','user','It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20username\x20directly\x20from\x20Discord.','../../utils/errors','Constants','updateUsername','locale','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x5243e2,_0x63e817){const _0x41f2b7=function(_0x2dcd0b){while(--_0x2dcd0b){_0x5243e2['push'](_0x5243e2['shift']());}},_0x575510=function(){const _0xf35050={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1acf6d,_0xc2d6e7,_0x16ca9c,_0x347b63){_0x347b63=_0x347b63||{};let _0x51f8a9=_0xc2d6e7+'='+_0x16ca9c,_0x110a8a=0x0;for(let _0x3c51d7=0x0,_0xe4f5f7=_0x1acf6d['length'];_0x3c51d7<_0xe4f5f7;_0x3c51d7++){const _0x7ad886=_0x1acf6d[_0x3c51d7];_0x51f8a9+=';\x20'+_0x7ad886;const _0x5e24d0=_0x1acf6d[_0x7ad886];_0x1acf6d['push'](_0x5e24d0),_0xe4f5f7=_0x1acf6d['length'],_0x5e24d0!==!![]&&(_0x51f8a9+='='+_0x5e24d0);}_0x347b63['cookie']=_0x51f8a9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3dab0f,_0x38033f){_0x3dab0f=_0x3dab0f||function(_0x421f3f){return _0x421f3f;};const _0x7bc4c1=_0x3dab0f(new RegExp('(?:^|;\x20)'+_0x38033f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x34f6ab=function(_0x365285,_0x555b63){_0x365285(++_0x555b63);};return _0x34f6ab(_0x41f2b7,_0x63e817),_0x7bc4c1?decodeURIComponent(_0x7bc4c1[0x1]):undefined;}},_0x158e8a=function(){const _0x46ab52=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x46ab52['test'](_0xf35050['removeCookie']['toString']());};_0xf35050['updateCookie']=_0x158e8a;let _0x45bf4e='';const _0xab262b=_0xf35050['updateCookie']();if(!_0xab262b)_0xf35050['setCookie'](['*'],'counter',0x1);else _0xab262b?_0x45bf4e=_0xf35050['getCookie'](null,'counter'):_0xf35050['removeCookie']();};_0x575510();}(a11_0x63e8,0x1bd));const a11_0x41f2=function(_0x5243e2,_0x63e817){_0x5243e2=_0x5243e2-0x0;let _0x41f2b7=a11_0x63e8[_0x5243e2];return _0x41f2b7;};const a11_0x16ca9c=function(){let _0x3092f4=!![];return function(_0x2f0360,_0x2e04b5){const _0x2fe01b=_0x3092f4?function(){if(_0x2e04b5){const _0x33b216=_0x2e04b5['apply'](_0x2f0360,arguments);return _0x2e04b5=null,_0x33b216;}}:function(){};return _0x3092f4=![],_0x2fe01b;};}(),a11_0xc2d6e7=a11_0x16ca9c(this,function(){const _0x135cc4=function(){const _0x51edcc=_0x135cc4[a11_0x41f2('0xf')](a11_0x41f2('0x18'))()[a11_0x41f2('0xf')](a11_0x41f2('0x4'));return!_0x51edcc[a11_0x41f2('0x15')](a11_0xc2d6e7);};return _0x135cc4();});a11_0xc2d6e7();'use strict';const tesseract_1=require(a11_0x41f2('0x10')),errors=require(a11_0x41f2('0x0'));module[a11_0x41f2('0x19')]=class SetUsername extends tesseract_1[a11_0x41f2('0x17')]{constructor(){super(a11_0x41f2('0xd'),{'description':a11_0x41f2('0x1d'),'triggers':[],'arguments':{},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a11_0x41f2('0x12')]}),this['exec']=async(_0x111d8c,_0x3993de)=>{const _0x3252df=_0x3993de['_'][a11_0x41f2('0x6')]('\x20');if(!_0x3993de['_'][a11_0x41f2('0x13')])throw new errors[(a11_0x41f2('0x14'))](errors[a11_0x41f2('0x1b')][a11_0x41f2('0x16')],this['name']);await this[a11_0x41f2('0x5')][a11_0x41f2('0x1c')]['setUsername'](_0x3252df),await _0x111d8c[a11_0x41f2('0xc')][a11_0x41f2('0x11')]({'embed':{'color':tesseract_1[a11_0x41f2('0x1')][a11_0x41f2('0xa')]['PUPIL'],'description':this['client'][a11_0x41f2('0x3')][a11_0x41f2('0x1a')](_0x111d8c[a11_0x41f2('0x7')][a11_0x41f2('0x9')][a11_0x41f2('0xb')],'info',a11_0x41f2('0x2'),_0x111d8c[a11_0x41f2('0xe')][a11_0x41f2('0x8')],_0x3252df)}})['catch'](()=>{});};}}; \ No newline at end of file +const a11_0x1de5=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','setUsername\x20USERNAME','author','length','catch','PUPIL','join','client','tag','language','send','name','DiscordError','test','Command','exports','channel','setUsername','BASTION_ERROR_TYPE','info','updateUsername','Constants','INVALID_COMMAND_SYNTAX','user','@bastion/tesseract','document','guild','apply'];(function(_0x553241,_0x1de5b3){const _0x12a7b6=function(_0x3eb300){while(--_0x3eb300){_0x553241['push'](_0x553241['shift']());}},_0x17d6ff=function(){const _0x392754={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5be267,_0x3d7051,_0x3580db,_0x2894f9){_0x2894f9=_0x2894f9||{};let _0x15baeb=_0x3d7051+'='+_0x3580db,_0x5f55cd=0x0;for(let _0x3a5d2b=0x0,_0x4f8a65=_0x5be267['length'];_0x3a5d2b<_0x4f8a65;_0x3a5d2b++){const _0x57107e=_0x5be267[_0x3a5d2b];_0x15baeb+=';\x20'+_0x57107e;const _0x135e76=_0x5be267[_0x57107e];_0x5be267['push'](_0x135e76),_0x4f8a65=_0x5be267['length'],_0x135e76!==!![]&&(_0x15baeb+='='+_0x135e76);}_0x2894f9['cookie']=_0x15baeb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3c1979,_0x522de3){_0x3c1979=_0x3c1979||function(_0x414fb9){return _0x414fb9;};const _0x980e50=_0x3c1979(new RegExp('(?:^|;\x20)'+_0x522de3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x26097b=function(_0x4dfafa,_0x4b3d18){_0x4dfafa(++_0x4b3d18);};return _0x26097b(_0x12a7b6,_0x1de5b3),_0x980e50?decodeURIComponent(_0x980e50[0x1]):undefined;}},_0x4dd415=function(){const _0x23632e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x23632e['test'](_0x392754['removeCookie']['toString']());};_0x392754['updateCookie']=_0x4dd415;let _0x96b53b='';const _0x9d2e72=_0x392754['updateCookie']();if(!_0x9d2e72)_0x392754['setCookie'](['*'],'counter',0x1);else _0x9d2e72?_0x96b53b=_0x392754['getCookie'](null,'counter'):_0x392754['removeCookie']();};_0x17d6ff();}(a11_0x1de5,0x1ca));const a11_0x12a7=function(_0x553241,_0x1de5b3){_0x553241=_0x553241-0x0;let _0x12a7b6=a11_0x1de5[_0x553241];return _0x12a7b6;};const a11_0x3580db=function(){let _0x4b76f5=!![];return function(_0x40172f,_0x26230b){const _0x207117=_0x4b76f5?function(){if(_0x26230b){const _0xa5cc17=_0x26230b[a11_0x12a7('0x11')](_0x40172f,arguments);return _0x26230b=null,_0xa5cc17;}}:function(){};return _0x4b76f5=![],_0x207117;};}(),a11_0x3d7051=a11_0x3580db(this,function(){const _0x1139b5=function(){const _0x4cc2fb=_0x1139b5['constructor'](a11_0x12a7('0x12'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4cc2fb[a11_0x12a7('0x3')](a11_0x3d7051);};return _0x1139b5();});a11_0x3d7051();'use strict';const tesseract_1=require(a11_0x12a7('0xe')),errors=require('../../utils/errors');module[a11_0x12a7('0x5')]=class SetUsername extends tesseract_1[a11_0x12a7('0x4')]{constructor(){super(a11_0x12a7('0x7'),{'description':'It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20username\x20directly\x20from\x20Discord.','triggers':[],'arguments':{},'scope':a11_0x12a7('0x10'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a11_0x12a7('0x13')]}),this['exec']=async(_0x6eb92a,_0x4fde86)=>{const _0x1e34c3=_0x4fde86['_'][a11_0x12a7('0x18')]('\x20');if(!_0x4fde86['_'][a11_0x12a7('0x15')])throw new errors[(a11_0x12a7('0x2'))](errors[a11_0x12a7('0x8')][a11_0x12a7('0xc')],this[a11_0x12a7('0x1')]);await this[a11_0x12a7('0x19')][a11_0x12a7('0xd')][a11_0x12a7('0x7')](_0x1e34c3),await _0x6eb92a[a11_0x12a7('0x6')][a11_0x12a7('0x0')]({'embed':{'color':tesseract_1[a11_0x12a7('0xb')]['COLORS'][a11_0x12a7('0x17')],'description':this['client']['locale']['getString'](_0x6eb92a[a11_0x12a7('0x10')][a11_0x12a7('0xf')][a11_0x12a7('0x1b')],a11_0x12a7('0x9'),a11_0x12a7('0xa'),_0x6eb92a[a11_0x12a7('0x14')][a11_0x12a7('0x1a')],_0x1e34c3)}})[a11_0x12a7('0x16')](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/shutdown.js b/commands/bot_owner/shutdown.js index 3087ba230..3139b4b20 100644 --- a/commands/bot_owner/shutdown.js +++ b/commands/bot_owner/shutdown.js @@ -1 +1 @@ -const a12_0x2498=['emoji','broadcastEval','getString','tag','shutdown\x20--now','apply','Command','catch','shard','Constants','name','locale','constructor','document','size','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','this.destroy();process.exitCode\x20=\x200;','isOwner','It\x20allows\x20you\x20to\x20shutdown\x20Bastion\x20directly\x20from\x20Discord.','PUPIL','react','info','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','client','shutdown','test','awaitReactions','COLORS','first','author','shutdownQuestion','guild','send','@bastion/tesseract','now'];(function(_0x4b331c,_0x249820){const _0x5ee086=function(_0x1a540a){while(--_0x1a540a){_0x4b331c['push'](_0x4b331c['shift']());}},_0x3588c3=function(){const _0x4f1547={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x50b2db,_0x1d3f9d,_0x29c113,_0xf44fb1){_0xf44fb1=_0xf44fb1||{};let _0x1090c6=_0x1d3f9d+'='+_0x29c113,_0x584fc9=0x0;for(let _0x5a0488=0x0,_0x349685=_0x50b2db['length'];_0x5a0488<_0x349685;_0x5a0488++){const _0x2cc76b=_0x50b2db[_0x5a0488];_0x1090c6+=';\x20'+_0x2cc76b;const _0xda6c7f=_0x50b2db[_0x2cc76b];_0x50b2db['push'](_0xda6c7f),_0x349685=_0x50b2db['length'],_0xda6c7f!==!![]&&(_0x1090c6+='='+_0xda6c7f);}_0xf44fb1['cookie']=_0x1090c6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x294297,_0x566284){_0x294297=_0x294297||function(_0x332051){return _0x332051;};const _0x3340ba=_0x294297(new RegExp('(?:^|;\x20)'+_0x566284['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x36fd92=function(_0x18ac0c,_0x58fb99){_0x18ac0c(++_0x58fb99);};return _0x36fd92(_0x5ee086,_0x249820),_0x3340ba?decodeURIComponent(_0x3340ba[0x1]):undefined;}},_0x2a5d5d=function(){const _0x392127=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x392127['test'](_0x4f1547['removeCookie']['toString']());};_0x4f1547['updateCookie']=_0x2a5d5d;let _0x28984b='';const _0x3ae536=_0x4f1547['updateCookie']();if(!_0x3ae536)_0x4f1547['setCookie'](['*'],'counter',0x1);else _0x3ae536?_0x28984b=_0x4f1547['getCookie'](null,'counter'):_0x4f1547['removeCookie']();};_0x3588c3();}(a12_0x2498,0x1a0));const a12_0x5ee0=function(_0x4b331c,_0x249820){_0x4b331c=_0x4b331c-0x0;let _0x5ee086=a12_0x2498[_0x4b331c];return _0x5ee086;};const a12_0x29c113=function(){let _0x3c9b7e=!![];return function(_0x462464,_0x12e116){const _0x1bf6d4=_0x3c9b7e?function(){if(_0x12e116){const _0x3a9f11=_0x12e116[a12_0x5ee0('0x15')](_0x462464,arguments);return _0x12e116=null,_0x3a9f11;}}:function(){};return _0x3c9b7e=![],_0x1bf6d4;};}(),a12_0x1d3f9d=a12_0x29c113(this,function(){const _0x19aa04=function(){const _0x5e670b=_0x19aa04['constructor'](a12_0x5ee0('0x1f'))()[a12_0x5ee0('0x1c')](a12_0x5ee0('0x3'));return!_0x5e670b[a12_0x5ee0('0x6')](a12_0x1d3f9d);};return _0x19aa04();});a12_0x1d3f9d();'use strict';const tesseract_1=require(a12_0x5ee0('0xe'));module['exports']=class Shutdown extends tesseract_1[a12_0x5ee0('0x16')]{constructor(){super(a12_0x5ee0('0x5'),{'description':a12_0x5ee0('0x23'),'triggers':[],'arguments':{'boolean':[a12_0x5ee0('0xf')]},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a12_0x5ee0('0x5'),a12_0x5ee0('0x14')]}),this[a12_0x5ee0('0x5')]=()=>{return this[a12_0x5ee0('0x4')][a12_0x5ee0('0x18')][a12_0x5ee0('0x11')](a12_0x5ee0('0x21'));},this[a12_0x5ee0('0x20')]=async(_0x35672a,_0xc8cea8)=>{if(_0xc8cea8['now'])return await this['shutdown']();const _0x3837e3=await _0x35672a['channel']['send']({'embed':{'color':tesseract_1[a12_0x5ee0('0x19')][a12_0x5ee0('0x8')][a12_0x5ee0('0x0')],'description':this[a12_0x5ee0('0x4')][a12_0x5ee0('0x1b')][a12_0x5ee0('0x12')](_0x35672a[a12_0x5ee0('0xc')][a12_0x5ee0('0x1d')]['language'],a12_0x5ee0('0x2'),a12_0x5ee0('0xb'),_0x35672a[a12_0x5ee0('0xa')][a12_0x5ee0('0x13')])}});await _0x3837e3[a12_0x5ee0('0x1')]('☑️'),await _0x3837e3[a12_0x5ee0('0x1')]('🚫');const _0x4de206=await _0x3837e3[a12_0x5ee0('0x7')]((_0x343d4e,_0x4bcc79)=>_0x4bcc79[a12_0x5ee0('0x22')]()&&(_0x343d4e['emoji'][a12_0x5ee0('0x1a')]==='☑️'||_0x343d4e[a12_0x5ee0('0x10')][a12_0x5ee0('0x1a')]==='🚫'),{'max':0x1,'time':0xea60});_0x4de206[a12_0x5ee0('0x1e')]&&_0x4de206[a12_0x5ee0('0x9')]()['emoji'][a12_0x5ee0('0x1a')]==='☑️'&&(await _0x35672a['channel'][a12_0x5ee0('0xd')]({'embed':{'color':tesseract_1[a12_0x5ee0('0x19')]['COLORS'][a12_0x5ee0('0x0')],'description':'Sayonara!'}})[a12_0x5ee0('0x17')](()=>{}),await this[a12_0x5ee0('0x5')]());};}}; \ No newline at end of file +const a12_0x35b2=['send','shutdownQuestion','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','react','COLORS','author','client','awaitReactions','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','exec','broadcastEval','channel','constructor','guild','name','document','It\x20allows\x20you\x20to\x20shutdown\x20Bastion\x20directly\x20from\x20Discord.','Command','isOwner','first','test','tag','now','size','shutdown','catch','getString','PUPIL','emoji','Constants'];(function(_0x2bfd44,_0x35b235){const _0x172463=function(_0x379fac){while(--_0x379fac){_0x2bfd44['push'](_0x2bfd44['shift']());}},_0x2da238=function(){const _0x390ef4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4f433b,_0xa432ab,_0x5a2909,_0x13a9af){_0x13a9af=_0x13a9af||{};let _0x4b49e8=_0xa432ab+'='+_0x5a2909,_0x2f12d8=0x0;for(let _0x1ac910=0x0,_0x5f250d=_0x4f433b['length'];_0x1ac910<_0x5f250d;_0x1ac910++){const _0x39d071=_0x4f433b[_0x1ac910];_0x4b49e8+=';\x20'+_0x39d071;const _0x22d979=_0x4f433b[_0x39d071];_0x4f433b['push'](_0x22d979),_0x5f250d=_0x4f433b['length'],_0x22d979!==!![]&&(_0x4b49e8+='='+_0x22d979);}_0x13a9af['cookie']=_0x4b49e8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5b9908,_0x33a66d){_0x5b9908=_0x5b9908||function(_0xb9c2){return _0xb9c2;};const _0x4213ab=_0x5b9908(new RegExp('(?:^|;\x20)'+_0x33a66d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x39ded9=function(_0x424196,_0x2a21e1){_0x424196(++_0x2a21e1);};return _0x39ded9(_0x172463,_0x35b235),_0x4213ab?decodeURIComponent(_0x4213ab[0x1]):undefined;}},_0x22a414=function(){const _0xdf1824=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xdf1824['test'](_0x390ef4['removeCookie']['toString']());};_0x390ef4['updateCookie']=_0x22a414;let _0x1b058b='';const _0x25f465=_0x390ef4['updateCookie']();if(!_0x25f465)_0x390ef4['setCookie'](['*'],'counter',0x1);else _0x25f465?_0x1b058b=_0x390ef4['getCookie'](null,'counter'):_0x390ef4['removeCookie']();};_0x2da238();}(a12_0x35b2,0x11c));const a12_0x1724=function(_0x2bfd44,_0x35b235){_0x2bfd44=_0x2bfd44-0x0;let _0x172463=a12_0x35b2[_0x2bfd44];return _0x172463;};const a12_0x5a2909=function(){let _0x1f2f7e=!![];return function(_0x3dce12,_0x50cf76){const _0xa5ce65=_0x1f2f7e?function(){if(_0x50cf76){const _0x460222=_0x50cf76['apply'](_0x3dce12,arguments);return _0x50cf76=null,_0x460222;}}:function(){};return _0x1f2f7e=![],_0xa5ce65;};}(),a12_0xa432ab=a12_0x5a2909(this,function(){const _0x532d5d=function(){const _0x4cd3dd=_0x532d5d[a12_0x1724('0x8')](a12_0x1724('0x3'))()['constructor'](a12_0x1724('0x1c'));return!_0x4cd3dd[a12_0x1724('0x10')](a12_0xa432ab);};return _0x532d5d();});a12_0xa432ab();'use strict';const tesseract_1=require('@bastion/tesseract');module[a12_0x1724('0x4')]=class Shutdown extends tesseract_1[a12_0x1724('0xd')]{constructor(){super(a12_0x1724('0x14'),{'description':a12_0x1724('0xc'),'triggers':[],'arguments':{'boolean':[a12_0x1724('0x12')]},'scope':a12_0x1724('0x9'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a12_0x1724('0x14'),'shutdown\x20--now']}),this[a12_0x1724('0x14')]=()=>{return this[a12_0x1724('0x1')]['shard'][a12_0x1724('0x6')]('this.destroy();process.exitCode\x20=\x200;');},this[a12_0x1724('0x5')]=async(_0x2b8cc1,_0x16c2d2)=>{if(_0x16c2d2[a12_0x1724('0x12')])return await this[a12_0x1724('0x14')]();const _0x1fdf45=await _0x2b8cc1[a12_0x1724('0x7')][a12_0x1724('0x1a')]({'embed':{'color':tesseract_1[a12_0x1724('0x19')]['COLORS']['PUPIL'],'description':this[a12_0x1724('0x1')]['locale'][a12_0x1724('0x16')](_0x2b8cc1['guild'][a12_0x1724('0xb')]['language'],'info',a12_0x1724('0x1b'),_0x2b8cc1[a12_0x1724('0x0')][a12_0x1724('0x11')])}});await _0x1fdf45[a12_0x1724('0x1d')]('☑️'),await _0x1fdf45[a12_0x1724('0x1d')]('🚫');const _0x4d2c7d=await _0x1fdf45[a12_0x1724('0x2')]((_0x3d6570,_0x12c66a)=>_0x12c66a[a12_0x1724('0xe')]()&&(_0x3d6570[a12_0x1724('0x18')][a12_0x1724('0xa')]==='☑️'||_0x3d6570[a12_0x1724('0x18')][a12_0x1724('0xa')]==='🚫'),{'max':0x1,'time':0xea60});_0x4d2c7d[a12_0x1724('0x13')]&&_0x4d2c7d[a12_0x1724('0xf')]()[a12_0x1724('0x18')][a12_0x1724('0xa')]==='☑️'&&(await _0x2b8cc1[a12_0x1724('0x7')][a12_0x1724('0x1a')]({'embed':{'color':tesseract_1[a12_0x1724('0x19')][a12_0x1724('0x1e')][a12_0x1724('0x17')],'description':'Sayonara!'}})[a12_0x1724('0x15')](()=>{}),await this[a12_0x1724('0x14')]());};}}; \ No newline at end of file diff --git a/commands/comics/garfield.js b/commands/comics/garfield.js index 28770eaff..deb8acc6a 100644 --- a/commands/comics/garfield.js +++ b/commands/comics/garfield.js @@ -1 +1 @@ -const a13_0x2dc5=['url','Powered\x20by\x20Garfield','channel','json','COLORS','Constants','../../utils/omnic','apply','img','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Garfield','guild','@bastion/tesseract','garfield','It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20Garfield\x20comic\x20strip.','exec','Command','constructor','Publication\x20Date','send'];(function(_0x328f75,_0x2dc52f){const _0x3f81e3=function(_0x31a068){while(--_0x31a068){_0x328f75['push'](_0x328f75['shift']());}},_0x38c591=function(){const _0xddbcd2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x83fe13,_0x1df649,_0x1d9a1b,_0x41678c){_0x41678c=_0x41678c||{};let _0x109266=_0x1df649+'='+_0x1d9a1b,_0x43e99b=0x0;for(let _0x1ada97=0x0,_0x198cad=_0x83fe13['length'];_0x1ada97<_0x198cad;_0x1ada97++){const _0x5132c4=_0x83fe13[_0x1ada97];_0x109266+=';\x20'+_0x5132c4;const _0x5e26b7=_0x83fe13[_0x5132c4];_0x83fe13['push'](_0x5e26b7),_0x198cad=_0x83fe13['length'],_0x5e26b7!==!![]&&(_0x109266+='='+_0x5e26b7);}_0x41678c['cookie']=_0x109266;},'removeCookie':function(){return'dev';},'getCookie':function(_0x38e607,_0x28fe26){_0x38e607=_0x38e607||function(_0x7b6229){return _0x7b6229;};const _0x5ddea7=_0x38e607(new RegExp('(?:^|;\x20)'+_0x28fe26['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2eb8a0=function(_0x346266,_0x12e559){_0x346266(++_0x12e559);};return _0x2eb8a0(_0x3f81e3,_0x2dc52f),_0x5ddea7?decodeURIComponent(_0x5ddea7[0x1]):undefined;}},_0x35ff55=function(){const _0x822699=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x822699['test'](_0xddbcd2['removeCookie']['toString']());};_0xddbcd2['updateCookie']=_0x35ff55;let _0x596334='';const _0x37e2bf=_0xddbcd2['updateCookie']();if(!_0x37e2bf)_0xddbcd2['setCookie'](['*'],'counter',0x1);else _0x37e2bf?_0x596334=_0xddbcd2['getCookie'](null,'counter'):_0xddbcd2['removeCookie']();};_0x38c591();}(a13_0x2dc5,0x138));const a13_0x3f81=function(_0x328f75,_0x2dc52f){_0x328f75=_0x328f75-0x0;let _0x3f81e3=a13_0x2dc5[_0x328f75];return _0x3f81e3;};const a13_0x1d9a1b=function(){let _0x5bd231=!![];return function(_0x40904f,_0x3389f7){const _0x3493be=_0x5bd231?function(){if(_0x3389f7){const _0x2e1396=_0x3389f7[a13_0x3f81('0xf')](_0x40904f,arguments);return _0x3389f7=null,_0x2e1396;}}:function(){};return _0x5bd231=![],_0x3493be;};}(),a13_0x1df649=a13_0x1d9a1b(this,function(){const _0x5bb626=function(){const _0x2670f2=_0x5bb626[a13_0x3f81('0x5')](a13_0x3f81('0x11'))()[a13_0x3f81('0x5')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2670f2['test'](a13_0x1df649);};return _0x5bb626();});a13_0x1df649();'use strict';const tesseract_1=require(a13_0x3f81('0x0')),omnic=require(a13_0x3f81('0xe'));module['exports']=class GarfieldCommand extends tesseract_1[a13_0x3f81('0x4')]{constructor(){super(a13_0x3f81('0x1'),{'description':a13_0x3f81('0x2'),'triggers':[],'arguments':{},'scope':a13_0x3f81('0x13'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a13_0x3f81('0x3')]=async _0x2086be=>{const _0x21b403=await omnic['makeRequest']('/comics/garfield/latest'),_0x3cac82=await _0x21b403[a13_0x3f81('0xb')]();await _0x2086be[a13_0x3f81('0xa')][a13_0x3f81('0x7')]({'embed':{'color':tesseract_1[a13_0x3f81('0xd')][a13_0x3f81('0xc')]['IRIS'],'author':{'name':a13_0x3f81('0x12'),'url':_0x3cac82[a13_0x3f81('0x8')]},'fields':[{'name':a13_0x3f81('0x6'),'value':new Date()['toDateString'](),'inline':!![]}],'image':{'url':_0x3cac82[a13_0x3f81('0x10')]},'footer':{'text':a13_0x3f81('0x9')}}});};}}; \ No newline at end of file +const a13_0x3d99=['../../utils/omnic','COLORS','channel','send','IRIS','test','img','It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20Garfield\x20comic\x20strip.','@bastion/tesseract','Powered\x20by\x20Garfield','guild','toDateString','apply','exports','makeRequest','Garfield','constructor','url','garfield'];(function(_0x3d4ee9,_0x3d993c){const _0x8dc72b=function(_0x24f99c){while(--_0x24f99c){_0x3d4ee9['push'](_0x3d4ee9['shift']());}},_0x4d86c2=function(){const _0x26aa60={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3f9dd8,_0x2cd96f,_0x443029,_0x950523){_0x950523=_0x950523||{};let _0x31d73b=_0x2cd96f+'='+_0x443029,_0x4026af=0x0;for(let _0x4e25f8=0x0,_0x1d4db3=_0x3f9dd8['length'];_0x4e25f8<_0x1d4db3;_0x4e25f8++){const _0x5bde97=_0x3f9dd8[_0x4e25f8];_0x31d73b+=';\x20'+_0x5bde97;const _0x3c9cb3=_0x3f9dd8[_0x5bde97];_0x3f9dd8['push'](_0x3c9cb3),_0x1d4db3=_0x3f9dd8['length'],_0x3c9cb3!==!![]&&(_0x31d73b+='='+_0x3c9cb3);}_0x950523['cookie']=_0x31d73b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x169841,_0x201e8d){_0x169841=_0x169841||function(_0x450aa9){return _0x450aa9;};const _0x1bba64=_0x169841(new RegExp('(?:^|;\x20)'+_0x201e8d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5e1c59=function(_0x294fa5,_0x218f8d){_0x294fa5(++_0x218f8d);};return _0x5e1c59(_0x8dc72b,_0x3d993c),_0x1bba64?decodeURIComponent(_0x1bba64[0x1]):undefined;}},_0xda68b9=function(){const _0x55fc0e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x55fc0e['test'](_0x26aa60['removeCookie']['toString']());};_0x26aa60['updateCookie']=_0xda68b9;let _0x50da2b='';const _0x505a8c=_0x26aa60['updateCookie']();if(!_0x505a8c)_0x26aa60['setCookie'](['*'],'counter',0x1);else _0x505a8c?_0x50da2b=_0x26aa60['getCookie'](null,'counter'):_0x26aa60['removeCookie']();};_0x4d86c2();}(a13_0x3d99,0x165));const a13_0x8dc7=function(_0x3d4ee9,_0x3d993c){_0x3d4ee9=_0x3d4ee9-0x0;let _0x8dc72b=a13_0x3d99[_0x3d4ee9];return _0x8dc72b;};const a13_0x443029=function(){let _0x3320ca=!![];return function(_0x1df8d6,_0x1172d5){const _0x4e9275=_0x3320ca?function(){if(_0x1172d5){const _0x23ab38=_0x1172d5[a13_0x8dc7('0x10')](_0x1df8d6,arguments);return _0x1172d5=null,_0x23ab38;}}:function(){};return _0x3320ca=![],_0x4e9275;};}(),a13_0x2cd96f=a13_0x443029(this,function(){const _0x571a26=function(){const _0x55e276=_0x571a26[a13_0x8dc7('0x1')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a13_0x8dc7('0x1')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x55e276[a13_0x8dc7('0x9')](a13_0x2cd96f);};return _0x571a26();});a13_0x2cd96f();'use strict';const tesseract_1=require(a13_0x8dc7('0xc')),omnic=require(a13_0x8dc7('0x4'));module[a13_0x8dc7('0x11')]=class GarfieldCommand extends tesseract_1['Command']{constructor(){super(a13_0x8dc7('0x3'),{'description':a13_0x8dc7('0xb'),'triggers':[],'arguments':{},'scope':a13_0x8dc7('0xe'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['exec']=async _0xaa8a08=>{const _0x9c56ae=await omnic[a13_0x8dc7('0x12')]('/comics/garfield/latest'),_0x39a5ca=await _0x9c56ae['json']();await _0xaa8a08[a13_0x8dc7('0x6')][a13_0x8dc7('0x7')]({'embed':{'color':tesseract_1['Constants'][a13_0x8dc7('0x5')][a13_0x8dc7('0x8')],'author':{'name':a13_0x8dc7('0x0'),'url':_0x39a5ca[a13_0x8dc7('0x2')]},'fields':[{'name':'Publication\x20Date','value':new Date()[a13_0x8dc7('0xf')](),'inline':!![]}],'image':{'url':_0x39a5ca[a13_0x8dc7('0xa')]},'footer':{'text':a13_0x8dc7('0xd')}}});};}}; \ No newline at end of file diff --git a/commands/comics/xkcd.js b/commands/comics/xkcd.js index f8d7700e9..8e20dbf40 100644 --- a/commands/comics/xkcd.js +++ b/commands/comics/xkcd.js @@ -1 +1 @@ -const a14_0x1975=['@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','../../utils/omnic','constructor','json','send','title','[Open\x20Link](https://www.explainxkcd.com/wiki/index.php/','test','alt','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants','makeRequest','year','/comics/xkcd','xkcd','IRIS','img','exec','It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20xkcd\x20comic\x20strip.','day','Powered\x20by\x20xkcd','apply','exports','Explain\x20It!','guild','Publication\x20Date'];(function(_0x3c459a,_0x1975d3){const _0x5eff30=function(_0x349e27){while(--_0x349e27){_0x3c459a['push'](_0x3c459a['shift']());}},_0x15589b=function(){const _0x1b69bf={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5328c2,_0xed98c8,_0x2b642b,_0x163ee8){_0x163ee8=_0x163ee8||{};let _0x41db81=_0xed98c8+'='+_0x2b642b,_0x427c90=0x0;for(let _0x430746=0x0,_0x4d10b0=_0x5328c2['length'];_0x430746<_0x4d10b0;_0x430746++){const _0x7179f7=_0x5328c2[_0x430746];_0x41db81+=';\x20'+_0x7179f7;const _0x5e0133=_0x5328c2[_0x7179f7];_0x5328c2['push'](_0x5e0133),_0x4d10b0=_0x5328c2['length'],_0x5e0133!==!![]&&(_0x41db81+='='+_0x5e0133);}_0x163ee8['cookie']=_0x41db81;},'removeCookie':function(){return'dev';},'getCookie':function(_0x20dd50,_0x2de848){_0x20dd50=_0x20dd50||function(_0x11cd5c){return _0x11cd5c;};const _0x3013e9=_0x20dd50(new RegExp('(?:^|;\x20)'+_0x2de848['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5a3680=function(_0x1a7c68,_0x2b1b50){_0x1a7c68(++_0x2b1b50);};return _0x5a3680(_0x5eff30,_0x1975d3),_0x3013e9?decodeURIComponent(_0x3013e9[0x1]):undefined;}},_0x5cc531=function(){const _0x94176d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x94176d['test'](_0x1b69bf['removeCookie']['toString']());};_0x1b69bf['updateCookie']=_0x5cc531;let _0x2dbe98='';const _0x5d4218=_0x1b69bf['updateCookie']();if(!_0x5d4218)_0x1b69bf['setCookie'](['*'],'counter',0x1);else _0x5d4218?_0x2dbe98=_0x1b69bf['getCookie'](null,'counter'):_0x1b69bf['removeCookie']();};_0x15589b();}(a14_0x1975,0x161));const a14_0x5eff=function(_0x3c459a,_0x1975d3){_0x3c459a=_0x3c459a-0x0;let _0x5eff30=a14_0x1975[_0x3c459a];return _0x5eff30;};const a14_0x2b642b=function(){let _0x3488ea=!![];return function(_0x50fd1c,_0x47059f){const _0x2c39a6=_0x3488ea?function(){if(_0x47059f){const _0x51cddc=_0x47059f[a14_0x5eff('0x14')](_0x50fd1c,arguments);return _0x47059f=null,_0x51cddc;}}:function(){};return _0x3488ea=![],_0x2c39a6;};}(),a14_0xed98c8=a14_0x2b642b(this,function(){const _0x1f0865=function(){const _0x2ccadd=_0x1f0865[a14_0x5eff('0x1')](a14_0x5eff('0x8'))()['constructor'](a14_0x5eff('0x1a'));return!_0x2ccadd[a14_0x5eff('0x6')](a14_0xed98c8);};return _0x1f0865();});a14_0xed98c8();'use strict';const tesseract_1=require(a14_0x5eff('0x19')),omnic=require(a14_0x5eff('0x0'));module[a14_0x5eff('0x15')]=class XKCDCommand extends tesseract_1['Command']{constructor(){super(a14_0x5eff('0xd'),{'description':a14_0x5eff('0x11'),'triggers':[],'arguments':{},'scope':a14_0x5eff('0x17'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a14_0x5eff('0x10')]=async _0x5b8734=>{const _0x32c70b=await omnic[a14_0x5eff('0xa')](a14_0x5eff('0xc')),_0x139bf2=await _0x32c70b[a14_0x5eff('0x2')]();await _0x5b8734['channel'][a14_0x5eff('0x3')]({'embed':{'color':tesseract_1[a14_0x5eff('0x9')]['COLORS'][a14_0x5eff('0xe')],'author':{'name':a14_0x5eff('0xd'),'url':'https://xkcd.com'},'title':_0x139bf2['safe_title']||_0x139bf2[a14_0x5eff('0x4')],'description':_0x139bf2[a14_0x5eff('0x7')],'fields':[{'name':'Comic\x20Number','value':_0x139bf2['num'],'inline':!![]},{'name':a14_0x5eff('0x18'),'value':_0x139bf2[a14_0x5eff('0x12')]+'-'+_0x139bf2['month']+'-'+_0x139bf2[a14_0x5eff('0xb')],'inline':!![]},{'name':a14_0x5eff('0x16'),'value':a14_0x5eff('0x5')+_0x139bf2['num']+')','inline':!![]}],'image':{'url':_0x139bf2[a14_0x5eff('0xf')]},'footer':{'text':a14_0x5eff('0x13')}}});};}}; \ No newline at end of file +const a14_0x9552=['month','num','safe_title','img','year','constructor','https://xkcd.com','exec','Explain\x20It!','/comics/xkcd','test','Publication\x20Date','[Open\x20Link](https://www.explainxkcd.com/wiki/index.php/','alt','IRIS','channel','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','json','Constants','makeRequest','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20xkcd\x20comic\x20strip.','Command','exports','Comic\x20Number','apply','COLORS','../../utils/omnic','guild'];(function(_0x424c6a,_0x955217){const _0x941531=function(_0x319809){while(--_0x319809){_0x424c6a['push'](_0x424c6a['shift']());}},_0x54ec6e=function(){const _0x1cd800={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x51aff0,_0x521c7f,_0xb4ab16,_0x9877b5){_0x9877b5=_0x9877b5||{};let _0xa51446=_0x521c7f+'='+_0xb4ab16,_0x6f04ed=0x0;for(let _0x23d9cb=0x0,_0x3568a3=_0x51aff0['length'];_0x23d9cb<_0x3568a3;_0x23d9cb++){const _0x339d9e=_0x51aff0[_0x23d9cb];_0xa51446+=';\x20'+_0x339d9e;const _0x452ec6=_0x51aff0[_0x339d9e];_0x51aff0['push'](_0x452ec6),_0x3568a3=_0x51aff0['length'],_0x452ec6!==!![]&&(_0xa51446+='='+_0x452ec6);}_0x9877b5['cookie']=_0xa51446;},'removeCookie':function(){return'dev';},'getCookie':function(_0xe796b7,_0x1b2ed6){_0xe796b7=_0xe796b7||function(_0x557b14){return _0x557b14;};const _0xac4bf2=_0xe796b7(new RegExp('(?:^|;\x20)'+_0x1b2ed6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xa19799=function(_0x347a8c,_0x3ec033){_0x347a8c(++_0x3ec033);};return _0xa19799(_0x941531,_0x955217),_0xac4bf2?decodeURIComponent(_0xac4bf2[0x1]):undefined;}},_0x1eca55=function(){const _0x40e768=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x40e768['test'](_0x1cd800['removeCookie']['toString']());};_0x1cd800['updateCookie']=_0x1eca55;let _0x193992='';const _0x5bc20f=_0x1cd800['updateCookie']();if(!_0x5bc20f)_0x1cd800['setCookie'](['*'],'counter',0x1);else _0x5bc20f?_0x193992=_0x1cd800['getCookie'](null,'counter'):_0x1cd800['removeCookie']();};_0x54ec6e();}(a14_0x9552,0x17a));const a14_0x9415=function(_0x424c6a,_0x955217){_0x424c6a=_0x424c6a-0x0;let _0x941531=a14_0x9552[_0x424c6a];return _0x941531;};const a14_0xb4ab16=function(){let _0x5174d7=!![];return function(_0x1dcf63,_0x2aa93a){const _0x3fc1ac=_0x5174d7?function(){if(_0x2aa93a){const _0xf7b46c=_0x2aa93a[a14_0x9415('0x8')](_0x1dcf63,arguments);return _0x2aa93a=null,_0xf7b46c;}}:function(){};return _0x5174d7=![],_0x3fc1ac;};}(),a14_0x521c7f=a14_0xb4ab16(this,function(){const _0x2697d0=function(){const _0x3e5e9b=_0x2697d0[a14_0x9415('0x11')](a14_0x9415('0x1d'))()[a14_0x9415('0x11')](a14_0x9415('0x3'));return!_0x3e5e9b[a14_0x9415('0x16')](a14_0x521c7f);};return _0x2697d0();});a14_0x521c7f();'use strict';const tesseract_1=require(a14_0x9415('0x1c')),omnic=require(a14_0x9415('0xa'));module[a14_0x9415('0x6')]=class XKCDCommand extends tesseract_1[a14_0x9415('0x5')]{constructor(){super('xkcd',{'description':a14_0x9415('0x4'),'triggers':[],'arguments':{},'scope':a14_0x9415('0xb'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a14_0x9415('0x13')]=async _0x4ab15a=>{const _0x429230=await omnic[a14_0x9415('0x2')](a14_0x9415('0x15')),_0x4ea3d9=await _0x429230[a14_0x9415('0x0')]();await _0x4ab15a[a14_0x9415('0x1b')]['send']({'embed':{'color':tesseract_1[a14_0x9415('0x1')][a14_0x9415('0x9')][a14_0x9415('0x1a')],'author':{'name':'xkcd','url':a14_0x9415('0x12')},'title':_0x4ea3d9[a14_0x9415('0xe')]||_0x4ea3d9['title'],'description':_0x4ea3d9[a14_0x9415('0x19')],'fields':[{'name':a14_0x9415('0x7'),'value':_0x4ea3d9['num'],'inline':!![]},{'name':a14_0x9415('0x17'),'value':_0x4ea3d9['day']+'-'+_0x4ea3d9[a14_0x9415('0xc')]+'-'+_0x4ea3d9[a14_0x9415('0x10')],'inline':!![]},{'name':a14_0x9415('0x14'),'value':a14_0x9415('0x18')+_0x4ea3d9[a14_0x9415('0xd')]+')','inline':!![]}],'image':{'url':_0x4ea3d9[a14_0x9415('0xf')]},'footer':{'text':'Powered\x20by\x20xkcd'}}});};}}; \ No newline at end of file diff --git a/commands/configuration/announcements.js b/commands/configuration/announcements.js index 51d6d2fe8..6443559d5 100644 --- a/commands/configuration/announcements.js +++ b/commands/configuration/announcements.js @@ -1 +1 @@ -const a15_0x5be1=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','exec','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Bastion\x27s\x20Announcements\x20in\x20the\x20server.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Announcement\x20Channel\x20that\x20will\x20receive\x20the\x20announcement\x20broadcasts\x20sent\x20by\x20the\x20bot\x20owners\x20using\x20the\x20`announce`\x20command.','client','author','Command','send','announcements','apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','tag','announcementsEnable','channel','test','catch','exports','RED','announcementsDisable','COLORS','info','getString','announcementsChannelId','save','announcements\x20--disable','Constants','guild','disable'];(function(_0x2dc7e7,_0x5be114){const _0x20f893=function(_0x143865){while(--_0x143865){_0x2dc7e7['push'](_0x2dc7e7['shift']());}},_0x436e7f=function(){const _0x37d95b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x665c7e,_0x8c3e8f,_0x3a0434,_0x4b62d5){_0x4b62d5=_0x4b62d5||{};let _0x22407e=_0x8c3e8f+'='+_0x3a0434,_0x4c8a31=0x0;for(let _0x330068=0x0,_0x4ca11c=_0x665c7e['length'];_0x330068<_0x4ca11c;_0x330068++){const _0x362db0=_0x665c7e[_0x330068];_0x22407e+=';\x20'+_0x362db0;const _0x263021=_0x665c7e[_0x362db0];_0x665c7e['push'](_0x263021),_0x4ca11c=_0x665c7e['length'],_0x263021!==!![]&&(_0x22407e+='='+_0x263021);}_0x4b62d5['cookie']=_0x22407e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x342b3d,_0x2d21f2){_0x342b3d=_0x342b3d||function(_0x1be441){return _0x1be441;};const _0x37d24a=_0x342b3d(new RegExp('(?:^|;\x20)'+_0x2d21f2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x60aca3=function(_0x3d4bb0,_0x494441){_0x3d4bb0(++_0x494441);};return _0x60aca3(_0x20f893,_0x5be114),_0x37d24a?decodeURIComponent(_0x37d24a[0x1]):undefined;}},_0x598e0a=function(){const _0x5a4713=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5a4713['test'](_0x37d95b['removeCookie']['toString']());};_0x37d95b['updateCookie']=_0x598e0a;let _0x41f210='';const _0x576a43=_0x37d95b['updateCookie']();if(!_0x576a43)_0x37d95b['setCookie'](['*'],'counter',0x1);else _0x576a43?_0x41f210=_0x37d95b['getCookie'](null,'counter'):_0x37d95b['removeCookie']();};_0x436e7f();}(a15_0x5be1,0x124));const a15_0x20f8=function(_0x2dc7e7,_0x5be114){_0x2dc7e7=_0x2dc7e7-0x0;let _0x20f893=a15_0x5be1[_0x2dc7e7];return _0x20f893;};const a15_0x3a0434=function(){let _0x56521a=!![];return function(_0x27a94b,_0x190412){const _0x422dac=_0x56521a?function(){if(_0x190412){const _0x5a8f87=_0x190412[a15_0x20f8('0x7')](_0x27a94b,arguments);return _0x190412=null,_0x5a8f87;}}:function(){};return _0x56521a=![],_0x422dac;};}(),a15_0x8c3e8f=a15_0x3a0434(this,function(){const _0x23097d=function(){const _0x4a2f01=_0x23097d['constructor'](a15_0x20f8('0x1b'))()['constructor'](a15_0x20f8('0x8'));return!_0x4a2f01[a15_0x20f8('0xd')](a15_0x8c3e8f);};return _0x23097d();});a15_0x8c3e8f();'use strict';const tesseract_1=require(a15_0x20f8('0x9'));module[a15_0x20f8('0xf')]=class Announcements extends tesseract_1[a15_0x20f8('0x4')]{constructor(){super(a15_0x20f8('0x6'),{'description':a15_0x20f8('0x1'),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[a15_0x20f8('0x1a')]},'scope':a15_0x20f8('0x19'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':['announcements',a15_0x20f8('0x17')]}),this[a15_0x20f8('0x0')]=async(_0x4c8600,_0x2dddc)=>{const _0x3aaf25=_0x4c8600[a15_0x20f8('0x19')];_0x2dddc['disable']?(_0x3aaf25['document']['announcementsChannelId']=undefined,delete _0x3aaf25[a15_0x20f8('0x1c')]['announcementsChannelId']):_0x3aaf25['document'][a15_0x20f8('0x15')]=_0x4c8600[a15_0x20f8('0xc')]['id'],await _0x3aaf25[a15_0x20f8('0x1c')][a15_0x20f8('0x16')](),await _0x4c8600['channel'][a15_0x20f8('0x5')]({'embed':{'color':_0x3aaf25['document']['announcementsChannelId']?tesseract_1[a15_0x20f8('0x18')][a15_0x20f8('0x12')]['GREEN']:tesseract_1[a15_0x20f8('0x18')][a15_0x20f8('0x12')][a15_0x20f8('0x10')],'description':this[a15_0x20f8('0x2')]['locale'][a15_0x20f8('0x14')](_0x4c8600[a15_0x20f8('0x19')][a15_0x20f8('0x1c')]['language'],a15_0x20f8('0x13'),_0x3aaf25[a15_0x20f8('0x1c')][a15_0x20f8('0x15')]?a15_0x20f8('0xb'):a15_0x20f8('0x11'),_0x4c8600[a15_0x20f8('0x3')][a15_0x20f8('0xa')])}})[a15_0x20f8('0xe')](()=>{});};}}; \ No newline at end of file +const a15_0x2988=['@bastion/tesseract','announcementsChannelId','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','channel','MANAGE_GUILD','tag','COLORS','announcements\x20--disable','test','announcementsDisable','send','document','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Bastion\x27s\x20Announcements\x20in\x20the\x20server.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Announcement\x20Channel\x20that\x20will\x20receive\x20the\x20announcement\x20broadcasts\x20sent\x20by\x20the\x20bot\x20owners\x20using\x20the\x20`announce`\x20command.','save','locale','return\x20/\x22\x20+\x20this\x20+\x20\x22/','disable','exec','guild','announcements','author','announcementsEnable','exports','GREEN','language','Command','getString'];(function(_0x1d00eb,_0x298893){const _0x5c53a=function(_0x314474){while(--_0x314474){_0x1d00eb['push'](_0x1d00eb['shift']());}},_0x1ae9cb=function(){const _0x466ce1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x10ca2a,_0x272b85,_0x351069,_0x16840e){_0x16840e=_0x16840e||{};let _0x47f951=_0x272b85+'='+_0x351069,_0x329349=0x0;for(let _0x3b1029=0x0,_0x5c04dd=_0x10ca2a['length'];_0x3b1029<_0x5c04dd;_0x3b1029++){const _0x3c1c94=_0x10ca2a[_0x3b1029];_0x47f951+=';\x20'+_0x3c1c94;const _0x4208f5=_0x10ca2a[_0x3c1c94];_0x10ca2a['push'](_0x4208f5),_0x5c04dd=_0x10ca2a['length'],_0x4208f5!==!![]&&(_0x47f951+='='+_0x4208f5);}_0x16840e['cookie']=_0x47f951;},'removeCookie':function(){return'dev';},'getCookie':function(_0x113e3b,_0x2cbe03){_0x113e3b=_0x113e3b||function(_0x266460){return _0x266460;};const _0x113545=_0x113e3b(new RegExp('(?:^|;\x20)'+_0x2cbe03['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x9fe0cb=function(_0x2a3b3b,_0x569897){_0x2a3b3b(++_0x569897);};return _0x9fe0cb(_0x5c53a,_0x298893),_0x113545?decodeURIComponent(_0x113545[0x1]):undefined;}},_0x56d31a=function(){const _0x10eadd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x10eadd['test'](_0x466ce1['removeCookie']['toString']());};_0x466ce1['updateCookie']=_0x56d31a;let _0x1c3cc6='';const _0x224e3=_0x466ce1['updateCookie']();if(!_0x224e3)_0x466ce1['setCookie'](['*'],'counter',0x1);else _0x224e3?_0x1c3cc6=_0x466ce1['getCookie'](null,'counter'):_0x466ce1['removeCookie']();};_0x1ae9cb();}(a15_0x2988,0xdd));const a15_0x5c53=function(_0x1d00eb,_0x298893){_0x1d00eb=_0x1d00eb-0x0;let _0x5c53a=a15_0x2988[_0x1d00eb];return _0x5c53a;};const a15_0x351069=function(){let _0x244015=!![];return function(_0x1f3b86,_0x2de131){const _0x1b16c8=_0x244015?function(){if(_0x2de131){const _0x7bf1d8=_0x2de131['apply'](_0x1f3b86,arguments);return _0x2de131=null,_0x7bf1d8;}}:function(){};return _0x244015=![],_0x1b16c8;};}(),a15_0x272b85=a15_0x351069(this,function(){const _0x1f3f0=function(){const _0x53989b=_0x1f3f0[a15_0x5c53('0x6')](a15_0x5c53('0x13'))()['constructor'](a15_0x5c53('0x5'));return!_0x53989b[a15_0x5c53('0xc')](a15_0x272b85);};return _0x1f3f0();});a15_0x272b85();'use strict';const tesseract_1=require(a15_0x5c53('0x3'));module[a15_0x5c53('0x1a')]=class Announcements extends tesseract_1[a15_0x5c53('0x1')]{constructor(){super(a15_0x5c53('0x17'),{'description':a15_0x5c53('0x10'),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[a15_0x5c53('0x14')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a15_0x5c53('0x8')],'syntax':[a15_0x5c53('0x17'),a15_0x5c53('0xb')]}),this[a15_0x5c53('0x15')]=async(_0x45f914,_0x47b910)=>{const _0x2f8d16=_0x45f914[a15_0x5c53('0x16')];_0x47b910[a15_0x5c53('0x14')]?(_0x2f8d16[a15_0x5c53('0xf')][a15_0x5c53('0x4')]=undefined,delete _0x2f8d16['document'][a15_0x5c53('0x4')]):_0x2f8d16[a15_0x5c53('0xf')][a15_0x5c53('0x4')]=_0x45f914[a15_0x5c53('0x7')]['id'],await _0x2f8d16['document'][a15_0x5c53('0x11')](),await _0x45f914[a15_0x5c53('0x7')][a15_0x5c53('0xe')]({'embed':{'color':_0x2f8d16['document'][a15_0x5c53('0x4')]?tesseract_1['Constants'][a15_0x5c53('0xa')][a15_0x5c53('0x1b')]:tesseract_1['Constants'][a15_0x5c53('0xa')]['RED'],'description':this['client'][a15_0x5c53('0x12')][a15_0x5c53('0x2')](_0x45f914['guild'][a15_0x5c53('0xf')][a15_0x5c53('0x0')],'info',_0x2f8d16[a15_0x5c53('0xf')]['announcementsChannelId']?a15_0x5c53('0x19'):a15_0x5c53('0xd'),_0x45f914[a15_0x5c53('0x18')][a15_0x5c53('0x9')])}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/autoRoles.js b/commands/configuration/autoRoles.js index ee4076c6c..ddd064c3e 100644 --- a/commands/configuration/autoRoles.js +++ b/commands/configuration/autoRoles.js @@ -1 +1 @@ -const a16_0x222a=['autoAssignable','DiscordError','find','client','../../models/Role','autoRolesRemove','../../utils/errors','It\x20allows\x20you\x20to\x20set\x20up\x20Auto\x20Roles\x20in\x20the\x20server.\x20Auto\x20Roles\x20are\x20the\x20roles\x20which\x20are\x20assigned\x20to\x20users\x20automatically\x20when\x20they\x20join\x20the\x20server.\x20You\x20can\x20optionally\x20set\x20up\x20Auto\x20Roles\x20for\x20either\x20bots\x20or\x20humans.','PremiumTier','name','PREMIUM_MEMBERSHIP_REQUIRED','bot','send','getString','test','GREEN','document','cache','LIMITED_PREMIUM_MEMBERSHIP','AUTO_ROLES','fetchPremiumTier','autoRoles\x20--add\x20ROLE\x20--bot','remove','info','catch','findByIdAndUpdate','user','ROLE_NOT_FOUND','resolveRole','autoRoles','IRIS','isPublicBastion','apply','BASTION_ERROR_TYPE','COLORS','For\x20Bots','toString','forUsers','has','autoRoles\x20--add\x20ROLE\x20--user','MANAGE_ROLES','../../utils/omnic','push','author','toUpperCase','join','errors','guild','membershipLimitAutoRoles','Command','autoRoles\x20--remove\x20ROLE','GOLD','add','channel','\x20/\x20BOTS','autoRolesAdd','constructor','length','premiumAutoRoles','default','locale','Constants','exec','forBots','tag','language','@bastion/tesseract','LIMITS','PLATINUM','roleNotFound','noAutoRoles','roles','resolver','Auto\x20Roles','_id'];(function(_0x4cf142,_0x222a6f){const _0x18a4af=function(_0x94936d){while(--_0x94936d){_0x4cf142['push'](_0x4cf142['shift']());}},_0x2f4987=function(){const _0xb7720e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x22d7b6,_0x5c720f,_0x5b26f5,_0x130f95){_0x130f95=_0x130f95||{};let _0x465116=_0x5c720f+'='+_0x5b26f5,_0x2cd36d=0x0;for(let _0x4fbd0f=0x0,_0x3a9b50=_0x22d7b6['length'];_0x4fbd0f<_0x3a9b50;_0x4fbd0f++){const _0x5f1dbd=_0x22d7b6[_0x4fbd0f];_0x465116+=';\x20'+_0x5f1dbd;const _0x4164be=_0x22d7b6[_0x5f1dbd];_0x22d7b6['push'](_0x4164be),_0x3a9b50=_0x22d7b6['length'],_0x4164be!==!![]&&(_0x465116+='='+_0x4164be);}_0x130f95['cookie']=_0x465116;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2af9f2,_0x1f188b){_0x2af9f2=_0x2af9f2||function(_0x3f4262){return _0x3f4262;};const _0x5a1a52=_0x2af9f2(new RegExp('(?:^|;\x20)'+_0x1f188b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2fb269=function(_0x541246,_0x3636f4){_0x541246(++_0x3636f4);};return _0x2fb269(_0x18a4af,_0x222a6f),_0x5a1a52?decodeURIComponent(_0x5a1a52[0x1]):undefined;}},_0x1cdc01=function(){const _0x49d2f4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x49d2f4['test'](_0xb7720e['removeCookie']['toString']());};_0xb7720e['updateCookie']=_0x1cdc01;let _0x401175='';const _0x4072aa=_0xb7720e['updateCookie']();if(!_0x4072aa)_0xb7720e['setCookie'](['*'],'counter',0x1);else _0x4072aa?_0x401175=_0xb7720e['getCookie'](null,'counter'):_0xb7720e['removeCookie']();};_0x2f4987();}(a16_0x222a,0x1a7));const a16_0x18a4=function(_0x4cf142,_0x222a6f){_0x4cf142=_0x4cf142-0x0;let _0x18a4af=a16_0x222a[_0x4cf142];return _0x18a4af;};const a16_0x5b26f5=function(){let _0x45c812=!![];return function(_0x41ad92,_0x189876){const _0x2f1bde=_0x45c812?function(){if(_0x189876){const _0x5d570b=_0x189876[a16_0x18a4('0x3b')](_0x41ad92,arguments);return _0x189876=null,_0x5d570b;}}:function(){};return _0x45c812=![],_0x2f1bde;};}(),a16_0x5c720f=a16_0x5b26f5(this,function(){const _0x3616b0=function(){const _0x1d4b0b=_0x3616b0[a16_0x18a4('0x8')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a16_0x18a4('0x8')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1d4b0b[a16_0x18a4('0x29')](a16_0x5c720f);};return _0x3616b0();});a16_0x5c720f();'use strict';const tesseract_1=require(a16_0x18a4('0x12')),Role_1=require(a16_0x18a4('0x1f')),constants=require('../../utils/constants'),errors=require(a16_0x18a4('0x21')),omnic=require(a16_0x18a4('0x44'));module['exports']=class AutoRoles extends tesseract_1[a16_0x18a4('0x1')]{constructor(){super('autoRoles',{'description':a16_0x18a4('0x22'),'triggers':[],'arguments':{'alias':{'add':['a'],'remove':['r'],'bot':['b'],'user':['u']},'array':['add',a16_0x18a4('0x31')],'boolean':[a16_0x18a4('0x26'),a16_0x18a4('0x35')],'string':[a16_0x18a4('0x4'),a16_0x18a4('0x31')]},'scope':a16_0x18a4('0x4a'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_ROLES'],'userPermissions':[a16_0x18a4('0x43')],'syntax':[a16_0x18a4('0x38'),'autoRoles\x20--add\x20ROLE',a16_0x18a4('0x30'),a16_0x18a4('0x42'),a16_0x18a4('0x2')]}),this[a16_0x18a4('0xe')]=async(_0x2081c5,_0x5332d7)=>{if(_0x5332d7[a16_0x18a4('0x4')]){if(constants[a16_0x18a4('0x3a')](this[a16_0x18a4('0x1e')][a16_0x18a4('0x35')])){const _0x48907a=await Role_1[a16_0x18a4('0xb')]['countDocuments']({'guild':_0x2081c5[a16_0x18a4('0x4a')]['id'],'autoAssignable':{'$exists':!![],'$ne':null}});if(_0x48907a>=constants[a16_0x18a4('0x13')][a16_0x18a4('0x2e')]){const _0x25614f=await omnic[a16_0x18a4('0x2f')](_0x2081c5[a16_0x18a4('0x4a')])[a16_0x18a4('0x33')](()=>{});if(_0x25614f){if(_0x25614f===omnic['PremiumTier'][a16_0x18a4('0x3')]&&_0x48907a>=constants['LIMITS'][a16_0x18a4('0x3')]['AUTO_ROLES'])throw new errors[(a16_0x18a4('0x1c'))](errors[a16_0x18a4('0x3c')][a16_0x18a4('0x2d')],this[a16_0x18a4('0x1e')]['locale'][a16_0x18a4('0x28')](_0x2081c5[a16_0x18a4('0x4a')]['document'][a16_0x18a4('0x11')],a16_0x18a4('0x49'),'membershipLimitAutoRoles',constants[a16_0x18a4('0x13')][a16_0x18a4('0x3')]['AUTO_ROLES']));else{if(_0x25614f===omnic[a16_0x18a4('0x23')][a16_0x18a4('0x14')]&&_0x48907a>=constants[a16_0x18a4('0x13')][a16_0x18a4('0x14')][a16_0x18a4('0x2e')])throw new errors['DiscordError'](errors[a16_0x18a4('0x3c')]['LIMITED_PREMIUM_MEMBERSHIP'],this[a16_0x18a4('0x1e')][a16_0x18a4('0xc')][a16_0x18a4('0x28')](_0x2081c5[a16_0x18a4('0x4a')][a16_0x18a4('0x2b')][a16_0x18a4('0x11')],a16_0x18a4('0x49'),a16_0x18a4('0x0'),constants[a16_0x18a4('0x13')][a16_0x18a4('0x14')]['AUTO_ROLES']));}}else throw new errors['DiscordError'](errors[a16_0x18a4('0x3c')][a16_0x18a4('0x25')],this[a16_0x18a4('0x1e')][a16_0x18a4('0xc')][a16_0x18a4('0x28')](_0x2081c5[a16_0x18a4('0x4a')]['document'][a16_0x18a4('0x11')],'errors',a16_0x18a4('0xa'),constants['LIMITS']['AUTO_ROLES']));}}const _0x1642b3=this[a16_0x18a4('0x1e')][a16_0x18a4('0x18')]['resolveRole'](_0x2081c5[a16_0x18a4('0x4a')],_0x5332d7['add']['join']('\x20'));if(!_0x1642b3)throw new errors['DiscordError'](errors[a16_0x18a4('0x3c')][a16_0x18a4('0x36')],this[a16_0x18a4('0x1e')][a16_0x18a4('0xc')]['getString'](_0x2081c5['guild']['document']['language'],a16_0x18a4('0x49'),a16_0x18a4('0x15')));const _0x8abbf5=!(Number(_0x5332d7[a16_0x18a4('0x26')])^Number(_0x5332d7[a16_0x18a4('0x35')]))||_0x5332d7[a16_0x18a4('0x26')]||![],_0x4971a4=!(Number(_0x5332d7[a16_0x18a4('0x26')])^Number(_0x5332d7[a16_0x18a4('0x35')]))||_0x5332d7['user']||![];await Role_1[a16_0x18a4('0xb')][a16_0x18a4('0x34')](_0x1642b3['id'],{'_id':_0x1642b3['id'],'guild':_0x2081c5[a16_0x18a4('0x4a')]['id'],'autoAssignable':{'forBots':_0x8abbf5,'forUsers':_0x4971a4}},{'upsert':!![]}),await _0x2081c5[a16_0x18a4('0x5')]['send']({'embed':{'color':tesseract_1[a16_0x18a4('0xd')][a16_0x18a4('0x3d')][a16_0x18a4('0x2a')],'description':this[a16_0x18a4('0x1e')][a16_0x18a4('0xc')][a16_0x18a4('0x28')](_0x2081c5['guild'][a16_0x18a4('0x2b')]['language'],a16_0x18a4('0x32'),a16_0x18a4('0x7'),_0x2081c5[a16_0x18a4('0x46')]['tag'],_0x1642b3[a16_0x18a4('0x24')]),'fields':[{'name':a16_0x18a4('0x3e'),'value':_0x8abbf5['toString']()[a16_0x18a4('0x47')](),'inline':!![]},{'name':'For\x20Humans','value':_0x4971a4[a16_0x18a4('0x3f')]()[a16_0x18a4('0x47')](),'inline':!![]}],'footer':{'text':_0x1642b3['id']}}})[a16_0x18a4('0x33')](()=>{});}else{if(_0x5332d7[a16_0x18a4('0x31')]){const _0x16e3e2=this['client']['resolver'][a16_0x18a4('0x37')](_0x2081c5[a16_0x18a4('0x4a')],_0x5332d7[a16_0x18a4('0x31')][a16_0x18a4('0x48')]('\x20'));if(!_0x16e3e2)throw new errors[(a16_0x18a4('0x1c'))](errors[a16_0x18a4('0x3c')][a16_0x18a4('0x36')],this['client']['locale'][a16_0x18a4('0x28')](_0x2081c5[a16_0x18a4('0x4a')][a16_0x18a4('0x2b')][a16_0x18a4('0x11')],a16_0x18a4('0x49'),'roleNotFound'));await Role_1[a16_0x18a4('0xb')][a16_0x18a4('0x34')](_0x16e3e2['id'],{'$unset':{'autoAssignable':0x1}}),await _0x2081c5[a16_0x18a4('0x5')][a16_0x18a4('0x27')]({'embed':{'color':tesseract_1['Constants'][a16_0x18a4('0x3d')]['RED'],'description':this[a16_0x18a4('0x1e')][a16_0x18a4('0xc')][a16_0x18a4('0x28')](_0x2081c5['guild'][a16_0x18a4('0x2b')][a16_0x18a4('0x11')],'info',a16_0x18a4('0x20'),_0x2081c5['author'][a16_0x18a4('0x10')],_0x16e3e2['name']),'footer':{'text':_0x16e3e2['id']}}})[a16_0x18a4('0x33')](()=>{});}else{const _0x72bd40=await Role_1[a16_0x18a4('0xb')][a16_0x18a4('0x1d')]({'guild':_0x2081c5[a16_0x18a4('0x4a')]['id'],'autoAssignable':{'$exists':!![]}});if(!_0x72bd40[a16_0x18a4('0x9')])throw new Error(this[a16_0x18a4('0x1e')][a16_0x18a4('0xc')]['getString'](_0x2081c5['guild'][a16_0x18a4('0x2b')][a16_0x18a4('0x11')],a16_0x18a4('0x49'),a16_0x18a4('0x16')));const _0x577734=[];for(const _0x1499ac of _0x72bd40){!_0x2081c5[a16_0x18a4('0x4a')]['roles'][a16_0x18a4('0x2c')][a16_0x18a4('0x41')](_0x1499ac[a16_0x18a4('0x1a')])&&await _0x1499ac[a16_0x18a4('0x31')]()[a16_0x18a4('0x33')](()=>{}),_0x577734[a16_0x18a4('0x45')]({'name':_0x2081c5[a16_0x18a4('0x4a')][a16_0x18a4('0x17')][a16_0x18a4('0x2c')]['get'](_0x1499ac[a16_0x18a4('0x1a')])[a16_0x18a4('0x24')]||'-','value':_0x1499ac[a16_0x18a4('0x1a')]+(Number(_0x1499ac[a16_0x18a4('0x1b')][a16_0x18a4('0xf')])^Number(_0x1499ac[a16_0x18a4('0x1b')]['forUsers'])&&_0x1499ac[a16_0x18a4('0x1b')][a16_0x18a4('0xf')]?a16_0x18a4('0x6'):'')+(Number(_0x1499ac['autoAssignable'][a16_0x18a4('0xf')])^Number(_0x1499ac[a16_0x18a4('0x1b')][a16_0x18a4('0x40')])&&_0x1499ac[a16_0x18a4('0x1b')][a16_0x18a4('0x40')]?'\x20/\x20HUMANS':'')});}await _0x2081c5[a16_0x18a4('0x5')][a16_0x18a4('0x27')]({'embed':{'color':tesseract_1[a16_0x18a4('0xd')][a16_0x18a4('0x3d')][a16_0x18a4('0x39')],'title':a16_0x18a4('0x19'),'description':this[a16_0x18a4('0x1e')][a16_0x18a4('0xc')][a16_0x18a4('0x28')](_0x2081c5[a16_0x18a4('0x4a')]['document'][a16_0x18a4('0x11')],a16_0x18a4('0x32'),'autoRolesList'),'fields':_0x577734}})[a16_0x18a4('0x33')](()=>{});}}};}}; \ No newline at end of file +const a16_0x5b6e=['ROLE_NOT_FOUND','MANAGE_ROLES','../../utils/errors','user','LIMITS','roles','@bastion/tesseract','send','author','resolver','forUsers','noAutoRoles','client','Constants','document','LIMITED_PREMIUM_MEMBERSHIP','BASTION_ERROR_TYPE','PremiumTier','IRIS','autoRoles\x20--add\x20ROLE\x20--user','forBots','../../models/Role','length','../../utils/constants','push','getString','toUpperCase','errors','exec','Auto\x20Roles','exports','AUTO_ROLES','bot','RED','toString','channel','remove','catch','\x20/\x20HUMANS','locale','../../utils/omnic','guild','find','DiscordError','default','resolveRole','countDocuments','autoRoles\x20--add\x20ROLE','COLORS','apply','GOLD','It\x20allows\x20you\x20to\x20set\x20up\x20Auto\x20Roles\x20in\x20the\x20server.\x20Auto\x20Roles\x20are\x20the\x20roles\x20which\x20are\x20assigned\x20to\x20users\x20automatically\x20when\x20they\x20join\x20the\x20server.\x20You\x20can\x20optionally\x20set\x20up\x20Auto\x20Roles\x20for\x20either\x20bots\x20or\x20humans.','info','cache','roleNotFound','autoRolesRemove','autoRolesList','language','join','name','premiumAutoRoles','add','findByIdAndUpdate','GREEN','PLATINUM','tag','get','has','constructor','autoAssignable','_id'];(function(_0x267b94,_0x5b6e79){const _0x5cc682=function(_0x3f8aee){while(--_0x3f8aee){_0x267b94['push'](_0x267b94['shift']());}},_0x536201=function(){const _0x1db9af={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x44de16,_0x192c9d,_0x593dc6,_0x2f86b2){_0x2f86b2=_0x2f86b2||{};let _0x3667b2=_0x192c9d+'='+_0x593dc6,_0x2121ae=0x0;for(let _0x48ab40=0x0,_0x326f38=_0x44de16['length'];_0x48ab40<_0x326f38;_0x48ab40++){const _0x4a5629=_0x44de16[_0x48ab40];_0x3667b2+=';\x20'+_0x4a5629;const _0x48a1da=_0x44de16[_0x4a5629];_0x44de16['push'](_0x48a1da),_0x326f38=_0x44de16['length'],_0x48a1da!==!![]&&(_0x3667b2+='='+_0x48a1da);}_0x2f86b2['cookie']=_0x3667b2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3d9b81,_0x11ea10){_0x3d9b81=_0x3d9b81||function(_0xc6d59){return _0xc6d59;};const _0x33c418=_0x3d9b81(new RegExp('(?:^|;\x20)'+_0x11ea10['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f9cfd=function(_0x2816be,_0x4ca3fa){_0x2816be(++_0x4ca3fa);};return _0x1f9cfd(_0x5cc682,_0x5b6e79),_0x33c418?decodeURIComponent(_0x33c418[0x1]):undefined;}},_0x344508=function(){const _0x565766=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x565766['test'](_0x1db9af['removeCookie']['toString']());};_0x1db9af['updateCookie']=_0x344508;let _0x1dc1be='';const _0x5c005b=_0x1db9af['updateCookie']();if(!_0x5c005b)_0x1db9af['setCookie'](['*'],'counter',0x1);else _0x5c005b?_0x1dc1be=_0x1db9af['getCookie'](null,'counter'):_0x1db9af['removeCookie']();};_0x536201();}(a16_0x5b6e,0x105));const a16_0x5cc6=function(_0x267b94,_0x5b6e79){_0x267b94=_0x267b94-0x0;let _0x5cc682=a16_0x5b6e[_0x267b94];return _0x5cc682;};const a16_0x593dc6=function(){let _0x482629=!![];return function(_0x47ea08,_0x44d101){const _0x1842c3=_0x482629?function(){if(_0x44d101){const _0x439375=_0x44d101[a16_0x5cc6('0x1')](_0x47ea08,arguments);return _0x44d101=null,_0x439375;}}:function(){};return _0x482629=![],_0x1842c3;};}(),a16_0x192c9d=a16_0x593dc6(this,function(){const _0x5b69df=function(){const _0x29f3a6=_0x5b69df[a16_0x5cc6('0x14')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a16_0x5cc6('0x14')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x29f3a6['test'](a16_0x192c9d);};return _0x5b69df();});a16_0x192c9d();'use strict';const tesseract_1=require(a16_0x5cc6('0x1d')),Role_1=require(a16_0x5cc6('0x2c')),constants=require(a16_0x5cc6('0x2e')),errors=require(a16_0x5cc6('0x19')),omnic=require(a16_0x5cc6('0x3f'));module[a16_0x5cc6('0x35')]=class AutoRoles extends tesseract_1['Command']{constructor(){super('autoRoles',{'description':a16_0x5cc6('0x3'),'triggers':[],'arguments':{'alias':{'add':['a'],'remove':['r'],'bot':['b'],'user':['u']},'array':[a16_0x5cc6('0xd'),a16_0x5cc6('0x3b')],'boolean':[a16_0x5cc6('0x37'),a16_0x5cc6('0x1a')],'string':[a16_0x5cc6('0xd'),a16_0x5cc6('0x3b')]},'scope':a16_0x5cc6('0x40'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a16_0x5cc6('0x18')],'userPermissions':[a16_0x5cc6('0x18')],'syntax':['autoRoles',a16_0x5cc6('0x46'),'autoRoles\x20--add\x20ROLE\x20--bot',a16_0x5cc6('0x2a'),'autoRoles\x20--remove\x20ROLE']}),this[a16_0x5cc6('0x33')]=async(_0x78a914,_0x5b2d63)=>{if(_0x5b2d63['add']){if(constants['isPublicBastion'](this[a16_0x5cc6('0x23')][a16_0x5cc6('0x1a')])){const _0x42f9cc=await Role_1['default'][a16_0x5cc6('0x45')]({'guild':_0x78a914[a16_0x5cc6('0x40')]['id'],'autoAssignable':{'$exists':!![],'$ne':null}});if(_0x42f9cc>=constants[a16_0x5cc6('0x1b')][a16_0x5cc6('0x36')]){const _0x375e47=await omnic['fetchPremiumTier'](_0x78a914[a16_0x5cc6('0x40')])[a16_0x5cc6('0x3c')](()=>{});if(_0x375e47){if(_0x375e47===omnic[a16_0x5cc6('0x28')][a16_0x5cc6('0x2')]&&_0x42f9cc>=constants[a16_0x5cc6('0x1b')][a16_0x5cc6('0x2')][a16_0x5cc6('0x36')])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this[a16_0x5cc6('0x23')]['locale']['getString'](_0x78a914[a16_0x5cc6('0x40')][a16_0x5cc6('0x25')][a16_0x5cc6('0x9')],'errors','membershipLimitAutoRoles',constants['LIMITS'][a16_0x5cc6('0x2')][a16_0x5cc6('0x36')]));else{if(_0x375e47===omnic['PremiumTier'][a16_0x5cc6('0x10')]&&_0x42f9cc>=constants[a16_0x5cc6('0x1b')][a16_0x5cc6('0x10')]['AUTO_ROLES'])throw new errors[(a16_0x5cc6('0x42'))](errors[a16_0x5cc6('0x27')][a16_0x5cc6('0x26')],this['client'][a16_0x5cc6('0x3e')]['getString'](_0x78a914['guild'][a16_0x5cc6('0x25')]['language'],a16_0x5cc6('0x32'),'membershipLimitAutoRoles',constants[a16_0x5cc6('0x1b')][a16_0x5cc6('0x10')][a16_0x5cc6('0x36')]));}}else throw new errors['DiscordError'](errors[a16_0x5cc6('0x27')]['PREMIUM_MEMBERSHIP_REQUIRED'],this[a16_0x5cc6('0x23')][a16_0x5cc6('0x3e')][a16_0x5cc6('0x30')](_0x78a914['guild'][a16_0x5cc6('0x25')]['language'],a16_0x5cc6('0x32'),a16_0x5cc6('0xc'),constants[a16_0x5cc6('0x1b')][a16_0x5cc6('0x36')]));}}const _0x5833ce=this[a16_0x5cc6('0x23')][a16_0x5cc6('0x20')]['resolveRole'](_0x78a914[a16_0x5cc6('0x40')],_0x5b2d63[a16_0x5cc6('0xd')][a16_0x5cc6('0xa')]('\x20'));if(!_0x5833ce)throw new errors[(a16_0x5cc6('0x42'))](errors[a16_0x5cc6('0x27')][a16_0x5cc6('0x17')],this['client'][a16_0x5cc6('0x3e')]['getString'](_0x78a914[a16_0x5cc6('0x40')][a16_0x5cc6('0x25')][a16_0x5cc6('0x9')],a16_0x5cc6('0x32'),a16_0x5cc6('0x6')));const _0x3d7f11=!(Number(_0x5b2d63[a16_0x5cc6('0x37')])^Number(_0x5b2d63[a16_0x5cc6('0x1a')]))||_0x5b2d63['bot']||![],_0x47f814=!(Number(_0x5b2d63['bot'])^Number(_0x5b2d63[a16_0x5cc6('0x1a')]))||_0x5b2d63['user']||![];await Role_1[a16_0x5cc6('0x43')]['findByIdAndUpdate'](_0x5833ce['id'],{'_id':_0x5833ce['id'],'guild':_0x78a914[a16_0x5cc6('0x40')]['id'],'autoAssignable':{'forBots':_0x3d7f11,'forUsers':_0x47f814}},{'upsert':!![]}),await _0x78a914[a16_0x5cc6('0x3a')][a16_0x5cc6('0x1e')]({'embed':{'color':tesseract_1[a16_0x5cc6('0x24')][a16_0x5cc6('0x0')][a16_0x5cc6('0xf')],'description':this[a16_0x5cc6('0x23')][a16_0x5cc6('0x3e')][a16_0x5cc6('0x30')](_0x78a914[a16_0x5cc6('0x40')]['document'][a16_0x5cc6('0x9')],a16_0x5cc6('0x4'),'autoRolesAdd',_0x78a914[a16_0x5cc6('0x1f')][a16_0x5cc6('0x11')],_0x5833ce[a16_0x5cc6('0xb')]),'fields':[{'name':'For\x20Bots','value':_0x3d7f11['toString']()[a16_0x5cc6('0x31')](),'inline':!![]},{'name':'For\x20Humans','value':_0x47f814[a16_0x5cc6('0x39')]()['toUpperCase'](),'inline':!![]}],'footer':{'text':_0x5833ce['id']}}})[a16_0x5cc6('0x3c')](()=>{});}else{if(_0x5b2d63[a16_0x5cc6('0x3b')]){const _0x2a404f=this['client'][a16_0x5cc6('0x20')][a16_0x5cc6('0x44')](_0x78a914[a16_0x5cc6('0x40')],_0x5b2d63[a16_0x5cc6('0x3b')][a16_0x5cc6('0xa')]('\x20'));if(!_0x2a404f)throw new errors['DiscordError'](errors[a16_0x5cc6('0x27')]['ROLE_NOT_FOUND'],this[a16_0x5cc6('0x23')][a16_0x5cc6('0x3e')][a16_0x5cc6('0x30')](_0x78a914[a16_0x5cc6('0x40')][a16_0x5cc6('0x25')][a16_0x5cc6('0x9')],a16_0x5cc6('0x32'),a16_0x5cc6('0x6')));await Role_1[a16_0x5cc6('0x43')][a16_0x5cc6('0xe')](_0x2a404f['id'],{'$unset':{'autoAssignable':0x1}}),await _0x78a914[a16_0x5cc6('0x3a')]['send']({'embed':{'color':tesseract_1[a16_0x5cc6('0x24')]['COLORS'][a16_0x5cc6('0x38')],'description':this[a16_0x5cc6('0x23')][a16_0x5cc6('0x3e')][a16_0x5cc6('0x30')](_0x78a914[a16_0x5cc6('0x40')][a16_0x5cc6('0x25')][a16_0x5cc6('0x9')],'info',a16_0x5cc6('0x7'),_0x78a914[a16_0x5cc6('0x1f')][a16_0x5cc6('0x11')],_0x2a404f[a16_0x5cc6('0xb')]),'footer':{'text':_0x2a404f['id']}}})['catch'](()=>{});}else{const _0xe91d7a=await Role_1[a16_0x5cc6('0x43')][a16_0x5cc6('0x41')]({'guild':_0x78a914[a16_0x5cc6('0x40')]['id'],'autoAssignable':{'$exists':!![]}});if(!_0xe91d7a[a16_0x5cc6('0x2d')])throw new Error(this[a16_0x5cc6('0x23')][a16_0x5cc6('0x3e')][a16_0x5cc6('0x30')](_0x78a914['guild'][a16_0x5cc6('0x25')]['language'],a16_0x5cc6('0x32'),a16_0x5cc6('0x22')));const _0x505685=[];for(const _0x27da23 of _0xe91d7a){!_0x78a914['guild'][a16_0x5cc6('0x1c')][a16_0x5cc6('0x5')][a16_0x5cc6('0x13')](_0x27da23[a16_0x5cc6('0x16')])&&await _0x27da23[a16_0x5cc6('0x3b')]()[a16_0x5cc6('0x3c')](()=>{}),_0x505685[a16_0x5cc6('0x2f')]({'name':_0x78a914['guild']['roles']['cache'][a16_0x5cc6('0x12')](_0x27da23[a16_0x5cc6('0x16')])[a16_0x5cc6('0xb')]||'-','value':_0x27da23[a16_0x5cc6('0x16')]+(Number(_0x27da23['autoAssignable'][a16_0x5cc6('0x2b')])^Number(_0x27da23[a16_0x5cc6('0x15')][a16_0x5cc6('0x21')])&&_0x27da23[a16_0x5cc6('0x15')]['forBots']?'\x20/\x20BOTS':'')+(Number(_0x27da23[a16_0x5cc6('0x15')][a16_0x5cc6('0x2b')])^Number(_0x27da23['autoAssignable']['forUsers'])&&_0x27da23[a16_0x5cc6('0x15')]['forUsers']?a16_0x5cc6('0x3d'):'')});}await _0x78a914[a16_0x5cc6('0x3a')]['send']({'embed':{'color':tesseract_1[a16_0x5cc6('0x24')]['COLORS'][a16_0x5cc6('0x29')],'title':a16_0x5cc6('0x34'),'description':this[a16_0x5cc6('0x23')][a16_0x5cc6('0x3e')][a16_0x5cc6('0x30')](_0x78a914[a16_0x5cc6('0x40')]['document'][a16_0x5cc6('0x9')],a16_0x5cc6('0x4'),a16_0x5cc6('0x8')),'fields':_0x505685}})[a16_0x5cc6('0x3c')](()=>{});}}};}}; \ No newline at end of file diff --git a/commands/configuration/farewells.js b/commands/configuration/farewells.js index 11a17b153..cd60052b3 100644 --- a/commands/configuration/farewells.js +++ b/commands/configuration/farewells.js @@ -1 +1 @@ -const a17_0x2a15=['cache','save','document','timeout','Command','channels','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','length','join','message','channel','@bastion/tesseract','exports','farewells','Farewell\x20Preview\x20•\x20','guild','test','farewell','exec','../../utils/embeds','catch','disable','get','farewells\x20--\x20MESSAGE','has','channelId','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20farewells\x20in\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20set\x20farewell\x20message\x20and\x20timeout.','name','enable','\x20•\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/','MANAGE_GUILD','constructor','Disabled','farewells\x20--disable','\x20minutes','farewells\x20--timeout\x20TIMEOUT_IN_MINUTES'];(function(_0xc31e47,_0x2a1559){const _0x131988=function(_0x492033){while(--_0x492033){_0xc31e47['push'](_0xc31e47['shift']());}},_0x2de6b7=function(){const _0xcf619a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x589a9b,_0x20cfa1,_0x391a31,_0x37dabb){_0x37dabb=_0x37dabb||{};let _0x50682d=_0x20cfa1+'='+_0x391a31,_0x490643=0x0;for(let _0x37b0d9=0x0,_0x144247=_0x589a9b['length'];_0x37b0d9<_0x144247;_0x37b0d9++){const _0x2ca65f=_0x589a9b[_0x37b0d9];_0x50682d+=';\x20'+_0x2ca65f;const _0x316767=_0x589a9b[_0x2ca65f];_0x589a9b['push'](_0x316767),_0x144247=_0x589a9b['length'],_0x316767!==!![]&&(_0x50682d+='='+_0x316767);}_0x37dabb['cookie']=_0x50682d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x14f24b,_0x34b1d2){_0x14f24b=_0x14f24b||function(_0xf7f18c){return _0xf7f18c;};const _0x2d5eea=_0x14f24b(new RegExp('(?:^|;\x20)'+_0x34b1d2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3c8947=function(_0x3a6681,_0x5249b9){_0x3a6681(++_0x5249b9);};return _0x3c8947(_0x131988,_0x2a1559),_0x2d5eea?decodeURIComponent(_0x2d5eea[0x1]):undefined;}},_0x3d9c0d=function(){const _0x5718a6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5718a6['test'](_0xcf619a['removeCookie']['toString']());};_0xcf619a['updateCookie']=_0x3d9c0d;let _0x389e60='';const _0x16cbf9=_0xcf619a['updateCookie']();if(!_0x16cbf9)_0xcf619a['setCookie'](['*'],'counter',0x1);else _0x16cbf9?_0x389e60=_0xcf619a['getCookie'](null,'counter'):_0xcf619a['removeCookie']();};_0x2de6b7();}(a17_0x2a15,0x97));const a17_0x1319=function(_0xc31e47,_0x2a1559){_0xc31e47=_0xc31e47-0x0;let _0x131988=a17_0x2a15[_0xc31e47];return _0x131988;};const a17_0x391a31=function(){let _0x4b9538=!![];return function(_0x51fc80,_0x56de75){const _0x30f5a3=_0x4b9538?function(){if(_0x56de75){const _0x313d94=_0x56de75['apply'](_0x51fc80,arguments);return _0x56de75=null,_0x313d94;}}:function(){};return _0x4b9538=![],_0x30f5a3;};}(),a17_0x20cfa1=a17_0x391a31(this,function(){const _0x3d5f03=function(){const _0x52f3ba=_0x3d5f03['constructor'](a17_0x1319('0x1b'))()[a17_0x1319('0x1d')](a17_0x1319('0x3'));return!_0x52f3ba[a17_0x1319('0xd')](a17_0x20cfa1);};return _0x3d5f03();});a17_0x20cfa1();'use strict';const tesseract_1=require(a17_0x1319('0x8')),embeds=require(a17_0x1319('0x10'));module[a17_0x1319('0x9')]=class Farewells extends tesseract_1[a17_0x1319('0x1')]{constructor(){super(a17_0x1319('0xa'),{'description':a17_0x1319('0x17'),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'timeout':['t']},'boolean':['disable','enable'],'number':[a17_0x1319('0x0')]},'scope':a17_0x1319('0xc'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a17_0x1319('0x1c')],'syntax':['farewells\x20--enable',a17_0x1319('0x1f'),a17_0x1319('0x21'),a17_0x1319('0x14')]}),this[a17_0x1319('0xf')]=async(_0x213de7,_0x4179bc)=>{const _0x413e87=_0x213de7['guild'];_0x413e87[a17_0x1319('0x24')][a17_0x1319('0xe')]={'channelId':_0x4179bc[a17_0x1319('0x19')]?_0x213de7['channel']['id']:_0x4179bc[a17_0x1319('0x12')]?undefined:_0x413e87[a17_0x1319('0x24')][a17_0x1319('0xe')]?_0x413e87['document'][a17_0x1319('0xe')][a17_0x1319('0x16')]:undefined,'message':_0x4179bc['_'][a17_0x1319('0x4')]?embeds['generateBastionEmbed'](_0x4179bc['_'][a17_0x1319('0x5')]('\x20')):_0x413e87[a17_0x1319('0x24')]['farewell']?_0x413e87[a17_0x1319('0x24')][a17_0x1319('0xe')][a17_0x1319('0x6')]:undefined,'timeout':typeof _0x4179bc['timeout']==='number'?_0x4179bc[a17_0x1319('0x0')]:_0x413e87['document']['farewell']?_0x413e87[a17_0x1319('0x24')][a17_0x1319('0xe')][a17_0x1319('0x0')]:undefined},await _0x413e87[a17_0x1319('0x24')][a17_0x1319('0x23')](),await _0x213de7[a17_0x1319('0x7')]['send']({'embed':{..._0x413e87['document']['farewell'][a17_0x1319('0x6')],'footer':{'text':a17_0x1319('0xb')+(_0x213de7[a17_0x1319('0xc')][a17_0x1319('0x2')][a17_0x1319('0x22')][a17_0x1319('0x15')](_0x413e87[a17_0x1319('0x24')][a17_0x1319('0xe')][a17_0x1319('0x16')])?_0x213de7[a17_0x1319('0xc')][a17_0x1319('0x2')][a17_0x1319('0x22')][a17_0x1319('0x13')](_0x413e87[a17_0x1319('0x24')]['farewell'][a17_0x1319('0x16')])[a17_0x1319('0x18')]:a17_0x1319('0x1e'))+(typeof _0x413e87[a17_0x1319('0x24')][a17_0x1319('0xe')][a17_0x1319('0x0')]==='number'?a17_0x1319('0x1a')+(_0x413e87[a17_0x1319('0x24')][a17_0x1319('0xe')][a17_0x1319('0x0')]+a17_0x1319('0x20')):'')}}})[a17_0x1319('0x11')](()=>{});};}}; \ No newline at end of file +const a17_0x3623=['document','length','disable','name','has','Disabled','channelId','../../utils/embeds','constructor','catch','exec','timeout','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Farewell\x20Preview\x20•\x20','farewells\x20--enable','channel','farewell','\x20minutes','join','farewells','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract','guild','message','MANAGE_GUILD','channels','enable','farewells\x20--timeout\x20TIMEOUT_IN_MINUTES','\x20•\x20','cache','apply','farewells\x20--\x20MESSAGE','generateBastionEmbed','Command'];(function(_0x2e49c6,_0x36230b){const _0x27fa6c=function(_0x3d1b79){while(--_0x3d1b79){_0x2e49c6['push'](_0x2e49c6['shift']());}},_0x282bae=function(){const _0x28c5ae={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3f0717,_0x10691a,_0x3b1840,_0x1631df){_0x1631df=_0x1631df||{};let _0x30649f=_0x10691a+'='+_0x3b1840,_0x59405e=0x0;for(let _0x29557f=0x0,_0x44a2e2=_0x3f0717['length'];_0x29557f<_0x44a2e2;_0x29557f++){const _0x39ff9c=_0x3f0717[_0x29557f];_0x30649f+=';\x20'+_0x39ff9c;const _0x4fe280=_0x3f0717[_0x39ff9c];_0x3f0717['push'](_0x4fe280),_0x44a2e2=_0x3f0717['length'],_0x4fe280!==!![]&&(_0x30649f+='='+_0x4fe280);}_0x1631df['cookie']=_0x30649f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x719be5,_0x3d28ab){_0x719be5=_0x719be5||function(_0x42db57){return _0x42db57;};const _0x514542=_0x719be5(new RegExp('(?:^|;\x20)'+_0x3d28ab['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x16d2ed=function(_0x57b638,_0x3114a4){_0x57b638(++_0x3114a4);};return _0x16d2ed(_0x27fa6c,_0x36230b),_0x514542?decodeURIComponent(_0x514542[0x1]):undefined;}},_0x1a80c2=function(){const _0x4b6780=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4b6780['test'](_0x28c5ae['removeCookie']['toString']());};_0x28c5ae['updateCookie']=_0x1a80c2;let _0x588770='';const _0x3c8c27=_0x28c5ae['updateCookie']();if(!_0x3c8c27)_0x28c5ae['setCookie'](['*'],'counter',0x1);else _0x3c8c27?_0x588770=_0x28c5ae['getCookie'](null,'counter'):_0x28c5ae['removeCookie']();};_0x282bae();}(a17_0x3623,0x126));const a17_0x27fa=function(_0x2e49c6,_0x36230b){_0x2e49c6=_0x2e49c6-0x0;let _0x27fa6c=a17_0x3623[_0x2e49c6];return _0x27fa6c;};const a17_0x3b1840=function(){let _0xbe2583=!![];return function(_0x3d7acb,_0x50a4b7){const _0x47844c=_0xbe2583?function(){if(_0x50a4b7){const _0x8bd53f=_0x50a4b7[a17_0x27fa('0x8')](_0x3d7acb,arguments);return _0x50a4b7=null,_0x8bd53f;}}:function(){};return _0xbe2583=![],_0x47844c;};}(),a17_0x10691a=a17_0x3b1840(this,function(){const _0xfadccc=function(){const _0xa81634=_0xfadccc['constructor'](a17_0x27fa('0x20'))()[a17_0x27fa('0x14')](a17_0x27fa('0x18'));return!_0xa81634['test'](a17_0x10691a);};return _0xfadccc();});a17_0x10691a();'use strict';const tesseract_1=require(a17_0x27fa('0x21')),embeds=require(a17_0x27fa('0x13'));module['exports']=class Farewells extends tesseract_1[a17_0x27fa('0xb')]{constructor(){super(a17_0x27fa('0x1f'),{'description':'It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20farewells\x20in\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20set\x20farewell\x20message\x20and\x20timeout.','triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'timeout':['t']},'boolean':[a17_0x27fa('0xe'),'enable'],'number':[a17_0x27fa('0x17')]},'scope':a17_0x27fa('0x0'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a17_0x27fa('0x2')],'syntax':[a17_0x27fa('0x1a'),'farewells\x20--disable',a17_0x27fa('0x5'),a17_0x27fa('0x9')]}),this[a17_0x27fa('0x16')]=async(_0x44f9c1,_0x5b7106)=>{const _0x23d21b=_0x44f9c1[a17_0x27fa('0x0')];_0x23d21b[a17_0x27fa('0xc')][a17_0x27fa('0x1c')]={'channelId':_0x5b7106[a17_0x27fa('0x4')]?_0x44f9c1['channel']['id']:_0x5b7106[a17_0x27fa('0xe')]?undefined:_0x23d21b[a17_0x27fa('0xc')][a17_0x27fa('0x1c')]?_0x23d21b['document'][a17_0x27fa('0x1c')][a17_0x27fa('0x12')]:undefined,'message':_0x5b7106['_'][a17_0x27fa('0xd')]?embeds[a17_0x27fa('0xa')](_0x5b7106['_'][a17_0x27fa('0x1e')]('\x20')):_0x23d21b[a17_0x27fa('0xc')]['farewell']?_0x23d21b['document'][a17_0x27fa('0x1c')][a17_0x27fa('0x1')]:undefined,'timeout':typeof _0x5b7106[a17_0x27fa('0x17')]==='number'?_0x5b7106[a17_0x27fa('0x17')]:_0x23d21b[a17_0x27fa('0xc')][a17_0x27fa('0x1c')]?_0x23d21b[a17_0x27fa('0xc')][a17_0x27fa('0x1c')][a17_0x27fa('0x17')]:undefined},await _0x23d21b[a17_0x27fa('0xc')]['save'](),await _0x44f9c1[a17_0x27fa('0x1b')]['send']({'embed':{..._0x23d21b['document'][a17_0x27fa('0x1c')]['message'],'footer':{'text':a17_0x27fa('0x19')+(_0x44f9c1[a17_0x27fa('0x0')][a17_0x27fa('0x3')][a17_0x27fa('0x7')][a17_0x27fa('0x10')](_0x23d21b[a17_0x27fa('0xc')][a17_0x27fa('0x1c')][a17_0x27fa('0x12')])?_0x44f9c1[a17_0x27fa('0x0')][a17_0x27fa('0x3')][a17_0x27fa('0x7')]['get'](_0x23d21b[a17_0x27fa('0xc')][a17_0x27fa('0x1c')][a17_0x27fa('0x12')])[a17_0x27fa('0xf')]:a17_0x27fa('0x11'))+(typeof _0x23d21b['document'][a17_0x27fa('0x1c')]['timeout']==='number'?a17_0x27fa('0x6')+(_0x23d21b['document']['farewell'][a17_0x27fa('0x17')]+a17_0x27fa('0x1d')):'')}}})[a17_0x27fa('0x15')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/gambling.js b/commands/configuration/gambling.js index ebb593501..36b62105c 100644 --- a/commands/configuration/gambling.js +++ b/commands/configuration/gambling.js @@ -1 +1 @@ -const a18_0x4fe5=['document','toString','Command','tag','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','catch','COLORS','locale','send','DiscordError','RED','fetchPremiumTier','../../utils/constants','enabled','language','constructor','author','../../utils/omnic','multiplier','gambling\x20--multiplier\x201..13','apply','premiumGamblingMultiplier','MANAGE_GUILD','save','gamblingEnable','channel','GREEN','Constants','../../utils/errors','user','It\x20allows\x20you\x20to\x20enable\x20(or\x20disable)\x20gambling\x20in\x20the\x20server.\x20When\x20enabled,\x20members\x20can\x20use\x20their\x20Bastion\x20Coins\x20to\x20gamble\x20in\x20games.','gambling','BASTION_ERROR_TYPE','getString','PREMIUM_MEMBERSHIP_REQUIRED','exports','client','isPublicBastion','errors','guild'];(function(_0x45a293,_0x4fe525){const _0xb9d37b=function(_0x13dd48){while(--_0x13dd48){_0x45a293['push'](_0x45a293['shift']());}},_0x8c4373=function(){const _0x57f878={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x566cb6,_0x4e6fd6,_0x24792a,_0x50f0c6){_0x50f0c6=_0x50f0c6||{};let _0x2b4ad1=_0x4e6fd6+'='+_0x24792a,_0x49cdda=0x0;for(let _0x5d4f1b=0x0,_0x8a349=_0x566cb6['length'];_0x5d4f1b<_0x8a349;_0x5d4f1b++){const _0x3f5987=_0x566cb6[_0x5d4f1b];_0x2b4ad1+=';\x20'+_0x3f5987;const _0x56c909=_0x566cb6[_0x3f5987];_0x566cb6['push'](_0x56c909),_0x8a349=_0x566cb6['length'],_0x56c909!==!![]&&(_0x2b4ad1+='='+_0x56c909);}_0x50f0c6['cookie']=_0x2b4ad1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5877ff,_0x73c597){_0x5877ff=_0x5877ff||function(_0x4fb67){return _0x4fb67;};const _0x3e5ec1=_0x5877ff(new RegExp('(?:^|;\x20)'+_0x73c597['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x46404b=function(_0x2779b9,_0x3545b4){_0x2779b9(++_0x3545b4);};return _0x46404b(_0xb9d37b,_0x4fe525),_0x3e5ec1?decodeURIComponent(_0x3e5ec1[0x1]):undefined;}},_0x4e4c50=function(){const _0x3d400e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3d400e['test'](_0x57f878['removeCookie']['toString']());};_0x57f878['updateCookie']=_0x4e4c50;let _0x3f02cc='';const _0x4fc233=_0x57f878['updateCookie']();if(!_0x4fc233)_0x57f878['setCookie'](['*'],'counter',0x1);else _0x4fc233?_0x3f02cc=_0x57f878['getCookie'](null,'counter'):_0x57f878['removeCookie']();};_0x8c4373();}(a18_0x4fe5,0x76));const a18_0xb9d3=function(_0x45a293,_0x4fe525){_0x45a293=_0x45a293-0x0;let _0xb9d37b=a18_0x4fe5[_0x45a293];return _0xb9d37b;};const a18_0x24792a=function(){let _0x4c897f=!![];return function(_0x322a9f,_0x4a5c6c){const _0x156126=_0x4c897f?function(){if(_0x4a5c6c){const _0x1e033e=_0x4a5c6c[a18_0xb9d3('0x16')](_0x322a9f,arguments);return _0x4a5c6c=null,_0x1e033e;}}:function(){};return _0x4c897f=![],_0x156126;};}(),a18_0x4e6fd6=a18_0x24792a(this,function(){const _0x21ae86=function(){const _0x3803c4=_0x21ae86['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a18_0xb9d3('0x11')](a18_0xb9d3('0x6'));return!_0x3803c4['test'](a18_0x4e6fd6);};return _0x21ae86();});a18_0x4e6fd6();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a18_0xb9d3('0xe')),errors=require(a18_0xb9d3('0x1e')),omnic=require(a18_0xb9d3('0x13'));module[a18_0xb9d3('0x25')]=class GamblingCommand extends tesseract_1[a18_0xb9d3('0x4')]{constructor(){super(a18_0xb9d3('0x21'),{'description':a18_0xb9d3('0x20'),'triggers':[],'arguments':{'number':[a18_0xb9d3('0x14')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a18_0xb9d3('0x18')],'syntax':['gambling',a18_0xb9d3('0x15')]}),this['exec']=async(_0x1ec1fe,_0x1916ba)=>{if(_0x1916ba[a18_0xb9d3('0x14')]&&constants[a18_0xb9d3('0x27')](this[a18_0xb9d3('0x26')][a18_0xb9d3('0x1f')])){const _0xf590a9=await omnic[a18_0xb9d3('0xd')](_0x1ec1fe[a18_0xb9d3('0x1')])[a18_0xb9d3('0x7')](()=>{});if(!_0xf590a9)throw new errors[(a18_0xb9d3('0xb'))](errors[a18_0xb9d3('0x22')][a18_0xb9d3('0x24')],this['client']['locale']['getString'](_0x1ec1fe[a18_0xb9d3('0x1')][a18_0xb9d3('0x2')][a18_0xb9d3('0x10')],a18_0xb9d3('0x0'),a18_0xb9d3('0x17')));}const _0x5b3ed7=_0x1ec1fe[a18_0xb9d3('0x1')],_0x6e3b36=_0x1916ba['multiplier']?!![]:!(_0x5b3ed7[a18_0xb9d3('0x2')][a18_0xb9d3('0x21')]&&_0x5b3ed7[a18_0xb9d3('0x2')][a18_0xb9d3('0x21')][a18_0xb9d3('0xf')]);_0x5b3ed7['document'][a18_0xb9d3('0x21')]={'enabled':_0x6e3b36,'multiplier':typeof _0x1916ba[a18_0xb9d3('0x14')]==='number'?_0x1916ba[a18_0xb9d3('0x14')]:_0x6e3b36?_0x5b3ed7['document']['gambling']&&_0x5b3ed7[a18_0xb9d3('0x2')][a18_0xb9d3('0x21')][a18_0xb9d3('0x14')]:undefined},await _0x5b3ed7[a18_0xb9d3('0x2')][a18_0xb9d3('0x19')](),await _0x1ec1fe[a18_0xb9d3('0x1b')][a18_0xb9d3('0xa')]({'embed':{'color':_0x5b3ed7['document'][a18_0xb9d3('0x21')][a18_0xb9d3('0xf')]?tesseract_1[a18_0xb9d3('0x1d')][a18_0xb9d3('0x8')][a18_0xb9d3('0x1c')]:tesseract_1[a18_0xb9d3('0x1d')][a18_0xb9d3('0x8')][a18_0xb9d3('0xc')],'description':this[a18_0xb9d3('0x26')][a18_0xb9d3('0x9')][a18_0xb9d3('0x23')](_0x1ec1fe['guild']['document']['language'],'info',_0x5b3ed7[a18_0xb9d3('0x2')][a18_0xb9d3('0x21')]['enabled']?a18_0xb9d3('0x1a'):'gamblingDisable',_0x1ec1fe[a18_0xb9d3('0x12')][a18_0xb9d3('0x5')]),'fields':_0x5b3ed7[a18_0xb9d3('0x2')]['gambling'][a18_0xb9d3('0xf')]?[{'name':'Gambling\x20Reward\x20Multiplier','value':_0x5b3ed7[a18_0xb9d3('0x2')][a18_0xb9d3('0x21')][a18_0xb9d3('0x14')]?_0x5b3ed7[a18_0xb9d3('0x2')][a18_0xb9d3('0x21')][a18_0xb9d3('0x14')][a18_0xb9d3('0x3')]():0x1[a18_0xb9d3('0x3')](),'inline':!![]}]:[]}})[a18_0xb9d3('0x7')](()=>{});};}}; \ No newline at end of file +const a18_0x55cb=['document','tag','guild','gamblingEnable','PREMIUM_MEMBERSHIP_REQUIRED','../../utils/constants','gambling','fetchPremiumTier','toString','client','It\x20allows\x20you\x20to\x20enable\x20(or\x20disable)\x20gambling\x20in\x20the\x20server.\x20When\x20enabled,\x20members\x20can\x20use\x20their\x20Bastion\x20Coins\x20to\x20gamble\x20in\x20games.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','Constants','enabled','user','exports','../../utils/omnic','locale','exec','gamblingDisable','save','premiumGamblingMultiplier','getString','Gambling\x20Reward\x20Multiplier','BASTION_ERROR_TYPE','info','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','errors','multiplier','apply','@bastion/tesseract','channel','isPublicBastion','GREEN','constructor','gambling\x20--multiplier\x201..13','catch','../../utils/errors'];(function(_0x20bc86,_0x55cb1d){const _0x45cbc2=function(_0x47d1bc){while(--_0x47d1bc){_0x20bc86['push'](_0x20bc86['shift']());}},_0x2c754c=function(){const _0x366028={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x231760,_0x5c3a23,_0x1ee210,_0x5dc4b6){_0x5dc4b6=_0x5dc4b6||{};let _0x5ea462=_0x5c3a23+'='+_0x1ee210,_0x3728a7=0x0;for(let _0x1ca685=0x0,_0x550a73=_0x231760['length'];_0x1ca685<_0x550a73;_0x1ca685++){const _0x16b5bc=_0x231760[_0x1ca685];_0x5ea462+=';\x20'+_0x16b5bc;const _0x1320c4=_0x231760[_0x16b5bc];_0x231760['push'](_0x1320c4),_0x550a73=_0x231760['length'],_0x1320c4!==!![]&&(_0x5ea462+='='+_0x1320c4);}_0x5dc4b6['cookie']=_0x5ea462;},'removeCookie':function(){return'dev';},'getCookie':function(_0x221eb1,_0x2ca6fc){_0x221eb1=_0x221eb1||function(_0x89a43a){return _0x89a43a;};const _0x41c39e=_0x221eb1(new RegExp('(?:^|;\x20)'+_0x2ca6fc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x35ff0d=function(_0x4950c7,_0x1edb74){_0x4950c7(++_0x1edb74);};return _0x35ff0d(_0x45cbc2,_0x55cb1d),_0x41c39e?decodeURIComponent(_0x41c39e[0x1]):undefined;}},_0x55e314=function(){const _0xaa6b92=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xaa6b92['test'](_0x366028['removeCookie']['toString']());};_0x366028['updateCookie']=_0x55e314;let _0x48cf01='';const _0x1a29fe=_0x366028['updateCookie']();if(!_0x1a29fe)_0x366028['setCookie'](['*'],'counter',0x1);else _0x1a29fe?_0x48cf01=_0x366028['getCookie'](null,'counter'):_0x366028['removeCookie']();};_0x2c754c();}(a18_0x55cb,0xed));const a18_0x45cb=function(_0x20bc86,_0x55cb1d){_0x20bc86=_0x20bc86-0x0;let _0x45cbc2=a18_0x55cb[_0x20bc86];return _0x45cbc2;};const a18_0x1ee210=function(){let _0x3325ae=!![];return function(_0x24405b,_0x4fcaa9){const _0x47a6f3=_0x3325ae?function(){if(_0x4fcaa9){const _0x4e4914=_0x4fcaa9[a18_0x45cb('0x1b')](_0x24405b,arguments);return _0x4fcaa9=null,_0x4e4914;}}:function(){};return _0x3325ae=![],_0x47a6f3;};}(),a18_0x5c3a23=a18_0x1ee210(this,function(){const _0x390dd9=function(){const _0x149f3e=_0x390dd9[a18_0x45cb('0x20')](a18_0x45cb('0x8'))()['constructor'](a18_0x45cb('0x18'));return!_0x149f3e[a18_0x45cb('0x9')](a18_0x5c3a23);};return _0x390dd9();});a18_0x5c3a23();'use strict';const tesseract_1=require(a18_0x45cb('0x1c')),constants=require(a18_0x45cb('0x2')),errors=require(a18_0x45cb('0x23')),omnic=require(a18_0x45cb('0xe'));module[a18_0x45cb('0xd')]=class GamblingCommand extends tesseract_1['Command']{constructor(){super(a18_0x45cb('0x3'),{'description':a18_0x45cb('0x7'),'triggers':[],'arguments':{'number':[a18_0x45cb('0x1a')]},'scope':a18_0x45cb('0x26'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':['gambling',a18_0x45cb('0x21')]}),this[a18_0x45cb('0x10')]=async(_0xd7cc53,_0x217d4b)=>{if(_0x217d4b[a18_0x45cb('0x1a')]&&constants[a18_0x45cb('0x1e')](this[a18_0x45cb('0x6')][a18_0x45cb('0xc')])){const _0x125737=await omnic[a18_0x45cb('0x4')](_0xd7cc53['guild'])[a18_0x45cb('0x22')](()=>{});if(!_0x125737)throw new errors['DiscordError'](errors[a18_0x45cb('0x16')][a18_0x45cb('0x1')],this[a18_0x45cb('0x6')][a18_0x45cb('0xf')]['getString'](_0xd7cc53['guild'][a18_0x45cb('0x24')]['language'],a18_0x45cb('0x19'),a18_0x45cb('0x13')));}const _0x4cb682=_0xd7cc53[a18_0x45cb('0x26')],_0x5503db=_0x217d4b[a18_0x45cb('0x1a')]?!![]:!(_0x4cb682[a18_0x45cb('0x24')]['gambling']&&_0x4cb682[a18_0x45cb('0x24')][a18_0x45cb('0x3')][a18_0x45cb('0xb')]);_0x4cb682[a18_0x45cb('0x24')][a18_0x45cb('0x3')]={'enabled':_0x5503db,'multiplier':typeof _0x217d4b[a18_0x45cb('0x1a')]==='number'?_0x217d4b[a18_0x45cb('0x1a')]:_0x5503db?_0x4cb682[a18_0x45cb('0x24')][a18_0x45cb('0x3')]&&_0x4cb682[a18_0x45cb('0x24')][a18_0x45cb('0x3')][a18_0x45cb('0x1a')]:undefined},await _0x4cb682['document'][a18_0x45cb('0x12')](),await _0xd7cc53[a18_0x45cb('0x1d')]['send']({'embed':{'color':_0x4cb682[a18_0x45cb('0x24')]['gambling'][a18_0x45cb('0xb')]?tesseract_1[a18_0x45cb('0xa')]['COLORS'][a18_0x45cb('0x1f')]:tesseract_1['Constants']['COLORS']['RED'],'description':this['client'][a18_0x45cb('0xf')][a18_0x45cb('0x14')](_0xd7cc53['guild'][a18_0x45cb('0x24')]['language'],a18_0x45cb('0x17'),_0x4cb682[a18_0x45cb('0x24')][a18_0x45cb('0x3')][a18_0x45cb('0xb')]?a18_0x45cb('0x0'):a18_0x45cb('0x11'),_0xd7cc53['author'][a18_0x45cb('0x25')]),'fields':_0x4cb682[a18_0x45cb('0x24')]['gambling'][a18_0x45cb('0xb')]?[{'name':a18_0x45cb('0x15'),'value':_0x4cb682[a18_0x45cb('0x24')]['gambling'][a18_0x45cb('0x1a')]?_0x4cb682[a18_0x45cb('0x24')][a18_0x45cb('0x3')][a18_0x45cb('0x1a')][a18_0x45cb('0x5')]():0x1[a18_0x45cb('0x5')](),'inline':!![]}]:[]}})[a18_0x45cb('0x22')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/gamification.js b/commands/configuration/gamification.js index c6de379ad..c6a544d9e 100644 --- a/commands/configuration/gamification.js +++ b/commands/configuration/gamification.js @@ -1 +1 @@ -const a19_0x1b16=['toString','send','gamificationEnable','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Enabled','number','../../utils/omnic','errors','getString','RED','author','enabled','BASTION_ERROR_TYPE','exec','info','exports','It\x20allows\x20you\x20to\x20enable\x20(or\x20disable)\x20gamification\x20in\x20the\x20server.\x20When\x20enabled,\x20users\x20gain\x20experience\x20and\x20level\x20up\x20in\x20the\x20server\x20by\x20participating\x20in\x20the\x20server,\x20competing\x20against\x20each\x20other\x20to\x20climb\x20the\x20leaderboard.\x20It\x20also\x20allows\x20you\x20to\x20toggle\x20level\x20up\x20messages\x20and\x20set\x20the\x20level\x20up\x20multiplier.','Disabled','document','channel','language','gamificationDisable','isPublicBastion','test','guild','fetchPremiumTier','gamification','PREMIUM_MEMBERSHIP_REQUIRED','premiumGamificationMultiplier','apply','DEFAUL_LEVELUP_MULTIPLIER','multiplier','../../utils/errors','locale','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','catch','client','tag','GREEN','save','@bastion/tesseract','Constants','Level-Up\x20Multiplier','messages','COLORS'];(function(_0x421199,_0x1b1613){const _0x10cba0=function(_0xef3eba){while(--_0xef3eba){_0x421199['push'](_0x421199['shift']());}},_0x38e3ca=function(){const _0x2be5eb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x73e4e5,_0x3fd033,_0x1916cf,_0x4666c4){_0x4666c4=_0x4666c4||{};let _0x348fda=_0x3fd033+'='+_0x1916cf,_0x56048a=0x0;for(let _0x325d90=0x0,_0x21b2ad=_0x73e4e5['length'];_0x325d90<_0x21b2ad;_0x325d90++){const _0x3cd028=_0x73e4e5[_0x325d90];_0x348fda+=';\x20'+_0x3cd028;const _0x2b58ab=_0x73e4e5[_0x3cd028];_0x73e4e5['push'](_0x2b58ab),_0x21b2ad=_0x73e4e5['length'],_0x2b58ab!==!![]&&(_0x348fda+='='+_0x2b58ab);}_0x4666c4['cookie']=_0x348fda;},'removeCookie':function(){return'dev';},'getCookie':function(_0xe66177,_0x53c6d4){_0xe66177=_0xe66177||function(_0x51b2){return _0x51b2;};const _0x989854=_0xe66177(new RegExp('(?:^|;\x20)'+_0x53c6d4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x531f8c=function(_0x211aba,_0x58255b){_0x211aba(++_0x58255b);};return _0x531f8c(_0x10cba0,_0x1b1613),_0x989854?decodeURIComponent(_0x989854[0x1]):undefined;}},_0x50bce3=function(){const _0x19c4a7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x19c4a7['test'](_0x2be5eb['removeCookie']['toString']());};_0x2be5eb['updateCookie']=_0x50bce3;let _0x4e3d90='';const _0x19b996=_0x2be5eb['updateCookie']();if(!_0x19b996)_0x2be5eb['setCookie'](['*'],'counter',0x1);else _0x19b996?_0x4e3d90=_0x2be5eb['getCookie'](null,'counter'):_0x2be5eb['removeCookie']();};_0x38e3ca();}(a19_0x1b16,0x179));const a19_0x10cb=function(_0x421199,_0x1b1613){_0x421199=_0x421199-0x0;let _0x10cba0=a19_0x1b16[_0x421199];return _0x10cba0;};const a19_0x1916cf=function(){let _0x1a588d=!![];return function(_0xe4a71c,_0x360f44){const _0x590228=_0x1a588d?function(){if(_0x360f44){const _0x443aa2=_0x360f44[a19_0x10cb('0x14')](_0xe4a71c,arguments);return _0x360f44=null,_0x443aa2;}}:function(){};return _0x1a588d=![],_0x590228;};}(),a19_0x3fd033=a19_0x1916cf(this,function(){const _0x343b33=function(){const _0x124286=_0x343b33['constructor'](a19_0x10cb('0x28'))()[a19_0x10cb('0x19')](a19_0x10cb('0x1a'));return!_0x124286[a19_0x10cb('0xe')](a19_0x3fd033);};return _0x343b33();});a19_0x3fd033();'use strict';const tesseract_1=require(a19_0x10cb('0x20')),constants=require('../../utils/constants'),errors=require(a19_0x10cb('0x17')),gamification=require('../../utils/gamification'),omnic=require(a19_0x10cb('0x2b'));module[a19_0x10cb('0x6')]=class Gamification extends tesseract_1['Command']{constructor(){super(a19_0x10cb('0x11'),{'description':a19_0x10cb('0x7'),'triggers':[],'arguments':{'boolean':['messages'],'number':[a19_0x10cb('0x16')]},'scope':a19_0x10cb('0xf'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[a19_0x10cb('0x11'),'gamification\x20--messages','gamification\x20--multiplier\x20NUMBER']}),this[a19_0x10cb('0x4')]=async(_0x584b42,_0x30f107)=>{if(_0x30f107[a19_0x10cb('0x16')]&&constants[a19_0x10cb('0xd')](this[a19_0x10cb('0x1c')]['user'])){const _0x380bf6=await omnic[a19_0x10cb('0x10')](_0x584b42[a19_0x10cb('0xf')])[a19_0x10cb('0x1b')](()=>{});if(!_0x380bf6)throw new errors['DiscordError'](errors[a19_0x10cb('0x3')][a19_0x10cb('0x12')],this[a19_0x10cb('0x1c')][a19_0x10cb('0x18')][a19_0x10cb('0x2d')](_0x584b42['guild'][a19_0x10cb('0x9')][a19_0x10cb('0xb')],a19_0x10cb('0x2c'),a19_0x10cb('0x13')));}const _0x29f02a=_0x584b42[a19_0x10cb('0xf')],_0x1d553e=_0x30f107['messages']||_0x30f107[a19_0x10cb('0x16')]?!![]:!(_0x29f02a[a19_0x10cb('0x9')][a19_0x10cb('0x11')]&&_0x29f02a[a19_0x10cb('0x9')][a19_0x10cb('0x11')][a19_0x10cb('0x2')]);_0x29f02a[a19_0x10cb('0x9')]['gamification']={'enabled':_0x1d553e,'messages':_0x30f107['messages']?!![]:_0x1d553e?_0x29f02a[a19_0x10cb('0x9')][a19_0x10cb('0x11')]&&_0x29f02a[a19_0x10cb('0x9')][a19_0x10cb('0x11')][a19_0x10cb('0x23')]:undefined,'multiplier':typeof _0x30f107[a19_0x10cb('0x16')]===a19_0x10cb('0x2a')?_0x30f107[a19_0x10cb('0x16')]:_0x1d553e?_0x29f02a[a19_0x10cb('0x9')][a19_0x10cb('0x11')]&&_0x29f02a[a19_0x10cb('0x9')][a19_0x10cb('0x11')][a19_0x10cb('0x16')]:undefined},await _0x29f02a['document'][a19_0x10cb('0x1f')](),await _0x584b42[a19_0x10cb('0xa')][a19_0x10cb('0x26')]({'embed':{'color':_0x29f02a[a19_0x10cb('0x9')][a19_0x10cb('0x11')][a19_0x10cb('0x2')]?tesseract_1[a19_0x10cb('0x21')][a19_0x10cb('0x24')][a19_0x10cb('0x1e')]:tesseract_1[a19_0x10cb('0x21')]['COLORS'][a19_0x10cb('0x0')],'description':this[a19_0x10cb('0x1c')]['locale']['getString'](_0x584b42['guild'][a19_0x10cb('0x9')][a19_0x10cb('0xb')],a19_0x10cb('0x5'),_0x29f02a[a19_0x10cb('0x9')][a19_0x10cb('0x11')][a19_0x10cb('0x2')]?a19_0x10cb('0x27'):a19_0x10cb('0xc'),_0x584b42[a19_0x10cb('0x1')][a19_0x10cb('0x1d')]),'fields':_0x29f02a[a19_0x10cb('0x9')][a19_0x10cb('0x11')][a19_0x10cb('0x2')]?[{'name':'Level-Up\x20Messages','value':_0x29f02a[a19_0x10cb('0x9')][a19_0x10cb('0x11')][a19_0x10cb('0x23')]?a19_0x10cb('0x29'):a19_0x10cb('0x8'),'inline':!![]},{'name':a19_0x10cb('0x22'),'value':_0x29f02a[a19_0x10cb('0x9')][a19_0x10cb('0x11')]['multiplier']?_0x29f02a[a19_0x10cb('0x9')]['gamification'][a19_0x10cb('0x16')][a19_0x10cb('0x25')]():gamification[a19_0x10cb('0x15')]['toString'](),'inline':!![]}]:[]}})['catch'](()=>{});};}}; \ No newline at end of file +const a19_0x31d7=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','getString','It\x20allows\x20you\x20to\x20enable\x20(or\x20disable)\x20gamification\x20in\x20the\x20server.\x20When\x20enabled,\x20users\x20gain\x20experience\x20and\x20level\x20up\x20in\x20the\x20server\x20by\x20participating\x20in\x20the\x20server,\x20competing\x20against\x20each\x20other\x20to\x20climb\x20the\x20leaderboard.\x20It\x20also\x20allows\x20you\x20to\x20toggle\x20level\x20up\x20messages\x20and\x20set\x20the\x20level\x20up\x20multiplier.','../../utils/constants','guild','send','fetchPremiumTier','boolean','errors','gamification\x20--multiplier\x20NUMBER','test','multiplier','enabled','Level-Up\x20Multiplier','@bastion/tesseract','language','messages','Disabled','apply','Level-Up\x20Messages','document','info','locale','GREEN','Constants','tag','client','toString','../../utils/errors','catch','author','DEFAUL_LEVELUP_MULTIPLIER','number','Command','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','PREMIUM_MEMBERSHIP_REQUIRED','COLORS','premiumGamificationMultiplier','RED','channel','gamification\x20--messages','gamification','gamificationEnable','DiscordError'];(function(_0x3198b5,_0x31d7e0){const _0x285dd9=function(_0x5c1753){while(--_0x5c1753){_0x3198b5['push'](_0x3198b5['shift']());}},_0x2bf6a5=function(){const _0x12bcfa={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x539180,_0x3f2a5c,_0xe814ef,_0x1f6b2f){_0x1f6b2f=_0x1f6b2f||{};let _0x3373d7=_0x3f2a5c+'='+_0xe814ef,_0x445c54=0x0;for(let _0x62183f=0x0,_0x4f7229=_0x539180['length'];_0x62183f<_0x4f7229;_0x62183f++){const _0x3c4840=_0x539180[_0x62183f];_0x3373d7+=';\x20'+_0x3c4840;const _0x100917=_0x539180[_0x3c4840];_0x539180['push'](_0x100917),_0x4f7229=_0x539180['length'],_0x100917!==!![]&&(_0x3373d7+='='+_0x100917);}_0x1f6b2f['cookie']=_0x3373d7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3584de,_0x371f58){_0x3584de=_0x3584de||function(_0x58b6af){return _0x58b6af;};const _0xe40438=_0x3584de(new RegExp('(?:^|;\x20)'+_0x371f58['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d7d2c=function(_0x57edf2,_0xcd78f){_0x57edf2(++_0xcd78f);};return _0x4d7d2c(_0x285dd9,_0x31d7e0),_0xe40438?decodeURIComponent(_0xe40438[0x1]):undefined;}},_0x20a982=function(){const _0x128c9d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x128c9d['test'](_0x12bcfa['removeCookie']['toString']());};_0x12bcfa['updateCookie']=_0x20a982;let _0x118ec8='';const _0xc5906a=_0x12bcfa['updateCookie']();if(!_0xc5906a)_0x12bcfa['setCookie'](['*'],'counter',0x1);else _0xc5906a?_0x118ec8=_0x12bcfa['getCookie'](null,'counter'):_0x12bcfa['removeCookie']();};_0x2bf6a5();}(a19_0x31d7,0x134));const a19_0x285d=function(_0x3198b5,_0x31d7e0){_0x3198b5=_0x3198b5-0x0;let _0x285dd9=a19_0x31d7[_0x3198b5];return _0x285dd9;};const a19_0xe814ef=function(){let _0x547966=!![];return function(_0x410b36,_0x4888fa){const _0x5cce8b=_0x547966?function(){if(_0x4888fa){const _0x176d4f=_0x4888fa[a19_0x285d('0x19')](_0x410b36,arguments);return _0x4888fa=null,_0x176d4f;}}:function(){};return _0x547966=![],_0x5cce8b;};}(),a19_0x3f2a5c=a19_0xe814ef(this,function(){const _0x249e83=function(){const _0x1ab4a8=_0x249e83[a19_0x285d('0x29')](a19_0x285d('0x7'))()['constructor'](a19_0x285d('0x2a'));return!_0x1ab4a8[a19_0x285d('0x11')](a19_0x3f2a5c);};return _0x249e83();});a19_0x3f2a5c();'use strict';const tesseract_1=require(a19_0x285d('0x15')),constants=require(a19_0x285d('0xa')),errors=require(a19_0x285d('0x23')),gamification=require('../../utils/gamification'),omnic=require('../../utils/omnic');module['exports']=class Gamification extends tesseract_1[a19_0x285d('0x28')]{constructor(){super(a19_0x285d('0x4'),{'description':a19_0x285d('0x9'),'triggers':[],'arguments':{'boolean':['messages'],'number':[a19_0x285d('0x12')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[a19_0x285d('0x4'),a19_0x285d('0x3'),a19_0x285d('0x10')]}),this['exec']=async(_0x15fd08,_0x1825ed)=>{if(_0x1825ed[a19_0x285d('0x12')]&&constants['isPublicBastion'](this['client']['user'])){const _0x53f8f1=await omnic[a19_0x285d('0xd')](_0x15fd08['guild'])['catch'](()=>{});if(!_0x53f8f1)throw new errors[(a19_0x285d('0x6'))](errors['BASTION_ERROR_TYPE'][a19_0x285d('0x2b')],this[a19_0x285d('0x21')][a19_0x285d('0x1d')][a19_0x285d('0x8')](_0x15fd08[a19_0x285d('0xb')][a19_0x285d('0x1b')][a19_0x285d('0x16')],a19_0x285d('0xf'),a19_0x285d('0x0')));}const _0xe41f89=_0x15fd08['guild'],_0x14b309=typeof _0x1825ed[a19_0x285d('0x17')]===a19_0x285d('0xe')||_0x1825ed[a19_0x285d('0x12')]?!![]:!(_0xe41f89[a19_0x285d('0x1b')]['gamification']&&_0xe41f89['document'][a19_0x285d('0x4')][a19_0x285d('0x13')]);_0xe41f89[a19_0x285d('0x1b')][a19_0x285d('0x4')]={'enabled':_0x14b309,'messages':typeof _0x1825ed[a19_0x285d('0x17')]===a19_0x285d('0xe')?_0x1825ed['messages']:_0x14b309?_0xe41f89[a19_0x285d('0x1b')][a19_0x285d('0x4')]&&_0xe41f89[a19_0x285d('0x1b')][a19_0x285d('0x4')][a19_0x285d('0x17')]:undefined,'multiplier':typeof _0x1825ed['multiplier']===a19_0x285d('0x27')?_0x1825ed['multiplier']:_0x14b309?_0xe41f89[a19_0x285d('0x1b')][a19_0x285d('0x4')]&&_0xe41f89[a19_0x285d('0x1b')][a19_0x285d('0x4')][a19_0x285d('0x12')]:undefined},await _0xe41f89[a19_0x285d('0x1b')]['save'](),await _0x15fd08[a19_0x285d('0x2')][a19_0x285d('0xc')]({'embed':{'color':_0xe41f89[a19_0x285d('0x1b')][a19_0x285d('0x4')][a19_0x285d('0x13')]?tesseract_1[a19_0x285d('0x1f')][a19_0x285d('0x2c')][a19_0x285d('0x1e')]:tesseract_1[a19_0x285d('0x1f')]['COLORS'][a19_0x285d('0x1')],'description':this['client']['locale'][a19_0x285d('0x8')](_0x15fd08[a19_0x285d('0xb')]['document'][a19_0x285d('0x16')],a19_0x285d('0x1c'),_0xe41f89[a19_0x285d('0x1b')][a19_0x285d('0x4')]['enabled']?a19_0x285d('0x5'):'gamificationDisable',_0x15fd08[a19_0x285d('0x25')][a19_0x285d('0x20')]),'fields':_0xe41f89[a19_0x285d('0x1b')][a19_0x285d('0x4')]['enabled']?[{'name':a19_0x285d('0x1a'),'value':_0xe41f89[a19_0x285d('0x1b')][a19_0x285d('0x4')][a19_0x285d('0x17')]?'Enabled':a19_0x285d('0x18'),'inline':!![]},{'name':a19_0x285d('0x14'),'value':_0xe41f89[a19_0x285d('0x1b')][a19_0x285d('0x4')][a19_0x285d('0x12')]?_0xe41f89['document'][a19_0x285d('0x4')][a19_0x285d('0x12')][a19_0x285d('0x22')]():gamification[a19_0x285d('0x26')][a19_0x285d('0x22')](),'inline':!![]}]:[]}})[a19_0x285d('0x24')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/greetings.js b/commands/configuration/greetings.js index e794c9b99..1b443b1d4 100644 --- a/commands/configuration/greetings.js +++ b/commands/configuration/greetings.js @@ -1 +1 @@ -const a20_0x3df8=['length','greetings\x20--disable','generateBastionEmbed','join','greetings\x20--enable','name','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','message','\x20•\x20','has','apply','test','Command','MANAGE_GUILD','disable','return\x20/\x22\x20+\x20this\x20+\x20\x22/','number','get','channelId','document','greeting','timeout','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20greetings\x20in\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20set\x20greeting\x20message\x20and\x20timeout.','@bastion/tesseract','exec','greetings\x20--timeout\x20TIMEOUT_IN_MINUTES','cache','channels','channel','save','\x20minutes','catch','greetings','guild','Greeting\x20Preview\x20•\x20'];(function(_0x541354,_0x3df826){const _0x1b98a6=function(_0x5e1fa3){while(--_0x5e1fa3){_0x541354['push'](_0x541354['shift']());}},_0x15d589=function(){const _0x37d01d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5920c9,_0xe599f,_0x5309b3,_0x1c2819){_0x1c2819=_0x1c2819||{};let _0x328452=_0xe599f+'='+_0x5309b3,_0x57b70e=0x0;for(let _0x470817=0x0,_0x5236be=_0x5920c9['length'];_0x470817<_0x5236be;_0x470817++){const _0x413f42=_0x5920c9[_0x470817];_0x328452+=';\x20'+_0x413f42;const _0x3d9c2e=_0x5920c9[_0x413f42];_0x5920c9['push'](_0x3d9c2e),_0x5236be=_0x5920c9['length'],_0x3d9c2e!==!![]&&(_0x328452+='='+_0x3d9c2e);}_0x1c2819['cookie']=_0x328452;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1c5f73,_0x494431){_0x1c5f73=_0x1c5f73||function(_0x2abf81){return _0x2abf81;};const _0x5efe83=_0x1c5f73(new RegExp('(?:^|;\x20)'+_0x494431['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1376a4=function(_0x35cf29,_0x21de2f){_0x35cf29(++_0x21de2f);};return _0x1376a4(_0x1b98a6,_0x3df826),_0x5efe83?decodeURIComponent(_0x5efe83[0x1]):undefined;}},_0x63b1f4=function(){const _0x56e07c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x56e07c['test'](_0x37d01d['removeCookie']['toString']());};_0x37d01d['updateCookie']=_0x63b1f4;let _0x417dd5='';const _0x17b037=_0x37d01d['updateCookie']();if(!_0x17b037)_0x37d01d['setCookie'](['*'],'counter',0x1);else _0x17b037?_0x417dd5=_0x37d01d['getCookie'](null,'counter'):_0x37d01d['removeCookie']();};_0x15d589();}(a20_0x3df8,0x1c5));const a20_0x1b98=function(_0x541354,_0x3df826){_0x541354=_0x541354-0x0;let _0x1b98a6=a20_0x3df8[_0x541354];return _0x1b98a6;};const a20_0x5309b3=function(){let _0x46f915=!![];return function(_0x481fc9,_0x1b6133){const _0x1f8c71=_0x46f915?function(){if(_0x1b6133){const _0x3e759b=_0x1b6133[a20_0x1b98('0xc')](_0x481fc9,arguments);return _0x1b6133=null,_0x3e759b;}}:function(){};return _0x46f915=![],_0x1f8c71;};}(),a20_0xe599f=a20_0x5309b3(this,function(){const _0x449bee=function(){const _0x18057c=_0x449bee['constructor'](a20_0x1b98('0x11'))()['constructor'](a20_0x1b98('0x8'));return!_0x18057c[a20_0x1b98('0xd')](a20_0xe599f);};return _0x449bee();});a20_0xe599f();'use strict';const tesseract_1=require(a20_0x1b98('0x19')),embeds=require('../../utils/embeds');module['exports']=class Greetings extends tesseract_1[a20_0x1b98('0xe')]{constructor(){super(a20_0x1b98('0x22'),{'description':a20_0x1b98('0x18'),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'timeout':['t']},'boolean':[a20_0x1b98('0x10'),'enable'],'number':[a20_0x1b98('0x17')]},'scope':a20_0x1b98('0x0'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a20_0x1b98('0xf')],'syntax':[a20_0x1b98('0x6'),a20_0x1b98('0x3'),a20_0x1b98('0x1b'),'greetings\x20--\x20MESSAGE']}),this[a20_0x1b98('0x1a')]=async(_0x3eb8de,_0x1f135b)=>{const _0x2c99ae=_0x3eb8de[a20_0x1b98('0x0')];_0x2c99ae['document']['greeting']={'channelId':_0x1f135b['enable']?_0x3eb8de['channel']['id']:_0x1f135b[a20_0x1b98('0x10')]?undefined:_0x2c99ae[a20_0x1b98('0x15')]['greeting']?_0x2c99ae['document']['greeting'][a20_0x1b98('0x14')]:undefined,'message':_0x1f135b['_'][a20_0x1b98('0x2')]?embeds[a20_0x1b98('0x4')](_0x1f135b['_'][a20_0x1b98('0x5')]('\x20')):_0x2c99ae[a20_0x1b98('0x15')][a20_0x1b98('0x16')]?_0x2c99ae[a20_0x1b98('0x15')][a20_0x1b98('0x16')][a20_0x1b98('0x9')]:undefined,'timeout':typeof _0x1f135b[a20_0x1b98('0x17')]===a20_0x1b98('0x12')?_0x1f135b[a20_0x1b98('0x17')]:_0x2c99ae[a20_0x1b98('0x15')]['greeting']?_0x2c99ae[a20_0x1b98('0x15')][a20_0x1b98('0x16')][a20_0x1b98('0x17')]:undefined},await _0x2c99ae[a20_0x1b98('0x15')][a20_0x1b98('0x1f')](),await _0x3eb8de[a20_0x1b98('0x1e')]['send']({'embed':{..._0x2c99ae[a20_0x1b98('0x15')][a20_0x1b98('0x16')][a20_0x1b98('0x9')],'footer':{'text':a20_0x1b98('0x1')+(_0x3eb8de[a20_0x1b98('0x0')]['channels'][a20_0x1b98('0x1c')][a20_0x1b98('0xb')](_0x2c99ae[a20_0x1b98('0x15')][a20_0x1b98('0x16')][a20_0x1b98('0x14')])?_0x3eb8de[a20_0x1b98('0x0')][a20_0x1b98('0x1d')]['cache'][a20_0x1b98('0x13')](_0x2c99ae[a20_0x1b98('0x15')][a20_0x1b98('0x16')]['channelId'])[a20_0x1b98('0x7')]:'Disabled')+(typeof _0x2c99ae[a20_0x1b98('0x15')][a20_0x1b98('0x16')][a20_0x1b98('0x17')]===a20_0x1b98('0x12')?a20_0x1b98('0xa')+(_0x2c99ae[a20_0x1b98('0x15')][a20_0x1b98('0x16')][a20_0x1b98('0x17')]+a20_0x1b98('0x20')):'')}}})[a20_0x1b98('0x21')](()=>{});};}}; \ No newline at end of file +const a20_0x371e=['greetings\x20--disable','MANAGE_GUILD','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20minutes','constructor','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20greetings\x20in\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20set\x20greeting\x20message\x20and\x20timeout.','join','Disabled','timeout','number','Greeting\x20Preview\x20•\x20','greetings\x20--\x20MESSAGE','channelId','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','message','get','exports','greeting','send','Command','name','\x20•\x20','document','cache','generateBastionEmbed','has','test','../../utils/embeds','length','enable','greetings\x20--timeout\x20TIMEOUT_IN_MINUTES','disable','greetings\x20--enable','channel'];(function(_0x256b48,_0x371ef3){const _0x11f77b=function(_0x231dd7){while(--_0x231dd7){_0x256b48['push'](_0x256b48['shift']());}},_0x2dbd66=function(){const _0x4d11db={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x218b45,_0x37d296,_0x56fd50,_0x3aa727){_0x3aa727=_0x3aa727||{};let _0x4a3dca=_0x37d296+'='+_0x56fd50,_0x620e8c=0x0;for(let _0x15b639=0x0,_0x222558=_0x218b45['length'];_0x15b639<_0x222558;_0x15b639++){const _0x3853d9=_0x218b45[_0x15b639];_0x4a3dca+=';\x20'+_0x3853d9;const _0x3093ae=_0x218b45[_0x3853d9];_0x218b45['push'](_0x3093ae),_0x222558=_0x218b45['length'],_0x3093ae!==!![]&&(_0x4a3dca+='='+_0x3093ae);}_0x3aa727['cookie']=_0x4a3dca;},'removeCookie':function(){return'dev';},'getCookie':function(_0x519a54,_0xc5980a){_0x519a54=_0x519a54||function(_0x4b49aa){return _0x4b49aa;};const _0x10e62d=_0x519a54(new RegExp('(?:^|;\x20)'+_0xc5980a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x42209c=function(_0x1456fa,_0x3677d1){_0x1456fa(++_0x3677d1);};return _0x42209c(_0x11f77b,_0x371ef3),_0x10e62d?decodeURIComponent(_0x10e62d[0x1]):undefined;}},_0x236fb5=function(){const _0x1f9112=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1f9112['test'](_0x4d11db['removeCookie']['toString']());};_0x4d11db['updateCookie']=_0x236fb5;let _0x528384='';const _0x13d137=_0x4d11db['updateCookie']();if(!_0x13d137)_0x4d11db['setCookie'](['*'],'counter',0x1);else _0x13d137?_0x528384=_0x4d11db['getCookie'](null,'counter'):_0x4d11db['removeCookie']();};_0x2dbd66();}(a20_0x371e,0x101));const a20_0x11f7=function(_0x256b48,_0x371ef3){_0x256b48=_0x256b48-0x0;let _0x11f77b=a20_0x371e[_0x256b48];return _0x11f77b;};const a20_0x56fd50=function(){let _0x1457b2=!![];return function(_0x3f70a1,_0x4087f9){const _0x2aa5ee=_0x1457b2?function(){if(_0x4087f9){const _0x2a4e30=_0x4087f9['apply'](_0x3f70a1,arguments);return _0x4087f9=null,_0x2a4e30;}}:function(){};return _0x1457b2=![],_0x2aa5ee;};}(),a20_0x37d296=a20_0x56fd50(this,function(){const _0x1090d9=function(){const _0x339f77=_0x1090d9[a20_0x11f7('0x1b')](a20_0x11f7('0x1'))()[a20_0x11f7('0x1b')](a20_0x11f7('0x19'));return!_0x339f77[a20_0x11f7('0xf')](a20_0x37d296);};return _0x1090d9();});a20_0x37d296();'use strict';const tesseract_1=require('@bastion/tesseract'),embeds=require(a20_0x11f7('0x10'));module[a20_0x11f7('0x5')]=class Greetings extends tesseract_1[a20_0x11f7('0x8')]{constructor(){super('greetings',{'description':a20_0x11f7('0x1c'),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'timeout':['t']},'boolean':[a20_0x11f7('0x14'),a20_0x11f7('0x12')],'number':[a20_0x11f7('0x1f')]},'scope':a20_0x11f7('0x2'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a20_0x11f7('0x18')],'syntax':[a20_0x11f7('0x15'),a20_0x11f7('0x17'),a20_0x11f7('0x13'),a20_0x11f7('0x22')]}),this['exec']=async(_0x3590a2,_0x53d71f)=>{const _0x414c85=_0x3590a2[a20_0x11f7('0x2')];_0x414c85['document'][a20_0x11f7('0x6')]={'channelId':_0x53d71f['enable']?_0x3590a2['channel']['id']:_0x53d71f[a20_0x11f7('0x14')]?undefined:_0x414c85[a20_0x11f7('0xb')]['greeting']?_0x414c85[a20_0x11f7('0xb')]['greeting']['channelId']:undefined,'message':_0x53d71f['_'][a20_0x11f7('0x11')]?embeds[a20_0x11f7('0xd')](_0x53d71f['_'][a20_0x11f7('0x1d')]('\x20')):_0x414c85[a20_0x11f7('0xb')]['greeting']?_0x414c85[a20_0x11f7('0xb')][a20_0x11f7('0x6')]['message']:undefined,'timeout':typeof _0x53d71f['timeout']===a20_0x11f7('0x20')?_0x53d71f[a20_0x11f7('0x1f')]:_0x414c85['document'][a20_0x11f7('0x6')]?_0x414c85['document'][a20_0x11f7('0x6')][a20_0x11f7('0x1f')]:undefined},await _0x414c85['document']['save'](),await _0x3590a2[a20_0x11f7('0x16')][a20_0x11f7('0x7')]({'embed':{..._0x414c85['document'][a20_0x11f7('0x6')][a20_0x11f7('0x3')],'footer':{'text':a20_0x11f7('0x21')+(_0x3590a2[a20_0x11f7('0x2')]['channels']['cache'][a20_0x11f7('0xe')](_0x414c85[a20_0x11f7('0xb')]['greeting'][a20_0x11f7('0x0')])?_0x3590a2[a20_0x11f7('0x2')]['channels'][a20_0x11f7('0xc')][a20_0x11f7('0x4')](_0x414c85[a20_0x11f7('0xb')][a20_0x11f7('0x6')][a20_0x11f7('0x0')])[a20_0x11f7('0x9')]:a20_0x11f7('0x1e'))+(typeof _0x414c85[a20_0x11f7('0xb')][a20_0x11f7('0x6')][a20_0x11f7('0x1f')]===a20_0x11f7('0x20')?a20_0x11f7('0xa')+(_0x414c85[a20_0x11f7('0xb')][a20_0x11f7('0x6')][a20_0x11f7('0x1f')]+a20_0x11f7('0x1a')):'')}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/inviteFilter.js b/commands/configuration/inviteFilter.js index 51347b59d..d7b5d74a2 100644 --- a/commands/configuration/inviteFilter.js +++ b/commands/configuration/inviteFilter.js @@ -1 +1 @@ -const a21_0x6966=['@bastion/tesseract','inviteFilter\x20--disable','locale','author','disable','inviteFilter\x20--no-infraction','test','inviteFilter','catch','exports','RED','filters','info','enable','inviteFilter\x20--infraction','filterInfractionDisabled','GREEN','enabled','infraction','apply','inviteFilter\x20--enable','channel','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Invite\x20Filter\x20in\x20the\x20server.\x20And\x20it\x20also\x20allows\x20you\x20to\x20configure\x20if\x20violation\x20of\x20this\x20filter\x20should\x20be\x20considered\x20an\x20infraction.','guild','document','language','save','Constants','inviteFilterEnable','exec','constructor','MANAGE_GUILD','client','IRIS','inviteFilterEnabled','COLORS','getString','return\x20/\x22\x20+\x20this\x20+\x20\x22/','inviteFilterDisabled'];(function(_0x31bfa0,_0x6966b1){const _0x201b2e=function(_0x4691d7){while(--_0x4691d7){_0x31bfa0['push'](_0x31bfa0['shift']());}},_0x2f8441=function(){const _0x313300={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4905ab,_0x5108b7,_0x4f8913,_0x530565){_0x530565=_0x530565||{};let _0x429a4e=_0x5108b7+'='+_0x4f8913,_0x17fc8d=0x0;for(let _0x140586=0x0,_0x1f2430=_0x4905ab['length'];_0x140586<_0x1f2430;_0x140586++){const _0x54a5b8=_0x4905ab[_0x140586];_0x429a4e+=';\x20'+_0x54a5b8;const _0x7ae21=_0x4905ab[_0x54a5b8];_0x4905ab['push'](_0x7ae21),_0x1f2430=_0x4905ab['length'],_0x7ae21!==!![]&&(_0x429a4e+='='+_0x7ae21);}_0x530565['cookie']=_0x429a4e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2f5c5b,_0x33572c){_0x2f5c5b=_0x2f5c5b||function(_0x43d411){return _0x43d411;};const _0x485e64=_0x2f5c5b(new RegExp('(?:^|;\x20)'+_0x33572c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x584e02=function(_0x560f71,_0x31290d){_0x560f71(++_0x31290d);};return _0x584e02(_0x201b2e,_0x6966b1),_0x485e64?decodeURIComponent(_0x485e64[0x1]):undefined;}},_0x22159a=function(){const _0x2cf076=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2cf076['test'](_0x313300['removeCookie']['toString']());};_0x313300['updateCookie']=_0x22159a;let _0x3b5eb8='';const _0x2024fc=_0x313300['updateCookie']();if(!_0x2024fc)_0x313300['setCookie'](['*'],'counter',0x1);else _0x2024fc?_0x3b5eb8=_0x313300['getCookie'](null,'counter'):_0x313300['removeCookie']();};_0x2f8441();}(a21_0x6966,0x135));const a21_0x201b=function(_0x31bfa0,_0x6966b1){_0x31bfa0=_0x31bfa0-0x0;let _0x201b2e=a21_0x6966[_0x31bfa0];return _0x201b2e;};const a21_0x4f8913=function(){let _0x5365aa=!![];return function(_0x59f15f,_0x576c7c){const _0x48f526=_0x5365aa?function(){if(_0x576c7c){const _0x3201b2=_0x576c7c[a21_0x201b('0x16')](_0x59f15f,arguments);return _0x576c7c=null,_0x3201b2;}}:function(){};return _0x5365aa=![],_0x48f526;};}(),a21_0x5108b7=a21_0x4f8913(this,function(){const _0x304bb8=function(){const _0x533826=_0x304bb8[a21_0x201b('0x21')](a21_0x201b('0x1'))()[a21_0x201b('0x21')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x533826[a21_0x201b('0x9')](a21_0x5108b7);};return _0x304bb8();});a21_0x5108b7();'use strict';const tesseract_1=require(a21_0x201b('0x3'));module[a21_0x201b('0xc')]=class InviteFilterCommand extends tesseract_1['Command']{constructor(){super('inviteFilter',{'description':a21_0x201b('0x19'),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'infraction':['i']},'boolean':['disable',a21_0x201b('0x10'),a21_0x201b('0x15')]},'scope':a21_0x201b('0x1a'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a21_0x201b('0x22')],'syntax':[a21_0x201b('0xa'),a21_0x201b('0x17'),a21_0x201b('0x4'),a21_0x201b('0x11'),a21_0x201b('0x8')]}),this[a21_0x201b('0x20')]=async(_0x2cae0e,_0x3c6105)=>{const _0x2abb13=_0x2cae0e[a21_0x201b('0x1a')];_0x2abb13['document']['filters']={..._0x2abb13['document']['filters'],'inviteFilter':{'enabled':_0x3c6105[a21_0x201b('0x7')]?undefined:_0x3c6105['enable']||_0x2abb13[a21_0x201b('0x1b')]['filters']&&_0x2abb13['document']['filters'][a21_0x201b('0xa')]&&_0x2abb13['document']['filters'][a21_0x201b('0xa')][a21_0x201b('0x14')]?!![]:undefined,'infraction':_0x3c6105['infraction']===![]?undefined:_0x3c6105[a21_0x201b('0x15')]||_0x2abb13[a21_0x201b('0x1b')]['filters']&&_0x2abb13[a21_0x201b('0x1b')][a21_0x201b('0xe')][a21_0x201b('0xa')]&&_0x2abb13[a21_0x201b('0x1b')][a21_0x201b('0xe')]['inviteFilter'][a21_0x201b('0x15')]?!![]:undefined}},await _0x2abb13[a21_0x201b('0x1b')][a21_0x201b('0x1d')](),await _0x2cae0e[a21_0x201b('0x18')]['send']({'embed':{'color':_0x3c6105[a21_0x201b('0x10')]?tesseract_1[a21_0x201b('0x1e')][a21_0x201b('0x26')][a21_0x201b('0x13')]:_0x3c6105[a21_0x201b('0x7')]?tesseract_1['Constants'][a21_0x201b('0x26')][a21_0x201b('0xd')]:tesseract_1[a21_0x201b('0x1e')][a21_0x201b('0x26')][a21_0x201b('0x24')],'description':this[a21_0x201b('0x23')][a21_0x201b('0x5')][a21_0x201b('0x0')](_0x2cae0e[a21_0x201b('0x1a')][a21_0x201b('0x1b')][a21_0x201b('0x1c')],a21_0x201b('0xf'),_0x3c6105['enable']?a21_0x201b('0x1f'):_0x3c6105[a21_0x201b('0x7')]?'inviteFilterDisable':_0x2abb13[a21_0x201b('0x1b')][a21_0x201b('0xe')][a21_0x201b('0xa')][a21_0x201b('0x14')]?a21_0x201b('0x25'):a21_0x201b('0x2'),_0x2cae0e[a21_0x201b('0x6')]['tag']),'footer':{'text':_0x2abb13[a21_0x201b('0x1b')][a21_0x201b('0xe')][a21_0x201b('0xa')][a21_0x201b('0x14')]?this['client'][a21_0x201b('0x5')][a21_0x201b('0x0')](_0x2cae0e[a21_0x201b('0x1a')][a21_0x201b('0x1b')]['language'],a21_0x201b('0xf'),_0x2abb13[a21_0x201b('0x1b')][a21_0x201b('0xe')][a21_0x201b('0xa')][a21_0x201b('0x15')]?'filterInfractionEnabled':a21_0x201b('0x12')):''}}})[a21_0x201b('0xb')](()=>{});};}}; \ No newline at end of file +const a21_0x1dc6=['inviteFilter\x20--infraction','enabled','MANAGE_GUILD','inviteFilter\x20--disable','exports','guild','catch','inviteFilterDisabled','document','locale','send','filterInfractionEnabled','client','@bastion/tesseract','constructor','inviteFilterEnable','test','GREEN','Constants','language','inviteFilterDisable','inviteFilter\x20--enable','RED','getString','channel','enable','inviteFilter','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Command','COLORS','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Invite\x20Filter\x20in\x20the\x20server.\x20And\x20it\x20also\x20allows\x20you\x20to\x20configure\x20if\x20violation\x20of\x20this\x20filter\x20should\x20be\x20considered\x20an\x20infraction.','filters','inviteFilterEnabled','return\x20/\x22\x20+\x20this\x20+\x20\x22/','info','infraction','disable'];(function(_0x267442,_0x1dc60f){const _0x1fc927=function(_0x366e67){while(--_0x366e67){_0x267442['push'](_0x267442['shift']());}},_0x27a575=function(){const _0x2205d0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x596e93,_0x28fc1f,_0xe5b846,_0x36ae4c){_0x36ae4c=_0x36ae4c||{};let _0x5163d4=_0x28fc1f+'='+_0xe5b846,_0x30fc2e=0x0;for(let _0x44dc37=0x0,_0x4c38aa=_0x596e93['length'];_0x44dc37<_0x4c38aa;_0x44dc37++){const _0x1212c3=_0x596e93[_0x44dc37];_0x5163d4+=';\x20'+_0x1212c3;const _0x31f733=_0x596e93[_0x1212c3];_0x596e93['push'](_0x31f733),_0x4c38aa=_0x596e93['length'],_0x31f733!==!![]&&(_0x5163d4+='='+_0x31f733);}_0x36ae4c['cookie']=_0x5163d4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x20dc0e,_0xa846f8){_0x20dc0e=_0x20dc0e||function(_0x1c4dbb){return _0x1c4dbb;};const _0x21c78e=_0x20dc0e(new RegExp('(?:^|;\x20)'+_0xa846f8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2f9440=function(_0x73dfb4,_0x1b22df){_0x73dfb4(++_0x1b22df);};return _0x2f9440(_0x1fc927,_0x1dc60f),_0x21c78e?decodeURIComponent(_0x21c78e[0x1]):undefined;}},_0x516c12=function(){const _0x258bf7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x258bf7['test'](_0x2205d0['removeCookie']['toString']());};_0x2205d0['updateCookie']=_0x516c12;let _0x3d00a9='';const _0x126790=_0x2205d0['updateCookie']();if(!_0x126790)_0x2205d0['setCookie'](['*'],'counter',0x1);else _0x126790?_0x3d00a9=_0x2205d0['getCookie'](null,'counter'):_0x2205d0['removeCookie']();};_0x27a575();}(a21_0x1dc6,0x105));const a21_0x1fc9=function(_0x267442,_0x1dc60f){_0x267442=_0x267442-0x0;let _0x1fc927=a21_0x1dc6[_0x267442];return _0x1fc927;};const a21_0xe5b846=function(){let _0x536266=!![];return function(_0x514ccf,_0x247037){const _0x897f92=_0x536266?function(){if(_0x247037){const _0x380a0b=_0x247037['apply'](_0x514ccf,arguments);return _0x247037=null,_0x380a0b;}}:function(){};return _0x536266=![],_0x897f92;};}(),a21_0x28fc1f=a21_0xe5b846(this,function(){const _0x5b7789=function(){const _0x4bd131=_0x5b7789[a21_0x1fc9('0xc')](a21_0x1fc9('0x1f'))()[a21_0x1fc9('0xc')](a21_0x1fc9('0x19'));return!_0x4bd131[a21_0x1fc9('0xe')](a21_0x28fc1f);};return _0x5b7789();});a21_0x28fc1f();'use strict';const tesseract_1=require(a21_0x1fc9('0xb'));module[a21_0x1fc9('0x2')]=class InviteFilterCommand extends tesseract_1[a21_0x1fc9('0x1a')]{constructor(){super(a21_0x1fc9('0x18'),{'description':a21_0x1fc9('0x1c'),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'infraction':['i']},'boolean':[a21_0x1fc9('0x22'),a21_0x1fc9('0x17'),a21_0x1fc9('0x21')]},'scope':a21_0x1fc9('0x3'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a21_0x1fc9('0x0')],'syntax':['inviteFilter',a21_0x1fc9('0x13'),a21_0x1fc9('0x1'),a21_0x1fc9('0x23'),'inviteFilter\x20--no-infraction']}),this['exec']=async(_0x4cd1e6,_0x3b5835)=>{const _0x4f6d0d=_0x4cd1e6['guild'];_0x4f6d0d[a21_0x1fc9('0x6')][a21_0x1fc9('0x1d')]={..._0x4f6d0d[a21_0x1fc9('0x6')][a21_0x1fc9('0x1d')],'inviteFilter':{'enabled':_0x3b5835['disable']?undefined:_0x3b5835[a21_0x1fc9('0x17')]||_0x4f6d0d['document'][a21_0x1fc9('0x1d')]&&_0x4f6d0d[a21_0x1fc9('0x6')]['filters'][a21_0x1fc9('0x18')]&&_0x4f6d0d[a21_0x1fc9('0x6')][a21_0x1fc9('0x1d')][a21_0x1fc9('0x18')]['enabled']?!![]:undefined,'infraction':_0x3b5835[a21_0x1fc9('0x21')]===![]?undefined:_0x3b5835['infraction']||_0x4f6d0d[a21_0x1fc9('0x6')][a21_0x1fc9('0x1d')]&&_0x4f6d0d[a21_0x1fc9('0x6')]['filters']['inviteFilter']&&_0x4f6d0d['document']['filters'][a21_0x1fc9('0x18')]['infraction']?!![]:undefined}},await _0x4f6d0d[a21_0x1fc9('0x6')]['save'](),await _0x4cd1e6[a21_0x1fc9('0x16')][a21_0x1fc9('0x8')]({'embed':{'color':_0x3b5835[a21_0x1fc9('0x17')]?tesseract_1[a21_0x1fc9('0x10')]['COLORS'][a21_0x1fc9('0xf')]:_0x3b5835[a21_0x1fc9('0x22')]?tesseract_1[a21_0x1fc9('0x10')][a21_0x1fc9('0x1b')][a21_0x1fc9('0x14')]:tesseract_1[a21_0x1fc9('0x10')]['COLORS']['IRIS'],'description':this[a21_0x1fc9('0xa')][a21_0x1fc9('0x7')]['getString'](_0x4cd1e6[a21_0x1fc9('0x3')][a21_0x1fc9('0x6')]['language'],a21_0x1fc9('0x20'),_0x3b5835[a21_0x1fc9('0x17')]?a21_0x1fc9('0xd'):_0x3b5835['disable']?a21_0x1fc9('0x12'):_0x4f6d0d['document'][a21_0x1fc9('0x1d')]['inviteFilter'][a21_0x1fc9('0x24')]?a21_0x1fc9('0x1e'):a21_0x1fc9('0x5'),_0x4cd1e6['author']['tag']),'footer':{'text':_0x4f6d0d[a21_0x1fc9('0x6')][a21_0x1fc9('0x1d')][a21_0x1fc9('0x18')][a21_0x1fc9('0x24')]?this[a21_0x1fc9('0xa')][a21_0x1fc9('0x7')][a21_0x1fc9('0x15')](_0x4cd1e6[a21_0x1fc9('0x3')][a21_0x1fc9('0x6')][a21_0x1fc9('0x11')],a21_0x1fc9('0x20'),_0x4f6d0d[a21_0x1fc9('0x6')][a21_0x1fc9('0x1d')]['inviteFilter'][a21_0x1fc9('0x21')]?a21_0x1fc9('0x9'):'filterInfractionDisabled'):''}}})[a21_0x1fc9('0x4')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/languages.js b/commands/configuration/languages.js index 13d99de28..3513cb530 100644 --- a/commands/configuration/languages.js +++ b/commands/configuration/languages.js @@ -1 +1 @@ -const a22_0x50ed=['toLowerCase','getLocales','return\x20/\x22\x20+\x20this\x20+\x20\x22/','availableLocales','apply','constructor','GREEN','exports','languages\x20--set\x20LANGUAGE','toUpperCase','guildLanguageUpdate','client','languages','channel','includes','toBulletList','IRIS','document','save','language','set','locale','guild','Languages','send','Available\x20Languages','COLORS','exec','getString','test','Constants'];(function(_0x46c209,_0x50ed39){const _0xf68bc2=function(_0x56d9ab){while(--_0x56d9ab){_0x46c209['push'](_0x46c209['shift']());}},_0x40bd2f=function(){const _0x143b72={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x11671a,_0x3b419c,_0x1a31fb,_0x4d2ff0){_0x4d2ff0=_0x4d2ff0||{};let _0xff589f=_0x3b419c+'='+_0x1a31fb,_0x55011a=0x0;for(let _0x1dbfa9=0x0,_0x46c383=_0x11671a['length'];_0x1dbfa9<_0x46c383;_0x1dbfa9++){const _0x50fd4f=_0x11671a[_0x1dbfa9];_0xff589f+=';\x20'+_0x50fd4f;const _0x21f4c2=_0x11671a[_0x50fd4f];_0x11671a['push'](_0x21f4c2),_0x46c383=_0x11671a['length'],_0x21f4c2!==!![]&&(_0xff589f+='='+_0x21f4c2);}_0x4d2ff0['cookie']=_0xff589f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5d40ba,_0x50b777){_0x5d40ba=_0x5d40ba||function(_0x271b0f){return _0x271b0f;};const _0x11d544=_0x5d40ba(new RegExp('(?:^|;\x20)'+_0x50b777['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5eb313=function(_0x59319b,_0x28960b){_0x59319b(++_0x28960b);};return _0x5eb313(_0xf68bc2,_0x50ed39),_0x11d544?decodeURIComponent(_0x11d544[0x1]):undefined;}},_0x538599=function(){const _0x1e27d1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1e27d1['test'](_0x143b72['removeCookie']['toString']());};_0x143b72['updateCookie']=_0x538599;let _0x296bcc='';const _0x3ecdb5=_0x143b72['updateCookie']();if(!_0x3ecdb5)_0x143b72['setCookie'](['*'],'counter',0x1);else _0x3ecdb5?_0x296bcc=_0x143b72['getCookie'](null,'counter'):_0x143b72['removeCookie']();};_0x40bd2f();}(a22_0x50ed,0x76));const a22_0xf68b=function(_0x46c209,_0x50ed39){_0x46c209=_0x46c209-0x0;let _0xf68bc2=a22_0x50ed[_0x46c209];return _0xf68bc2;};const a22_0x1a31fb=function(){let _0x5e33c6=!![];return function(_0x4d4c88,_0x10cbdf){const _0x4441fc=_0x5e33c6?function(){if(_0x10cbdf){const _0x2ffb78=_0x10cbdf[a22_0xf68b('0xa')](_0x4d4c88,arguments);return _0x10cbdf=null,_0x2ffb78;}}:function(){};return _0x5e33c6=![],_0x4441fc;};}(),a22_0x3b419c=a22_0x1a31fb(this,function(){const _0x49d31f=function(){const _0x185d61=_0x49d31f['constructor'](a22_0xf68b('0x8'))()[a22_0xf68b('0xb')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x185d61[a22_0xf68b('0x4')](a22_0x3b419c);};return _0x49d31f();});a22_0x3b419c();'use strict';const tesseract_1=require('@bastion/tesseract'),arrays=require('../../utils/arrays');module[a22_0xf68b('0xd')]=class Languages extends tesseract_1['Command']{constructor(){super(a22_0xf68b('0x12'),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20languages\x20available\x20in\x20Bastion\x20and\x20set\x20one\x20of\x20them\x20as\x20the\x20default\x20language\x20for\x20your\x20server.','triggers':[],'arguments':{'alias':{'set':['s']},'string':[a22_0xf68b('0x1a')]},'scope':a22_0xf68b('0x1c'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[a22_0xf68b('0x12'),a22_0xf68b('0xe')]}),this[a22_0xf68b('0x2')]=async(_0x338a11,_0x4b8084)=>{const _0x58e1f1=_0x338a11[a22_0xf68b('0x1c')],_0x4aaad2=this[a22_0xf68b('0x11')]['locale'][a22_0xf68b('0x7')]()['map'](_0x5eaaf2=>_0x5eaaf2[a22_0xf68b('0xf')]());if(_0x4b8084[a22_0xf68b('0x1a')]){const _0x273eb0=_0x4b8084['set'][a22_0xf68b('0x6')]();if(!_0x4aaad2[a22_0xf68b('0x14')](_0x273eb0))throw new Error(this[a22_0xf68b('0x11')][a22_0xf68b('0x1b')][a22_0xf68b('0x3')](_0x338a11[a22_0xf68b('0x1c')]['document'][a22_0xf68b('0x19')],'errors','languageUnavailable'));return _0x58e1f1['document'][a22_0xf68b('0x19')]=_0x273eb0,await _0x58e1f1[a22_0xf68b('0x17')][a22_0xf68b('0x18')](),await _0x338a11[a22_0xf68b('0x13')][a22_0xf68b('0x1e')]({'embed':{'color':tesseract_1['Constants'][a22_0xf68b('0x1')][a22_0xf68b('0xc')],'description':this[a22_0xf68b('0x11')][a22_0xf68b('0x1b')][a22_0xf68b('0x3')](_0x338a11['guild'][a22_0xf68b('0x17')][a22_0xf68b('0x19')],'info',a22_0xf68b('0x10'),_0x338a11['author']['tag'],_0x273eb0[a22_0xf68b('0xf')]())}})['catch'](()=>{});}await _0x338a11[a22_0xf68b('0x13')]['send']({'embed':{'color':tesseract_1[a22_0xf68b('0x5')][a22_0xf68b('0x1')][a22_0xf68b('0x16')],'title':a22_0xf68b('0x0'),'description':this[a22_0xf68b('0x11')]['locale'][a22_0xf68b('0x3')](_0x338a11[a22_0xf68b('0x1c')][a22_0xf68b('0x17')]['language'],'info',a22_0xf68b('0x9')),'fields':[{'name':a22_0xf68b('0x1d'),'value':arrays[a22_0xf68b('0x15')](_0x4aaad2)}]}})['catch'](()=>{});};}}; \ No newline at end of file +const a22_0x360a=['toUpperCase','Languages','Command','Constants','constructor','languages\x20--set\x20LANGUAGE','../../utils/arrays','toBulletList','getString','includes','errors','availableLocales','channel','exports','info','tag','locale','getLocales','guild','catch','save','Available\x20Languages','COLORS','test','language','languages','return\x20/\x22\x20+\x20this\x20+\x20\x22/','MANAGE_GUILD','set','GREEN','document','author','send','guildLanguageUpdate','client'];(function(_0x4c23cd,_0x360a48){const _0x1bb35f=function(_0x5e0e19){while(--_0x5e0e19){_0x4c23cd['push'](_0x4c23cd['shift']());}},_0x1afd95=function(){const _0x1a02f8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x271da0,_0x3305f5,_0x34385d,_0x1d9e84){_0x1d9e84=_0x1d9e84||{};let _0x481202=_0x3305f5+'='+_0x34385d,_0xb03dd5=0x0;for(let _0x455100=0x0,_0x4c4cc3=_0x271da0['length'];_0x455100<_0x4c4cc3;_0x455100++){const _0x58343a=_0x271da0[_0x455100];_0x481202+=';\x20'+_0x58343a;const _0x27962b=_0x271da0[_0x58343a];_0x271da0['push'](_0x27962b),_0x4c4cc3=_0x271da0['length'],_0x27962b!==!![]&&(_0x481202+='='+_0x27962b);}_0x1d9e84['cookie']=_0x481202;},'removeCookie':function(){return'dev';},'getCookie':function(_0x54c905,_0x39fa74){_0x54c905=_0x54c905||function(_0x2f1a81){return _0x2f1a81;};const _0x28c84c=_0x54c905(new RegExp('(?:^|;\x20)'+_0x39fa74['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x190397=function(_0x59b608,_0x405ffb){_0x59b608(++_0x405ffb);};return _0x190397(_0x1bb35f,_0x360a48),_0x28c84c?decodeURIComponent(_0x28c84c[0x1]):undefined;}},_0x3f7c70=function(){const _0x39451a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x39451a['test'](_0x1a02f8['removeCookie']['toString']());};_0x1a02f8['updateCookie']=_0x3f7c70;let _0x610196='';const _0x4cb333=_0x1a02f8['updateCookie']();if(!_0x4cb333)_0x1a02f8['setCookie'](['*'],'counter',0x1);else _0x4cb333?_0x610196=_0x1a02f8['getCookie'](null,'counter'):_0x1a02f8['removeCookie']();};_0x1afd95();}(a22_0x360a,0x1a4));const a22_0x1bb3=function(_0x4c23cd,_0x360a48){_0x4c23cd=_0x4c23cd-0x0;let _0x1bb35f=a22_0x360a[_0x4c23cd];return _0x1bb35f;};const a22_0x34385d=function(){let _0x45d84d=!![];return function(_0x1454a7,_0x155da2){const _0x3a081d=_0x45d84d?function(){if(_0x155da2){const _0x1db9a8=_0x155da2['apply'](_0x1454a7,arguments);return _0x155da2=null,_0x1db9a8;}}:function(){};return _0x45d84d=![],_0x3a081d;};}(),a22_0x3305f5=a22_0x34385d(this,function(){const _0x469653=function(){const _0x25937f=_0x469653[a22_0x1bb3('0x4')](a22_0x1bb3('0x1a'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x25937f[a22_0x1bb3('0x17')](a22_0x3305f5);};return _0x469653();});a22_0x3305f5();'use strict';const tesseract_1=require('@bastion/tesseract'),arrays=require(a22_0x1bb3('0x6'));module[a22_0x1bb3('0xd')]=class Languages extends tesseract_1[a22_0x1bb3('0x2')]{constructor(){super(a22_0x1bb3('0x19'),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20languages\x20available\x20in\x20Bastion\x20and\x20set\x20one\x20of\x20them\x20as\x20the\x20default\x20language\x20for\x20your\x20server.','triggers':[],'arguments':{'alias':{'set':['s']},'string':[a22_0x1bb3('0x1c')]},'scope':a22_0x1bb3('0x12'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a22_0x1bb3('0x1b')],'syntax':[a22_0x1bb3('0x19'),a22_0x1bb3('0x5')]}),this['exec']=async(_0xfa2fc1,_0x223484)=>{const _0x56e69c=_0xfa2fc1['guild'],_0x22b2a7=this['client'][a22_0x1bb3('0x10')][a22_0x1bb3('0x11')]()['map'](_0x4e425d=>_0x4e425d[a22_0x1bb3('0x0')]());if(_0x223484[a22_0x1bb3('0x1c')]){const _0x340f1a=_0x223484[a22_0x1bb3('0x1c')]['toLowerCase']();if(!_0x22b2a7[a22_0x1bb3('0x9')](_0x340f1a))throw new Error(this[a22_0x1bb3('0x22')][a22_0x1bb3('0x10')]['getString'](_0xfa2fc1['guild'][a22_0x1bb3('0x1e')][a22_0x1bb3('0x18')],a22_0x1bb3('0xa'),'languageUnavailable'));return _0x56e69c['document'][a22_0x1bb3('0x18')]=_0x340f1a,await _0x56e69c[a22_0x1bb3('0x1e')][a22_0x1bb3('0x14')](),await _0xfa2fc1[a22_0x1bb3('0xc')][a22_0x1bb3('0x20')]({'embed':{'color':tesseract_1[a22_0x1bb3('0x3')]['COLORS'][a22_0x1bb3('0x1d')],'description':this[a22_0x1bb3('0x22')]['locale'][a22_0x1bb3('0x8')](_0xfa2fc1[a22_0x1bb3('0x12')]['document'][a22_0x1bb3('0x18')],a22_0x1bb3('0xe'),a22_0x1bb3('0x21'),_0xfa2fc1[a22_0x1bb3('0x1f')][a22_0x1bb3('0xf')],_0x340f1a[a22_0x1bb3('0x0')]())}})[a22_0x1bb3('0x13')](()=>{});}await _0xfa2fc1[a22_0x1bb3('0xc')]['send']({'embed':{'color':tesseract_1[a22_0x1bb3('0x3')][a22_0x1bb3('0x16')]['IRIS'],'title':a22_0x1bb3('0x15'),'description':this[a22_0x1bb3('0x22')][a22_0x1bb3('0x10')]['getString'](_0xfa2fc1[a22_0x1bb3('0x12')][a22_0x1bb3('0x1e')][a22_0x1bb3('0x18')],a22_0x1bb3('0xe'),a22_0x1bb3('0xb')),'fields':[{'name':a22_0x1bb3('0x1'),'value':arrays[a22_0x1bb3('0x7')](_0x22b2a7)}]}})[a22_0x1bb3('0x13')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/linkFilter.js b/commands/configuration/linkFilter.js index 8c90fdc5e..1db38f356 100644 --- a/commands/configuration/linkFilter.js +++ b/commands/configuration/linkFilter.js @@ -1 +1 @@ -const a23_0x1ecb=['apply','enabled','save','@bastion/tesseract','constructor','linkFilterDisable','filterInfractionEnabled','language','document','locale','info','Command','client','linkFilter\x20--no-infraction','COLORS','GREEN','exports','catch','linkFilterDisabled','disable','guild','test','enable','linkFilter\x20--disable','Constants','linkFilterEnabled','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Link\x20Filter\x20in\x20the\x20server.\x20And\x20it\x20also\x20allows\x20you\x20to\x20configure\x20if\x20violation\x20of\x20this\x20filter\x20should\x20be\x20considered\x20an\x20infraction.','filters','return\x20/\x22\x20+\x20this\x20+\x20\x22/','linkFilter\x20--infraction','IRIS','tag','infraction','linkFilter\x20--enable','getString','linkFilter'];(function(_0x3b7277,_0x1ecb2d){const _0x238928=function(_0x1a8f6b){while(--_0x1a8f6b){_0x3b7277['push'](_0x3b7277['shift']());}},_0x15af74=function(){const _0xf2ca4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2416e5,_0x169972,_0x3f528a,_0x3a5c55){_0x3a5c55=_0x3a5c55||{};let _0x414025=_0x169972+'='+_0x3f528a,_0x39992b=0x0;for(let _0x276f86=0x0,_0x487b12=_0x2416e5['length'];_0x276f86<_0x487b12;_0x276f86++){const _0x525fda=_0x2416e5[_0x276f86];_0x414025+=';\x20'+_0x525fda;const _0x408b09=_0x2416e5[_0x525fda];_0x2416e5['push'](_0x408b09),_0x487b12=_0x2416e5['length'],_0x408b09!==!![]&&(_0x414025+='='+_0x408b09);}_0x3a5c55['cookie']=_0x414025;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3d0976,_0x248bd7){_0x3d0976=_0x3d0976||function(_0x137142){return _0x137142;};const _0x242a79=_0x3d0976(new RegExp('(?:^|;\x20)'+_0x248bd7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x35d89f=function(_0x32dff4,_0x4aa5fd){_0x32dff4(++_0x4aa5fd);};return _0x35d89f(_0x238928,_0x1ecb2d),_0x242a79?decodeURIComponent(_0x242a79[0x1]):undefined;}},_0xf1118e=function(){const _0x2f2b40=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2f2b40['test'](_0xf2ca4['removeCookie']['toString']());};_0xf2ca4['updateCookie']=_0xf1118e;let _0x43615f='';const _0x25518a=_0xf2ca4['updateCookie']();if(!_0x25518a)_0xf2ca4['setCookie'](['*'],'counter',0x1);else _0x25518a?_0x43615f=_0xf2ca4['getCookie'](null,'counter'):_0xf2ca4['removeCookie']();};_0x15af74();}(a23_0x1ecb,0x15d));const a23_0x2389=function(_0x3b7277,_0x1ecb2d){_0x3b7277=_0x3b7277-0x0;let _0x238928=a23_0x1ecb[_0x3b7277];return _0x238928;};const a23_0x3f528a=function(){let _0x1e0548=!![];return function(_0x5654e2,_0x3dde4d){const _0x4fe14a=_0x1e0548?function(){if(_0x3dde4d){const _0x3a1467=_0x3dde4d[a23_0x2389('0xb')](_0x5654e2,arguments);return _0x3dde4d=null,_0x3a1467;}}:function(){};return _0x1e0548=![],_0x4fe14a;};}(),a23_0x169972=a23_0x3f528a(this,function(){const _0xdfbdfc=function(){const _0x5b8d48=_0xdfbdfc[a23_0x2389('0xf')](a23_0x2389('0x3'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5b8d48[a23_0x2389('0x20')](a23_0x169972);};return _0xdfbdfc();});a23_0x169972();'use strict';const tesseract_1=require(a23_0x2389('0xe'));module[a23_0x2389('0x1b')]=class LinkFilterCommand extends tesseract_1[a23_0x2389('0x16')]{constructor(){super(a23_0x2389('0xa'),{'description':a23_0x2389('0x1'),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'infraction':['i']},'boolean':[a23_0x2389('0x1e'),'enable',a23_0x2389('0x7')]},'scope':a23_0x2389('0x1f'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':['linkFilter',a23_0x2389('0x8'),a23_0x2389('0x22'),a23_0x2389('0x4'),a23_0x2389('0x18')]}),this['exec']=async(_0x45a49f,_0x322827)=>{const _0x53982c=_0x45a49f['guild'];_0x53982c[a23_0x2389('0x13')]['filters']={..._0x53982c[a23_0x2389('0x13')][a23_0x2389('0x2')],'linkFilter':{'enabled':_0x322827[a23_0x2389('0x1e')]?undefined:_0x322827[a23_0x2389('0x21')]||_0x53982c['document'][a23_0x2389('0x2')]&&_0x53982c['document'][a23_0x2389('0x2')][a23_0x2389('0xa')]&&_0x53982c[a23_0x2389('0x13')]['filters'][a23_0x2389('0xa')]['enabled']?!![]:undefined,'infraction':_0x322827[a23_0x2389('0x7')]===![]?undefined:_0x322827['infraction']||_0x53982c[a23_0x2389('0x13')][a23_0x2389('0x2')]&&_0x53982c[a23_0x2389('0x13')][a23_0x2389('0x2')][a23_0x2389('0xa')]&&_0x53982c[a23_0x2389('0x13')]['filters'][a23_0x2389('0xa')]['infraction']?!![]:undefined}},await _0x53982c['document'][a23_0x2389('0xd')](),await _0x45a49f['channel']['send']({'embed':{'color':_0x322827[a23_0x2389('0x21')]?tesseract_1[a23_0x2389('0x23')]['COLORS'][a23_0x2389('0x1a')]:_0x322827[a23_0x2389('0x1e')]?tesseract_1[a23_0x2389('0x23')][a23_0x2389('0x19')]['RED']:tesseract_1[a23_0x2389('0x23')][a23_0x2389('0x19')][a23_0x2389('0x5')],'description':this[a23_0x2389('0x17')][a23_0x2389('0x14')][a23_0x2389('0x9')](_0x45a49f[a23_0x2389('0x1f')][a23_0x2389('0x13')][a23_0x2389('0x12')],a23_0x2389('0x15'),_0x322827['enable']?'linkFilterEnable':_0x322827[a23_0x2389('0x1e')]?a23_0x2389('0x10'):_0x53982c[a23_0x2389('0x13')]['filters'][a23_0x2389('0xa')][a23_0x2389('0xc')]?a23_0x2389('0x0'):a23_0x2389('0x1d'),_0x45a49f['author'][a23_0x2389('0x6')]),'footer':{'text':_0x53982c['document'][a23_0x2389('0x2')][a23_0x2389('0xa')][a23_0x2389('0xc')]?this[a23_0x2389('0x17')][a23_0x2389('0x14')][a23_0x2389('0x9')](_0x45a49f['guild']['document']['language'],a23_0x2389('0x15'),_0x53982c[a23_0x2389('0x13')][a23_0x2389('0x2')]['linkFilter'][a23_0x2389('0x7')]?a23_0x2389('0x11'):'filterInfractionDisabled'):''}}})[a23_0x2389('0x1c')](()=>{});};}}; \ No newline at end of file +const a23_0x42e3=['Constants','language','COLORS','linkFilter\x20--no-infraction','exec','apply','getString','author','Command','info','locale','GREEN','disable','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Link\x20Filter\x20in\x20the\x20server.\x20And\x20it\x20also\x20allows\x20you\x20to\x20configure\x20if\x20violation\x20of\x20this\x20filter\x20should\x20be\x20considered\x20an\x20infraction.','constructor','linkFilterEnabled','catch','enabled','RED','linkFilterEnable','guild','send','document','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','filters','test','@bastion/tesseract','enable','filterInfractionDisabled','infraction','return\x20/\x22\x20+\x20this\x20+\x20\x22/','linkFilterDisabled','channel','save','client','linkFilter','linkFilter\x20--disable','IRIS'];(function(_0x41c825,_0x42e341){const _0x5dd50b=function(_0x4585de){while(--_0x4585de){_0x41c825['push'](_0x41c825['shift']());}},_0x3eaa48=function(){const _0x185dd2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x27eb5b,_0x1469de,_0x39c4ec,_0x43c230){_0x43c230=_0x43c230||{};let _0xe410a4=_0x1469de+'='+_0x39c4ec,_0x54fb30=0x0;for(let _0x2a5756=0x0,_0x49da13=_0x27eb5b['length'];_0x2a5756<_0x49da13;_0x2a5756++){const _0x465be3=_0x27eb5b[_0x2a5756];_0xe410a4+=';\x20'+_0x465be3;const _0x17e127=_0x27eb5b[_0x465be3];_0x27eb5b['push'](_0x17e127),_0x49da13=_0x27eb5b['length'],_0x17e127!==!![]&&(_0xe410a4+='='+_0x17e127);}_0x43c230['cookie']=_0xe410a4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1c1cbf,_0x208cbc){_0x1c1cbf=_0x1c1cbf||function(_0xced0c2){return _0xced0c2;};const _0x4254ac=_0x1c1cbf(new RegExp('(?:^|;\x20)'+_0x208cbc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x38e802=function(_0x3591ce,_0x4cd14e){_0x3591ce(++_0x4cd14e);};return _0x38e802(_0x5dd50b,_0x42e341),_0x4254ac?decodeURIComponent(_0x4254ac[0x1]):undefined;}},_0x87bfaf=function(){const _0x2e7ea1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2e7ea1['test'](_0x185dd2['removeCookie']['toString']());};_0x185dd2['updateCookie']=_0x87bfaf;let _0x1644bd='';const _0x3a1f21=_0x185dd2['updateCookie']();if(!_0x3a1f21)_0x185dd2['setCookie'](['*'],'counter',0x1);else _0x3a1f21?_0x1644bd=_0x185dd2['getCookie'](null,'counter'):_0x185dd2['removeCookie']();};_0x3eaa48();}(a23_0x42e3,0x178));const a23_0x5dd5=function(_0x41c825,_0x42e341){_0x41c825=_0x41c825-0x0;let _0x5dd50b=a23_0x42e3[_0x41c825];return _0x5dd50b;};const a23_0x39c4ec=function(){let _0x18a8fc=!![];return function(_0x583578,_0xbeef29){const _0x200857=_0x18a8fc?function(){if(_0xbeef29){const _0x1d2e33=_0xbeef29[a23_0x5dd5('0x13')](_0x583578,arguments);return _0xbeef29=null,_0x1d2e33;}}:function(){};return _0x18a8fc=![],_0x200857;};}(),a23_0x1469de=a23_0x39c4ec(this,function(){const _0x54a67a=function(){const _0x6e40c9=_0x54a67a[a23_0x5dd5('0x1c')](a23_0x5dd5('0x6'))()['constructor'](a23_0x5dd5('0x25'));return!_0x6e40c9[a23_0x5dd5('0x1')](a23_0x1469de);};return _0x54a67a();});a23_0x1469de();'use strict';const tesseract_1=require(a23_0x5dd5('0x2'));module[a23_0x5dd5('0x26')]=class LinkFilterCommand extends tesseract_1[a23_0x5dd5('0x16')]{constructor(){super(a23_0x5dd5('0xb'),{'description':a23_0x5dd5('0x1b'),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'infraction':['i']},'boolean':[a23_0x5dd5('0x1a'),'enable',a23_0x5dd5('0x5')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':['linkFilter','linkFilter\x20--enable',a23_0x5dd5('0xc'),'linkFilter\x20--infraction',a23_0x5dd5('0x11')]}),this[a23_0x5dd5('0x12')]=async(_0x3085b8,_0x40c87d)=>{const _0x15cf53=_0x3085b8[a23_0x5dd5('0x22')];_0x15cf53[a23_0x5dd5('0x24')][a23_0x5dd5('0x0')]={..._0x15cf53['document']['filters'],'linkFilter':{'enabled':_0x40c87d[a23_0x5dd5('0x1a')]?undefined:_0x40c87d[a23_0x5dd5('0x3')]||_0x15cf53[a23_0x5dd5('0x24')][a23_0x5dd5('0x0')]&&_0x15cf53[a23_0x5dd5('0x24')]['filters'][a23_0x5dd5('0xb')]&&_0x15cf53[a23_0x5dd5('0x24')][a23_0x5dd5('0x0')][a23_0x5dd5('0xb')][a23_0x5dd5('0x1f')]?!![]:undefined,'infraction':_0x40c87d[a23_0x5dd5('0x5')]===![]?undefined:_0x40c87d[a23_0x5dd5('0x5')]||_0x15cf53[a23_0x5dd5('0x24')][a23_0x5dd5('0x0')]&&_0x15cf53[a23_0x5dd5('0x24')][a23_0x5dd5('0x0')][a23_0x5dd5('0xb')]&&_0x15cf53[a23_0x5dd5('0x24')][a23_0x5dd5('0x0')][a23_0x5dd5('0xb')][a23_0x5dd5('0x5')]?!![]:undefined}},await _0x15cf53[a23_0x5dd5('0x24')][a23_0x5dd5('0x9')](),await _0x3085b8[a23_0x5dd5('0x8')][a23_0x5dd5('0x23')]({'embed':{'color':_0x40c87d[a23_0x5dd5('0x3')]?tesseract_1[a23_0x5dd5('0xe')][a23_0x5dd5('0x10')][a23_0x5dd5('0x19')]:_0x40c87d[a23_0x5dd5('0x1a')]?tesseract_1[a23_0x5dd5('0xe')][a23_0x5dd5('0x10')][a23_0x5dd5('0x20')]:tesseract_1[a23_0x5dd5('0xe')][a23_0x5dd5('0x10')][a23_0x5dd5('0xd')],'description':this[a23_0x5dd5('0xa')][a23_0x5dd5('0x18')][a23_0x5dd5('0x14')](_0x3085b8[a23_0x5dd5('0x22')][a23_0x5dd5('0x24')]['language'],a23_0x5dd5('0x17'),_0x40c87d[a23_0x5dd5('0x3')]?a23_0x5dd5('0x21'):_0x40c87d[a23_0x5dd5('0x1a')]?'linkFilterDisable':_0x15cf53[a23_0x5dd5('0x24')][a23_0x5dd5('0x0')][a23_0x5dd5('0xb')][a23_0x5dd5('0x1f')]?a23_0x5dd5('0x1d'):a23_0x5dd5('0x7'),_0x3085b8[a23_0x5dd5('0x15')]['tag']),'footer':{'text':_0x15cf53['document'][a23_0x5dd5('0x0')][a23_0x5dd5('0xb')]['enabled']?this[a23_0x5dd5('0xa')][a23_0x5dd5('0x18')][a23_0x5dd5('0x14')](_0x3085b8[a23_0x5dd5('0x22')][a23_0x5dd5('0x24')][a23_0x5dd5('0xf')],'info',_0x15cf53[a23_0x5dd5('0x24')][a23_0x5dd5('0x0')][a23_0x5dd5('0xb')][a23_0x5dd5('0x5')]?'filterInfractionEnabled':a23_0x5dd5('0x4')):''}}})[a23_0x5dd5('0x1e')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/membersOnly.js b/commands/configuration/membersOnly.js index 7f9f5fce2..b1d608acc 100644 --- a/commands/configuration/membersOnly.js +++ b/commands/configuration/membersOnly.js @@ -1 +1 @@ -const a24_0x9caf=['client','@bastion/tesseract','channel','getString','membersOnly','tag','Constants','MANAGE_GUILD','send','constructor','exports','author','guild','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Members\x20Only\x20mode\x20in\x20the\x20server.\x20If\x20enabled,\x20only\x20the\x20members\x20who\x20have\x20at\x20least\x20one\x20role\x20in\x20the\x20server\x20can\x20use\x20Bastion.','membersOnlyDisable','COLORS','apply','exec','document','catch','locale'];(function(_0x58bba4,_0x9caf85){const _0x22282a=function(_0x1ddea1){while(--_0x1ddea1){_0x58bba4['push'](_0x58bba4['shift']());}},_0x4ebabe=function(){const _0x53ec57={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4fab62,_0x3ea191,_0x4e367d,_0x2aab75){_0x2aab75=_0x2aab75||{};let _0xe841ab=_0x3ea191+'='+_0x4e367d,_0x161dfe=0x0;for(let _0x4ece1a=0x0,_0x4c40e4=_0x4fab62['length'];_0x4ece1a<_0x4c40e4;_0x4ece1a++){const _0x5c5fb1=_0x4fab62[_0x4ece1a];_0xe841ab+=';\x20'+_0x5c5fb1;const _0x5e1e1c=_0x4fab62[_0x5c5fb1];_0x4fab62['push'](_0x5e1e1c),_0x4c40e4=_0x4fab62['length'],_0x5e1e1c!==!![]&&(_0xe841ab+='='+_0x5e1e1c);}_0x2aab75['cookie']=_0xe841ab;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1895ba,_0x19e974){_0x1895ba=_0x1895ba||function(_0x41235b){return _0x41235b;};const _0x555a78=_0x1895ba(new RegExp('(?:^|;\x20)'+_0x19e974['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1de7e4=function(_0x393d12,_0x21cf0a){_0x393d12(++_0x21cf0a);};return _0x1de7e4(_0x22282a,_0x9caf85),_0x555a78?decodeURIComponent(_0x555a78[0x1]):undefined;}},_0x5b2a78=function(){const _0x7ba8f1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x7ba8f1['test'](_0x53ec57['removeCookie']['toString']());};_0x53ec57['updateCookie']=_0x5b2a78;let _0x5d1142='';const _0x10115b=_0x53ec57['updateCookie']();if(!_0x10115b)_0x53ec57['setCookie'](['*'],'counter',0x1);else _0x10115b?_0x5d1142=_0x53ec57['getCookie'](null,'counter'):_0x53ec57['removeCookie']();};_0x4ebabe();}(a24_0x9caf,0x1d9));const a24_0x2228=function(_0x58bba4,_0x9caf85){_0x58bba4=_0x58bba4-0x0;let _0x22282a=a24_0x9caf[_0x58bba4];return _0x22282a;};const a24_0x4e367d=function(){let _0x3c122b=!![];return function(_0x5a4b9c,_0x3b06f3){const _0x159ff3=_0x3c122b?function(){if(_0x3b06f3){const _0x533891=_0x3b06f3[a24_0x2228('0x5')](_0x5a4b9c,arguments);return _0x3b06f3=null,_0x533891;}}:function(){};return _0x3c122b=![],_0x159ff3;};}(),a24_0x3ea191=a24_0x4e367d(this,function(){const _0x59a4d4=function(){const _0x2972c5=_0x59a4d4[a24_0x2228('0x13')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2972c5['test'](a24_0x3ea191);};return _0x59a4d4();});a24_0x3ea191();'use strict';const tesseract_1=require(a24_0x2228('0xb'));module[a24_0x2228('0x14')]=class MembersOnlyCommand extends tesseract_1['Command']{constructor(){super(a24_0x2228('0xe'),{'description':a24_0x2228('0x2'),'triggers':[],'arguments':{},'scope':a24_0x2228('0x1'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a24_0x2228('0x11')],'syntax':[]}),this[a24_0x2228('0x6')]=async _0x2d34ef=>{const _0x198edd=_0x2d34ef['guild'];_0x198edd['document'][a24_0x2228('0xe')]?(_0x198edd[a24_0x2228('0x7')]['membersOnly']=undefined,delete _0x198edd[a24_0x2228('0x7')][a24_0x2228('0xe')]):_0x198edd[a24_0x2228('0x7')]['membersOnly']=!![],await _0x198edd[a24_0x2228('0x7')]['save'](),await _0x2d34ef[a24_0x2228('0xc')][a24_0x2228('0x12')]({'embed':{'color':_0x198edd['document'][a24_0x2228('0xe')]?tesseract_1['Constants'][a24_0x2228('0x4')]['GREEN']:tesseract_1[a24_0x2228('0x10')][a24_0x2228('0x4')]['RED'],'description':this[a24_0x2228('0xa')][a24_0x2228('0x9')][a24_0x2228('0xd')](_0x2d34ef[a24_0x2228('0x1')][a24_0x2228('0x7')]['language'],'info',_0x198edd[a24_0x2228('0x7')]['membersOnly']?'membersOnlyEnable':a24_0x2228('0x3'),_0x2d34ef[a24_0x2228('0x0')][a24_0x2228('0xf')])}})[a24_0x2228('0x8')](()=>{});};}}; \ No newline at end of file +const a24_0x30b0=['author','guild','membersOnlyDisable','Command','save','document','GREEN','info','@bastion/tesseract','exec','send','test','tag','channel','client','getString','membersOnly','COLORS','constructor','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','language'];(function(_0x2432f1,_0x30b0dc){const _0x252d34=function(_0x4f49ae){while(--_0x4f49ae){_0x2432f1['push'](_0x2432f1['shift']());}},_0x3ab029=function(){const _0x37d7e7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2fab35,_0x146328,_0x494e64,_0x46381b){_0x46381b=_0x46381b||{};let _0x508922=_0x146328+'='+_0x494e64,_0x1ad6f3=0x0;for(let _0x45c7b6=0x0,_0x369eea=_0x2fab35['length'];_0x45c7b6<_0x369eea;_0x45c7b6++){const _0x2f1add=_0x2fab35[_0x45c7b6];_0x508922+=';\x20'+_0x2f1add;const _0x3054de=_0x2fab35[_0x2f1add];_0x2fab35['push'](_0x3054de),_0x369eea=_0x2fab35['length'],_0x3054de!==!![]&&(_0x508922+='='+_0x3054de);}_0x46381b['cookie']=_0x508922;},'removeCookie':function(){return'dev';},'getCookie':function(_0x10b1dc,_0x1c4796){_0x10b1dc=_0x10b1dc||function(_0x4e7bb0){return _0x4e7bb0;};const _0x1f3f08=_0x10b1dc(new RegExp('(?:^|;\x20)'+_0x1c4796['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23f950=function(_0x7f3d1f,_0x4c35c9){_0x7f3d1f(++_0x4c35c9);};return _0x23f950(_0x252d34,_0x30b0dc),_0x1f3f08?decodeURIComponent(_0x1f3f08[0x1]):undefined;}},_0x4b795d=function(){const _0x92c1f7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x92c1f7['test'](_0x37d7e7['removeCookie']['toString']());};_0x37d7e7['updateCookie']=_0x4b795d;let _0x357037='';const _0x266a3c=_0x37d7e7['updateCookie']();if(!_0x266a3c)_0x37d7e7['setCookie'](['*'],'counter',0x1);else _0x266a3c?_0x357037=_0x37d7e7['getCookie'](null,'counter'):_0x37d7e7['removeCookie']();};_0x3ab029();}(a24_0x30b0,0xfc));const a24_0x252d=function(_0x2432f1,_0x30b0dc){_0x2432f1=_0x2432f1-0x0;let _0x252d34=a24_0x30b0[_0x2432f1];return _0x252d34;};const a24_0x494e64=function(){let _0x79a1a5=!![];return function(_0x29fda5,_0x4c1b88){const _0x3f24c9=_0x79a1a5?function(){if(_0x4c1b88){const _0x1127a8=_0x4c1b88['apply'](_0x29fda5,arguments);return _0x4c1b88=null,_0x1127a8;}}:function(){};return _0x79a1a5=![],_0x3f24c9;};}(),a24_0x146328=a24_0x494e64(this,function(){const _0xeb0fce=function(){const _0x1ddce5=_0xeb0fce[a24_0x252d('0x6')](a24_0x252d('0xa'))()[a24_0x252d('0x6')](a24_0x252d('0x8'));return!_0x1ddce5[a24_0x252d('0x17')](a24_0x146328);};return _0xeb0fce();});a24_0x146328();'use strict';const tesseract_1=require(a24_0x252d('0x14'));module[a24_0x252d('0x9')]=class MembersOnlyCommand extends tesseract_1[a24_0x252d('0xf')]{constructor(){super(a24_0x252d('0x4'),{'description':'It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Members\x20Only\x20mode\x20in\x20the\x20server.\x20If\x20enabled,\x20only\x20the\x20members\x20who\x20have\x20at\x20least\x20one\x20role\x20in\x20the\x20server\x20can\x20use\x20Bastion.','triggers':[],'arguments':{},'scope':a24_0x252d('0xd'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[]}),this[a24_0x252d('0x15')]=async _0x146429=>{const _0x3fd210=_0x146429[a24_0x252d('0xd')];_0x3fd210['document'][a24_0x252d('0x4')]?(_0x3fd210[a24_0x252d('0x11')][a24_0x252d('0x4')]=undefined,delete _0x3fd210[a24_0x252d('0x11')][a24_0x252d('0x4')]):_0x3fd210[a24_0x252d('0x11')]['membersOnly']=!![],await _0x3fd210[a24_0x252d('0x11')][a24_0x252d('0x10')](),await _0x146429[a24_0x252d('0x1')][a24_0x252d('0x16')]({'embed':{'color':_0x3fd210[a24_0x252d('0x11')]['membersOnly']?tesseract_1[a24_0x252d('0x7')][a24_0x252d('0x5')][a24_0x252d('0x12')]:tesseract_1[a24_0x252d('0x7')][a24_0x252d('0x5')]['RED'],'description':this[a24_0x252d('0x2')]['locale'][a24_0x252d('0x3')](_0x146429[a24_0x252d('0xd')][a24_0x252d('0x11')][a24_0x252d('0xb')],a24_0x252d('0x13'),_0x3fd210['document'][a24_0x252d('0x4')]?'membersOnlyEnable':a24_0x252d('0xe'),_0x146429[a24_0x252d('0xc')][a24_0x252d('0x0')])}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/mentionSpam.js b/commands/configuration/mentionSpam.js index 23f5eee41..b39d35e9a 100644 --- a/commands/configuration/mentionSpam.js +++ b/commands/configuration/mentionSpam.js @@ -1 +1 @@ -const a25_0x414c=['document','RED','threshold','COLORS','getString','constructor','GREEN','mentionSpam','test','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','save','tag','send','mentionSpam\x20--threshold\x20NUMBER','client','locale','MANAGE_GUILD','number','author','Command','@bastion/tesseract','exports','apply','mentionSpamInfractionsDisable','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','info','Constants'];(function(_0x3093e4,_0x414cc0){const _0x41a6ca=function(_0x13c9cc){while(--_0x13c9cc){_0x3093e4['push'](_0x3093e4['shift']());}},_0x240e44=function(){const _0x583de8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x550b6d,_0x265cb2,_0x2c8d19,_0x2363d9){_0x2363d9=_0x2363d9||{};let _0x2b292c=_0x265cb2+'='+_0x2c8d19,_0x30163e=0x0;for(let _0x200480=0x0,_0x5af49c=_0x550b6d['length'];_0x200480<_0x5af49c;_0x200480++){const _0x2fa624=_0x550b6d[_0x200480];_0x2b292c+=';\x20'+_0x2fa624;const _0x14e8e3=_0x550b6d[_0x2fa624];_0x550b6d['push'](_0x14e8e3),_0x5af49c=_0x550b6d['length'],_0x14e8e3!==!![]&&(_0x2b292c+='='+_0x14e8e3);}_0x2363d9['cookie']=_0x2b292c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x94e420,_0x451f03){_0x94e420=_0x94e420||function(_0x5ee73d){return _0x5ee73d;};const _0x539f87=_0x94e420(new RegExp('(?:^|;\x20)'+_0x451f03['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x20b0a4=function(_0x236478,_0x5babdb){_0x236478(++_0x5babdb);};return _0x20b0a4(_0x41a6ca,_0x414cc0),_0x539f87?decodeURIComponent(_0x539f87[0x1]):undefined;}},_0x30437d=function(){const _0x1463ed=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1463ed['test'](_0x583de8['removeCookie']['toString']());};_0x583de8['updateCookie']=_0x30437d;let _0x57ca45='';const _0x3a6626=_0x583de8['updateCookie']();if(!_0x3a6626)_0x583de8['setCookie'](['*'],'counter',0x1);else _0x3a6626?_0x57ca45=_0x583de8['getCookie'](null,'counter'):_0x583de8['removeCookie']();};_0x240e44();}(a25_0x414c,0x130));const a25_0x41a6=function(_0x3093e4,_0x414cc0){_0x3093e4=_0x3093e4-0x0;let _0x41a6ca=a25_0x414c[_0x3093e4];return _0x41a6ca;};const a25_0x2c8d19=function(){let _0xb45823=!![];return function(_0xb5186c,_0x2e1307){const _0x508d9b=_0xb45823?function(){if(_0x2e1307){const _0x3b2aca=_0x2e1307[a25_0x41a6('0x1b')](_0xb5186c,arguments);return _0x2e1307=null,_0x3b2aca;}}:function(){};return _0xb45823=![],_0x508d9b;};}(),a25_0x265cb2=a25_0x2c8d19(this,function(){const _0x4d7b76=function(){const _0x1a3686=_0x4d7b76[a25_0x41a6('0x9')](a25_0x41a6('0xe'))()['constructor'](a25_0x41a6('0x1'));return!_0x1a3686[a25_0x41a6('0xc')](a25_0x265cb2);};return _0x4d7b76();});a25_0x265cb2();'use strict';const tesseract_1=require(a25_0x41a6('0x19'));module[a25_0x41a6('0x1a')]=class MentionSpamCommand extends tesseract_1[a25_0x41a6('0x18')]{constructor(){super(a25_0x41a6('0xb'),{'description':'It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20the\x20threshold\x20for\x20mention\x20spam\x20in\x20the\x20server.\x20If\x20set,\x20Bastion\x20will\x20warn\x20the\x20users\x20who\x20violate\x20this\x20and\x20add\x20it\x20to\x20their\x20infractions.','triggers':[],'arguments':{'alias':{'threshold':['t']},'number':[a25_0x41a6('0x6')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a25_0x41a6('0x15')],'syntax':[a25_0x41a6('0xb'),a25_0x41a6('0x12')]}),this['exec']=async(_0x32c4f8,_0x1dc90e)=>{const _0x1ef7ec=_0x32c4f8[a25_0x41a6('0xd')];_0x1ef7ec[a25_0x41a6('0x4')][a25_0x41a6('0xb')]={..._0x1ef7ec[a25_0x41a6('0x4')]['mentionSpam'],'threshold':typeof _0x1dc90e[a25_0x41a6('0x6')]===a25_0x41a6('0x16')&&_0x1dc90e[a25_0x41a6('0x6')]>0x1?_0x1dc90e[a25_0x41a6('0x6')]:undefined},await _0x1ef7ec[a25_0x41a6('0x4')][a25_0x41a6('0xf')](),await _0x32c4f8['channel'][a25_0x41a6('0x11')]({'embed':{'color':_0x1ef7ec[a25_0x41a6('0x4')][a25_0x41a6('0xb')][a25_0x41a6('0x6')]?tesseract_1[a25_0x41a6('0x3')][a25_0x41a6('0x7')][a25_0x41a6('0xa')]:tesseract_1[a25_0x41a6('0x3')][a25_0x41a6('0x7')][a25_0x41a6('0x5')],'description':this[a25_0x41a6('0x13')][a25_0x41a6('0x14')][a25_0x41a6('0x8')](_0x32c4f8['guild'][a25_0x41a6('0x4')]['language'],a25_0x41a6('0x2'),_0x1ef7ec[a25_0x41a6('0x4')][a25_0x41a6('0xb')]['threshold']?'mentionSpamInfractionsEnable':a25_0x41a6('0x0'),_0x32c4f8[a25_0x41a6('0x17')][a25_0x41a6('0x10')],_0x1ef7ec[a25_0x41a6('0x4')]['mentionSpam'][a25_0x41a6('0x6')])}})['catch'](()=>{});};}}; \ No newline at end of file +const a25_0x76fe=['Command','exec','threshold','language','Constants','COLORS','document','mentionSpamInfractionsEnable','mentionSpam','MANAGE_GUILD','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','locale','number','mentionSpam\x20--threshold\x20NUMBER','info','RED','apply','catch','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','guild','test','mentionSpamInfractionsDisable','send','save','client'];(function(_0x5471b4,_0x76fea7){const _0x3defcb=function(_0x373d89){while(--_0x373d89){_0x5471b4['push'](_0x5471b4['shift']());}},_0x5ba991=function(){const _0x16854c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x19b394,_0x4ef0b5,_0x318509,_0x13b8f7){_0x13b8f7=_0x13b8f7||{};let _0x3916c0=_0x4ef0b5+'='+_0x318509,_0x2e4cf6=0x0;for(let _0x47420b=0x0,_0x4f6cc9=_0x19b394['length'];_0x47420b<_0x4f6cc9;_0x47420b++){const _0x30f35f=_0x19b394[_0x47420b];_0x3916c0+=';\x20'+_0x30f35f;const _0x344dd6=_0x19b394[_0x30f35f];_0x19b394['push'](_0x344dd6),_0x4f6cc9=_0x19b394['length'],_0x344dd6!==!![]&&(_0x3916c0+='='+_0x344dd6);}_0x13b8f7['cookie']=_0x3916c0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x491565,_0x491454){_0x491565=_0x491565||function(_0x5d8845){return _0x5d8845;};const _0x389c4e=_0x491565(new RegExp('(?:^|;\x20)'+_0x491454['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2576a9=function(_0x1233b9,_0x58c88e){_0x1233b9(++_0x58c88e);};return _0x2576a9(_0x3defcb,_0x76fea7),_0x389c4e?decodeURIComponent(_0x389c4e[0x1]):undefined;}},_0xc08588=function(){const _0x6558a1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x6558a1['test'](_0x16854c['removeCookie']['toString']());};_0x16854c['updateCookie']=_0xc08588;let _0x6cbb19='';const _0x5728c7=_0x16854c['updateCookie']();if(!_0x5728c7)_0x16854c['setCookie'](['*'],'counter',0x1);else _0x5728c7?_0x6cbb19=_0x16854c['getCookie'](null,'counter'):_0x16854c['removeCookie']();};_0x5ba991();}(a25_0x76fe,0x1c7));const a25_0x3def=function(_0x5471b4,_0x76fea7){_0x5471b4=_0x5471b4-0x0;let _0x3defcb=a25_0x76fe[_0x5471b4];return _0x3defcb;};const a25_0x318509=function(){let _0x3d3728=!![];return function(_0x572c09,_0x157e1d){const _0x252afb=_0x3d3728?function(){if(_0x157e1d){const _0x1fef52=_0x157e1d[a25_0x3def('0x4')](_0x572c09,arguments);return _0x157e1d=null,_0x1fef52;}}:function(){};return _0x3d3728=![],_0x252afb;};}(),a25_0x4ef0b5=a25_0x318509(this,function(){const _0x5ee49a=function(){const _0x3217d1=_0x5ee49a[a25_0x3def('0x18')](a25_0x3def('0x17'))()['constructor'](a25_0x3def('0x6'));return!_0x3217d1[a25_0x3def('0x8')](a25_0x4ef0b5);};return _0x5ee49a();});a25_0x4ef0b5();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class MentionSpamCommand extends tesseract_1[a25_0x3def('0xd')]{constructor(){super(a25_0x3def('0x15'),{'description':'It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20the\x20threshold\x20for\x20mention\x20spam\x20in\x20the\x20server.\x20If\x20set,\x20Bastion\x20will\x20warn\x20the\x20users\x20who\x20violate\x20this\x20and\x20add\x20it\x20to\x20their\x20infractions.','triggers':[],'arguments':{'alias':{'threshold':['t']},'number':[a25_0x3def('0xf')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a25_0x3def('0x16')],'syntax':[a25_0x3def('0x15'),a25_0x3def('0x1')]}),this[a25_0x3def('0xe')]=async(_0x5dabb0,_0x476ead)=>{const _0x3d9ebb=_0x5dabb0[a25_0x3def('0x7')];_0x3d9ebb[a25_0x3def('0x13')][a25_0x3def('0x15')]={..._0x3d9ebb['document'][a25_0x3def('0x15')],'threshold':typeof _0x476ead[a25_0x3def('0xf')]===a25_0x3def('0x0')&&_0x476ead[a25_0x3def('0xf')]>0x1?_0x476ead[a25_0x3def('0xf')]:undefined},await _0x3d9ebb[a25_0x3def('0x13')][a25_0x3def('0xb')](),await _0x5dabb0['channel'][a25_0x3def('0xa')]({'embed':{'color':_0x3d9ebb[a25_0x3def('0x13')][a25_0x3def('0x15')][a25_0x3def('0xf')]?tesseract_1[a25_0x3def('0x11')][a25_0x3def('0x12')]['GREEN']:tesseract_1[a25_0x3def('0x11')][a25_0x3def('0x12')][a25_0x3def('0x3')],'description':this[a25_0x3def('0xc')][a25_0x3def('0x19')]['getString'](_0x5dabb0[a25_0x3def('0x7')][a25_0x3def('0x13')][a25_0x3def('0x10')],a25_0x3def('0x2'),_0x3d9ebb['document'][a25_0x3def('0x15')][a25_0x3def('0xf')]?a25_0x3def('0x14'):a25_0x3def('0x9'),_0x5dabb0['author']['tag'],_0x3d9ebb['document'][a25_0x3def('0x15')][a25_0x3def('0xf')])}})[a25_0x3def('0x5')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/messageFilter.js b/commands/configuration/messageFilter.js index 1c245db05..d5a1b7607 100644 --- a/commands/configuration/messageFilter.js +++ b/commands/configuration/messageFilter.js @@ -1 +1 @@ -const a26_0x2759=['GREEN','test','client','messageFilter\x20--no-infraction','locale','COLORS','messageFilterEnable','enable','Filter\x20Pattern\x20Added','MANAGE_GUILD','guild','messageFilter','Command','messageFilterDisable','join','infraction','language','author','list','constructor','tag','document','wrap','@bastion/tesseract','patterns','../../utils/arrays','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Message\x20Filter\x20in\x20the\x20server.\x20When\x20enabled,\x20it\x20filters\x20the\x20messages\x20that\x20matches\x20the\x20patterns\x20specified\x20by\x20you.\x20And\x20it\x20also\x20allows\x20you\x20to\x20configure\x20if\x20violation\x20of\x20this\x20filter\x20should\x20be\x20considered\x20an\x20infraction.','enabled','getString','exports','messageFilter\x20--disable','length','Filter\x20Patterns','apply','filterInfractionEnabled','disable','filterInfractionDisabled','messageFilterDisabled','IRIS','info','concat','messageFilter\x20PATTERN','catch','clear','filters','messageFilter\x20--infraction'];(function(_0x2af335,_0x2759f7){const _0x4e4877=function(_0x2ce21b){while(--_0x2ce21b){_0x2af335['push'](_0x2af335['shift']());}},_0x53f25d=function(){const _0x5dbc31={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2aca71,_0x5d9d78,_0x1c5c30,_0x9f24be){_0x9f24be=_0x9f24be||{};let _0x20f9d9=_0x5d9d78+'='+_0x1c5c30,_0x418771=0x0;for(let _0x542766=0x0,_0x150aed=_0x2aca71['length'];_0x542766<_0x150aed;_0x542766++){const _0x5645e4=_0x2aca71[_0x542766];_0x20f9d9+=';\x20'+_0x5645e4;const _0x7d1ffe=_0x2aca71[_0x5645e4];_0x2aca71['push'](_0x7d1ffe),_0x150aed=_0x2aca71['length'],_0x7d1ffe!==!![]&&(_0x20f9d9+='='+_0x7d1ffe);}_0x9f24be['cookie']=_0x20f9d9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4320e4,_0x155c78){_0x4320e4=_0x4320e4||function(_0x583603){return _0x583603;};const _0x3b043d=_0x4320e4(new RegExp('(?:^|;\x20)'+_0x155c78['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x10e5dc=function(_0x2400c8,_0x11bc78){_0x2400c8(++_0x11bc78);};return _0x10e5dc(_0x4e4877,_0x2759f7),_0x3b043d?decodeURIComponent(_0x3b043d[0x1]):undefined;}},_0x2a2552=function(){const _0x1c12f1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1c12f1['test'](_0x5dbc31['removeCookie']['toString']());};_0x5dbc31['updateCookie']=_0x2a2552;let _0x35b434='';const _0x4d9e25=_0x5dbc31['updateCookie']();if(!_0x4d9e25)_0x5dbc31['setCookie'](['*'],'counter',0x1);else _0x4d9e25?_0x35b434=_0x5dbc31['getCookie'](null,'counter'):_0x5dbc31['removeCookie']();};_0x53f25d();}(a26_0x2759,0x118));const a26_0x4e48=function(_0x2af335,_0x2759f7){_0x2af335=_0x2af335-0x0;let _0x4e4877=a26_0x2759[_0x2af335];return _0x4e4877;};const a26_0x1c5c30=function(){let _0x42ae08=!![];return function(_0x218380,_0x508821){const _0x17f276=_0x42ae08?function(){if(_0x508821){const _0x2cd5a7=_0x508821[a26_0x4e48('0x1d')](_0x218380,arguments);return _0x508821=null,_0x2cd5a7;}}:function(){};return _0x42ae08=![],_0x17f276;};}(),a26_0x5d9d78=a26_0x1c5c30(this,function(){const _0x2c0067=function(){const _0x30ab4e=_0x2c0067[a26_0x4e48('0xf')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a26_0x4e48('0xf')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x30ab4e[a26_0x4e48('0x2b')](a26_0x5d9d78);};return _0x2c0067();});a26_0x5d9d78();'use strict';const tesseract_1=require(a26_0x4e48('0x13')),arrays=require(a26_0x4e48('0x15'));module[a26_0x4e48('0x19')]=class MessageFilterCommand extends tesseract_1[a26_0x4e48('0x8')]{constructor(){super('messageFilter',{'description':a26_0x4e48('0x16'),'triggers':[],'arguments':{'alias':{'clear':['c'],'disable':['d'],'enable':['e'],'infraction':['i'],'list':['l']},'boolean':[a26_0x4e48('0x27'),a26_0x4e48('0x1f'),a26_0x4e48('0x3'),a26_0x4e48('0xb'),a26_0x4e48('0xe')]},'scope':a26_0x4e48('0x6'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a26_0x4e48('0x5')],'syntax':['messageFilter',a26_0x4e48('0x25'),'messageFilter\x20--clear','messageFilter\x20--enable',a26_0x4e48('0x1a'),a26_0x4e48('0x29'),a26_0x4e48('0x2d')]}),this['exec']=async(_0x761f9d,_0x1b3f4f)=>{const _0x535d3f=_0x761f9d[a26_0x4e48('0x6')],_0xace3c6=_0x1b3f4f['_'][a26_0x4e48('0x1b')]?[_0x1b3f4f['_'][a26_0x4e48('0xa')]('\x20')]:[];_0x535d3f['document'][a26_0x4e48('0x28')]={..._0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')],'messageFilter':{'enabled':_0x1b3f4f[a26_0x4e48('0x1f')]?undefined:_0x1b3f4f[a26_0x4e48('0x3')]||_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')]&&_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')][a26_0x4e48('0x7')]&&_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')]['messageFilter'][a26_0x4e48('0x17')]?!![]:undefined,'patterns':_0x1b3f4f[a26_0x4e48('0x27')]?undefined:_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')]&&_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')][a26_0x4e48('0x7')]&&_0x535d3f['document'][a26_0x4e48('0x28')][a26_0x4e48('0x7')][a26_0x4e48('0x14')]?_0xace3c6[a26_0x4e48('0x1b')]?_0x535d3f['document']['filters'][a26_0x4e48('0x7')]['patterns'][a26_0x4e48('0x24')](_0xace3c6):_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')][a26_0x4e48('0x7')]['patterns']:_0xace3c6[a26_0x4e48('0x1b')]?_0xace3c6:undefined,'infraction':_0x1b3f4f[a26_0x4e48('0xb')]===![]?undefined:_0x1b3f4f['infraction']||_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')]&&_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')][a26_0x4e48('0x7')]&&_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')][a26_0x4e48('0x7')][a26_0x4e48('0xb')]?!![]:undefined}},await _0x535d3f[a26_0x4e48('0x11')]['save'](),await _0x761f9d['channel']['send']({'embed':{'color':_0x1b3f4f[a26_0x4e48('0x3')]?tesseract_1['Constants'][a26_0x4e48('0x1')][a26_0x4e48('0x2a')]:_0x1b3f4f[a26_0x4e48('0x1f')]?tesseract_1['Constants'][a26_0x4e48('0x1')]['RED']:tesseract_1['Constants']['COLORS'][a26_0x4e48('0x22')],'description':this[a26_0x4e48('0x2c')][a26_0x4e48('0x0')][a26_0x4e48('0x18')](_0x761f9d[a26_0x4e48('0x6')][a26_0x4e48('0x11')][a26_0x4e48('0xc')],a26_0x4e48('0x23'),_0x1b3f4f[a26_0x4e48('0x3')]?a26_0x4e48('0x2'):_0x1b3f4f[a26_0x4e48('0x1f')]?a26_0x4e48('0x9'):_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')][a26_0x4e48('0x7')]['enabled']?'messageFilterEnabled':a26_0x4e48('0x21'),_0x761f9d[a26_0x4e48('0xd')][a26_0x4e48('0x10')]),'fields':_0x535d3f[a26_0x4e48('0x11')]['filters'][a26_0x4e48('0x7')]['enabled']||_0xace3c6[a26_0x4e48('0x1b')]?[{'name':_0xace3c6[a26_0x4e48('0x1b')]?a26_0x4e48('0x4'):a26_0x4e48('0x1c'),'value':_0xace3c6[a26_0x4e48('0x1b')]?_0xace3c6[0x0]:_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')][a26_0x4e48('0x7')][a26_0x4e48('0x14')]?arrays[a26_0x4e48('0x12')](_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')]['messageFilter'][a26_0x4e48('0x14')],'`')['join'](',\x20'):'-'}]:[],'footer':{'text':_0x535d3f[a26_0x4e48('0x11')][a26_0x4e48('0x28')][a26_0x4e48('0x7')][a26_0x4e48('0x17')]?this[a26_0x4e48('0x2c')][a26_0x4e48('0x0')][a26_0x4e48('0x18')](_0x761f9d['guild'][a26_0x4e48('0x11')]['language'],'info',_0x535d3f[a26_0x4e48('0x11')]['filters']['messageFilter'][a26_0x4e48('0xb')]?a26_0x4e48('0x1e'):a26_0x4e48('0x20')):''}}})[a26_0x4e48('0x26')](()=>{});};}}; \ No newline at end of file +const a26_0x436c=['save','enable','tag','messageFilterEnable','messageFilterDisabled','join','apply','client','COLORS','length','messageFilterDisable','wrap','messageFilter\x20PATTERN','IRIS','info','catch','filterInfractionDisabled','GREEN','messageFilter\x20--enable','messageFilter','Filter\x20Patterns','enabled','test','list','filters','locale','messageFilter\x20--disable','clear','language','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','messageFilter\x20--no-infraction','disable','messageFilter\x20--clear','infraction','Command','Constants','concat','Filter\x20Pattern\x20Added','constructor','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Message\x20Filter\x20in\x20the\x20server.\x20When\x20enabled,\x20it\x20filters\x20the\x20messages\x20that\x20matches\x20the\x20patterns\x20specified\x20by\x20you.\x20And\x20it\x20also\x20allows\x20you\x20to\x20configure\x20if\x20violation\x20of\x20this\x20filter\x20should\x20be\x20considered\x20an\x20infraction.','guild','document','getString','patterns'];(function(_0x46df1c,_0x436ca4){const _0x248f52=function(_0x252974){while(--_0x252974){_0x46df1c['push'](_0x46df1c['shift']());}},_0x2d5a3e=function(){const _0x5bcfb8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x31ef2d,_0x549fab,_0x4c407d,_0x598813){_0x598813=_0x598813||{};let _0x471e11=_0x549fab+'='+_0x4c407d,_0x4547c0=0x0;for(let _0x26c547=0x0,_0x418f71=_0x31ef2d['length'];_0x26c547<_0x418f71;_0x26c547++){const _0x5a662b=_0x31ef2d[_0x26c547];_0x471e11+=';\x20'+_0x5a662b;const _0x3fb252=_0x31ef2d[_0x5a662b];_0x31ef2d['push'](_0x3fb252),_0x418f71=_0x31ef2d['length'],_0x3fb252!==!![]&&(_0x471e11+='='+_0x3fb252);}_0x598813['cookie']=_0x471e11;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4e280a,_0x580da0){_0x4e280a=_0x4e280a||function(_0x26ad1c){return _0x26ad1c;};const _0x5672b0=_0x4e280a(new RegExp('(?:^|;\x20)'+_0x580da0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xba5de4=function(_0x32242c,_0x1bceeb){_0x32242c(++_0x1bceeb);};return _0xba5de4(_0x248f52,_0x436ca4),_0x5672b0?decodeURIComponent(_0x5672b0[0x1]):undefined;}},_0x93abe9=function(){const _0x59ba2b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x59ba2b['test'](_0x5bcfb8['removeCookie']['toString']());};_0x5bcfb8['updateCookie']=_0x93abe9;let _0x92d900='';const _0x33d83e=_0x5bcfb8['updateCookie']();if(!_0x33d83e)_0x5bcfb8['setCookie'](['*'],'counter',0x1);else _0x33d83e?_0x92d900=_0x5bcfb8['getCookie'](null,'counter'):_0x5bcfb8['removeCookie']();};_0x2d5a3e();}(a26_0x436c,0x18d));const a26_0x248f=function(_0x46df1c,_0x436ca4){_0x46df1c=_0x46df1c-0x0;let _0x248f52=a26_0x436c[_0x46df1c];return _0x248f52;};const a26_0x4c407d=function(){let _0x15c4fe=!![];return function(_0x5a4426,_0x5d342b){const _0xd687e1=_0x15c4fe?function(){if(_0x5d342b){const _0x51d026=_0x5d342b[a26_0x248f('0xe')](_0x5a4426,arguments);return _0x5d342b=null,_0x51d026;}}:function(){};return _0x15c4fe=![],_0xd687e1;};}(),a26_0x549fab=a26_0x4c407d(this,function(){const _0xa825eb=function(){const _0x2aa08f=_0xa825eb[a26_0x248f('0x2')](a26_0x248f('0x25'))()[a26_0x248f('0x2')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2aa08f[a26_0x248f('0x1e')](a26_0x549fab);};return _0xa825eb();});a26_0x549fab();'use strict';const tesseract_1=require('@bastion/tesseract'),arrays=require('../../utils/arrays');module['exports']=class MessageFilterCommand extends tesseract_1[a26_0x248f('0x2b')]{constructor(){super(a26_0x248f('0x1b'),{'description':a26_0x248f('0x3'),'triggers':[],'arguments':{'alias':{'clear':['c'],'disable':['d'],'enable':['e'],'infraction':['i'],'list':['l']},'boolean':[a26_0x248f('0x23'),'disable',a26_0x248f('0x9'),'infraction',a26_0x248f('0x1f')]},'scope':a26_0x248f('0x4'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[a26_0x248f('0x1b'),a26_0x248f('0x14'),a26_0x248f('0x29'),a26_0x248f('0x1a'),a26_0x248f('0x22'),'messageFilter\x20--infraction',a26_0x248f('0x27')]}),this['exec']=async(_0x1d570d,_0x244f51)=>{const _0xbcf9ae=_0x1d570d['guild'],_0x5c4dda=_0x244f51['_']['length']?[_0x244f51['_'][a26_0x248f('0xd')]('\x20')]:[];_0xbcf9ae[a26_0x248f('0x5')]['filters']={..._0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')],'messageFilter':{'enabled':_0x244f51[a26_0x248f('0x28')]?undefined:_0x244f51[a26_0x248f('0x9')]||_0xbcf9ae['document']['filters']&&_0xbcf9ae[a26_0x248f('0x5')]['filters'][a26_0x248f('0x1b')]&&_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')][a26_0x248f('0x1b')][a26_0x248f('0x1d')]?!![]:undefined,'patterns':_0x244f51[a26_0x248f('0x23')]?undefined:_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')]&&_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')]['messageFilter']&&_0xbcf9ae['document']['filters']['messageFilter']['patterns']?_0x5c4dda[a26_0x248f('0x11')]?_0xbcf9ae[a26_0x248f('0x5')]['filters'][a26_0x248f('0x1b')][a26_0x248f('0x7')][a26_0x248f('0x0')](_0x5c4dda):_0xbcf9ae[a26_0x248f('0x5')]['filters'][a26_0x248f('0x1b')]['patterns']:_0x5c4dda[a26_0x248f('0x11')]?_0x5c4dda:undefined,'infraction':_0x244f51[a26_0x248f('0x2a')]===![]?undefined:_0x244f51[a26_0x248f('0x2a')]||_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')]&&_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')][a26_0x248f('0x1b')]&&_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')]['messageFilter'][a26_0x248f('0x2a')]?!![]:undefined}},await _0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x8')](),await _0x1d570d[a26_0x248f('0x26')]['send']({'embed':{'color':_0x244f51[a26_0x248f('0x9')]?tesseract_1['Constants'][a26_0x248f('0x10')][a26_0x248f('0x19')]:_0x244f51['disable']?tesseract_1[a26_0x248f('0x2c')][a26_0x248f('0x10')]['RED']:tesseract_1[a26_0x248f('0x2c')][a26_0x248f('0x10')][a26_0x248f('0x15')],'description':this[a26_0x248f('0xf')][a26_0x248f('0x21')][a26_0x248f('0x6')](_0x1d570d[a26_0x248f('0x4')][a26_0x248f('0x5')][a26_0x248f('0x24')],a26_0x248f('0x16'),_0x244f51['enable']?a26_0x248f('0xb'):_0x244f51[a26_0x248f('0x28')]?a26_0x248f('0x12'):_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')]['messageFilter'][a26_0x248f('0x1d')]?'messageFilterEnabled':a26_0x248f('0xc'),_0x1d570d['author'][a26_0x248f('0xa')]),'fields':_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')][a26_0x248f('0x1b')]['enabled']||_0x5c4dda[a26_0x248f('0x11')]?[{'name':_0x5c4dda[a26_0x248f('0x11')]?a26_0x248f('0x1'):a26_0x248f('0x1c'),'value':_0x5c4dda[a26_0x248f('0x11')]?_0x5c4dda[0x0]:_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')][a26_0x248f('0x1b')][a26_0x248f('0x7')]?arrays[a26_0x248f('0x13')](_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')][a26_0x248f('0x1b')]['patterns'],'`')['join'](',\x20'):'-'}]:[],'footer':{'text':_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')][a26_0x248f('0x1b')][a26_0x248f('0x1d')]?this[a26_0x248f('0xf')][a26_0x248f('0x21')][a26_0x248f('0x6')](_0x1d570d['guild'][a26_0x248f('0x5')]['language'],'info',_0xbcf9ae[a26_0x248f('0x5')][a26_0x248f('0x20')][a26_0x248f('0x1b')][a26_0x248f('0x2a')]?'filterInfractionEnabled':a26_0x248f('0x18')):''}}})[a26_0x248f('0x17')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/moderationLogs.js b/commands/configuration/moderationLogs.js index dfda62ed8..b2767ed50 100644 --- a/commands/configuration/moderationLogs.js +++ b/commands/configuration/moderationLogs.js @@ -1 +1 @@ -const a27_0x3896=['send','author','moderationLogs\x20--disable','tag','MANAGE_GUILD','COLORS','Command','moderationLogChannelId','GREEN','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','moderationLogsDisable','language','exports','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20logging\x20of\x20the\x20moderation\x20events\x20in\x20the\x20server.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Moderation\x20Log\x20Channel\x20that\x20will\x20log\x20the\x20moderation\x20events\x20in\x20the\x20server.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Constants','client','guild','test','document','constructor','modLogs','getString','info','@bastion/tesseract','save','RED','catch','moderationLogs'];(function(_0xaacd7,_0x38968a){const _0x380cc5=function(_0xb0be60){while(--_0xb0be60){_0xaacd7['push'](_0xaacd7['shift']());}},_0x8b2152=function(){const _0x4cc7d2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x350ed3,_0x37ace4,_0x2e1c21,_0xbdce1f){_0xbdce1f=_0xbdce1f||{};let _0x4dd8b9=_0x37ace4+'='+_0x2e1c21,_0x3be65e=0x0;for(let _0xea9040=0x0,_0x4089c3=_0x350ed3['length'];_0xea9040<_0x4089c3;_0xea9040++){const _0x2dc5bd=_0x350ed3[_0xea9040];_0x4dd8b9+=';\x20'+_0x2dc5bd;const _0x233e96=_0x350ed3[_0x2dc5bd];_0x350ed3['push'](_0x233e96),_0x4089c3=_0x350ed3['length'],_0x233e96!==!![]&&(_0x4dd8b9+='='+_0x233e96);}_0xbdce1f['cookie']=_0x4dd8b9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x23d505,_0x23d8b8){_0x23d505=_0x23d505||function(_0x155911){return _0x155911;};const _0x10f001=_0x23d505(new RegExp('(?:^|;\x20)'+_0x23d8b8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3923d3=function(_0x105686,_0x55ad59){_0x105686(++_0x55ad59);};return _0x3923d3(_0x380cc5,_0x38968a),_0x10f001?decodeURIComponent(_0x10f001[0x1]):undefined;}},_0x53ce21=function(){const _0x718ae3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x718ae3['test'](_0x4cc7d2['removeCookie']['toString']());};_0x4cc7d2['updateCookie']=_0x53ce21;let _0x3466ba='';const _0x585c7a=_0x4cc7d2['updateCookie']();if(!_0x585c7a)_0x4cc7d2['setCookie'](['*'],'counter',0x1);else _0x585c7a?_0x3466ba=_0x4cc7d2['getCookie'](null,'counter'):_0x4cc7d2['removeCookie']();};_0x8b2152();}(a27_0x3896,0x66));const a27_0x380c=function(_0xaacd7,_0x38968a){_0xaacd7=_0xaacd7-0x0;let _0x380cc5=a27_0x3896[_0xaacd7];return _0x380cc5;};const a27_0x2e1c21=function(){let _0x29da56=!![];return function(_0x279c81,_0x289aae){const _0x5d731d=_0x29da56?function(){if(_0x289aae){const _0x3bfd00=_0x289aae['apply'](_0x279c81,arguments);return _0x289aae=null,_0x3bfd00;}}:function(){};return _0x29da56=![],_0x5d731d;};}(),a27_0x37ace4=a27_0x2e1c21(this,function(){const _0x4e39a6=function(){const _0x1a01af=_0x4e39a6[a27_0x380c('0x9')](a27_0x380c('0x1c'))()[a27_0x380c('0x9')](a27_0x380c('0x3'));return!_0x1a01af[a27_0x380c('0x7')](a27_0x37ace4);};return _0x4e39a6();});a27_0x37ace4();'use strict';const tesseract_1=require(a27_0x380c('0xd'));module[a27_0x380c('0x1')]=class ModerationLogs extends tesseract_1[a27_0x380c('0x18')]{constructor(){super(a27_0x380c('0x11'),{'description':a27_0x380c('0x2'),'triggers':[a27_0x380c('0xa')],'arguments':{'alias':{'disable':['d']},'boolean':['disable']},'scope':a27_0x380c('0x6'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a27_0x380c('0x16')],'syntax':[a27_0x380c('0x11'),a27_0x380c('0x14')]}),this['exec']=async(_0x58a96c,_0x39cd5a)=>{const _0x2d9bdb=_0x58a96c[a27_0x380c('0x6')];_0x39cd5a['disable']?(_0x2d9bdb[a27_0x380c('0x8')][a27_0x380c('0x19')]=undefined,delete _0x2d9bdb['document'][a27_0x380c('0x19')]):_0x2d9bdb[a27_0x380c('0x8')]['moderationLogChannelId']=_0x58a96c[a27_0x380c('0x1b')]['id'],await _0x2d9bdb[a27_0x380c('0x8')][a27_0x380c('0xe')](),await _0x58a96c[a27_0x380c('0x1b')][a27_0x380c('0x12')]({'embed':{'color':_0x2d9bdb[a27_0x380c('0x8')][a27_0x380c('0x19')]?tesseract_1[a27_0x380c('0x4')][a27_0x380c('0x17')][a27_0x380c('0x1a')]:tesseract_1[a27_0x380c('0x4')][a27_0x380c('0x17')][a27_0x380c('0xf')],'description':this[a27_0x380c('0x5')]['locale'][a27_0x380c('0xb')](_0x58a96c[a27_0x380c('0x6')][a27_0x380c('0x8')][a27_0x380c('0x0')],a27_0x380c('0xc'),_0x2d9bdb[a27_0x380c('0x8')][a27_0x380c('0x19')]?'moderationLogsEnable':a27_0x380c('0x1d'),_0x58a96c[a27_0x380c('0x13')][a27_0x380c('0x15')])}})[a27_0x380c('0x10')](()=>{});};}}; \ No newline at end of file +const a27_0x4ac4=['save','Constants','document','moderationLogsDisable','channel','getString','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20logging\x20of\x20the\x20moderation\x20events\x20in\x20the\x20server.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Moderation\x20Log\x20Channel\x20that\x20will\x20log\x20the\x20moderation\x20events\x20in\x20the\x20server.','@bastion/tesseract','constructor','apply','tag','MANAGE_GUILD','modLogs','author','moderationLogs','locale','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','moderationLogsEnable','return\x20/\x22\x20+\x20this\x20+\x20\x22/','moderationLogChannelId','client','info','disable','catch','COLORS','GREEN','guild','RED'];(function(_0x1324e0,_0x4ac4ad){const _0x4bc4af=function(_0x4863ff){while(--_0x4863ff){_0x1324e0['push'](_0x1324e0['shift']());}},_0x5b25c3=function(){const _0x3db479={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x26f32d,_0x2f495a,_0x5586f8,_0x39a04a){_0x39a04a=_0x39a04a||{};let _0x1c26f4=_0x2f495a+'='+_0x5586f8,_0x173104=0x0;for(let _0x3e3fe2=0x0,_0x89cc4b=_0x26f32d['length'];_0x3e3fe2<_0x89cc4b;_0x3e3fe2++){const _0x29f29f=_0x26f32d[_0x3e3fe2];_0x1c26f4+=';\x20'+_0x29f29f;const _0x5e8eac=_0x26f32d[_0x29f29f];_0x26f32d['push'](_0x5e8eac),_0x89cc4b=_0x26f32d['length'],_0x5e8eac!==!![]&&(_0x1c26f4+='='+_0x5e8eac);}_0x39a04a['cookie']=_0x1c26f4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2cd881,_0x4e6e10){_0x2cd881=_0x2cd881||function(_0x2860d8){return _0x2860d8;};const _0x4a5af1=_0x2cd881(new RegExp('(?:^|;\x20)'+_0x4e6e10['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5a2091=function(_0x218cb2,_0x23b1e6){_0x218cb2(++_0x23b1e6);};return _0x5a2091(_0x4bc4af,_0x4ac4ad),_0x4a5af1?decodeURIComponent(_0x4a5af1[0x1]):undefined;}},_0x42e272=function(){const _0xa2187a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xa2187a['test'](_0x3db479['removeCookie']['toString']());};_0x3db479['updateCookie']=_0x42e272;let _0x353c28='';const _0x51faed=_0x3db479['updateCookie']();if(!_0x51faed)_0x3db479['setCookie'](['*'],'counter',0x1);else _0x51faed?_0x353c28=_0x3db479['getCookie'](null,'counter'):_0x3db479['removeCookie']();};_0x5b25c3();}(a27_0x4ac4,0xb4));const a27_0x4bc4=function(_0x1324e0,_0x4ac4ad){_0x1324e0=_0x1324e0-0x0;let _0x4bc4af=a27_0x4ac4[_0x1324e0];return _0x4bc4af;};const a27_0x5586f8=function(){let _0x34d000=!![];return function(_0x5a7eaa,_0x58241d){const _0x521d26=_0x34d000?function(){if(_0x58241d){const _0x265305=_0x58241d[a27_0x4bc4('0x3')](_0x5a7eaa,arguments);return _0x58241d=null,_0x265305;}}:function(){};return _0x34d000=![],_0x521d26;};}(),a27_0x2f495a=a27_0x5586f8(this,function(){const _0x12a577=function(){const _0x4426bc=_0x12a577[a27_0x4bc4('0x2')](a27_0x4bc4('0xd'))()[a27_0x4bc4('0x2')](a27_0x4bc4('0xa'));return!_0x4426bc['test'](a27_0x2f495a);};return _0x12a577();});a27_0x2f495a();'use strict';const tesseract_1=require(a27_0x4bc4('0x1'));module[a27_0x4bc4('0xb')]=class ModerationLogs extends tesseract_1['Command']{constructor(){super('moderationLogs',{'description':a27_0x4bc4('0x0'),'triggers':[a27_0x4bc4('0x6')],'arguments':{'alias':{'disable':['d']},'boolean':[a27_0x4bc4('0x11')]},'scope':a27_0x4bc4('0x15'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a27_0x4bc4('0x5')],'syntax':[a27_0x4bc4('0x8'),'moderationLogs\x20--disable']}),this['exec']=async(_0x105c9f,_0x54d68e)=>{const _0x36f814=_0x105c9f[a27_0x4bc4('0x15')];_0x54d68e[a27_0x4bc4('0x11')]?(_0x36f814['document']['moderationLogChannelId']=undefined,delete _0x36f814[a27_0x4bc4('0x19')][a27_0x4bc4('0xe')]):_0x36f814['document']['moderationLogChannelId']=_0x105c9f['channel']['id'],await _0x36f814['document'][a27_0x4bc4('0x17')](),await _0x105c9f[a27_0x4bc4('0x1b')]['send']({'embed':{'color':_0x36f814[a27_0x4bc4('0x19')][a27_0x4bc4('0xe')]?tesseract_1[a27_0x4bc4('0x18')][a27_0x4bc4('0x13')][a27_0x4bc4('0x14')]:tesseract_1[a27_0x4bc4('0x18')][a27_0x4bc4('0x13')][a27_0x4bc4('0x16')],'description':this[a27_0x4bc4('0xf')][a27_0x4bc4('0x9')][a27_0x4bc4('0x1c')](_0x105c9f[a27_0x4bc4('0x15')]['document']['language'],a27_0x4bc4('0x10'),_0x36f814[a27_0x4bc4('0x19')][a27_0x4bc4('0xe')]?a27_0x4bc4('0xc'):a27_0x4bc4('0x1a'),_0x105c9f[a27_0x4bc4('0x7')][a27_0x4bc4('0x4')])}})[a27_0x4bc4('0x12')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/prefix.js b/commands/configuration/prefix.js index 5491a22b1..7d863d6ca 100644 --- a/commands/configuration/prefix.js +++ b/commands/configuration/prefix.js @@ -1 +1 @@ -const a28_0x464e=['join','IRIS','client','errors','Prefixes','concat','configurations','prefix\x20--\x20PREFIX','channel','info','test','guild','BASTION_ERROR_TYPE','prefixes','prefix','It\x20allows\x20you\x20set\x20custom\x20prefixes\x20for\x20Bastion\x20in\x20your\x20server.','apply','PREFIXES','LIMITED_PREMIUM_MEMBERSHIP','exec','tag','fetchPremiumTier','author','constructor','COLORS','language','LIMITS','GREEN','../../utils/errors','PLATINUM','getString','guildPrefixes','../../utils/constants','save','GOLD','catch','exports','length','membershipLimitPrefix','premiumPrefix','PremiumTier','locale','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','DiscordError','Constants','document'];(function(_0x5d65c9,_0x464eee){const _0x1d17e7=function(_0x155da9){while(--_0x155da9){_0x5d65c9['push'](_0x5d65c9['shift']());}},_0x4bc878=function(){const _0x2ef320={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x27cdda,_0x129cff,_0x1feba4,_0x15fb81){_0x15fb81=_0x15fb81||{};let _0x3d9dc1=_0x129cff+'='+_0x1feba4,_0x269e48=0x0;for(let _0x530835=0x0,_0x3fafc3=_0x27cdda['length'];_0x530835<_0x3fafc3;_0x530835++){const _0x31cec9=_0x27cdda[_0x530835];_0x3d9dc1+=';\x20'+_0x31cec9;const _0x191085=_0x27cdda[_0x31cec9];_0x27cdda['push'](_0x191085),_0x3fafc3=_0x27cdda['length'],_0x191085!==!![]&&(_0x3d9dc1+='='+_0x191085);}_0x15fb81['cookie']=_0x3d9dc1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x564047,_0x1d5b4e){_0x564047=_0x564047||function(_0x30afe7){return _0x30afe7;};const _0xd48d75=_0x564047(new RegExp('(?:^|;\x20)'+_0x1d5b4e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x53734e=function(_0x5ab3b6,_0x78d05f){_0x5ab3b6(++_0x78d05f);};return _0x53734e(_0x1d17e7,_0x464eee),_0xd48d75?decodeURIComponent(_0xd48d75[0x1]):undefined;}},_0x54480c=function(){const _0x2e71fe=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2e71fe['test'](_0x2ef320['removeCookie']['toString']());};_0x2ef320['updateCookie']=_0x54480c;let _0x569923='';const _0x40db6f=_0x2ef320['updateCookie']();if(!_0x40db6f)_0x2ef320['setCookie'](['*'],'counter',0x1);else _0x40db6f?_0x569923=_0x2ef320['getCookie'](null,'counter'):_0x2ef320['removeCookie']();};_0x4bc878();}(a28_0x464e,0x1ec));const a28_0x1d17=function(_0x5d65c9,_0x464eee){_0x5d65c9=_0x5d65c9-0x0;let _0x1d17e7=a28_0x464e[_0x5d65c9];return _0x1d17e7;};const a28_0x1feba4=function(){let _0x1f7356=!![];return function(_0x4f9215,_0xb14b2e){const _0x356831=_0x1f7356?function(){if(_0xb14b2e){const _0x3521cb=_0xb14b2e[a28_0x1d17('0x1e')](_0x4f9215,arguments);return _0xb14b2e=null,_0x3521cb;}}:function(){};return _0x1f7356=![],_0x356831;};}(),a28_0x129cff=a28_0x1feba4(this,function(){const _0x37e5fa=function(){const _0x342118=_0x37e5fa[a28_0x1d17('0x25')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a28_0x1d17('0x25')](a28_0x1d17('0xa'));return!_0x342118[a28_0x1d17('0x18')](a28_0x129cff);};return _0x37e5fa();});a28_0x129cff();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a28_0x1d17('0x0')),errors=require(a28_0x1d17('0x2a')),omnic=require('../../utils/omnic');module[a28_0x1d17('0x4')]=class Prefix extends tesseract_1['Command']{constructor(){super(a28_0x1d17('0x1c'),{'description':a28_0x1d17('0x1d'),'triggers':[],'arguments':{},'scope':a28_0x1d17('0x19'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[a28_0x1d17('0x1c'),a28_0x1d17('0x15')]}),this[a28_0x1d17('0x21')]=async(_0x270d2f,_0x2b9e72)=>{const _0x1701fb=_0x270d2f[a28_0x1d17('0x19')];if(_0x2b9e72['_'][a28_0x1d17('0x5')]){if(_0x2b9e72['_'][a28_0x1d17('0x5')]>constants['LIMITS'][a28_0x1d17('0x1f')]&&constants['isPublicBastion'](this[a28_0x1d17('0x10')]['user'])){const _0x480583=await omnic[a28_0x1d17('0x23')](_0x270d2f[a28_0x1d17('0x19')])[a28_0x1d17('0x3')](()=>{});if(_0x480583){if(_0x480583===omnic[a28_0x1d17('0x8')][a28_0x1d17('0x2')]&&_0x2b9e72['_'][a28_0x1d17('0x5')]>constants[a28_0x1d17('0x28')]['GOLD']['PREFIXES'])throw new errors['DiscordError'](errors[a28_0x1d17('0x1a')][a28_0x1d17('0x20')],this[a28_0x1d17('0x10')]['locale'][a28_0x1d17('0x2c')](_0x270d2f[a28_0x1d17('0x19')][a28_0x1d17('0xd')]['language'],a28_0x1d17('0x11'),a28_0x1d17('0x6'),constants[a28_0x1d17('0x28')]['GOLD']['PREFIXES']));else{if(_0x480583===omnic[a28_0x1d17('0x8')][a28_0x1d17('0x2b')]&&_0x2b9e72['_'][a28_0x1d17('0x5')]>constants[a28_0x1d17('0x28')][a28_0x1d17('0x2b')][a28_0x1d17('0x1f')])throw new errors[(a28_0x1d17('0xb'))](errors[a28_0x1d17('0x1a')][a28_0x1d17('0x20')],this[a28_0x1d17('0x10')][a28_0x1d17('0x9')][a28_0x1d17('0x2c')](_0x270d2f['guild']['document'][a28_0x1d17('0x27')],a28_0x1d17('0x11'),a28_0x1d17('0x6'),constants[a28_0x1d17('0x28')][a28_0x1d17('0x2b')][a28_0x1d17('0x1f')]));}}else throw new errors[(a28_0x1d17('0xb'))](errors[a28_0x1d17('0x1a')]['PREMIUM_MEMBERSHIP_REQUIRED'],this[a28_0x1d17('0x10')]['locale'][a28_0x1d17('0x2c')](_0x270d2f['guild'][a28_0x1d17('0xd')][a28_0x1d17('0x27')],a28_0x1d17('0x11'),a28_0x1d17('0x7'),constants['LIMITS'][a28_0x1d17('0x1f')]));}return _0x1701fb['document'][a28_0x1d17('0x1b')]=_0x2b9e72['_'],await _0x1701fb[a28_0x1d17('0xd')][a28_0x1d17('0x1')](),await _0x270d2f[a28_0x1d17('0x16')]['send']({'embed':{'color':tesseract_1[a28_0x1d17('0xc')][a28_0x1d17('0x26')][a28_0x1d17('0x29')],'description':this['client'][a28_0x1d17('0x9')][a28_0x1d17('0x2c')](_0x270d2f[a28_0x1d17('0x19')][a28_0x1d17('0xd')][a28_0x1d17('0x27')],'info','guildPrefixUpdate',_0x270d2f[a28_0x1d17('0x24')][a28_0x1d17('0x22')],_0x1701fb[a28_0x1d17('0xd')][a28_0x1d17('0x1b')]['join']('\x20\x20'))}})[a28_0x1d17('0x3')](()=>{});}const _0x39e2c1=this[a28_0x1d17('0x10')][a28_0x1d17('0x14')][a28_0x1d17('0x1b')][a28_0x1d17('0x13')](_0x1701fb[a28_0x1d17('0xd')]['prefixes']);await _0x270d2f[a28_0x1d17('0x16')]['send']({'embed':{'color':tesseract_1[a28_0x1d17('0xc')][a28_0x1d17('0x26')][a28_0x1d17('0xf')],'description':this[a28_0x1d17('0x10')][a28_0x1d17('0x9')][a28_0x1d17('0x2c')](_0x270d2f[a28_0x1d17('0x19')][a28_0x1d17('0xd')][a28_0x1d17('0x27')],a28_0x1d17('0x17'),a28_0x1d17('0x2d')),'fields':[{'name':a28_0x1d17('0x12'),'value':_0x39e2c1[a28_0x1d17('0xe')]('\x20\x20')}]}})[a28_0x1d17('0x3')](()=>{});};}}; \ No newline at end of file +const a28_0x36fc=['prefix','PremiumTier','prefixes','Command','catch','errors','language','BASTION_ERROR_TYPE','guild','PREFIXES','prefix\x20--\x20PREFIX','getString','client','membershipLimitPrefix','channel','author','../../utils/constants','send','../../utils/errors','guildPrefixUpdate','Prefixes','save','info','GOLD','../../utils/omnic','MANAGE_GUILD','fetchPremiumTier','COLORS','configurations','apply','LIMITED_PREMIUM_MEMBERSHIP','@bastion/tesseract','GREEN','user','constructor','It\x20allows\x20you\x20set\x20custom\x20prefixes\x20for\x20Bastion\x20in\x20your\x20server.','isPublicBastion','locale','guildPrefixes','join','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','DiscordError','Constants','PLATINUM','tag','document','LIMITS','IRIS','length','premiumPrefix'];(function(_0x4dd83c,_0x36fcbf){const _0x1e5907=function(_0x555b3b){while(--_0x555b3b){_0x4dd83c['push'](_0x4dd83c['shift']());}},_0x541df1=function(){const _0x4871d5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4815c0,_0x414e83,_0x3a82a2,_0x5049b7){_0x5049b7=_0x5049b7||{};let _0x25bfa1=_0x414e83+'='+_0x3a82a2,_0x611ecf=0x0;for(let _0x10b27a=0x0,_0x5e17e8=_0x4815c0['length'];_0x10b27a<_0x5e17e8;_0x10b27a++){const _0x5f0aae=_0x4815c0[_0x10b27a];_0x25bfa1+=';\x20'+_0x5f0aae;const _0x483c3e=_0x4815c0[_0x5f0aae];_0x4815c0['push'](_0x483c3e),_0x5e17e8=_0x4815c0['length'],_0x483c3e!==!![]&&(_0x25bfa1+='='+_0x483c3e);}_0x5049b7['cookie']=_0x25bfa1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x417108,_0x1e0e5b){_0x417108=_0x417108||function(_0x30cb35){return _0x30cb35;};const _0xbe6996=_0x417108(new RegExp('(?:^|;\x20)'+_0x1e0e5b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2545fe=function(_0x1dc143,_0x15b75f){_0x1dc143(++_0x15b75f);};return _0x2545fe(_0x1e5907,_0x36fcbf),_0xbe6996?decodeURIComponent(_0xbe6996[0x1]):undefined;}},_0x34944b=function(){const _0x460f9a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x460f9a['test'](_0x4871d5['removeCookie']['toString']());};_0x4871d5['updateCookie']=_0x34944b;let _0x29a13c='';const _0x1032c8=_0x4871d5['updateCookie']();if(!_0x1032c8)_0x4871d5['setCookie'](['*'],'counter',0x1);else _0x1032c8?_0x29a13c=_0x4871d5['getCookie'](null,'counter'):_0x4871d5['removeCookie']();};_0x541df1();}(a28_0x36fc,0x1ab));const a28_0x1e59=function(_0x4dd83c,_0x36fcbf){_0x4dd83c=_0x4dd83c-0x0;let _0x1e5907=a28_0x36fc[_0x4dd83c];return _0x1e5907;};const a28_0x3a82a2=function(){let _0x386cf3=!![];return function(_0x40615a,_0x3997d8){const _0x4d3fec=_0x386cf3?function(){if(_0x3997d8){const _0xe4861a=_0x3997d8[a28_0x1e59('0xa')](_0x40615a,arguments);return _0x3997d8=null,_0xe4861a;}}:function(){};return _0x386cf3=![],_0x4d3fec;};}(),a28_0x414e83=a28_0x3a82a2(this,function(){const _0x29f894=function(){const _0x40578b=_0x29f894[a28_0x1e59('0xf')](a28_0x1e59('0x15'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x40578b['test'](a28_0x414e83);};return _0x29f894();});a28_0x414e83();'use strict';const tesseract_1=require(a28_0x1e59('0xc')),constants=require(a28_0x1e59('0x30')),errors=require(a28_0x1e59('0x32')),omnic=require(a28_0x1e59('0x5'));module[a28_0x1e59('0x16')]=class Prefix extends tesseract_1[a28_0x1e59('0x23')]{constructor(){super(a28_0x1e59('0x20'),{'description':a28_0x1e59('0x10'),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a28_0x1e59('0x6')],'syntax':[a28_0x1e59('0x20'),a28_0x1e59('0x2a')]}),this['exec']=async(_0x3c1a94,_0xb84d1b)=>{const _0x2445f3=_0x3c1a94[a28_0x1e59('0x28')];if(_0xb84d1b['_']['length']){if(_0xb84d1b['_']['length']>constants[a28_0x1e59('0x1c')]['PREFIXES']&&constants[a28_0x1e59('0x11')](this[a28_0x1e59('0x2c')][a28_0x1e59('0xe')])){const _0x49cef8=await omnic[a28_0x1e59('0x7')](_0x3c1a94[a28_0x1e59('0x28')])[a28_0x1e59('0x24')](()=>{});if(_0x49cef8){if(_0x49cef8===omnic[a28_0x1e59('0x21')][a28_0x1e59('0x4')]&&_0xb84d1b['_'][a28_0x1e59('0x1e')]>constants[a28_0x1e59('0x1c')][a28_0x1e59('0x4')][a28_0x1e59('0x29')])throw new errors[(a28_0x1e59('0x17'))](errors['BASTION_ERROR_TYPE'][a28_0x1e59('0xb')],this['client'][a28_0x1e59('0x12')][a28_0x1e59('0x2b')](_0x3c1a94[a28_0x1e59('0x28')]['document']['language'],a28_0x1e59('0x25'),'membershipLimitPrefix',constants[a28_0x1e59('0x1c')]['GOLD'][a28_0x1e59('0x29')]));else{if(_0x49cef8===omnic[a28_0x1e59('0x21')][a28_0x1e59('0x19')]&&_0xb84d1b['_']['length']>constants[a28_0x1e59('0x1c')]['PLATINUM'][a28_0x1e59('0x29')])throw new errors['DiscordError'](errors[a28_0x1e59('0x27')]['LIMITED_PREMIUM_MEMBERSHIP'],this['client'][a28_0x1e59('0x12')]['getString'](_0x3c1a94['guild']['document']['language'],a28_0x1e59('0x25'),a28_0x1e59('0x2d'),constants[a28_0x1e59('0x1c')][a28_0x1e59('0x19')][a28_0x1e59('0x29')]));}}else throw new errors['DiscordError'](errors[a28_0x1e59('0x27')]['PREMIUM_MEMBERSHIP_REQUIRED'],this[a28_0x1e59('0x2c')][a28_0x1e59('0x12')]['getString'](_0x3c1a94['guild'][a28_0x1e59('0x1b')][a28_0x1e59('0x26')],'errors',a28_0x1e59('0x1f'),constants['LIMITS'][a28_0x1e59('0x29')]));}return _0x2445f3[a28_0x1e59('0x1b')]['prefixes']=_0xb84d1b['_'],await _0x2445f3[a28_0x1e59('0x1b')][a28_0x1e59('0x2')](),await _0x3c1a94[a28_0x1e59('0x2e')][a28_0x1e59('0x31')]({'embed':{'color':tesseract_1[a28_0x1e59('0x18')][a28_0x1e59('0x8')][a28_0x1e59('0xd')],'description':this['client'][a28_0x1e59('0x12')][a28_0x1e59('0x2b')](_0x3c1a94[a28_0x1e59('0x28')]['document']['language'],'info',a28_0x1e59('0x0'),_0x3c1a94[a28_0x1e59('0x2f')][a28_0x1e59('0x1a')],_0x2445f3[a28_0x1e59('0x1b')]['prefixes'][a28_0x1e59('0x14')]('\x20\x20'))}})[a28_0x1e59('0x24')](()=>{});}const _0x103213=this[a28_0x1e59('0x2c')][a28_0x1e59('0x9')]['prefixes']['concat'](_0x2445f3[a28_0x1e59('0x1b')][a28_0x1e59('0x22')]);await _0x3c1a94[a28_0x1e59('0x2e')][a28_0x1e59('0x31')]({'embed':{'color':tesseract_1['Constants'][a28_0x1e59('0x8')][a28_0x1e59('0x1d')],'description':this[a28_0x1e59('0x2c')][a28_0x1e59('0x12')][a28_0x1e59('0x2b')](_0x3c1a94[a28_0x1e59('0x28')][a28_0x1e59('0x1b')][a28_0x1e59('0x26')],a28_0x1e59('0x3'),a28_0x1e59('0x13')),'fields':[{'name':a28_0x1e59('0x1'),'value':_0x103213['join']('\x20\x20')}]}})[a28_0x1e59('0x24')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/reactionAnnouncements.js b/commands/configuration/reactionAnnouncements.js index 4abbcfa57..e4e42f8a5 100644 --- a/commands/configuration/reactionAnnouncements.js +++ b/commands/configuration/reactionAnnouncements.js @@ -1 +1 @@ -const a29_0xcb40=['document','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Reaction\x20Announcements\x20in\x20the\x20server.\x20If\x20enabled,\x20and\x20an\x20Announcement\x20Channel\x20is\x20set,\x20when\x20someone\x20with\x20proper\x20permission\x20adds\x20a\x20Megaphone\x20or\x20Loudspeaker\x20reaction\x20to\x20a\x20message,\x20the\x20message\x20gets\x20announced\x20in\x20the\x20Announcement\x20Channel.','language','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','client','Command','test','exports','tag','@bastion/tesseract','GREEN','channel','save','info','guild','apply','catch','getString','locale','COLORS','announcementsChannelId','author','reactionAnnouncementsDisable','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Constants','reactionAnnouncements'];(function(_0x22566f,_0xcb40a6){const _0x42d844=function(_0x542993){while(--_0x542993){_0x22566f['push'](_0x22566f['shift']());}},_0x54fccf=function(){const _0x36d566={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x22a488,_0x2ff86f,_0x57c870,_0x1d4465){_0x1d4465=_0x1d4465||{};let _0x4052b6=_0x2ff86f+'='+_0x57c870,_0xfba090=0x0;for(let _0x1b550a=0x0,_0x49be20=_0x22a488['length'];_0x1b550a<_0x49be20;_0x1b550a++){const _0x231560=_0x22a488[_0x1b550a];_0x4052b6+=';\x20'+_0x231560;const _0x25a807=_0x22a488[_0x231560];_0x22a488['push'](_0x25a807),_0x49be20=_0x22a488['length'],_0x25a807!==!![]&&(_0x4052b6+='='+_0x25a807);}_0x1d4465['cookie']=_0x4052b6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x36306d,_0x3024eb){_0x36306d=_0x36306d||function(_0x2253f2){return _0x2253f2;};const _0xbfa385=_0x36306d(new RegExp('(?:^|;\x20)'+_0x3024eb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f6c6f=function(_0x2c4adc,_0x54d1d8){_0x2c4adc(++_0x54d1d8);};return _0x1f6c6f(_0x42d844,_0xcb40a6),_0xbfa385?decodeURIComponent(_0xbfa385[0x1]):undefined;}},_0x2b1493=function(){const _0x51681e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x51681e['test'](_0x36d566['removeCookie']['toString']());};_0x36d566['updateCookie']=_0x2b1493;let _0x4bae8c='';const _0x412578=_0x36d566['updateCookie']();if(!_0x412578)_0x36d566['setCookie'](['*'],'counter',0x1);else _0x412578?_0x4bae8c=_0x36d566['getCookie'](null,'counter'):_0x36d566['removeCookie']();};_0x54fccf();}(a29_0xcb40,0xf4));const a29_0x42d8=function(_0x22566f,_0xcb40a6){_0x22566f=_0x22566f-0x0;let _0x42d844=a29_0xcb40[_0x22566f];return _0x42d844;};const a29_0x57c870=function(){let _0x347295=!![];return function(_0x15e9b8,_0x35ce8f){const _0x4e48e3=_0x347295?function(){if(_0x35ce8f){const _0x3b62ae=_0x35ce8f[a29_0x42d8('0xf')](_0x15e9b8,arguments);return _0x35ce8f=null,_0x3b62ae;}}:function(){};return _0x347295=![],_0x4e48e3;};}(),a29_0x2ff86f=a29_0x57c870(this,function(){const _0x23dbb5=function(){const _0xa7e813=_0x23dbb5[a29_0x42d8('0x3')](a29_0x42d8('0x2'))()['constructor'](a29_0x42d8('0x17'));return!_0xa7e813[a29_0x42d8('0x6')](a29_0x2ff86f);};return _0x23dbb5();});a29_0x2ff86f();'use strict';const tesseract_1=require(a29_0x42d8('0x9'));module[a29_0x42d8('0x7')]=class ReactionAnnouncementsCommand extends tesseract_1[a29_0x42d8('0x5')]{constructor(){super(a29_0x42d8('0x19'),{'description':a29_0x42d8('0x0'),'triggers':[],'arguments':{},'scope':a29_0x42d8('0xe'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[]}),this['exec']=async _0x332b69=>{const _0x57578f=_0x332b69['guild'];_0x57578f[a29_0x42d8('0x1a')][a29_0x42d8('0x19')]?(_0x57578f['document']['reactionAnnouncements']=undefined,delete _0x57578f['document']['reactionAnnouncements']):_0x57578f[a29_0x42d8('0x1a')][a29_0x42d8('0x19')]=!![],await _0x57578f[a29_0x42d8('0x1a')][a29_0x42d8('0xc')](),await _0x332b69[a29_0x42d8('0xb')]['send']({'embed':{'color':_0x57578f['document']['reactionAnnouncements']?tesseract_1[a29_0x42d8('0x18')][a29_0x42d8('0x13')][a29_0x42d8('0xa')]:tesseract_1[a29_0x42d8('0x18')]['COLORS']['RED'],'description':this[a29_0x42d8('0x4')][a29_0x42d8('0x12')][a29_0x42d8('0x11')](_0x332b69[a29_0x42d8('0xe')]['document']['language'],a29_0x42d8('0xd'),_0x57578f[a29_0x42d8('0x1a')][a29_0x42d8('0x19')]?'reactionAnnouncementsEnable':a29_0x42d8('0x16'),_0x332b69[a29_0x42d8('0x15')][a29_0x42d8('0x8')])+(_0x57578f['document'][a29_0x42d8('0x14')]?'':this[a29_0x42d8('0x4')]['locale'][a29_0x42d8('0x11')](_0x332b69[a29_0x42d8('0xe')][a29_0x42d8('0x1a')][a29_0x42d8('0x1')],'info','reactionAnnouncementsEnableWithoutAnnouncementChannel',_0x332b69['author'][a29_0x42d8('0x8')]))}})[a29_0x42d8('0x10')](()=>{});};}}; \ No newline at end of file +const a29_0x1469=['reactionAnnouncementsEnableWithoutAnnouncementChannel','tag','catch','COLORS','language','reactionAnnouncements','exports','exec','test','reactionAnnouncementsEnable','guild','author','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','client','info','announcementsChannelId','save','send','document','apply','MANAGE_GUILD','locale','GREEN','Constants','getString','channel','Command','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Reaction\x20Announcements\x20in\x20the\x20server.\x20If\x20enabled,\x20and\x20an\x20Announcement\x20Channel\x20is\x20set,\x20when\x20someone\x20with\x20proper\x20permission\x20adds\x20a\x20Megaphone\x20or\x20Loudspeaker\x20reaction\x20to\x20a\x20message,\x20the\x20message\x20gets\x20announced\x20in\x20the\x20Announcement\x20Channel.','@bastion/tesseract','constructor'];(function(_0x542408,_0x1469df){const _0xc2c8ac=function(_0x2c98f4){while(--_0x2c98f4){_0x542408['push'](_0x542408['shift']());}},_0x507341=function(){const _0x227781={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x267b4e,_0x1c20d6,_0x4f08b4,_0x2790ff){_0x2790ff=_0x2790ff||{};let _0x3a80fc=_0x1c20d6+'='+_0x4f08b4,_0x2eb047=0x0;for(let _0x52842c=0x0,_0x5d962d=_0x267b4e['length'];_0x52842c<_0x5d962d;_0x52842c++){const _0xafd925=_0x267b4e[_0x52842c];_0x3a80fc+=';\x20'+_0xafd925;const _0x2dd667=_0x267b4e[_0xafd925];_0x267b4e['push'](_0x2dd667),_0x5d962d=_0x267b4e['length'],_0x2dd667!==!![]&&(_0x3a80fc+='='+_0x2dd667);}_0x2790ff['cookie']=_0x3a80fc;},'removeCookie':function(){return'dev';},'getCookie':function(_0x37645b,_0x1bcc2d){_0x37645b=_0x37645b||function(_0x1d218e){return _0x1d218e;};const _0x29ff04=_0x37645b(new RegExp('(?:^|;\x20)'+_0x1bcc2d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x116ad1=function(_0x3e49ae,_0x6838ed){_0x3e49ae(++_0x6838ed);};return _0x116ad1(_0xc2c8ac,_0x1469df),_0x29ff04?decodeURIComponent(_0x29ff04[0x1]):undefined;}},_0x5338b9=function(){const _0x40ee9a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x40ee9a['test'](_0x227781['removeCookie']['toString']());};_0x227781['updateCookie']=_0x5338b9;let _0x32579b='';const _0x21c229=_0x227781['updateCookie']();if(!_0x21c229)_0x227781['setCookie'](['*'],'counter',0x1);else _0x21c229?_0x32579b=_0x227781['getCookie'](null,'counter'):_0x227781['removeCookie']();};_0x507341();}(a29_0x1469,0x1c5));const a29_0xc2c8=function(_0x542408,_0x1469df){_0x542408=_0x542408-0x0;let _0xc2c8ac=a29_0x1469[_0x542408];return _0xc2c8ac;};const a29_0x4f08b4=function(){let _0x1108c9=!![];return function(_0x358ca1,_0x599b70){const _0x4c0743=_0x1108c9?function(){if(_0x599b70){const _0x588349=_0x599b70[a29_0xc2c8('0x10')](_0x358ca1,arguments);return _0x599b70=null,_0x588349;}}:function(){};return _0x1108c9=![],_0x4c0743;};}(),a29_0x1c20d6=a29_0x4f08b4(this,function(){const _0x2c9987=function(){const _0x993b02=_0x2c9987[a29_0xc2c8('0x1a')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a29_0xc2c8('0x9'));return!_0x993b02[a29_0xc2c8('0x5')](a29_0x1c20d6);};return _0x2c9987();});a29_0x1c20d6();'use strict';const tesseract_1=require(a29_0xc2c8('0x19'));module[a29_0xc2c8('0x3')]=class ReactionAnnouncementsCommand extends tesseract_1[a29_0xc2c8('0x17')]{constructor(){super(a29_0xc2c8('0x2'),{'description':a29_0xc2c8('0x18'),'triggers':[],'arguments':{},'scope':a29_0xc2c8('0x7'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a29_0xc2c8('0x11')],'syntax':[]}),this[a29_0xc2c8('0x4')]=async _0x1d760b=>{const _0x6c65e8=_0x1d760b[a29_0xc2c8('0x7')];_0x6c65e8[a29_0xc2c8('0xf')][a29_0xc2c8('0x2')]?(_0x6c65e8['document'][a29_0xc2c8('0x2')]=undefined,delete _0x6c65e8['document'][a29_0xc2c8('0x2')]):_0x6c65e8[a29_0xc2c8('0xf')]['reactionAnnouncements']=!![],await _0x6c65e8['document'][a29_0xc2c8('0xd')](),await _0x1d760b[a29_0xc2c8('0x16')][a29_0xc2c8('0xe')]({'embed':{'color':_0x6c65e8['document'][a29_0xc2c8('0x2')]?tesseract_1[a29_0xc2c8('0x14')][a29_0xc2c8('0x0')][a29_0xc2c8('0x13')]:tesseract_1['Constants']['COLORS']['RED'],'description':this[a29_0xc2c8('0xa')][a29_0xc2c8('0x12')][a29_0xc2c8('0x15')](_0x1d760b[a29_0xc2c8('0x7')][a29_0xc2c8('0xf')][a29_0xc2c8('0x1')],a29_0xc2c8('0xb'),_0x6c65e8['document'][a29_0xc2c8('0x2')]?a29_0xc2c8('0x6'):'reactionAnnouncementsDisable',_0x1d760b[a29_0xc2c8('0x8')]['tag'])+(_0x6c65e8[a29_0xc2c8('0xf')][a29_0xc2c8('0xc')]?'':this[a29_0xc2c8('0xa')]['locale'][a29_0xc2c8('0x15')](_0x1d760b['guild'][a29_0xc2c8('0xf')]['language'],a29_0xc2c8('0xb'),a29_0xc2c8('0x1b'),_0x1d760b[a29_0xc2c8('0x8')][a29_0xc2c8('0x1c')]))}})[a29_0xc2c8('0x1d')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/reactionPinning.js b/commands/configuration/reactionPinning.js index 7b0de4350..e7c900ae0 100644 --- a/commands/configuration/reactionPinning.js +++ b/commands/configuration/reactionPinning.js @@ -1 +1 @@ -const a30_0x14ec=['RED','reactionPinningDisable','getString','reactionPinningEnable','exports','MANAGE_GUILD','save','guild','constructor','Constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','author','info','exec','reactionPinning','catch','GREEN','language','apply','tag','COLORS','document','@bastion/tesseract'];(function(_0x3558fe,_0x14ec34){const _0x1cbd65=function(_0x47c239){while(--_0x47c239){_0x3558fe['push'](_0x3558fe['shift']());}},_0x38231e=function(){const _0x82404d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4a5606,_0x1b773c,_0x291850,_0x4e7cf0){_0x4e7cf0=_0x4e7cf0||{};let _0xd43b20=_0x1b773c+'='+_0x291850,_0x5b0fec=0x0;for(let _0x45e800=0x0,_0x3eaf38=_0x4a5606['length'];_0x45e800<_0x3eaf38;_0x45e800++){const _0x54c8f4=_0x4a5606[_0x45e800];_0xd43b20+=';\x20'+_0x54c8f4;const _0x4b2ba6=_0x4a5606[_0x54c8f4];_0x4a5606['push'](_0x4b2ba6),_0x3eaf38=_0x4a5606['length'],_0x4b2ba6!==!![]&&(_0xd43b20+='='+_0x4b2ba6);}_0x4e7cf0['cookie']=_0xd43b20;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3a9c41,_0x2d9631){_0x3a9c41=_0x3a9c41||function(_0x573c0a){return _0x573c0a;};const _0x5333d9=_0x3a9c41(new RegExp('(?:^|;\x20)'+_0x2d9631['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2549e1=function(_0x1bec59,_0x2ae2ff){_0x1bec59(++_0x2ae2ff);};return _0x2549e1(_0x1cbd65,_0x14ec34),_0x5333d9?decodeURIComponent(_0x5333d9[0x1]):undefined;}},_0x230b3f=function(){const _0x2001b7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2001b7['test'](_0x82404d['removeCookie']['toString']());};_0x82404d['updateCookie']=_0x230b3f;let _0x5b5378='';const _0x5f2680=_0x82404d['updateCookie']();if(!_0x5f2680)_0x82404d['setCookie'](['*'],'counter',0x1);else _0x5f2680?_0x5b5378=_0x82404d['getCookie'](null,'counter'):_0x82404d['removeCookie']();};_0x38231e();}(a30_0x14ec,0x144));const a30_0x1cbd=function(_0x3558fe,_0x14ec34){_0x3558fe=_0x3558fe-0x0;let _0x1cbd65=a30_0x14ec[_0x3558fe];return _0x1cbd65;};const a30_0x291850=function(){let _0xd2ffd4=!![];return function(_0x21bc19,_0x84b0){const _0x1c271b=_0xd2ffd4?function(){if(_0x84b0){const _0x37babb=_0x84b0[a30_0x1cbd('0x10')](_0x21bc19,arguments);return _0x84b0=null,_0x37babb;}}:function(){};return _0xd2ffd4=![],_0x1c271b;};}(),a30_0x1b773c=a30_0x291850(this,function(){const _0x8f93a9=function(){const _0x57fa6f=_0x8f93a9['constructor'](a30_0x1cbd('0x8'))()[a30_0x1cbd('0x6')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x57fa6f['test'](a30_0x1b773c);};return _0x8f93a9();});a30_0x1b773c();'use strict';const tesseract_1=require(a30_0x1cbd('0x14'));module[a30_0x1cbd('0x2')]=class ReactionPinningCommand extends tesseract_1['Command']{constructor(){super(a30_0x1cbd('0xc'),{'description':'It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Reaction\x20Pinning\x20in\x20the\x20server.\x20If\x20enabled,\x20when\x20someone\x20with\x20proper\x20permission\x20adds\x20a\x20Pin\x20reaction\x20to\x20a\x20message,\x20the\x20message\x20gets\x20pinned\x20in\x20the\x20channel.','triggers':[],'arguments':{},'scope':a30_0x1cbd('0x5'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a30_0x1cbd('0x3')],'syntax':[]}),this[a30_0x1cbd('0xb')]=async _0x17badb=>{const _0x38e075=_0x17badb['guild'];_0x38e075[a30_0x1cbd('0x13')][a30_0x1cbd('0xc')]?(_0x38e075[a30_0x1cbd('0x13')][a30_0x1cbd('0xc')]=undefined,delete _0x38e075[a30_0x1cbd('0x13')][a30_0x1cbd('0xc')]):_0x38e075[a30_0x1cbd('0x13')]['reactionPinning']=!![],await _0x38e075['document'][a30_0x1cbd('0x4')](),await _0x17badb['channel']['send']({'embed':{'color':_0x38e075['document'][a30_0x1cbd('0xc')]?tesseract_1[a30_0x1cbd('0x7')][a30_0x1cbd('0x12')][a30_0x1cbd('0xe')]:tesseract_1[a30_0x1cbd('0x7')][a30_0x1cbd('0x12')][a30_0x1cbd('0x15')],'description':this['client']['locale'][a30_0x1cbd('0x0')](_0x17badb[a30_0x1cbd('0x5')][a30_0x1cbd('0x13')][a30_0x1cbd('0xf')],a30_0x1cbd('0xa'),_0x38e075[a30_0x1cbd('0x13')][a30_0x1cbd('0xc')]?a30_0x1cbd('0x1'):a30_0x1cbd('0x16'),_0x17badb[a30_0x1cbd('0x9')][a30_0x1cbd('0x11')])}})[a30_0x1cbd('0xd')](()=>{});};}}; \ No newline at end of file +const a30_0x43fa=['getString','catch','client','exec','Constants','document','COLORS','author','apply','save','tag','@bastion/tesseract','channel','Command','language','reactionPinning','locale','test','guild','send','MANAGE_GUILD','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','RED'];(function(_0x22c80e,_0x43fa7a){const _0x333aca=function(_0x1f5d7b){while(--_0x1f5d7b){_0x22c80e['push'](_0x22c80e['shift']());}},_0x56b931=function(){const _0x1211e4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2e5399,_0x4aee7a,_0x1e89d7,_0x54f67e){_0x54f67e=_0x54f67e||{};let _0xfdf60d=_0x4aee7a+'='+_0x1e89d7,_0x59cfbe=0x0;for(let _0x6b2528=0x0,_0x5b1260=_0x2e5399['length'];_0x6b2528<_0x5b1260;_0x6b2528++){const _0x1cb848=_0x2e5399[_0x6b2528];_0xfdf60d+=';\x20'+_0x1cb848;const _0x1ffe24=_0x2e5399[_0x1cb848];_0x2e5399['push'](_0x1ffe24),_0x5b1260=_0x2e5399['length'],_0x1ffe24!==!![]&&(_0xfdf60d+='='+_0x1ffe24);}_0x54f67e['cookie']=_0xfdf60d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2c4298,_0x3b4961){_0x2c4298=_0x2c4298||function(_0x59db57){return _0x59db57;};const _0x5933ba=_0x2c4298(new RegExp('(?:^|;\x20)'+_0x3b4961['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x38e9ea=function(_0x1d6087,_0x107e4b){_0x1d6087(++_0x107e4b);};return _0x38e9ea(_0x333aca,_0x43fa7a),_0x5933ba?decodeURIComponent(_0x5933ba[0x1]):undefined;}},_0x2ad447=function(){const _0x151d22=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x151d22['test'](_0x1211e4['removeCookie']['toString']());};_0x1211e4['updateCookie']=_0x2ad447;let _0x42ed45='';const _0x217321=_0x1211e4['updateCookie']();if(!_0x217321)_0x1211e4['setCookie'](['*'],'counter',0x1);else _0x217321?_0x42ed45=_0x1211e4['getCookie'](null,'counter'):_0x1211e4['removeCookie']();};_0x56b931();}(a30_0x43fa,0xf6));const a30_0x333a=function(_0x22c80e,_0x43fa7a){_0x22c80e=_0x22c80e-0x0;let _0x333aca=a30_0x43fa[_0x22c80e];return _0x333aca;};const a30_0x1e89d7=function(){let _0x4d91d8=!![];return function(_0x47fdcc,_0x2b4bac){const _0xe0e4fb=_0x4d91d8?function(){if(_0x2b4bac){const _0x3289e4=_0x2b4bac[a30_0x333a('0xc')](_0x47fdcc,arguments);return _0x2b4bac=null,_0x3289e4;}}:function(){};return _0x4d91d8=![],_0xe0e4fb;};}(),a30_0x4aee7a=a30_0x1e89d7(this,function(){const _0x14f1a4=function(){const _0x45a0cc=_0x14f1a4['constructor'](a30_0x333a('0x1'))()['constructor'](a30_0x333a('0x2'));return!_0x45a0cc[a30_0x333a('0x15')](a30_0x4aee7a);};return _0x14f1a4();});a30_0x4aee7a();'use strict';const tesseract_1=require(a30_0x333a('0xf'));module[a30_0x333a('0x0')]=class ReactionPinningCommand extends tesseract_1[a30_0x333a('0x11')]{constructor(){super(a30_0x333a('0x13'),{'description':'It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Reaction\x20Pinning\x20in\x20the\x20server.\x20If\x20enabled,\x20when\x20someone\x20with\x20proper\x20permission\x20adds\x20a\x20Pin\x20reaction\x20to\x20a\x20message,\x20the\x20message\x20gets\x20pinned\x20in\x20the\x20channel.','triggers':[],'arguments':{},'scope':a30_0x333a('0x16'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a30_0x333a('0x18')],'syntax':[]}),this[a30_0x333a('0x7')]=async _0x4d224e=>{const _0x109b3e=_0x4d224e['guild'];_0x109b3e['document']['reactionPinning']?(_0x109b3e[a30_0x333a('0x9')][a30_0x333a('0x13')]=undefined,delete _0x109b3e[a30_0x333a('0x9')][a30_0x333a('0x13')]):_0x109b3e[a30_0x333a('0x9')][a30_0x333a('0x13')]=!![],await _0x109b3e['document'][a30_0x333a('0xd')](),await _0x4d224e[a30_0x333a('0x10')][a30_0x333a('0x17')]({'embed':{'color':_0x109b3e[a30_0x333a('0x9')][a30_0x333a('0x13')]?tesseract_1[a30_0x333a('0x8')][a30_0x333a('0xa')]['GREEN']:tesseract_1[a30_0x333a('0x8')][a30_0x333a('0xa')][a30_0x333a('0x3')],'description':this[a30_0x333a('0x6')][a30_0x333a('0x14')][a30_0x333a('0x4')](_0x4d224e[a30_0x333a('0x16')]['document'][a30_0x333a('0x12')],'info',_0x109b3e[a30_0x333a('0x9')][a30_0x333a('0x13')]?'reactionPinningEnable':'reactionPinningDisable',_0x4d224e[a30_0x333a('0xb')][a30_0x333a('0xe')])}})[a30_0x333a('0x5')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/reports.js b/commands/configuration/reports.js index 5a1865ade..ead7f2a5e 100644 --- a/commands/configuration/reports.js +++ b/commands/configuration/reports.js @@ -1 +1 @@ -const a31_0x33ca=['reportsEnable','test','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20user\x20reports\x20in\x20the\x20server.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Report\x20Channel\x20that\x20will\x20receive\x20the\x20user\x20reports,\x20reported\x20by\x20the\x20server\x20members\x20using\x20the\x20`report`\x20command.','language','exports','GREEN','COLORS','info','reportsChannelId','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Command','author','reports','tag','apply','exec','constructor','locale','catch','reportsDisable','guild','client','save','channel','RED','Constants','document'];(function(_0x38d0d5,_0x33cacd){const _0x15c220=function(_0x4b16fd){while(--_0x4b16fd){_0x38d0d5['push'](_0x38d0d5['shift']());}},_0x84d06=function(){const _0x391e82={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x22d773,_0x2be0b0,_0x180c5c,_0x1550fb){_0x1550fb=_0x1550fb||{};let _0x9895ed=_0x2be0b0+'='+_0x180c5c,_0x4e4052=0x0;for(let _0x3a4fd3=0x0,_0x8f38cd=_0x22d773['length'];_0x3a4fd3<_0x8f38cd;_0x3a4fd3++){const _0x5cca92=_0x22d773[_0x3a4fd3];_0x9895ed+=';\x20'+_0x5cca92;const _0x96dde1=_0x22d773[_0x5cca92];_0x22d773['push'](_0x96dde1),_0x8f38cd=_0x22d773['length'],_0x96dde1!==!![]&&(_0x9895ed+='='+_0x96dde1);}_0x1550fb['cookie']=_0x9895ed;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3f932c,_0x23f217){_0x3f932c=_0x3f932c||function(_0x39094e){return _0x39094e;};const _0x320350=_0x3f932c(new RegExp('(?:^|;\x20)'+_0x23f217['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x40a05f=function(_0x58c4b6,_0x363516){_0x58c4b6(++_0x363516);};return _0x40a05f(_0x15c220,_0x33cacd),_0x320350?decodeURIComponent(_0x320350[0x1]):undefined;}},_0x135f51=function(){const _0x48a737=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x48a737['test'](_0x391e82['removeCookie']['toString']());};_0x391e82['updateCookie']=_0x135f51;let _0x185996='';const _0x2be233=_0x391e82['updateCookie']();if(!_0x2be233)_0x391e82['setCookie'](['*'],'counter',0x1);else _0x2be233?_0x185996=_0x391e82['getCookie'](null,'counter'):_0x391e82['removeCookie']();};_0x84d06();}(a31_0x33ca,0x152));const a31_0x15c2=function(_0x38d0d5,_0x33cacd){_0x38d0d5=_0x38d0d5-0x0;let _0x15c220=a31_0x33ca[_0x38d0d5];return _0x15c220;};const a31_0x180c5c=function(){let _0x48729c=!![];return function(_0xa4527c,_0x35e1a3){const _0x18b79=_0x48729c?function(){if(_0x35e1a3){const _0x2bb797=_0x35e1a3[a31_0x15c2('0xd')](_0xa4527c,arguments);return _0x35e1a3=null,_0x2bb797;}}:function(){};return _0x48729c=![],_0x18b79;};}(),a31_0x2be0b0=a31_0x180c5c(this,function(){const _0x1840ba=function(){const _0x1b00c8=_0x1840ba['constructor'](a31_0x15c2('0x8'))()[a31_0x15c2('0xf')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1b00c8[a31_0x15c2('0x1b')](a31_0x2be0b0);};return _0x1840ba();});a31_0x2be0b0();'use strict';const tesseract_1=require(a31_0x15c2('0x7'));module[a31_0x15c2('0x2')]=class Reports extends tesseract_1[a31_0x15c2('0x9')]{constructor(){super(a31_0x15c2('0xb'),{'description':a31_0x15c2('0x0'),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':['disable']},'scope':a31_0x15c2('0x13'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':['reports','reports\x20--disable']}),this[a31_0x15c2('0xe')]=async(_0x2b3527,_0x44358a)=>{const _0x162000=_0x2b3527['guild'];_0x44358a['disable']?(_0x162000[a31_0x15c2('0x19')][a31_0x15c2('0x6')]=undefined,delete _0x162000[a31_0x15c2('0x19')][a31_0x15c2('0x6')]):_0x162000[a31_0x15c2('0x19')][a31_0x15c2('0x6')]=_0x2b3527[a31_0x15c2('0x16')]['id'],await _0x162000[a31_0x15c2('0x19')][a31_0x15c2('0x15')](),await _0x2b3527[a31_0x15c2('0x16')]['send']({'embed':{'color':_0x162000[a31_0x15c2('0x19')][a31_0x15c2('0x6')]?tesseract_1[a31_0x15c2('0x18')][a31_0x15c2('0x4')][a31_0x15c2('0x3')]:tesseract_1[a31_0x15c2('0x18')][a31_0x15c2('0x4')][a31_0x15c2('0x17')],'description':this[a31_0x15c2('0x14')][a31_0x15c2('0x10')]['getString'](_0x2b3527[a31_0x15c2('0x13')][a31_0x15c2('0x19')][a31_0x15c2('0x1')],a31_0x15c2('0x5'),_0x162000['document'][a31_0x15c2('0x6')]?a31_0x15c2('0x1a'):a31_0x15c2('0x12'),_0x2b3527[a31_0x15c2('0xa')][a31_0x15c2('0xc')])}})[a31_0x15c2('0x11')](()=>{});};}}; \ No newline at end of file +const a31_0x34d9=['MANAGE_GUILD','reportsDisable','info','COLORS','reports','apply','language','author','catch','GREEN','send','test','guild','reports\x20--disable','getString','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20user\x20reports\x20in\x20the\x20server.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Report\x20Channel\x20that\x20will\x20receive\x20the\x20user\x20reports,\x20reported\x20by\x20the\x20server\x20members\x20using\x20the\x20`report`\x20command.','RED','constructor','disable','@bastion/tesseract','tag','client','document','reportsChannelId'];(function(_0x28e7ce,_0x34d911){const _0x54be1d=function(_0xc734cf){while(--_0xc734cf){_0x28e7ce['push'](_0x28e7ce['shift']());}},_0x525e2a=function(){const _0x49d424={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x46870e,_0x5640b6,_0x215424,_0x1d39e3){_0x1d39e3=_0x1d39e3||{};let _0x3af97c=_0x5640b6+'='+_0x215424,_0x329384=0x0;for(let _0x4b6c61=0x0,_0x209cf0=_0x46870e['length'];_0x4b6c61<_0x209cf0;_0x4b6c61++){const _0x4a4b9f=_0x46870e[_0x4b6c61];_0x3af97c+=';\x20'+_0x4a4b9f;const _0x44e437=_0x46870e[_0x4a4b9f];_0x46870e['push'](_0x44e437),_0x209cf0=_0x46870e['length'],_0x44e437!==!![]&&(_0x3af97c+='='+_0x44e437);}_0x1d39e3['cookie']=_0x3af97c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x114804,_0x53406d){_0x114804=_0x114804||function(_0x3e7b57){return _0x3e7b57;};const _0x4f2375=_0x114804(new RegExp('(?:^|;\x20)'+_0x53406d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f47fd=function(_0x8dbbf0,_0x3b77b4){_0x8dbbf0(++_0x3b77b4);};return _0x1f47fd(_0x54be1d,_0x34d911),_0x4f2375?decodeURIComponent(_0x4f2375[0x1]):undefined;}},_0x4b8bdc=function(){const _0x2e7f8e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2e7f8e['test'](_0x49d424['removeCookie']['toString']());};_0x49d424['updateCookie']=_0x4b8bdc;let _0x33032b='';const _0x255367=_0x49d424['updateCookie']();if(!_0x255367)_0x49d424['setCookie'](['*'],'counter',0x1);else _0x255367?_0x33032b=_0x49d424['getCookie'](null,'counter'):_0x49d424['removeCookie']();};_0x525e2a();}(a31_0x34d9,0x10f));const a31_0x54be=function(_0x28e7ce,_0x34d911){_0x28e7ce=_0x28e7ce-0x0;let _0x54be1d=a31_0x34d9[_0x28e7ce];return _0x54be1d;};const a31_0x215424=function(){let _0x2d91a0=!![];return function(_0xdaed88,_0x35429e){const _0x1ecd1a=_0x2d91a0?function(){if(_0x35429e){const _0x800ac0=_0x35429e[a31_0x54be('0x16')](_0xdaed88,arguments);return _0x35429e=null,_0x800ac0;}}:function(){};return _0x2d91a0=![],_0x1ecd1a;};}(),a31_0x5640b6=a31_0x215424(this,function(){const _0x30bef9=function(){const _0x12ad07=_0x30bef9[a31_0x54be('0xa')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a31_0x54be('0xa')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x12ad07[a31_0x54be('0x4')](a31_0x5640b6);};return _0x30bef9();});a31_0x5640b6();'use strict';const tesseract_1=require(a31_0x54be('0xc'));module['exports']=class Reports extends tesseract_1['Command']{constructor(){super(a31_0x54be('0x15'),{'description':a31_0x54be('0x8'),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[a31_0x54be('0xb')]},'scope':a31_0x54be('0x5'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a31_0x54be('0x11')],'syntax':['reports',a31_0x54be('0x6')]}),this['exec']=async(_0x311b1c,_0x1b5238)=>{const _0x1149cf=_0x311b1c[a31_0x54be('0x5')];_0x1b5238['disable']?(_0x1149cf['document'][a31_0x54be('0x10')]=undefined,delete _0x1149cf['document'][a31_0x54be('0x10')]):_0x1149cf['document'][a31_0x54be('0x10')]=_0x311b1c['channel']['id'],await _0x1149cf[a31_0x54be('0xf')]['save'](),await _0x311b1c['channel'][a31_0x54be('0x3')]({'embed':{'color':_0x1149cf[a31_0x54be('0xf')][a31_0x54be('0x10')]?tesseract_1['Constants'][a31_0x54be('0x14')][a31_0x54be('0x2')]:tesseract_1['Constants'][a31_0x54be('0x14')][a31_0x54be('0x9')],'description':this[a31_0x54be('0xe')]['locale'][a31_0x54be('0x7')](_0x311b1c[a31_0x54be('0x5')][a31_0x54be('0xf')][a31_0x54be('0x17')],a31_0x54be('0x13'),_0x1149cf[a31_0x54be('0xf')][a31_0x54be('0x10')]?'reportsEnable':a31_0x54be('0x12'),_0x311b1c[a31_0x54be('0x0')][a31_0x54be('0xd')])}})[a31_0x54be('0x1')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/selfRoles.js b/commands/configuration/selfRoles.js index ebeb103d9..37ffe4a5a 100644 --- a/commands/configuration/selfRoles.js +++ b/commands/configuration/selfRoles.js @@ -1 +1 @@ -const a32_0xdb07=['author','language','Command','findByIdAndUpdate','getString','catch','resolver','info','selfRoles','user','selfRoles\x20--add\x20ROLE','get','Constants','membershipLimitSelfRoles','has','roles','channel','test','PLATINUM','errors','send','add','fetchPremiumTier','roleNotFound','exec','guild','ROLE_NOT_FOUND','document','Self\x20Roles','SELF_ROLES','COLORS','remove','_id','default','length','PREMIUM_MEMBERSHIP_REQUIRED','It\x20allows\x20you\x20to\x20set\x20up\x20Self\x20Roles\x20in\x20the\x20server.\x20Self\x20Roles\x20are\x20the\x20roles\x20which\x20server\x20members\x20can\x20assign\x20(and\x20unassign)\x20to\x20themselves.','selfRolesAdd','countDocuments','LIMITED_PREMIUM_MEMBERSHIP','exports','LIMITS','find','GOLD','push','apply','PremiumTier','DiscordError','client','../../utils/errors','cache','resolveRole','join','../../models/Role','IRIS','BASTION_ERROR_TYPE','RED','../../utils/constants','selfRoles\x20--remove\x20ROLE','MANAGE_ROLES','locale','tag','name'];(function(_0x5cc401,_0xdb07a4){const _0x5d8b76=function(_0x126b7a){while(--_0x126b7a){_0x5cc401['push'](_0x5cc401['shift']());}},_0x31f659=function(){const _0x57b64b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3d1a90,_0x22c3ce,_0x493d38,_0x2514fb){_0x2514fb=_0x2514fb||{};let _0x2b1f9b=_0x22c3ce+'='+_0x493d38,_0x5411c0=0x0;for(let _0x5d88c4=0x0,_0x59cac5=_0x3d1a90['length'];_0x5d88c4<_0x59cac5;_0x5d88c4++){const _0x546700=_0x3d1a90[_0x5d88c4];_0x2b1f9b+=';\x20'+_0x546700;const _0x449cfb=_0x3d1a90[_0x546700];_0x3d1a90['push'](_0x449cfb),_0x59cac5=_0x3d1a90['length'],_0x449cfb!==!![]&&(_0x2b1f9b+='='+_0x449cfb);}_0x2514fb['cookie']=_0x2b1f9b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x52ae71,_0x14131f){_0x52ae71=_0x52ae71||function(_0x53ea4d){return _0x53ea4d;};const _0x130b8c=_0x52ae71(new RegExp('(?:^|;\x20)'+_0x14131f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x27b771=function(_0x4e5fa7,_0x4086d2){_0x4e5fa7(++_0x4086d2);};return _0x27b771(_0x5d8b76,_0xdb07a4),_0x130b8c?decodeURIComponent(_0x130b8c[0x1]):undefined;}},_0x5abb6a=function(){const _0x58b764=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x58b764['test'](_0x57b64b['removeCookie']['toString']());};_0x57b64b['updateCookie']=_0x5abb6a;let _0x211a6f='';const _0x3e13a6=_0x57b64b['updateCookie']();if(!_0x3e13a6)_0x57b64b['setCookie'](['*'],'counter',0x1);else _0x3e13a6?_0x211a6f=_0x57b64b['getCookie'](null,'counter'):_0x57b64b['removeCookie']();};_0x31f659();}(a32_0xdb07,0x1ea));const a32_0x5d8b=function(_0x5cc401,_0xdb07a4){_0x5cc401=_0x5cc401-0x0;let _0x5d8b76=a32_0xdb07[_0x5cc401];return _0x5d8b76;};const a32_0x493d38=function(){let _0x2c374c=!![];return function(_0xa1eaa7,_0x3f14c7){const _0x171788=_0x2c374c?function(){if(_0x3f14c7){const _0x166821=_0x3f14c7[a32_0x5d8b('0x3b')](_0xa1eaa7,arguments);return _0x3f14c7=null,_0x166821;}}:function(){};return _0x2c374c=![],_0x171788;};}(),a32_0x22c3ce=a32_0x493d38(this,function(){const _0x48617f=function(){const _0x150a6=_0x48617f['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x150a6[a32_0x5d8b('0x1f')](a32_0x22c3ce);};return _0x48617f();});a32_0x22c3ce();'use strict';const tesseract_1=require('@bastion/tesseract'),Role_1=require(a32_0x5d8b('0x4')),constants=require(a32_0x5d8b('0x8')),errors=require(a32_0x5d8b('0x0')),omnic=require('../../utils/omnic');module[a32_0x5d8b('0x36')]=class SelfRoles extends tesseract_1[a32_0x5d8b('0x10')]{constructor(){super('selfRoles',{'description':a32_0x5d8b('0x32'),'triggers':[],'arguments':{'alias':{'add':['a'],'remove':['r']},'array':[a32_0x5d8b('0x23'),'remove'],'string':[a32_0x5d8b('0x23'),a32_0x5d8b('0x2d')]},'scope':a32_0x5d8b('0x27'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_ROLES'],'userPermissions':[a32_0x5d8b('0xa')],'syntax':[a32_0x5d8b('0x16'),a32_0x5d8b('0x18'),a32_0x5d8b('0x9')]}),this[a32_0x5d8b('0x26')]=async(_0x143d35,_0x289b5b)=>{if(_0x289b5b[a32_0x5d8b('0x23')]){if(constants['isPublicBastion'](this[a32_0x5d8b('0x3e')][a32_0x5d8b('0x17')])){const _0x542ef8=await Role_1['default'][a32_0x5d8b('0x34')]({'guild':_0x143d35[a32_0x5d8b('0x27')]['id'],'selfAssignable':!![]});if(_0x542ef8>=constants[a32_0x5d8b('0x37')][a32_0x5d8b('0x2b')]){const _0x90f18d=await omnic[a32_0x5d8b('0x24')](_0x143d35['guild'])[a32_0x5d8b('0x13')](()=>{});if(_0x90f18d){if(_0x90f18d===omnic['PremiumTier'][a32_0x5d8b('0x39')]&&_0x542ef8>=constants[a32_0x5d8b('0x37')][a32_0x5d8b('0x39')][a32_0x5d8b('0x2b')])throw new errors['DiscordError'](errors[a32_0x5d8b('0x6')][a32_0x5d8b('0x35')],this[a32_0x5d8b('0x3e')][a32_0x5d8b('0xb')][a32_0x5d8b('0x12')](_0x143d35[a32_0x5d8b('0x27')]['document']['language'],a32_0x5d8b('0x21'),a32_0x5d8b('0x1b'),constants[a32_0x5d8b('0x37')][a32_0x5d8b('0x39')][a32_0x5d8b('0x2b')]));else{if(_0x90f18d===omnic[a32_0x5d8b('0x3c')][a32_0x5d8b('0x20')]&&_0x542ef8>=constants[a32_0x5d8b('0x37')]['PLATINUM']['SELF_ROLES'])throw new errors[(a32_0x5d8b('0x3d'))](errors['BASTION_ERROR_TYPE'][a32_0x5d8b('0x35')],this[a32_0x5d8b('0x3e')][a32_0x5d8b('0xb')]['getString'](_0x143d35[a32_0x5d8b('0x27')]['document'][a32_0x5d8b('0xf')],a32_0x5d8b('0x21'),a32_0x5d8b('0x1b'),constants[a32_0x5d8b('0x37')][a32_0x5d8b('0x20')][a32_0x5d8b('0x2b')]));}}else throw new errors[(a32_0x5d8b('0x3d'))](errors[a32_0x5d8b('0x6')][a32_0x5d8b('0x31')],this[a32_0x5d8b('0x3e')][a32_0x5d8b('0xb')][a32_0x5d8b('0x12')](_0x143d35[a32_0x5d8b('0x27')][a32_0x5d8b('0x29')]['language'],a32_0x5d8b('0x21'),'premiumSelfRoles',constants[a32_0x5d8b('0x37')][a32_0x5d8b('0x2b')]));}}const _0x1dffa7=this[a32_0x5d8b('0x3e')]['resolver'][a32_0x5d8b('0x2')](_0x143d35[a32_0x5d8b('0x27')],_0x289b5b[a32_0x5d8b('0x23')][a32_0x5d8b('0x3')]('\x20'));if(!_0x1dffa7)throw new errors[(a32_0x5d8b('0x3d'))](errors['BASTION_ERROR_TYPE'][a32_0x5d8b('0x28')],this[a32_0x5d8b('0x3e')][a32_0x5d8b('0xb')][a32_0x5d8b('0x12')](_0x143d35[a32_0x5d8b('0x27')][a32_0x5d8b('0x29')]['language'],'errors','roleNotFound'));await Role_1[a32_0x5d8b('0x2f')][a32_0x5d8b('0x11')](_0x1dffa7['id'],{'_id':_0x1dffa7['id'],'guild':_0x143d35['guild']['id'],'selfAssignable':!![]},{'upsert':!![]}),await _0x143d35['channel']['send']({'embed':{'color':tesseract_1[a32_0x5d8b('0x1a')][a32_0x5d8b('0x2c')]['GREEN'],'description':this[a32_0x5d8b('0x3e')][a32_0x5d8b('0xb')][a32_0x5d8b('0x12')](_0x143d35[a32_0x5d8b('0x27')][a32_0x5d8b('0x29')][a32_0x5d8b('0xf')],a32_0x5d8b('0x15'),a32_0x5d8b('0x33'),_0x143d35[a32_0x5d8b('0xe')][a32_0x5d8b('0xc')],_0x1dffa7['name']),'footer':{'text':_0x1dffa7['id']}}})[a32_0x5d8b('0x13')](()=>{});}else{if(_0x289b5b['remove']){const _0xedb747=this[a32_0x5d8b('0x3e')][a32_0x5d8b('0x14')]['resolveRole'](_0x143d35['guild'],_0x289b5b['remove'][a32_0x5d8b('0x3')]('\x20'));if(!_0xedb747)throw new errors[(a32_0x5d8b('0x3d'))](errors[a32_0x5d8b('0x6')][a32_0x5d8b('0x28')],this[a32_0x5d8b('0x3e')][a32_0x5d8b('0xb')][a32_0x5d8b('0x12')](_0x143d35[a32_0x5d8b('0x27')][a32_0x5d8b('0x29')][a32_0x5d8b('0xf')],'errors',a32_0x5d8b('0x25')));await Role_1['default']['findByIdAndUpdate'](_0xedb747['id'],{'$unset':{'selfAssignable':0x1}}),await _0x143d35[a32_0x5d8b('0x1e')][a32_0x5d8b('0x22')]({'embed':{'color':tesseract_1[a32_0x5d8b('0x1a')]['COLORS'][a32_0x5d8b('0x7')],'description':this[a32_0x5d8b('0x3e')]['locale'][a32_0x5d8b('0x12')](_0x143d35[a32_0x5d8b('0x27')][a32_0x5d8b('0x29')]['language'],'info','selfRolesRemove',_0x143d35[a32_0x5d8b('0xe')][a32_0x5d8b('0xc')],_0xedb747[a32_0x5d8b('0xd')]),'footer':{'text':_0xedb747['id']}}})[a32_0x5d8b('0x13')](()=>{});}else{const _0x2e527c=await Role_1[a32_0x5d8b('0x2f')][a32_0x5d8b('0x38')]({'guild':_0x143d35[a32_0x5d8b('0x27')]['id'],'selfAssignable':!![]});if(!_0x2e527c[a32_0x5d8b('0x30')])throw new Error(this[a32_0x5d8b('0x3e')][a32_0x5d8b('0xb')][a32_0x5d8b('0x12')](_0x143d35[a32_0x5d8b('0x27')][a32_0x5d8b('0x29')][a32_0x5d8b('0xf')],a32_0x5d8b('0x21'),'noSelfRoles'));const _0x235f55=[];for(const _0x458156 of _0x2e527c){!_0x143d35[a32_0x5d8b('0x27')][a32_0x5d8b('0x1d')][a32_0x5d8b('0x1')][a32_0x5d8b('0x1c')](_0x458156[a32_0x5d8b('0x2e')])&&await _0x458156[a32_0x5d8b('0x2d')]()[a32_0x5d8b('0x13')](()=>{}),_0x235f55[a32_0x5d8b('0x3a')]({'name':_0x143d35['guild'][a32_0x5d8b('0x1d')][a32_0x5d8b('0x1')][a32_0x5d8b('0x19')](_0x458156[a32_0x5d8b('0x2e')])[a32_0x5d8b('0xd')]||'-','value':_0x458156['_id']});}await _0x143d35[a32_0x5d8b('0x1e')]['send']({'embed':{'color':tesseract_1['Constants'][a32_0x5d8b('0x2c')][a32_0x5d8b('0x5')],'title':a32_0x5d8b('0x2a'),'description':this[a32_0x5d8b('0x3e')][a32_0x5d8b('0xb')][a32_0x5d8b('0x12')](_0x143d35[a32_0x5d8b('0x27')][a32_0x5d8b('0x29')][a32_0x5d8b('0xf')],a32_0x5d8b('0x15'),'selfRolesList'),'fields':_0x235f55}})[a32_0x5d8b('0x13')](()=>{});}}};}}; \ No newline at end of file +const a32_0x17b4=['PREMIUM_MEMBERSHIP_REQUIRED','COLORS','errors','_id','Self\x20Roles','getString','RED','IRIS','client','findByIdAndUpdate','push','resolveRole','language','get','join','selfRolesAdd','Constants','LIMITED_PREMIUM_MEMBERSHIP','It\x20allows\x20you\x20to\x20set\x20up\x20Self\x20Roles\x20in\x20the\x20server.\x20Self\x20Roles\x20are\x20the\x20roles\x20which\x20server\x20members\x20can\x20assign\x20(and\x20unassign)\x20to\x20themselves.','locale','Command','MANAGE_ROLES','tag','exports','GOLD','@bastion/tesseract','add','info','length','ROLE_NOT_FOUND','remove','../../models/Role','GREEN','LIMITS','send','PremiumTier','author','default','membershipLimitSelfRoles','exec','../../utils/omnic','selfRolesList','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','roleNotFound','catch','BASTION_ERROR_TYPE','constructor','countDocuments','premiumSelfRoles','has','channel','DiscordError','name','cache','PLATINUM','apply','SELF_ROLES','../../utils/errors','selfRolesRemove','roles','test','document'];(function(_0x41da5f,_0x17b42c){const _0xbb2479=function(_0x15fbf7){while(--_0x15fbf7){_0x41da5f['push'](_0x41da5f['shift']());}},_0x4ae86f=function(){const _0x5ca857={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x436273,_0x4a374a,_0x55a9f1,_0x399da9){_0x399da9=_0x399da9||{};let _0x476661=_0x4a374a+'='+_0x55a9f1,_0x39696f=0x0;for(let _0x2aed1f=0x0,_0x5a1c4d=_0x436273['length'];_0x2aed1f<_0x5a1c4d;_0x2aed1f++){const _0x4d93ee=_0x436273[_0x2aed1f];_0x476661+=';\x20'+_0x4d93ee;const _0x40b9c6=_0x436273[_0x4d93ee];_0x436273['push'](_0x40b9c6),_0x5a1c4d=_0x436273['length'],_0x40b9c6!==!![]&&(_0x476661+='='+_0x40b9c6);}_0x399da9['cookie']=_0x476661;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1d9487,_0x1dcbb7){_0x1d9487=_0x1d9487||function(_0x366f08){return _0x366f08;};const _0x523714=_0x1d9487(new RegExp('(?:^|;\x20)'+_0x1dcbb7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x37b0c6=function(_0x3e5dcf,_0x1c965b){_0x3e5dcf(++_0x1c965b);};return _0x37b0c6(_0xbb2479,_0x17b42c),_0x523714?decodeURIComponent(_0x523714[0x1]):undefined;}},_0x508ab3=function(){const _0x4de44e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4de44e['test'](_0x5ca857['removeCookie']['toString']());};_0x5ca857['updateCookie']=_0x508ab3;let _0x802271='';const _0x47831d=_0x5ca857['updateCookie']();if(!_0x47831d)_0x5ca857['setCookie'](['*'],'counter',0x1);else _0x47831d?_0x802271=_0x5ca857['getCookie'](null,'counter'):_0x5ca857['removeCookie']();};_0x4ae86f();}(a32_0x17b4,0x178));const a32_0xbb24=function(_0x41da5f,_0x17b42c){_0x41da5f=_0x41da5f-0x0;let _0xbb2479=a32_0x17b4[_0x41da5f];return _0xbb2479;};const a32_0x55a9f1=function(){let _0x10eab6=!![];return function(_0x5c3042,_0x204333){const _0x52c3d0=_0x10eab6?function(){if(_0x204333){const _0x4ec0af=_0x204333[a32_0xbb24('0x3a')](_0x5c3042,arguments);return _0x204333=null,_0x4ec0af;}}:function(){};return _0x10eab6=![],_0x52c3d0;};}(),a32_0x4a374a=a32_0x55a9f1(this,function(){const _0x3b2454=function(){const _0x3c0a8d=_0x3b2454[a32_0xbb24('0x31')](a32_0xbb24('0x2c'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3c0a8d[a32_0xbb24('0x0')](a32_0x4a374a);};return _0x3b2454();});a32_0x4a374a();'use strict';const tesseract_1=require(a32_0xbb24('0x1b')),Role_1=require(a32_0xbb24('0x21')),constants=require('../../utils/constants'),errors=require(a32_0xbb24('0x3c')),omnic=require(a32_0xbb24('0x2a'));module[a32_0xbb24('0x19')]=class SelfRoles extends tesseract_1[a32_0xbb24('0x16')]{constructor(){super('selfRoles',{'description':a32_0xbb24('0x14'),'triggers':[],'arguments':{'alias':{'add':['a'],'remove':['r']},'array':['add',a32_0xbb24('0x20')],'string':[a32_0xbb24('0x1c'),a32_0xbb24('0x20')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a32_0xbb24('0x17')],'userPermissions':[a32_0xbb24('0x17')],'syntax':['selfRoles','selfRoles\x20--add\x20ROLE','selfRoles\x20--remove\x20ROLE']}),this[a32_0xbb24('0x29')]=async(_0x2d1eab,_0x5181de)=>{if(_0x5181de[a32_0xbb24('0x1c')]){if(constants['isPublicBastion'](this[a32_0xbb24('0xa')]['user'])){const _0x501190=await Role_1[a32_0xbb24('0x27')][a32_0xbb24('0x32')]({'guild':_0x2d1eab['guild']['id'],'selfAssignable':!![]});if(_0x501190>=constants['LIMITS'][a32_0xbb24('0x3b')]){const _0x5d3c9f=await omnic['fetchPremiumTier'](_0x2d1eab['guild'])[a32_0xbb24('0x2f')](()=>{});if(_0x5d3c9f){if(_0x5d3c9f===omnic['PremiumTier'][a32_0xbb24('0x1a')]&&_0x501190>=constants[a32_0xbb24('0x23')][a32_0xbb24('0x1a')][a32_0xbb24('0x3b')])throw new errors[(a32_0xbb24('0x36'))](errors[a32_0xbb24('0x30')][a32_0xbb24('0x13')],this[a32_0xbb24('0xa')]['locale'][a32_0xbb24('0x7')](_0x2d1eab[a32_0xbb24('0x2d')][a32_0xbb24('0x1')][a32_0xbb24('0xe')],'errors',a32_0xbb24('0x28'),constants['LIMITS']['GOLD'][a32_0xbb24('0x3b')]));else{if(_0x5d3c9f===omnic[a32_0xbb24('0x25')][a32_0xbb24('0x39')]&&_0x501190>=constants[a32_0xbb24('0x23')][a32_0xbb24('0x39')][a32_0xbb24('0x3b')])throw new errors['DiscordError'](errors[a32_0xbb24('0x30')]['LIMITED_PREMIUM_MEMBERSHIP'],this['client']['locale'][a32_0xbb24('0x7')](_0x2d1eab[a32_0xbb24('0x2d')][a32_0xbb24('0x1')]['language'],'errors','membershipLimitSelfRoles',constants['LIMITS'][a32_0xbb24('0x39')]['SELF_ROLES']));}}else throw new errors[(a32_0xbb24('0x36'))](errors[a32_0xbb24('0x30')][a32_0xbb24('0x2')],this[a32_0xbb24('0xa')][a32_0xbb24('0x15')]['getString'](_0x2d1eab[a32_0xbb24('0x2d')][a32_0xbb24('0x1')][a32_0xbb24('0xe')],a32_0xbb24('0x4'),a32_0xbb24('0x33'),constants['LIMITS'][a32_0xbb24('0x3b')]));}}const _0x5c904c=this[a32_0xbb24('0xa')]['resolver'][a32_0xbb24('0xd')](_0x2d1eab['guild'],_0x5181de[a32_0xbb24('0x1c')][a32_0xbb24('0x10')]('\x20'));if(!_0x5c904c)throw new errors[(a32_0xbb24('0x36'))](errors[a32_0xbb24('0x30')][a32_0xbb24('0x1f')],this[a32_0xbb24('0xa')][a32_0xbb24('0x15')]['getString'](_0x2d1eab['guild']['document'][a32_0xbb24('0xe')],a32_0xbb24('0x4'),'roleNotFound'));await Role_1[a32_0xbb24('0x27')][a32_0xbb24('0xb')](_0x5c904c['id'],{'_id':_0x5c904c['id'],'guild':_0x2d1eab[a32_0xbb24('0x2d')]['id'],'selfAssignable':!![]},{'upsert':!![]}),await _0x2d1eab[a32_0xbb24('0x35')][a32_0xbb24('0x24')]({'embed':{'color':tesseract_1[a32_0xbb24('0x12')][a32_0xbb24('0x3')][a32_0xbb24('0x22')],'description':this[a32_0xbb24('0xa')][a32_0xbb24('0x15')]['getString'](_0x2d1eab['guild'][a32_0xbb24('0x1')][a32_0xbb24('0xe')],a32_0xbb24('0x1d'),a32_0xbb24('0x11'),_0x2d1eab['author'][a32_0xbb24('0x18')],_0x5c904c['name']),'footer':{'text':_0x5c904c['id']}}})[a32_0xbb24('0x2f')](()=>{});}else{if(_0x5181de[a32_0xbb24('0x20')]){const _0x153add=this[a32_0xbb24('0xa')]['resolver'][a32_0xbb24('0xd')](_0x2d1eab[a32_0xbb24('0x2d')],_0x5181de[a32_0xbb24('0x20')]['join']('\x20'));if(!_0x153add)throw new errors[(a32_0xbb24('0x36'))](errors['BASTION_ERROR_TYPE'][a32_0xbb24('0x1f')],this['client'][a32_0xbb24('0x15')][a32_0xbb24('0x7')](_0x2d1eab['guild'][a32_0xbb24('0x1')][a32_0xbb24('0xe')],a32_0xbb24('0x4'),a32_0xbb24('0x2e')));await Role_1['default'][a32_0xbb24('0xb')](_0x153add['id'],{'$unset':{'selfAssignable':0x1}}),await _0x2d1eab[a32_0xbb24('0x35')][a32_0xbb24('0x24')]({'embed':{'color':tesseract_1[a32_0xbb24('0x12')][a32_0xbb24('0x3')][a32_0xbb24('0x8')],'description':this[a32_0xbb24('0xa')][a32_0xbb24('0x15')][a32_0xbb24('0x7')](_0x2d1eab[a32_0xbb24('0x2d')]['document'][a32_0xbb24('0xe')],'info',a32_0xbb24('0x3d'),_0x2d1eab[a32_0xbb24('0x26')]['tag'],_0x153add[a32_0xbb24('0x37')]),'footer':{'text':_0x153add['id']}}})[a32_0xbb24('0x2f')](()=>{});}else{const _0x5a4995=await Role_1[a32_0xbb24('0x27')]['find']({'guild':_0x2d1eab[a32_0xbb24('0x2d')]['id'],'selfAssignable':!![]});if(!_0x5a4995[a32_0xbb24('0x1e')])throw new Error(this['client'][a32_0xbb24('0x15')][a32_0xbb24('0x7')](_0x2d1eab[a32_0xbb24('0x2d')][a32_0xbb24('0x1')]['language'],a32_0xbb24('0x4'),'noSelfRoles'));const _0x32bf5a=[];for(const _0x177bfa of _0x5a4995){!_0x2d1eab[a32_0xbb24('0x2d')][a32_0xbb24('0x3e')][a32_0xbb24('0x38')][a32_0xbb24('0x34')](_0x177bfa[a32_0xbb24('0x5')])&&await _0x177bfa['remove']()[a32_0xbb24('0x2f')](()=>{}),_0x32bf5a[a32_0xbb24('0xc')]({'name':_0x2d1eab[a32_0xbb24('0x2d')]['roles']['cache'][a32_0xbb24('0xf')](_0x177bfa['_id'])[a32_0xbb24('0x37')]||'-','value':_0x177bfa[a32_0xbb24('0x5')]});}await _0x2d1eab[a32_0xbb24('0x35')][a32_0xbb24('0x24')]({'embed':{'color':tesseract_1[a32_0xbb24('0x12')][a32_0xbb24('0x3')][a32_0xbb24('0x9')],'title':a32_0xbb24('0x6'),'description':this[a32_0xbb24('0xa')]['locale'][a32_0xbb24('0x7')](_0x2d1eab[a32_0xbb24('0x2d')]['document']['language'],a32_0xbb24('0x1d'),a32_0xbb24('0x2b')),'fields':_0x32bf5a}})[a32_0xbb24('0x2f')](()=>{});}}};}}; \ No newline at end of file diff --git a/commands/configuration/serverLogs.js b/commands/configuration/serverLogs.js index 68cb0ff0f..5aa4a16e5 100644 --- a/commands/configuration/serverLogs.js +++ b/commands/configuration/serverLogs.js @@ -1 +1 @@ -const a33_0x5549=['COLORS','send','catch','@bastion/tesseract','test','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20logging\x20of\x20the\x20server\x20events.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Server\x20Log\x20Channel\x20that\x20will\x20log\x20the\x20server\x20events.','MANAGE_GUILD','disable','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','locale','serverLogsDisable','document','exports','constructor','serverLogs\x20--disable','tag','Command','getString','client','serverLogChannelId','serverLogsEnable','language','apply','GREEN','RED','save'];(function(_0x5abbec,_0x554991){const _0x1c0823=function(_0x140c35){while(--_0x140c35){_0x5abbec['push'](_0x5abbec['shift']());}},_0x11dfcf=function(){const _0x48acd8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4d88fe,_0x2902d9,_0x3fcc24,_0x561a39){_0x561a39=_0x561a39||{};let _0x2d68cf=_0x2902d9+'='+_0x3fcc24,_0x2e9234=0x0;for(let _0x5452cf=0x0,_0x37990e=_0x4d88fe['length'];_0x5452cf<_0x37990e;_0x5452cf++){const _0xfea894=_0x4d88fe[_0x5452cf];_0x2d68cf+=';\x20'+_0xfea894;const _0x3e5e5f=_0x4d88fe[_0xfea894];_0x4d88fe['push'](_0x3e5e5f),_0x37990e=_0x4d88fe['length'],_0x3e5e5f!==!![]&&(_0x2d68cf+='='+_0x3e5e5f);}_0x561a39['cookie']=_0x2d68cf;},'removeCookie':function(){return'dev';},'getCookie':function(_0x14c177,_0x1cbb64){_0x14c177=_0x14c177||function(_0x124414){return _0x124414;};const _0x304756=_0x14c177(new RegExp('(?:^|;\x20)'+_0x1cbb64['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5bc7bd=function(_0x18e215,_0x55bb8f){_0x18e215(++_0x55bb8f);};return _0x5bc7bd(_0x1c0823,_0x554991),_0x304756?decodeURIComponent(_0x304756[0x1]):undefined;}},_0x5e5f88=function(){const _0x2410a7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2410a7['test'](_0x48acd8['removeCookie']['toString']());};_0x48acd8['updateCookie']=_0x5e5f88;let _0xd1e9bb='';const _0x52a831=_0x48acd8['updateCookie']();if(!_0x52a831)_0x48acd8['setCookie'](['*'],'counter',0x1);else _0x52a831?_0xd1e9bb=_0x48acd8['getCookie'](null,'counter'):_0x48acd8['removeCookie']();};_0x11dfcf();}(a33_0x5549,0x1e1));const a33_0x1c08=function(_0x5abbec,_0x554991){_0x5abbec=_0x5abbec-0x0;let _0x1c0823=a33_0x5549[_0x5abbec];return _0x1c0823;};const a33_0x3fcc24=function(){let _0x1838d3=!![];return function(_0x320530,_0x5c8949){const _0x51c1a=_0x1838d3?function(){if(_0x5c8949){const _0x256367=_0x5c8949[a33_0x1c08('0x9')](_0x320530,arguments);return _0x5c8949=null,_0x256367;}}:function(){};return _0x1838d3=![],_0x51c1a;};}(),a33_0x2902d9=a33_0x3fcc24(this,function(){const _0xe3b2e2=function(){const _0x14536f=_0xe3b2e2[a33_0x1c08('0x0')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a33_0x1c08('0x0')](a33_0x1c08('0x15'));return!_0x14536f[a33_0x1c08('0x11')](a33_0x2902d9);};return _0xe3b2e2();});a33_0x2902d9();'use strict';const tesseract_1=require(a33_0x1c08('0x10'));module[a33_0x1c08('0x19')]=class ServerLogs extends tesseract_1[a33_0x1c08('0x3')]{constructor(){super('serverLogs',{'description':a33_0x1c08('0x12'),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[a33_0x1c08('0x14')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a33_0x1c08('0x13')],'syntax':['serverLogs',a33_0x1c08('0x1')]}),this['exec']=async(_0x5b6e5e,_0x544ba5)=>{const _0x5ed18c=_0x5b6e5e['guild'];_0x544ba5[a33_0x1c08('0x14')]?(_0x5ed18c[a33_0x1c08('0x18')][a33_0x1c08('0x6')]=undefined,delete _0x5ed18c[a33_0x1c08('0x18')][a33_0x1c08('0x6')]):_0x5ed18c[a33_0x1c08('0x18')][a33_0x1c08('0x6')]=_0x5b6e5e['channel']['id'],await _0x5ed18c[a33_0x1c08('0x18')][a33_0x1c08('0xc')](),await _0x5b6e5e['channel'][a33_0x1c08('0xe')]({'embed':{'color':_0x5ed18c[a33_0x1c08('0x18')][a33_0x1c08('0x6')]?tesseract_1['Constants'][a33_0x1c08('0xd')][a33_0x1c08('0xa')]:tesseract_1['Constants'][a33_0x1c08('0xd')][a33_0x1c08('0xb')],'description':this[a33_0x1c08('0x5')][a33_0x1c08('0x16')][a33_0x1c08('0x4')](_0x5b6e5e['guild']['document'][a33_0x1c08('0x8')],'info',_0x5ed18c[a33_0x1c08('0x18')][a33_0x1c08('0x6')]?a33_0x1c08('0x7'):a33_0x1c08('0x17'),_0x5b6e5e['author'][a33_0x1c08('0x2')])}})[a33_0x1c08('0xf')](()=>{});};}}; \ No newline at end of file +const a33_0x1a52=['It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20logging\x20of\x20the\x20server\x20events.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Server\x20Log\x20Channel\x20that\x20will\x20log\x20the\x20server\x20events.','constructor','Constants','GREEN','apply','send','COLORS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','author','language','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','serverLogsDisable','MANAGE_GUILD','exports','info','document','getString','disable','serverLogs','channel','guild','RED','client','serverLogChannelId'];(function(_0x22bc6e,_0x1a52bd){const _0x1e3376=function(_0x1636b0){while(--_0x1636b0){_0x22bc6e['push'](_0x22bc6e['shift']());}},_0x5a8ac5=function(){const _0x21e4e2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1bd671,_0x5ae252,_0x470c5a,_0x3f9b30){_0x3f9b30=_0x3f9b30||{};let _0x4652bf=_0x5ae252+'='+_0x470c5a,_0x16e5c=0x0;for(let _0x36ff08=0x0,_0x5b7441=_0x1bd671['length'];_0x36ff08<_0x5b7441;_0x36ff08++){const _0x450ce8=_0x1bd671[_0x36ff08];_0x4652bf+=';\x20'+_0x450ce8;const _0x54c9ed=_0x1bd671[_0x450ce8];_0x1bd671['push'](_0x54c9ed),_0x5b7441=_0x1bd671['length'],_0x54c9ed!==!![]&&(_0x4652bf+='='+_0x54c9ed);}_0x3f9b30['cookie']=_0x4652bf;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4c1693,_0x3e9f3c){_0x4c1693=_0x4c1693||function(_0x8bbf55){return _0x8bbf55;};const _0x5433cd=_0x4c1693(new RegExp('(?:^|;\x20)'+_0x3e9f3c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x190fe9=function(_0x1e29ce,_0x5c289d){_0x1e29ce(++_0x5c289d);};return _0x190fe9(_0x1e3376,_0x1a52bd),_0x5433cd?decodeURIComponent(_0x5433cd[0x1]):undefined;}},_0x99d19f=function(){const _0x118708=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x118708['test'](_0x21e4e2['removeCookie']['toString']());};_0x21e4e2['updateCookie']=_0x99d19f;let _0x1f1a3b='';const _0x1ea6a5=_0x21e4e2['updateCookie']();if(!_0x1ea6a5)_0x21e4e2['setCookie'](['*'],'counter',0x1);else _0x1ea6a5?_0x1f1a3b=_0x21e4e2['getCookie'](null,'counter'):_0x21e4e2['removeCookie']();};_0x5a8ac5();}(a33_0x1a52,0xf6));const a33_0x1e33=function(_0x22bc6e,_0x1a52bd){_0x22bc6e=_0x22bc6e-0x0;let _0x1e3376=a33_0x1a52[_0x22bc6e];return _0x1e3376;};const a33_0x470c5a=function(){let _0x362ded=!![];return function(_0x8d0d7b,_0x1dc411){const _0x26aa08=_0x362ded?function(){if(_0x1dc411){const _0x5bd52c=_0x1dc411[a33_0x1e33('0x8')](_0x8d0d7b,arguments);return _0x1dc411=null,_0x5bd52c;}}:function(){};return _0x362ded=![],_0x26aa08;};}(),a33_0x5ae252=a33_0x470c5a(this,function(){const _0x302981=function(){const _0x372ebf=_0x302981[a33_0x1e33('0x5')](a33_0x1e33('0xb'))()[a33_0x1e33('0x5')](a33_0x1e33('0xe'));return!_0x372ebf['test'](a33_0x5ae252);};return _0x302981();});a33_0x5ae252();'use strict';const tesseract_1=require('@bastion/tesseract');module[a33_0x1e33('0x12')]=class ServerLogs extends tesseract_1['Command']{constructor(){super(a33_0x1e33('0x17'),{'description':a33_0x1e33('0x4'),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[a33_0x1e33('0x16')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a33_0x1e33('0x11')],'syntax':[a33_0x1e33('0x17'),'serverLogs\x20--disable']}),this[a33_0x1e33('0xf')]=async(_0x2d242c,_0x3012cd)=>{const _0xccfb17=_0x2d242c[a33_0x1e33('0x0')];_0x3012cd['disable']?(_0xccfb17[a33_0x1e33('0x14')][a33_0x1e33('0x3')]=undefined,delete _0xccfb17[a33_0x1e33('0x14')][a33_0x1e33('0x3')]):_0xccfb17[a33_0x1e33('0x14')]['serverLogChannelId']=_0x2d242c['channel']['id'],await _0xccfb17[a33_0x1e33('0x14')]['save'](),await _0x2d242c[a33_0x1e33('0x18')][a33_0x1e33('0x9')]({'embed':{'color':_0xccfb17[a33_0x1e33('0x14')][a33_0x1e33('0x3')]?tesseract_1['Constants'][a33_0x1e33('0xa')][a33_0x1e33('0x7')]:tesseract_1[a33_0x1e33('0x6')][a33_0x1e33('0xa')][a33_0x1e33('0x1')],'description':this[a33_0x1e33('0x2')]['locale'][a33_0x1e33('0x15')](_0x2d242c[a33_0x1e33('0x0')][a33_0x1e33('0x14')][a33_0x1e33('0xd')],a33_0x1e33('0x13'),_0xccfb17['document']['serverLogChannelId']?'serverLogsEnable':a33_0x1e33('0x10'),_0x2d242c[a33_0x1e33('0xc')]['tag'])}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/starboard.js b/commands/configuration/starboard.js index e0f2f58b2..b9a967c64 100644 --- a/commands/configuration/starboard.js +++ b/commands/configuration/starboard.js @@ -1 +1 @@ -const a34_0x4821=['starboard\x20--disable','send','guild','apply','starboard','constructor','GREEN','channel','starboardEnable','exec','catch','tag','disable','Constants','language','exports','document','MANAGE_GUILD','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Starboard\x20in\x20the\x20server.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Starboard\x20Channel\x20that\x20will\x20log\x20the\x20starred\x20messages\x20of\x20the\x20server.','getString','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','starboardChannelId','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','author','locale'];(function(_0x142163,_0x482176){const _0x56afed=function(_0x3dd48f){while(--_0x3dd48f){_0x142163['push'](_0x142163['shift']());}},_0x2771e9=function(){const _0x367886={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x41809e,_0x44d32f,_0x50758d,_0x350def){_0x350def=_0x350def||{};let _0xa5d43b=_0x44d32f+'='+_0x50758d,_0x7847ce=0x0;for(let _0x2eb4d7=0x0,_0x43478d=_0x41809e['length'];_0x2eb4d7<_0x43478d;_0x2eb4d7++){const _0x3af995=_0x41809e[_0x2eb4d7];_0xa5d43b+=';\x20'+_0x3af995;const _0x4e43a1=_0x41809e[_0x3af995];_0x41809e['push'](_0x4e43a1),_0x43478d=_0x41809e['length'],_0x4e43a1!==!![]&&(_0xa5d43b+='='+_0x4e43a1);}_0x350def['cookie']=_0xa5d43b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3019c2,_0x417551){_0x3019c2=_0x3019c2||function(_0x1263ab){return _0x1263ab;};const _0x54adfa=_0x3019c2(new RegExp('(?:^|;\x20)'+_0x417551['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xc4a3f6=function(_0x5ee4c0,_0x4f7bcc){_0x5ee4c0(++_0x4f7bcc);};return _0xc4a3f6(_0x56afed,_0x482176),_0x54adfa?decodeURIComponent(_0x54adfa[0x1]):undefined;}},_0x478d9b=function(){const _0x245b2d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x245b2d['test'](_0x367886['removeCookie']['toString']());};_0x367886['updateCookie']=_0x478d9b;let _0x47e4c5='';const _0x57bd68=_0x367886['updateCookie']();if(!_0x57bd68)_0x367886['setCookie'](['*'],'counter',0x1);else _0x57bd68?_0x47e4c5=_0x367886['getCookie'](null,'counter'):_0x367886['removeCookie']();};_0x2771e9();}(a34_0x4821,0xb8));const a34_0x56af=function(_0x142163,_0x482176){_0x142163=_0x142163-0x0;let _0x56afed=a34_0x4821[_0x142163];return _0x56afed;};const a34_0x50758d=function(){let _0x447522=!![];return function(_0x1f32e2,_0x5e15e2){const _0xdb17e7=_0x447522?function(){if(_0x5e15e2){const _0x14f3ec=_0x5e15e2[a34_0x56af('0x8')](_0x1f32e2,arguments);return _0x5e15e2=null,_0x14f3ec;}}:function(){};return _0x447522=![],_0xdb17e7;};}(),a34_0x44d32f=a34_0x50758d(this,function(){const _0x26dd7d=function(){const _0x2f96ef=_0x26dd7d[a34_0x56af('0xa')](a34_0x56af('0x19'))()[a34_0x56af('0xa')](a34_0x56af('0x2'));return!_0x2f96ef['test'](a34_0x44d32f);};return _0x26dd7d();});a34_0x44d32f();'use strict';const tesseract_1=require(a34_0x56af('0x1'));module[a34_0x56af('0x14')]=class Starboard extends tesseract_1['Command']{constructor(){super(a34_0x56af('0x9'),{'description':a34_0x56af('0x17'),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':['disable']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a34_0x56af('0x16')],'syntax':[a34_0x56af('0x9'),a34_0x56af('0x5')]}),this[a34_0x56af('0xe')]=async(_0x3e4df3,_0x58e27d)=>{const _0x5c5503=_0x3e4df3[a34_0x56af('0x7')];_0x58e27d[a34_0x56af('0x11')]?(_0x5c5503[a34_0x56af('0x15')][a34_0x56af('0x0')]=undefined,delete _0x5c5503[a34_0x56af('0x15')][a34_0x56af('0x0')]):_0x5c5503[a34_0x56af('0x15')][a34_0x56af('0x0')]=_0x3e4df3[a34_0x56af('0xc')]['id'],await _0x5c5503[a34_0x56af('0x15')]['save'](),await _0x3e4df3['channel'][a34_0x56af('0x6')]({'embed':{'color':_0x5c5503[a34_0x56af('0x15')][a34_0x56af('0x0')]?tesseract_1[a34_0x56af('0x12')][a34_0x56af('0x1a')][a34_0x56af('0xb')]:tesseract_1[a34_0x56af('0x12')][a34_0x56af('0x1a')]['RED'],'description':this['client'][a34_0x56af('0x4')][a34_0x56af('0x18')](_0x3e4df3[a34_0x56af('0x7')][a34_0x56af('0x15')][a34_0x56af('0x13')],'info',_0x5c5503['document'][a34_0x56af('0x0')]?a34_0x56af('0xd'):'starboardDisable',_0x3e4df3[a34_0x56af('0x3')][a34_0x56af('0x10')])}})[a34_0x56af('0xf')](()=>{});};}}; \ No newline at end of file +const a34_0x2fb1=['RED','starboardChannelId','COLORS','author','starboardEnable','MANAGE_GUILD','guild','client','Constants','apply','starboard\x20--disable','constructor','document','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','test','starboard','GREEN','send','starboardDisable','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20Starboard\x20in\x20the\x20server.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Starboard\x20Channel\x20that\x20will\x20log\x20the\x20starred\x20messages\x20of\x20the\x20server.','getString','channel','save','disable','catch','language','exports','Command','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x521d01,_0x2fb189){const _0x16be67=function(_0x20722e){while(--_0x20722e){_0x521d01['push'](_0x521d01['shift']());}},_0x4cc1a0=function(){const _0x3004ab={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x12021f,_0x401478,_0xf3212,_0xe111fd){_0xe111fd=_0xe111fd||{};let _0x1200fc=_0x401478+'='+_0xf3212,_0x22b95e=0x0;for(let _0x1cb8b6=0x0,_0x127e79=_0x12021f['length'];_0x1cb8b6<_0x127e79;_0x1cb8b6++){const _0x2dac81=_0x12021f[_0x1cb8b6];_0x1200fc+=';\x20'+_0x2dac81;const _0x2aa341=_0x12021f[_0x2dac81];_0x12021f['push'](_0x2aa341),_0x127e79=_0x12021f['length'],_0x2aa341!==!![]&&(_0x1200fc+='='+_0x2aa341);}_0xe111fd['cookie']=_0x1200fc;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5c075b,_0x15b6e2){_0x5c075b=_0x5c075b||function(_0x3e0a44){return _0x3e0a44;};const _0x32fa1a=_0x5c075b(new RegExp('(?:^|;\x20)'+_0x15b6e2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x585185=function(_0x2047c8,_0x3e60b5){_0x2047c8(++_0x3e60b5);};return _0x585185(_0x16be67,_0x2fb189),_0x32fa1a?decodeURIComponent(_0x32fa1a[0x1]):undefined;}},_0x13f585=function(){const _0x4349bf=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4349bf['test'](_0x3004ab['removeCookie']['toString']());};_0x3004ab['updateCookie']=_0x13f585;let _0x4ff608='';const _0x2bc538=_0x3004ab['updateCookie']();if(!_0x2bc538)_0x3004ab['setCookie'](['*'],'counter',0x1);else _0x2bc538?_0x4ff608=_0x3004ab['getCookie'](null,'counter'):_0x3004ab['removeCookie']();};_0x4cc1a0();}(a34_0x2fb1,0x1bd));const a34_0x16be=function(_0x521d01,_0x2fb189){_0x521d01=_0x521d01-0x0;let _0x16be67=a34_0x2fb1[_0x521d01];return _0x16be67;};const a34_0xf3212=function(){let _0x1edddc=!![];return function(_0x11f45f,_0x56feec){const _0xae5e3c=_0x1edddc?function(){if(_0x56feec){const _0x3eca4f=_0x56feec[a34_0x16be('0xe')](_0x11f45f,arguments);return _0x56feec=null,_0x3eca4f;}}:function(){};return _0x1edddc=![],_0xae5e3c;};}(),a34_0x401478=a34_0xf3212(this,function(){const _0x1b86b8=function(){const _0x23d7db=_0x1b86b8[a34_0x16be('0x10')](a34_0x16be('0x4'))()[a34_0x16be('0x10')](a34_0x16be('0x12'));return!_0x23d7db[a34_0x16be('0x14')](a34_0x401478);};return _0x1b86b8();});a34_0x401478();'use strict';const tesseract_1=require('@bastion/tesseract');module[a34_0x16be('0x2')]=class Starboard extends tesseract_1[a34_0x16be('0x3')]{constructor(){super('starboard',{'description':a34_0x16be('0x19'),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[a34_0x16be('0x1d')]},'scope':a34_0x16be('0xb'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a34_0x16be('0xa')],'syntax':[a34_0x16be('0x15'),a34_0x16be('0xf')]}),this[a34_0x16be('0x13')]=async(_0x14b586,_0x53961e)=>{const _0x116bf0=_0x14b586[a34_0x16be('0xb')];_0x53961e['disable']?(_0x116bf0[a34_0x16be('0x11')][a34_0x16be('0x6')]=undefined,delete _0x116bf0[a34_0x16be('0x11')][a34_0x16be('0x6')]):_0x116bf0[a34_0x16be('0x11')][a34_0x16be('0x6')]=_0x14b586['channel']['id'],await _0x116bf0['document'][a34_0x16be('0x1c')](),await _0x14b586[a34_0x16be('0x1b')][a34_0x16be('0x17')]({'embed':{'color':_0x116bf0[a34_0x16be('0x11')][a34_0x16be('0x6')]?tesseract_1[a34_0x16be('0xd')][a34_0x16be('0x7')][a34_0x16be('0x16')]:tesseract_1[a34_0x16be('0xd')][a34_0x16be('0x7')][a34_0x16be('0x5')],'description':this[a34_0x16be('0xc')]['locale'][a34_0x16be('0x1a')](_0x14b586[a34_0x16be('0xb')][a34_0x16be('0x11')][a34_0x16be('0x1')],'info',_0x116bf0[a34_0x16be('0x11')][a34_0x16be('0x6')]?a34_0x16be('0x9'):a34_0x16be('0x18'),_0x14b586[a34_0x16be('0x8')]['tag'])}})[a34_0x16be('0x0')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/streamerRole.js b/commands/configuration/streamerRole.js index 8f9c66132..8986f3904 100644 --- a/commands/configuration/streamerRole.js +++ b/commands/configuration/streamerRole.js @@ -1 +1 @@ -const a35_0x1b11=['streamerRole\x20ROLE','language','length','streamerRoleId','streamerRoleUnset','streamerRoleSet','apply','COLORS','client','getString','roleNotFound','resolver','remove','resolveRole','@bastion/tesseract','tag','locale','INVALID_COMMAND_SYNTAX','send','RED','streamerRole\x20--remove','Constants','It\x20allows\x20to\x20set\x20the\x20Streamer\x20Role\x20for\x20the\x20server.\x20When\x20a\x20member\x20goes\x20live\x20in\x20the\x20server,\x20they\x27re\x20assigned\x20to\x20this\x20role,\x20provided\x20they\x20have\x20at\x20least\x20one\x20role\x20in\x20the\x20server.','document','save','Command','join','ROLE_NOT_FOUND','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','BASTION_ERROR_TYPE','constructor','name','channel','exec','errors','GREEN','../../utils/errors','DiscordError','author','guild','catch'];(function(_0x5b4202,_0x1b1102){const _0x4967f9=function(_0x4c0656){while(--_0x4c0656){_0x5b4202['push'](_0x5b4202['shift']());}},_0x259ef2=function(){const _0x3789d1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4037f7,_0x1d55db,_0x4c9af9,_0x1e011b){_0x1e011b=_0x1e011b||{};let _0x3af47f=_0x1d55db+'='+_0x4c9af9,_0x4aab82=0x0;for(let _0x2f6d2a=0x0,_0x2d7ead=_0x4037f7['length'];_0x2f6d2a<_0x2d7ead;_0x2f6d2a++){const _0x5f061b=_0x4037f7[_0x2f6d2a];_0x3af47f+=';\x20'+_0x5f061b;const _0x3181d4=_0x4037f7[_0x5f061b];_0x4037f7['push'](_0x3181d4),_0x2d7ead=_0x4037f7['length'],_0x3181d4!==!![]&&(_0x3af47f+='='+_0x3181d4);}_0x1e011b['cookie']=_0x3af47f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x452adb,_0x3d4d04){_0x452adb=_0x452adb||function(_0x4d2a8f){return _0x4d2a8f;};const _0x59c46a=_0x452adb(new RegExp('(?:^|;\x20)'+_0x3d4d04['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2368aa=function(_0x7d771a,_0x6db2d4){_0x7d771a(++_0x6db2d4);};return _0x2368aa(_0x4967f9,_0x1b1102),_0x59c46a?decodeURIComponent(_0x59c46a[0x1]):undefined;}},_0x49582b=function(){const _0x3988ea=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3988ea['test'](_0x3789d1['removeCookie']['toString']());};_0x3789d1['updateCookie']=_0x49582b;let _0x30a116='';const _0x22e675=_0x3789d1['updateCookie']();if(!_0x22e675)_0x3789d1['setCookie'](['*'],'counter',0x1);else _0x22e675?_0x30a116=_0x3789d1['getCookie'](null,'counter'):_0x3789d1['removeCookie']();};_0x259ef2();}(a35_0x1b11,0x1e3));const a35_0x4967=function(_0x5b4202,_0x1b1102){_0x5b4202=_0x5b4202-0x0;let _0x4967f9=a35_0x1b11[_0x5b4202];return _0x4967f9;};const a35_0x4c9af9=function(){let _0x31af5a=!![];return function(_0x63421e,_0x567bae){const _0x5da0fd=_0x31af5a?function(){if(_0x567bae){const _0x124906=_0x567bae[a35_0x4967('0x1b')](_0x63421e,arguments);return _0x567bae=null,_0x124906;}}:function(){};return _0x31af5a=![],_0x5da0fd;};}(),a35_0x1d55db=a35_0x4c9af9(this,function(){const _0x332e3e=function(){const _0x4355e8=_0x332e3e['constructor'](a35_0x4967('0x7'))()[a35_0x4967('0xa')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4355e8[a35_0x4967('0x8')](a35_0x1d55db);};return _0x332e3e();});a35_0x1d55db();'use strict';const tesseract_1=require(a35_0x4967('0x23')),errors=require(a35_0x4967('0x10'));module['exports']=class StreamerRoleCommand extends tesseract_1[a35_0x4967('0x4')]{constructor(){super('streamerRole',{'description':a35_0x4967('0x1'),'triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':[a35_0x4967('0x21')]},'scope':a35_0x4967('0x13'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[a35_0x4967('0x15'),a35_0x4967('0x29')]}),this[a35_0x4967('0xd')]=async(_0x3f0639,_0x5ca870)=>{if(!_0x5ca870['_'][a35_0x4967('0x17')]&&!_0x5ca870[a35_0x4967('0x21')])throw new errors[(a35_0x4967('0x11'))](errors[a35_0x4967('0x9')][a35_0x4967('0x26')],this[a35_0x4967('0xb')]);const _0x4c0393=_0x3f0639[a35_0x4967('0x13')];let _0xb8bcd0;if(_0x5ca870['remove'])_0x4c0393[a35_0x4967('0x2')][a35_0x4967('0x18')]=undefined,delete _0x4c0393[a35_0x4967('0x2')][a35_0x4967('0x18')];else{_0xb8bcd0=this[a35_0x4967('0x1d')][a35_0x4967('0x20')][a35_0x4967('0x22')](_0x3f0639['guild'],_0x5ca870['_'][a35_0x4967('0x5')]('\x20'));if(!_0xb8bcd0)throw new errors[(a35_0x4967('0x11'))](errors[a35_0x4967('0x9')][a35_0x4967('0x6')],this[a35_0x4967('0x1d')][a35_0x4967('0x25')][a35_0x4967('0x1e')](_0x3f0639[a35_0x4967('0x13')][a35_0x4967('0x2')][a35_0x4967('0x16')],a35_0x4967('0xe'),a35_0x4967('0x1f')));_0x4c0393[a35_0x4967('0x2')][a35_0x4967('0x18')]=_0xb8bcd0['id'];}await _0x4c0393[a35_0x4967('0x2')][a35_0x4967('0x3')](),await _0x3f0639[a35_0x4967('0xc')][a35_0x4967('0x27')]({'embed':{'color':_0x4c0393[a35_0x4967('0x2')][a35_0x4967('0x18')]?tesseract_1[a35_0x4967('0x0')]['COLORS'][a35_0x4967('0xf')]:tesseract_1[a35_0x4967('0x0')][a35_0x4967('0x1c')][a35_0x4967('0x28')],'description':this[a35_0x4967('0x1d')][a35_0x4967('0x25')][a35_0x4967('0x1e')](_0x3f0639['guild'][a35_0x4967('0x2')][a35_0x4967('0x16')],'info',_0x4c0393[a35_0x4967('0x2')][a35_0x4967('0x18')]?a35_0x4967('0x1a'):a35_0x4967('0x19'),_0x3f0639[a35_0x4967('0x12')][a35_0x4967('0x24')],_0xb8bcd0?_0xb8bcd0[a35_0x4967('0xb')]:'')}})[a35_0x4967('0x14')](()=>{});};}}; \ No newline at end of file +const a35_0x4177=['getString','Constants','errors','GREEN','length','@bastion/tesseract','name','roleNotFound','streamerRole\x20--remove','remove','resolveRole','streamerRoleSet','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','language','resolver','DiscordError','document','test','channel','COLORS','send','It\x20allows\x20to\x20set\x20the\x20Streamer\x20Role\x20for\x20the\x20server.\x20When\x20a\x20member\x20goes\x20live\x20in\x20the\x20server,\x20they\x27re\x20assigned\x20to\x20this\x20role,\x20provided\x20they\x20have\x20at\x20least\x20one\x20role\x20in\x20the\x20server.','client','tag','streamerRole\x20ROLE','INVALID_COMMAND_SYNTAX','streamerRoleId','locale','return\x20/\x22\x20+\x20this\x20+\x20\x22/','save','streamerRole','../../utils/errors','constructor','streamerRoleUnset','author','ROLE_NOT_FOUND','BASTION_ERROR_TYPE','apply','Command','RED','guild','exports'];(function(_0x3c716a,_0x4177e8){const _0x1909b4=function(_0x2b5ead){while(--_0x2b5ead){_0x3c716a['push'](_0x3c716a['shift']());}},_0x1fef16=function(){const _0x1c5f02={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x34f449,_0x3baa16,_0x56110d,_0x593159){_0x593159=_0x593159||{};let _0x95e961=_0x3baa16+'='+_0x56110d,_0x52cb24=0x0;for(let _0x45f899=0x0,_0x39e5e6=_0x34f449['length'];_0x45f899<_0x39e5e6;_0x45f899++){const _0x19145e=_0x34f449[_0x45f899];_0x95e961+=';\x20'+_0x19145e;const _0x1532c2=_0x34f449[_0x19145e];_0x34f449['push'](_0x1532c2),_0x39e5e6=_0x34f449['length'],_0x1532c2!==!![]&&(_0x95e961+='='+_0x1532c2);}_0x593159['cookie']=_0x95e961;},'removeCookie':function(){return'dev';},'getCookie':function(_0x278726,_0x262f3e){_0x278726=_0x278726||function(_0x23a264){return _0x23a264;};const _0x24ac24=_0x278726(new RegExp('(?:^|;\x20)'+_0x262f3e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2e9a7a=function(_0x3fea92,_0x9c1c72){_0x3fea92(++_0x9c1c72);};return _0x2e9a7a(_0x1909b4,_0x4177e8),_0x24ac24?decodeURIComponent(_0x24ac24[0x1]):undefined;}},_0x5e07e3=function(){const _0x3566a4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3566a4['test'](_0x1c5f02['removeCookie']['toString']());};_0x1c5f02['updateCookie']=_0x5e07e3;let _0x16c9e1='';const _0x53af3f=_0x1c5f02['updateCookie']();if(!_0x53af3f)_0x1c5f02['setCookie'](['*'],'counter',0x1);else _0x53af3f?_0x16c9e1=_0x1c5f02['getCookie'](null,'counter'):_0x1c5f02['removeCookie']();};_0x1fef16();}(a35_0x4177,0x73));const a35_0x1909=function(_0x3c716a,_0x4177e8){_0x3c716a=_0x3c716a-0x0;let _0x1909b4=a35_0x4177[_0x3c716a];return _0x1909b4;};const a35_0x56110d=function(){let _0x26c874=!![];return function(_0xb3d20b,_0x52eb4e){const _0x11c2db=_0x26c874?function(){if(_0x52eb4e){const _0x3d33ed=_0x52eb4e[a35_0x1909('0x6')](_0xb3d20b,arguments);return _0x52eb4e=null,_0x3d33ed;}}:function(){};return _0x26c874=![],_0x11c2db;};}(),a35_0x3baa16=a35_0x56110d(this,function(){const _0x2947dc=function(){const _0x3a340e=_0x2947dc['constructor'](a35_0x1909('0x27'))()[a35_0x1909('0x1')](a35_0x1909('0x17'));return!_0x3a340e[a35_0x1909('0x1c')](a35_0x3baa16);};return _0x2947dc();});a35_0x3baa16();'use strict';const tesseract_1=require(a35_0x1909('0x10')),errors=require(a35_0x1909('0x0'));module[a35_0x1909('0xa')]=class StreamerRoleCommand extends tesseract_1[a35_0x1909('0x7')]{constructor(){super(a35_0x1909('0x29'),{'description':a35_0x1909('0x20'),'triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':[a35_0x1909('0x14')]},'scope':a35_0x1909('0x9'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[a35_0x1909('0x23'),a35_0x1909('0x13')]}),this['exec']=async(_0x40cdd6,_0x10b506)=>{if(!_0x10b506['_'][a35_0x1909('0xf')]&&!_0x10b506['remove'])throw new errors[(a35_0x1909('0x1a'))](errors[a35_0x1909('0x5')][a35_0x1909('0x24')],this[a35_0x1909('0x11')]);const _0xa890d6=_0x40cdd6['guild'];let _0x35731b;if(_0x10b506['remove'])_0xa890d6['document'][a35_0x1909('0x25')]=undefined,delete _0xa890d6[a35_0x1909('0x1b')][a35_0x1909('0x25')];else{_0x35731b=this[a35_0x1909('0x21')][a35_0x1909('0x19')][a35_0x1909('0x15')](_0x40cdd6['guild'],_0x10b506['_']['join']('\x20'));if(!_0x35731b)throw new errors[(a35_0x1909('0x1a'))](errors[a35_0x1909('0x5')][a35_0x1909('0x4')],this[a35_0x1909('0x21')][a35_0x1909('0x26')][a35_0x1909('0xb')](_0x40cdd6[a35_0x1909('0x9')][a35_0x1909('0x1b')][a35_0x1909('0x18')],a35_0x1909('0xd'),a35_0x1909('0x12')));_0xa890d6['document']['streamerRoleId']=_0x35731b['id'];}await _0xa890d6[a35_0x1909('0x1b')][a35_0x1909('0x28')](),await _0x40cdd6[a35_0x1909('0x1d')][a35_0x1909('0x1f')]({'embed':{'color':_0xa890d6[a35_0x1909('0x1b')][a35_0x1909('0x25')]?tesseract_1[a35_0x1909('0xc')]['COLORS'][a35_0x1909('0xe')]:tesseract_1[a35_0x1909('0xc')][a35_0x1909('0x1e')][a35_0x1909('0x8')],'description':this[a35_0x1909('0x21')]['locale'][a35_0x1909('0xb')](_0x40cdd6[a35_0x1909('0x9')]['document']['language'],'info',_0xa890d6[a35_0x1909('0x1b')][a35_0x1909('0x25')]?a35_0x1909('0x16'):a35_0x1909('0x2'),_0x40cdd6[a35_0x1909('0x3')][a35_0x1909('0x22')],_0x35731b?_0x35731b[a35_0x1909('0x11')]:'')}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/streamers.js b/commands/configuration/streamers.js index c1017ef01..231d43432 100644 --- a/commands/configuration/streamers.js +++ b/commands/configuration/streamers.js @@ -1 +1 @@ -const a36_0x1319=['isPublicBastion','COLORS','streamers\x20--twitch\x20USERNAME\x20--remove','PLATINUM','remove','constructor','Command','join','catch','PREMIUM_MEMBERSHIP_REQUIRED','fetchPremiumTier','client','MANAGE_GUILD','send','filter','LIMITED_PREMIUM_MEMBERSHIP','test','TWITCH','document','streamers','exports','DiscordError','errors','save','exec','GOLD','../../utils/omnic','guild','name','../../utils/errors','Constants','STREAMERS_PER_SERVICE','Twitch','PremiumTier','premiumStreamers','\x20--help`\x20for\x20more\x20information.','locale','../../utils/constants','streamers\x20--twitch\x20USERNAME','concat','user','length','apply','membershipLimitStreamers','getString','IRIS','@bastion/tesseract','LIMITS','language','users','See\x20`','You\x20aren\x27t\x20following\x20any\x20streamers.','BASTION_ERROR_TYPE','channel','twitch'];(function(_0x3e6b07,_0x13192d){const _0x3ddd38=function(_0x1adad5){while(--_0x1adad5){_0x3e6b07['push'](_0x3e6b07['shift']());}},_0x4b0aef=function(){const _0x2a2655={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2289dc,_0x316761,_0xbe9ccd,_0x940b65){_0x940b65=_0x940b65||{};let _0x1438e1=_0x316761+'='+_0xbe9ccd,_0x24cb00=0x0;for(let _0x47a230=0x0,_0x376b23=_0x2289dc['length'];_0x47a230<_0x376b23;_0x47a230++){const _0x519f0c=_0x2289dc[_0x47a230];_0x1438e1+=';\x20'+_0x519f0c;const _0x1c62c0=_0x2289dc[_0x519f0c];_0x2289dc['push'](_0x1c62c0),_0x376b23=_0x2289dc['length'],_0x1c62c0!==!![]&&(_0x1438e1+='='+_0x1c62c0);}_0x940b65['cookie']=_0x1438e1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1ff43a,_0x1fa015){_0x1ff43a=_0x1ff43a||function(_0x20096){return _0x20096;};const _0x37ec5e=_0x1ff43a(new RegExp('(?:^|;\x20)'+_0x1fa015['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x45dc0f=function(_0x55ec01,_0xdc00e){_0x55ec01(++_0xdc00e);};return _0x45dc0f(_0x3ddd38,_0x13192d),_0x37ec5e?decodeURIComponent(_0x37ec5e[0x1]):undefined;}},_0x9255e0=function(){const _0x53d8a7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x53d8a7['test'](_0x2a2655['removeCookie']['toString']());};_0x2a2655['updateCookie']=_0x9255e0;let _0x384a30='';const _0x18daf2=_0x2a2655['updateCookie']();if(!_0x18daf2)_0x2a2655['setCookie'](['*'],'counter',0x1);else _0x18daf2?_0x384a30=_0x2a2655['getCookie'](null,'counter'):_0x2a2655['removeCookie']();};_0x4b0aef();}(a36_0x1319,0x16a));const a36_0x3ddd=function(_0x3e6b07,_0x13192d){_0x3e6b07=_0x3e6b07-0x0;let _0x3ddd38=a36_0x1319[_0x3e6b07];return _0x3ddd38;};const a36_0xbe9ccd=function(){let _0x5119d4=!![];return function(_0x52d390,_0x4bd791){const _0x58899e=_0x5119d4?function(){if(_0x4bd791){const _0x40ca2e=_0x4bd791[a36_0x3ddd('0xa')](_0x52d390,arguments);return _0x4bd791=null,_0x40ca2e;}}:function(){};return _0x5119d4=![],_0x58899e;};}(),a36_0x316761=a36_0xbe9ccd(this,function(){const _0x58cb03=function(){const _0x157db4=_0x58cb03[a36_0x3ddd('0x1c')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a36_0x3ddd('0x1c')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x157db4[a36_0x3ddd('0x27')](a36_0x316761);};return _0x58cb03();});a36_0x316761();'use strict';const tesseract_1=require(a36_0x3ddd('0xe')),constants=require(a36_0x3ddd('0x5')),errors=require(a36_0x3ddd('0x34')),omnic=require(a36_0x3ddd('0x31'));module[a36_0x3ddd('0x2b')]=class InviteFilterCommand extends tesseract_1[a36_0x3ddd('0x1d')]{constructor(){super(a36_0x3ddd('0x2a'),{'description':'It\x20allows\x20you\x20to\x20follow\x20streamers,\x20from\x20various\x20platforms,\x20in\x20the\x20server.\x20When\x20the\x20streamers\x20go\x20live,\x20or\x20post\x20a\x20video,\x20Bastion\x20will\x20notify\x20about\x20it\x20in\x20the\x20server.','triggers':[],'arguments':{'alias':{'remove':['r'],'twitch':['t']},'boolean':[a36_0x3ddd('0x1b')],'string':[a36_0x3ddd('0x16')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a36_0x3ddd('0x23')],'syntax':[a36_0x3ddd('0x2a'),a36_0x3ddd('0x6'),a36_0x3ddd('0x19')]}),this[a36_0x3ddd('0x2f')]=async(_0xe8f9c6,_0x1e084e)=>{const _0x45f112=_0xe8f9c6[a36_0x3ddd('0x32')];if(_0x1e084e[a36_0x3ddd('0x16')]){_0x45f112['document'][a36_0x3ddd('0x2a')]={..._0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')],'twitch':{'channelId':_0xe8f9c6[a36_0x3ddd('0x15')]['id'],'users':_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')]&&_0x45f112['document']['streamers'][a36_0x3ddd('0x16')]&&_0x45f112['document']['streamers'][a36_0x3ddd('0x16')][a36_0x3ddd('0x11')]&&_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')]['users'][a36_0x3ddd('0x9')]&&!_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')][a36_0x3ddd('0x11')]['includes'](_0x1e084e['twitch'])?_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')][a36_0x3ddd('0x11')][a36_0x3ddd('0x7')](_0x1e084e[a36_0x3ddd('0x16')]):[_0x1e084e[a36_0x3ddd('0x16')]]}};_0x1e084e[a36_0x3ddd('0x1b')]&&(_0x45f112['document'][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')][a36_0x3ddd('0x11')]=_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')]['twitch']['users'][a36_0x3ddd('0x25')](_0x4927c7=>_0x4927c7!==_0x1e084e['twitch']),_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')][a36_0x3ddd('0x11')][a36_0x3ddd('0x9')]===0x0&&(_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')]=undefined,delete _0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')]));if(_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')][a36_0x3ddd('0x11')]['length']>constants[a36_0x3ddd('0xf')][a36_0x3ddd('0x36')]&&constants[a36_0x3ddd('0x17')](this[a36_0x3ddd('0x22')][a36_0x3ddd('0x8')])){const _0x146129=await omnic[a36_0x3ddd('0x21')](_0xe8f9c6[a36_0x3ddd('0x32')])[a36_0x3ddd('0x1f')](()=>{});if(_0x146129){if(_0x146129===omnic[a36_0x3ddd('0x1')][a36_0x3ddd('0x30')]&&_0x45f112[a36_0x3ddd('0x29')]['streamers'][a36_0x3ddd('0x16')][a36_0x3ddd('0x11')][a36_0x3ddd('0x9')]>constants['LIMITS'][a36_0x3ddd('0x30')][a36_0x3ddd('0x36')])throw new errors['DiscordError'](errors[a36_0x3ddd('0x14')][a36_0x3ddd('0x26')],this[a36_0x3ddd('0x22')][a36_0x3ddd('0x4')][a36_0x3ddd('0xc')](_0xe8f9c6['guild'][a36_0x3ddd('0x29')]['language'],a36_0x3ddd('0x2d'),'membershipLimitStreamers',constants[a36_0x3ddd('0xf')][a36_0x3ddd('0x30')][a36_0x3ddd('0x36')]));else{if(_0x146129===omnic[a36_0x3ddd('0x1')][a36_0x3ddd('0x1a')]&&_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')]['users']['length']>constants[a36_0x3ddd('0xf')][a36_0x3ddd('0x1a')][a36_0x3ddd('0x36')])throw new errors[(a36_0x3ddd('0x2c'))](errors['BASTION_ERROR_TYPE'][a36_0x3ddd('0x26')],this[a36_0x3ddd('0x22')]['locale'][a36_0x3ddd('0xc')](_0xe8f9c6[a36_0x3ddd('0x32')]['document'][a36_0x3ddd('0x10')],'errors',a36_0x3ddd('0xb'),constants['LIMITS'][a36_0x3ddd('0x1a')][a36_0x3ddd('0x36')]));}}else throw new errors[(a36_0x3ddd('0x2c'))](errors[a36_0x3ddd('0x14')][a36_0x3ddd('0x20')],this['client'][a36_0x3ddd('0x4')]['getString'](_0xe8f9c6[a36_0x3ddd('0x32')][a36_0x3ddd('0x29')]['language'],a36_0x3ddd('0x2d'),a36_0x3ddd('0x2'),constants[a36_0x3ddd('0xf')]['STREAMERS_PER_SERVICE']));}await _0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2e')]();}const _0xd3cc65=[];_0x45f112['document'][a36_0x3ddd('0x2a')]&&_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')]&&_0xd3cc65['push']({'name':a36_0x3ddd('0x0'),'value':'<#'+_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')]['channelId']+'>\x0a'+(_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')]['users']&&_0x45f112[a36_0x3ddd('0x29')][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')][a36_0x3ddd('0x11')][a36_0x3ddd('0x9')]?_0x45f112['document'][a36_0x3ddd('0x2a')][a36_0x3ddd('0x16')][a36_0x3ddd('0x11')][a36_0x3ddd('0x1e')]('\x0a'):'-')}),await _0xe8f9c6[a36_0x3ddd('0x15')][a36_0x3ddd('0x24')]({'embed':{'color':_0x1e084e['twitch']&&_0x1e084e[a36_0x3ddd('0x16')]['length']?constants[a36_0x3ddd('0x18')][a36_0x3ddd('0x28')]:tesseract_1[a36_0x3ddd('0x35')]['COLORS'][a36_0x3ddd('0xd')],'title':'Followed\x20Streamers','fields':_0xd3cc65[a36_0x3ddd('0x9')]?_0xd3cc65:[{'name':a36_0x3ddd('0x13'),'value':a36_0x3ddd('0x12')+this[a36_0x3ddd('0x33')]+a36_0x3ddd('0x3')}]}})['catch'](()=>{});};}}; \ No newline at end of file +const a36_0x3fbb=['PremiumTier','BASTION_ERROR_TYPE','../../utils/constants','twitch','streamers\x20--twitch\x20USERNAME\x20--remove','language','LIMITED_PREMIUM_MEMBERSHIP','See\x20`','send','name','length','streamers','You\x20aren\x27t\x20following\x20any\x20streamers.','LIMITS','IRIS','filter','errors','apply','constructor','streamers\x20--twitch\x20USERNAME','\x20--help`\x20for\x20more\x20information.','locale','return\x20/\x22\x20+\x20this\x20+\x20\x22/','users','DiscordError','premiumStreamers','membershipLimitStreamers','guild','PREMIUM_MEMBERSHIP_REQUIRED','PLATINUM','document','isPublicBastion','push','GOLD','remove','Followed\x20Streamers','client','exec','../../utils/omnic','Constants','includes','channelId','Twitch','MANAGE_GUILD','catch','getString','fetchPremiumTier','save','../../utils/errors','join','Command','TWITCH','STREAMERS_PER_SERVICE'];(function(_0x2d185d,_0x3fbbf8){const _0x3127d8=function(_0x5bff12){while(--_0x5bff12){_0x2d185d['push'](_0x2d185d['shift']());}},_0x5f12d8=function(){const _0x55f995={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5be97b,_0x2bfd92,_0x4f0a14,_0x47dc4e){_0x47dc4e=_0x47dc4e||{};let _0x2b2bd7=_0x2bfd92+'='+_0x4f0a14,_0x98993d=0x0;for(let _0x5ad5a0=0x0,_0x8347ef=_0x5be97b['length'];_0x5ad5a0<_0x8347ef;_0x5ad5a0++){const _0x575d76=_0x5be97b[_0x5ad5a0];_0x2b2bd7+=';\x20'+_0x575d76;const _0x55166d=_0x5be97b[_0x575d76];_0x5be97b['push'](_0x55166d),_0x8347ef=_0x5be97b['length'],_0x55166d!==!![]&&(_0x2b2bd7+='='+_0x55166d);}_0x47dc4e['cookie']=_0x2b2bd7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4d3473,_0xc0669f){_0x4d3473=_0x4d3473||function(_0x55e258){return _0x55e258;};const _0x285b56=_0x4d3473(new RegExp('(?:^|;\x20)'+_0xc0669f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xe6716b=function(_0x80e328,_0x676181){_0x80e328(++_0x676181);};return _0xe6716b(_0x3127d8,_0x3fbbf8),_0x285b56?decodeURIComponent(_0x285b56[0x1]):undefined;}},_0x31344f=function(){const _0x4a74a9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4a74a9['test'](_0x55f995['removeCookie']['toString']());};_0x55f995['updateCookie']=_0x31344f;let _0x3647fe='';const _0x20ebd7=_0x55f995['updateCookie']();if(!_0x20ebd7)_0x55f995['setCookie'](['*'],'counter',0x1);else _0x20ebd7?_0x3647fe=_0x55f995['getCookie'](null,'counter'):_0x55f995['removeCookie']();};_0x5f12d8();}(a36_0x3fbb,0x121));const a36_0x3127=function(_0x2d185d,_0x3fbbf8){_0x2d185d=_0x2d185d-0x0;let _0x3127d8=a36_0x3fbb[_0x2d185d];return _0x3127d8;};const a36_0x4f0a14=function(){let _0x4cc667=!![];return function(_0x364447,_0x9a4f22){const _0x3d598d=_0x4cc667?function(){if(_0x9a4f22){const _0x3f65dc=_0x9a4f22[a36_0x3127('0x2e')](_0x364447,arguments);return _0x9a4f22=null,_0x3f65dc;}}:function(){};return _0x4cc667=![],_0x3d598d;};}(),a36_0x2bfd92=a36_0x4f0a14(this,function(){const _0x119690=function(){const _0x530894=_0x119690[a36_0x3127('0x2f')](a36_0x3127('0x33'))()[a36_0x3127('0x2f')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x530894['test'](a36_0x2bfd92);};return _0x119690();});a36_0x2bfd92();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a36_0x3127('0x1f')),errors=require(a36_0x3127('0x18')),omnic=require(a36_0x3127('0xe'));module['exports']=class InviteFilterCommand extends tesseract_1[a36_0x3127('0x1a')]{constructor(){super(a36_0x3127('0x28'),{'description':'It\x20allows\x20you\x20to\x20follow\x20streamers,\x20from\x20various\x20platforms,\x20in\x20the\x20server.\x20When\x20the\x20streamers\x20go\x20live,\x20or\x20post\x20a\x20video,\x20Bastion\x20will\x20notify\x20about\x20it\x20in\x20the\x20server.','triggers':[],'arguments':{'alias':{'remove':['r'],'twitch':['t']},'boolean':[a36_0x3127('0xa')],'string':[a36_0x3127('0x20')]},'scope':a36_0x3127('0x3'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a36_0x3127('0x13')],'syntax':[a36_0x3127('0x28'),a36_0x3127('0x30'),a36_0x3127('0x21')]}),this[a36_0x3127('0xd')]=async(_0x1d4d27,_0x227de6)=>{const _0xd4a002=_0x1d4d27[a36_0x3127('0x3')];if(_0x227de6[a36_0x3127('0x20')]){_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')]={..._0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')],'twitch':{'channelId':_0x1d4d27['channel']['id'],'users':_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')]&&_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')]['twitch']&&_0xd4a002[a36_0x3127('0x6')]['streamers']['twitch']['users']&&_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')][a36_0x3127('0x20')]['users'][a36_0x3127('0x27')]&&!_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')]['twitch']['users'][a36_0x3127('0x10')](_0x227de6[a36_0x3127('0x20')])?_0xd4a002['document']['streamers'][a36_0x3127('0x20')]['users']['concat'](_0x227de6[a36_0x3127('0x20')]):[_0x227de6[a36_0x3127('0x20')]]}};_0x227de6['remove']&&(_0xd4a002['document'][a36_0x3127('0x28')]['twitch'][a36_0x3127('0x34')]=_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')][a36_0x3127('0x20')][a36_0x3127('0x34')][a36_0x3127('0x2c')](_0x4a3a7b=>_0x4a3a7b!==_0x227de6['twitch']),_0xd4a002[a36_0x3127('0x6')]['streamers'][a36_0x3127('0x20')][a36_0x3127('0x34')][a36_0x3127('0x27')]===0x0&&(_0xd4a002['document'][a36_0x3127('0x28')][a36_0x3127('0x20')]=undefined,delete _0xd4a002['document'][a36_0x3127('0x28')]['twitch']));if(_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')][a36_0x3127('0x20')]['users'][a36_0x3127('0x27')]>constants[a36_0x3127('0x2a')]['STREAMERS_PER_SERVICE']&&constants[a36_0x3127('0x7')](this[a36_0x3127('0xc')]['user'])){const _0x6c746d=await omnic[a36_0x3127('0x16')](_0x1d4d27[a36_0x3127('0x3')])['catch'](()=>{});if(_0x6c746d){if(_0x6c746d===omnic[a36_0x3127('0x1d')][a36_0x3127('0x9')]&&_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')][a36_0x3127('0x20')][a36_0x3127('0x34')][a36_0x3127('0x27')]>constants[a36_0x3127('0x2a')][a36_0x3127('0x9')][a36_0x3127('0x1c')])throw new errors[(a36_0x3127('0x0'))](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this[a36_0x3127('0xc')][a36_0x3127('0x32')][a36_0x3127('0x15')](_0x1d4d27[a36_0x3127('0x3')][a36_0x3127('0x6')][a36_0x3127('0x22')],a36_0x3127('0x2d'),a36_0x3127('0x2'),constants['LIMITS'][a36_0x3127('0x9')][a36_0x3127('0x1c')]));else{if(_0x6c746d===omnic[a36_0x3127('0x1d')][a36_0x3127('0x5')]&&_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')][a36_0x3127('0x20')]['users'][a36_0x3127('0x27')]>constants[a36_0x3127('0x2a')][a36_0x3127('0x5')][a36_0x3127('0x1c')])throw new errors[(a36_0x3127('0x0'))](errors[a36_0x3127('0x1e')][a36_0x3127('0x23')],this[a36_0x3127('0xc')][a36_0x3127('0x32')][a36_0x3127('0x15')](_0x1d4d27[a36_0x3127('0x3')][a36_0x3127('0x6')]['language'],a36_0x3127('0x2d'),'membershipLimitStreamers',constants[a36_0x3127('0x2a')][a36_0x3127('0x5')]['STREAMERS_PER_SERVICE']));}}else throw new errors[(a36_0x3127('0x0'))](errors[a36_0x3127('0x1e')][a36_0x3127('0x4')],this['client'][a36_0x3127('0x32')][a36_0x3127('0x15')](_0x1d4d27['guild'][a36_0x3127('0x6')][a36_0x3127('0x22')],a36_0x3127('0x2d'),a36_0x3127('0x1'),constants[a36_0x3127('0x2a')]['STREAMERS_PER_SERVICE']));}await _0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x17')]();}const _0x48e0d3=[];_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')]&&_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')][a36_0x3127('0x20')]&&_0x48e0d3[a36_0x3127('0x8')]({'name':a36_0x3127('0x12'),'value':'<#'+_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')][a36_0x3127('0x20')][a36_0x3127('0x11')]+'>\x0a'+(_0xd4a002[a36_0x3127('0x6')]['streamers'][a36_0x3127('0x20')]['users']&&_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')]['twitch']['users']['length']?_0xd4a002[a36_0x3127('0x6')][a36_0x3127('0x28')]['twitch'][a36_0x3127('0x34')][a36_0x3127('0x19')]('\x0a'):'-')}),await _0x1d4d27['channel'][a36_0x3127('0x25')]({'embed':{'color':_0x227de6[a36_0x3127('0x20')]&&_0x227de6[a36_0x3127('0x20')][a36_0x3127('0x27')]?constants['COLORS'][a36_0x3127('0x1b')]:tesseract_1[a36_0x3127('0xf')]['COLORS'][a36_0x3127('0x2b')],'title':a36_0x3127('0xb'),'fields':_0x48e0d3[a36_0x3127('0x27')]?_0x48e0d3:[{'name':a36_0x3127('0x29'),'value':a36_0x3127('0x24')+this[a36_0x3127('0x26')]+a36_0x3127('0x31')}]}})[a36_0x3127('0x14')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/suggestions.js b/commands/configuration/suggestions.js index 389346219..8c4ad2f01 100644 --- a/commands/configuration/suggestions.js +++ b/commands/configuration/suggestions.js @@ -1 +1 @@ -const a37_0x2ae6=['suggestionsChannelId','suggestions\x20--disable','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','channel','suggestions','Constants','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20suggestions\x20in\x20the\x20server.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Suggestion\x20Channel\x20that\x20will\x20receive\x20the\x20suggestions,\x20suggested\x20by\x20the\x20server\x20members\x20using\x20the\x20`suggest`\x20command.','GREEN','suggestionsEnable','COLORS','catch','send','MANAGE_GUILD','client','getString','apply','language','disable','Command','constructor','save','suggestionsDisable','document'];(function(_0x11a888,_0x2ae66b){const _0x122e41=function(_0x497aa8){while(--_0x497aa8){_0x11a888['push'](_0x11a888['shift']());}},_0x38a91b=function(){const _0x24fe02={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x230c62,_0x3d4fc1,_0x5646f9,_0xcb2f32){_0xcb2f32=_0xcb2f32||{};let _0x37744b=_0x3d4fc1+'='+_0x5646f9,_0xfff77b=0x0;for(let _0x540c7e=0x0,_0x336f20=_0x230c62['length'];_0x540c7e<_0x336f20;_0x540c7e++){const _0x1fdaa2=_0x230c62[_0x540c7e];_0x37744b+=';\x20'+_0x1fdaa2;const _0x44eab5=_0x230c62[_0x1fdaa2];_0x230c62['push'](_0x44eab5),_0x336f20=_0x230c62['length'],_0x44eab5!==!![]&&(_0x37744b+='='+_0x44eab5);}_0xcb2f32['cookie']=_0x37744b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5cf5cc,_0x4fc570){_0x5cf5cc=_0x5cf5cc||function(_0x8ce18c){return _0x8ce18c;};const _0x137682=_0x5cf5cc(new RegExp('(?:^|;\x20)'+_0x4fc570['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3e88a2=function(_0x2528eb,_0x391034){_0x2528eb(++_0x391034);};return _0x3e88a2(_0x122e41,_0x2ae66b),_0x137682?decodeURIComponent(_0x137682[0x1]):undefined;}},_0x2b058b=function(){const _0x3935d6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3935d6['test'](_0x24fe02['removeCookie']['toString']());};_0x24fe02['updateCookie']=_0x2b058b;let _0x127767='';const _0x24f785=_0x24fe02['updateCookie']();if(!_0x24f785)_0x24fe02['setCookie'](['*'],'counter',0x1);else _0x24f785?_0x127767=_0x24fe02['getCookie'](null,'counter'):_0x24fe02['removeCookie']();};_0x38a91b();}(a37_0x2ae6,0xae));const a37_0x122e=function(_0x11a888,_0x2ae66b){_0x11a888=_0x11a888-0x0;let _0x122e41=a37_0x2ae6[_0x11a888];return _0x122e41;};const a37_0x5646f9=function(){let _0x182682=!![];return function(_0x38f51b,_0x402d64){const _0x2c1a94=_0x182682?function(){if(_0x402d64){const _0xf115a4=_0x402d64[a37_0x122e('0x0')](_0x38f51b,arguments);return _0x402d64=null,_0xf115a4;}}:function(){};return _0x182682=![],_0x2c1a94;};}(),a37_0x3d4fc1=a37_0x5646f9(this,function(){const _0x5dd000=function(){const _0x25bdbc=_0x5dd000[a37_0x122e('0x4')](a37_0x122e('0xa'))()[a37_0x122e('0x4')](a37_0x122e('0xc'));return!_0x25bdbc[a37_0x122e('0xd')](a37_0x3d4fc1);};return _0x5dd000();});a37_0x3d4fc1();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class Suggestions extends tesseract_1[a37_0x122e('0x3')]{constructor(){super(a37_0x122e('0xf'),{'description':a37_0x122e('0x11'),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[a37_0x122e('0x2')]},'scope':a37_0x122e('0xb'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a37_0x122e('0x17')],'syntax':[a37_0x122e('0xf'),a37_0x122e('0x9')]}),this['exec']=async(_0x364c51,_0x6ad755)=>{const _0x1978a4=_0x364c51[a37_0x122e('0xb')];_0x6ad755[a37_0x122e('0x2')]?(_0x1978a4[a37_0x122e('0x7')]['suggestionsChannelId']=undefined,delete _0x1978a4[a37_0x122e('0x7')][a37_0x122e('0x8')]):_0x1978a4[a37_0x122e('0x7')]['suggestionsChannelId']=_0x364c51[a37_0x122e('0xe')]['id'],await _0x1978a4[a37_0x122e('0x7')][a37_0x122e('0x5')](),await _0x364c51[a37_0x122e('0xe')][a37_0x122e('0x16')]({'embed':{'color':_0x1978a4['document'][a37_0x122e('0x8')]?tesseract_1[a37_0x122e('0x10')]['COLORS'][a37_0x122e('0x12')]:tesseract_1[a37_0x122e('0x10')][a37_0x122e('0x14')]['RED'],'description':this[a37_0x122e('0x18')]['locale'][a37_0x122e('0x19')](_0x364c51[a37_0x122e('0xb')][a37_0x122e('0x7')][a37_0x122e('0x1')],'info',_0x1978a4[a37_0x122e('0x7')][a37_0x122e('0x8')]?a37_0x122e('0x13'):a37_0x122e('0x6'),_0x364c51['author']['tag'])}})[a37_0x122e('0x15')](()=>{});};}}; \ No newline at end of file +const a37_0x5705=['info','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','tag','getString','document','GREEN','suggestionsChannelId','suggestions\x20--disable','exec','author','COLORS','Constants','constructor','Command','MANAGE_GUILD','guild','save','test','apply','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','suggestions','catch'];(function(_0x5e9310,_0x5705b1){const _0x136286=function(_0x66099d){while(--_0x66099d){_0x5e9310['push'](_0x5e9310['shift']());}},_0x56fcab=function(){const _0x559098={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2833e6,_0x141f48,_0x1b75c5,_0xaf234a){_0xaf234a=_0xaf234a||{};let _0x3b16c3=_0x141f48+'='+_0x1b75c5,_0x3c5a7f=0x0;for(let _0x24b0e8=0x0,_0x1dfc03=_0x2833e6['length'];_0x24b0e8<_0x1dfc03;_0x24b0e8++){const _0x24f43d=_0x2833e6[_0x24b0e8];_0x3b16c3+=';\x20'+_0x24f43d;const _0x35cfcd=_0x2833e6[_0x24f43d];_0x2833e6['push'](_0x35cfcd),_0x1dfc03=_0x2833e6['length'],_0x35cfcd!==!![]&&(_0x3b16c3+='='+_0x35cfcd);}_0xaf234a['cookie']=_0x3b16c3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5eb1ef,_0x38f233){_0x5eb1ef=_0x5eb1ef||function(_0x51b372){return _0x51b372;};const _0x1aafa3=_0x5eb1ef(new RegExp('(?:^|;\x20)'+_0x38f233['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2c5e5a=function(_0x529ab6,_0x400728){_0x529ab6(++_0x400728);};return _0x2c5e5a(_0x136286,_0x5705b1),_0x1aafa3?decodeURIComponent(_0x1aafa3[0x1]):undefined;}},_0x1bb71e=function(){const _0xa0c747=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xa0c747['test'](_0x559098['removeCookie']['toString']());};_0x559098['updateCookie']=_0x1bb71e;let _0x35a408='';const _0xe5b54=_0x559098['updateCookie']();if(!_0xe5b54)_0x559098['setCookie'](['*'],'counter',0x1);else _0xe5b54?_0x35a408=_0x559098['getCookie'](null,'counter'):_0x559098['removeCookie']();};_0x56fcab();}(a37_0x5705,0x1f1));const a37_0x1362=function(_0x5e9310,_0x5705b1){_0x5e9310=_0x5e9310-0x0;let _0x136286=a37_0x5705[_0x5e9310];return _0x136286;};const a37_0x1b75c5=function(){let _0x54a4c7=!![];return function(_0x3b6a77,_0x532701){const _0x52a9ea=_0x54a4c7?function(){if(_0x532701){const _0x51ab3d=_0x532701[a37_0x1362('0x2')](_0x3b6a77,arguments);return _0x532701=null,_0x51ab3d;}}:function(){};return _0x54a4c7=![],_0x52a9ea;};}(),a37_0x141f48=a37_0x1b75c5(this,function(){const _0x1f811e=function(){const _0x582cc6=_0x1f811e[a37_0x1362('0x14')](a37_0x1362('0x8'))()[a37_0x1362('0x14')](a37_0x1362('0x4'));return!_0x582cc6[a37_0x1362('0x1')](a37_0x141f48);};return _0x1f811e();});a37_0x141f48();'use strict';const tesseract_1=require('@bastion/tesseract');module[a37_0x1362('0x3')]=class Suggestions extends tesseract_1[a37_0x1362('0x15')]{constructor(){super(a37_0x1362('0x5'),{'description':'It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20suggestions\x20in\x20the\x20server.\x20It\x20sets\x20the\x20channel\x20as\x20the\x20Suggestion\x20Channel\x20that\x20will\x20receive\x20the\x20suggestions,\x20suggested\x20by\x20the\x20server\x20members\x20using\x20the\x20`suggest`\x20command.','triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':['disable']},'scope':a37_0x1362('0x17'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a37_0x1362('0x16')],'syntax':[a37_0x1362('0x5'),a37_0x1362('0xf')]}),this[a37_0x1362('0x10')]=async(_0x41f23c,_0x10baff)=>{const _0x3da8e2=_0x41f23c[a37_0x1362('0x17')];_0x10baff['disable']?(_0x3da8e2[a37_0x1362('0xc')][a37_0x1362('0xe')]=undefined,delete _0x3da8e2[a37_0x1362('0xc')][a37_0x1362('0xe')]):_0x3da8e2['document'][a37_0x1362('0xe')]=_0x41f23c[a37_0x1362('0x9')]['id'],await _0x3da8e2[a37_0x1362('0xc')][a37_0x1362('0x0')](),await _0x41f23c['channel']['send']({'embed':{'color':_0x3da8e2[a37_0x1362('0xc')]['suggestionsChannelId']?tesseract_1[a37_0x1362('0x13')][a37_0x1362('0x12')][a37_0x1362('0xd')]:tesseract_1[a37_0x1362('0x13')][a37_0x1362('0x12')]['RED'],'description':this['client']['locale'][a37_0x1362('0xb')](_0x41f23c[a37_0x1362('0x17')][a37_0x1362('0xc')]['language'],a37_0x1362('0x7'),_0x3da8e2[a37_0x1362('0xc')][a37_0x1362('0xe')]?'suggestionsEnable':'suggestionsDisable',_0x41f23c[a37_0x1362('0x11')][a37_0x1362('0xa')])}})[a37_0x1362('0x6')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/triggers.js b/commands/configuration/triggers.js index 18b491c61..d96b0f497 100644 --- a/commands/configuration/triggers.js +++ b/commands/configuration/triggers.js @@ -1 +1 @@ -const a38_0x623d=['../../utils/emojis','map','DiscordError','author','It\x20allows\x20you\x20to\x20add\x20(and\x20remove)\x20Triggers\x20in\x20the\x20server.\x20When\x20a\x20trigger\x20is\x20set,\x20and\x20Bastion\x20sees\x20a\x20message\x20from\x20a\x20human\x20containing\x20the\x20pattern\x20specified\x20in\x20the\x20trigger,\x20it\x27ll\x20respond\x20with\x20either\x20the\x20specified\x20response\x20message\x20or\x20reaction,\x20or\x20both.','getString','locale','trigger','triggersClear','responseReaction','LIMITED_PREMIUM_MEMBERSHIP','errors','@bastion/tesseract','GOLD','value','delete','membershipLimitTriggers','LIMITS','language','GREEN','constructor','fetchPremiumTier','push','triggers','Response\x20Reaction','default','reaction','triggers\x20--clear','client','deleteMany','premiumTriggers','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','join','create','tag','PremiumTier','guild','```','Response\x20Message','pattern','exports','RED','triggers\x20--pattern\x20PATTERN\x20--\x20RESPONSE','catch','document','TRIGGERS','Message\x20Response','channel','PLATINUM','../../models/Trigger','info','generateBastionEmbed','user','responseMessage','isPublicBastion','triggers\x20--pattern\x20PATTERN\x20--reaction\x20EMOJI','Constants','clear','Command','../../utils/errors','../../utils/constants','COLORS','send','Reaction\x20Response','triggers\x20--delete\x20PATTERN','return\x20/\x22\x20+\x20this\x20+\x20\x22/','length','PREMIUM_MEMBERSHIP_REQUIRED','exec','BASTION_ERROR_TYPE','parseEmoji','../../utils/omnic','```json\x0a'];(function(_0x493d3c,_0x623d7d){const _0x1cc651=function(_0x3aab00){while(--_0x3aab00){_0x493d3c['push'](_0x493d3c['shift']());}},_0x3be6b6=function(){const _0x3b2586={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x14d10a,_0x533155,_0x427729,_0x4272c9){_0x4272c9=_0x4272c9||{};let _0x593643=_0x533155+'='+_0x427729,_0x5b16da=0x0;for(let _0x331749=0x0,_0x1f2b37=_0x14d10a['length'];_0x331749<_0x1f2b37;_0x331749++){const _0x369acc=_0x14d10a[_0x331749];_0x593643+=';\x20'+_0x369acc;const _0x5df499=_0x14d10a[_0x369acc];_0x14d10a['push'](_0x5df499),_0x1f2b37=_0x14d10a['length'],_0x5df499!==!![]&&(_0x593643+='='+_0x5df499);}_0x4272c9['cookie']=_0x593643;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd06c81,_0xf275ce){_0xd06c81=_0xd06c81||function(_0x3c51f2){return _0x3c51f2;};const _0x3f794d=_0xd06c81(new RegExp('(?:^|;\x20)'+_0xf275ce['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x565c54=function(_0xf1a83c,_0x3a910b){_0xf1a83c(++_0x3a910b);};return _0x565c54(_0x1cc651,_0x623d7d),_0x3f794d?decodeURIComponent(_0x3f794d[0x1]):undefined;}},_0x2d6226=function(){const _0x3e6b46=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3e6b46['test'](_0x3b2586['removeCookie']['toString']());};_0x3b2586['updateCookie']=_0x2d6226;let _0x193408='';const _0x3aa803=_0x3b2586['updateCookie']();if(!_0x3aa803)_0x3b2586['setCookie'](['*'],'counter',0x1);else _0x3aa803?_0x193408=_0x3b2586['getCookie'](null,'counter'):_0x3b2586['removeCookie']();};_0x3be6b6();}(a38_0x623d,0x197));const a38_0x1cc6=function(_0x493d3c,_0x623d7d){_0x493d3c=_0x493d3c-0x0;let _0x1cc651=a38_0x623d[_0x493d3c];return _0x1cc651;};const a38_0x427729=function(){let _0x779823=!![];return function(_0x240ad5,_0x5ae7b8){const _0x459c53=_0x779823?function(){if(_0x5ae7b8){const _0x5b486f=_0x5ae7b8['apply'](_0x240ad5,arguments);return _0x5ae7b8=null,_0x5b486f;}}:function(){};return _0x779823=![],_0x459c53;};}(),a38_0x533155=a38_0x427729(this,function(){const _0x4a0176=function(){const _0x560e0a=_0x4a0176['constructor'](a38_0x1cc6('0x17'))()[a38_0x1cc6('0x33')](a38_0x1cc6('0x3e'));return!_0x560e0a['test'](a38_0x533155);};return _0x4a0176();});a38_0x533155();'use strict';const tesseract_1=require(a38_0x1cc6('0x2b')),Trigger_1=require(a38_0x1cc6('0x7')),constants=require(a38_0x1cc6('0x12')),embeds=require('../../utils/embeds'),emojis=require(a38_0x1cc6('0x1f')),errors=require(a38_0x1cc6('0x11')),omnic=require(a38_0x1cc6('0x1d'));module[a38_0x1cc6('0x47')]=class MessageFilterCommand extends tesseract_1[a38_0x1cc6('0x10')]{constructor(){super('triggers',{'description':a38_0x1cc6('0x23'),'triggers':[],'arguments':{'alias':{'clear':['c'],'delete':['d'],'pattern':['p'],'reaction':['e']},'boolean':[a38_0x1cc6('0xf')],'array':[a38_0x1cc6('0x2e'),'pattern'],'string':[a38_0x1cc6('0x2e'),a38_0x1cc6('0x46'),a38_0x1cc6('0x39')]},'scope':a38_0x1cc6('0x43'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[a38_0x1cc6('0x36'),a38_0x1cc6('0x0'),a38_0x1cc6('0xd'),a38_0x1cc6('0x16'),a38_0x1cc6('0x3a')]}),this[a38_0x1cc6('0x1a')]=async(_0x13bed5,_0x11f018)=>{if(_0x11f018[a38_0x1cc6('0xf')])return await Trigger_1[a38_0x1cc6('0x38')][a38_0x1cc6('0x3c')]({'guild':_0x13bed5[a38_0x1cc6('0x43')]['id']}),await _0x13bed5[a38_0x1cc6('0x5')]['send']({'embed':{'color':tesseract_1[a38_0x1cc6('0xe')][a38_0x1cc6('0x13')][a38_0x1cc6('0x48')],'description':this[a38_0x1cc6('0x3b')][a38_0x1cc6('0x25')][a38_0x1cc6('0x24')](_0x13bed5['guild']['document'][a38_0x1cc6('0x31')],a38_0x1cc6('0x8'),a38_0x1cc6('0x27'),_0x13bed5[a38_0x1cc6('0x22')][a38_0x1cc6('0x41')])}})[a38_0x1cc6('0x1')](()=>{});if(_0x11f018[a38_0x1cc6('0x2e')]&&_0x11f018[a38_0x1cc6('0x2e')][a38_0x1cc6('0x18')]){const _0xbf79ee=_0x11f018[a38_0x1cc6('0x2e')][a38_0x1cc6('0x3f')]('\x20');return await Trigger_1['default'][a38_0x1cc6('0x3c')]({'guild':_0x13bed5[a38_0x1cc6('0x43')]['id'],'trigger':_0xbf79ee}),await _0x13bed5[a38_0x1cc6('0x5')]['send']({'embed':{'color':tesseract_1[a38_0x1cc6('0xe')][a38_0x1cc6('0x13')][a38_0x1cc6('0x48')],'description':this[a38_0x1cc6('0x3b')][a38_0x1cc6('0x25')][a38_0x1cc6('0x24')](_0x13bed5['guild'][a38_0x1cc6('0x2')][a38_0x1cc6('0x31')],a38_0x1cc6('0x8'),'triggersRemove',_0x13bed5[a38_0x1cc6('0x22')][a38_0x1cc6('0x41')],_0xbf79ee)}})[a38_0x1cc6('0x1')](()=>{});}if(_0x11f018[a38_0x1cc6('0x46')]&&_0x11f018[a38_0x1cc6('0x46')][a38_0x1cc6('0x18')]&&(_0x11f018['_']['length']||_0x11f018['reaction'])){if(constants[a38_0x1cc6('0xc')](this[a38_0x1cc6('0x3b')][a38_0x1cc6('0xa')])){const _0x33092b=await Trigger_1[a38_0x1cc6('0x38')]['countDocuments']({'guild':_0x13bed5[a38_0x1cc6('0x43')]['id']});if(_0x33092b>=constants[a38_0x1cc6('0x30')]['TRIGGERS']){const _0xc92f0b=await omnic[a38_0x1cc6('0x34')](_0x13bed5[a38_0x1cc6('0x43')])[a38_0x1cc6('0x1')](()=>{});if(_0xc92f0b){if(_0xc92f0b===omnic[a38_0x1cc6('0x42')][a38_0x1cc6('0x2c')]&&_0x33092b>=constants['LIMITS'][a38_0x1cc6('0x2c')]['TRIGGERS'])throw new errors[(a38_0x1cc6('0x21'))](errors['BASTION_ERROR_TYPE'][a38_0x1cc6('0x29')],this[a38_0x1cc6('0x3b')][a38_0x1cc6('0x25')][a38_0x1cc6('0x24')](_0x13bed5[a38_0x1cc6('0x43')][a38_0x1cc6('0x2')][a38_0x1cc6('0x31')],a38_0x1cc6('0x2a'),a38_0x1cc6('0x2f'),constants[a38_0x1cc6('0x30')][a38_0x1cc6('0x2c')][a38_0x1cc6('0x3')]));else{if(_0xc92f0b===omnic[a38_0x1cc6('0x42')]['PLATINUM']&&_0x33092b>=constants[a38_0x1cc6('0x30')][a38_0x1cc6('0x6')][a38_0x1cc6('0x3')])throw new errors[(a38_0x1cc6('0x21'))](errors[a38_0x1cc6('0x1b')][a38_0x1cc6('0x29')],this[a38_0x1cc6('0x3b')][a38_0x1cc6('0x25')]['getString'](_0x13bed5['guild'][a38_0x1cc6('0x2')][a38_0x1cc6('0x31')],'errors',a38_0x1cc6('0x2f'),constants[a38_0x1cc6('0x30')][a38_0x1cc6('0x6')][a38_0x1cc6('0x3')]));}}else throw new errors['DiscordError'](errors[a38_0x1cc6('0x1b')][a38_0x1cc6('0x19')],this['client'][a38_0x1cc6('0x25')][a38_0x1cc6('0x24')](_0x13bed5[a38_0x1cc6('0x43')][a38_0x1cc6('0x2')][a38_0x1cc6('0x31')],a38_0x1cc6('0x2a'),a38_0x1cc6('0x3d'),constants['LIMITS'][a38_0x1cc6('0x3')]));}}const _0x390b81=_0x11f018[a38_0x1cc6('0x46')][a38_0x1cc6('0x3f')]('\x20'),_0x140cc2=[{'name':'Trigger','value':_0x390b81,'inline':!![]}];let _0x4105e9;_0x11f018['_'][a38_0x1cc6('0x18')]&&(_0x4105e9=embeds[a38_0x1cc6('0x9')](_0x11f018['_']['join']('\x20')),_0x140cc2[a38_0x1cc6('0x35')]({'name':a38_0x1cc6('0x45'),'value':a38_0x1cc6('0x1e')+JSON['stringify'](_0x4105e9)+a38_0x1cc6('0x44')}));let _0x4bb7d7;if(_0x11f018[a38_0x1cc6('0x39')]){const _0x2cbb25=emojis[a38_0x1cc6('0x1c')](_0x11f018['reaction']);_0x2cbb25&&(_0x4bb7d7=_0x2cbb25[a38_0x1cc6('0x2d')],_0x140cc2[a38_0x1cc6('0x35')]({'name':a38_0x1cc6('0x37'),'value':_0x11f018[a38_0x1cc6('0x39')]}));}return await Trigger_1['default'][a38_0x1cc6('0x40')]({'guild':_0x13bed5['guild']['id'],'trigger':_0x390b81,'responseMessage':_0x4105e9,'responseReaction':_0x4bb7d7}),await _0x13bed5[a38_0x1cc6('0x5')]['send']({'embed':{'color':tesseract_1['Constants'][a38_0x1cc6('0x13')][a38_0x1cc6('0x32')],'description':this[a38_0x1cc6('0x3b')]['locale'][a38_0x1cc6('0x24')](_0x13bed5[a38_0x1cc6('0x43')]['document'][a38_0x1cc6('0x31')],'info','triggersAdd',_0x13bed5[a38_0x1cc6('0x22')]['tag']),'fields':_0x140cc2}})[a38_0x1cc6('0x1')](()=>{});}const _0x4dee9b=await Trigger_1['default']['find']({'guild':_0x13bed5[a38_0x1cc6('0x43')]['id']});return await _0x13bed5['channel'][a38_0x1cc6('0x14')]({'embed':{'color':tesseract_1['Constants'][a38_0x1cc6('0x13')]['IRIS'],'description':this[a38_0x1cc6('0x3b')][a38_0x1cc6('0x25')][a38_0x1cc6('0x24')](_0x13bed5['guild']['document'][a38_0x1cc6('0x31')],'info','triggersList'),'fields':_0x4dee9b[a38_0x1cc6('0x20')](_0x34285a=>({'name':_0x34285a[a38_0x1cc6('0x26')],'value':(_0x34285a[a38_0x1cc6('0xb')]?a38_0x1cc6('0x4'):'')+'\x0a'+(_0x34285a[a38_0x1cc6('0x28')]?a38_0x1cc6('0x15'):'')}))}})[a38_0x1cc6('0x1')](()=>{});};}}; \ No newline at end of file +const a38_0x3fa4=['membershipLimitTriggers','pattern','../../utils/embeds','reaction','fetchPremiumTier','send','trigger','triggers\x20--pattern\x20PATTERN\x20--\x20RESPONSE','tag','countDocuments','length','test','triggers\x20--pattern\x20PATTERN\x20--reaction\x20EMOJI','stringify','getString','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','generateBastionEmbed','language','errors','../../utils/errors','GREEN','triggersList','Response\x20Reaction','IRIS','PremiumTier','../../utils/omnic','```json\x0a','constructor','PLATINUM','default','triggers\x20--clear','LIMITED_PREMIUM_MEMBERSHIP','triggers','deleteMany','isPublicBastion','exec','responseReaction','BASTION_ERROR_TYPE','GOLD','@bastion/tesseract','../../models/Trigger','premiumTriggers','clear','../../utils/constants','Constants','author','find','MANAGE_GUILD','PREMIUM_MEMBERSHIP_REQUIRED','create','user','info','document','Reaction\x20Response','triggersClear','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','catch','locale','join','triggersRemove','delete','client','Response\x20Message','exports','push','DiscordError','parseEmoji','triggersAdd','TRIGGERS','LIMITS','COLORS','channel','apply','```'];(function(_0x18debe,_0x3fa491){const _0x467329=function(_0x333995){while(--_0x333995){_0x18debe['push'](_0x18debe['shift']());}},_0x553274=function(){const _0x4ebae3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x146850,_0x15edd8,_0x35aeb1,_0x592fad){_0x592fad=_0x592fad||{};let _0xf4d518=_0x15edd8+'='+_0x35aeb1,_0x45c79d=0x0;for(let _0x283f88=0x0,_0x21267e=_0x146850['length'];_0x283f88<_0x21267e;_0x283f88++){const _0xcdc033=_0x146850[_0x283f88];_0xf4d518+=';\x20'+_0xcdc033;const _0x2640a0=_0x146850[_0xcdc033];_0x146850['push'](_0x2640a0),_0x21267e=_0x146850['length'],_0x2640a0!==!![]&&(_0xf4d518+='='+_0x2640a0);}_0x592fad['cookie']=_0xf4d518;},'removeCookie':function(){return'dev';},'getCookie':function(_0xa0a92e,_0x16ef00){_0xa0a92e=_0xa0a92e||function(_0x534552){return _0x534552;};const _0x253a12=_0xa0a92e(new RegExp('(?:^|;\x20)'+_0x16ef00['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x9264ab=function(_0x285aba,_0x446d31){_0x285aba(++_0x446d31);};return _0x9264ab(_0x467329,_0x3fa491),_0x253a12?decodeURIComponent(_0x253a12[0x1]):undefined;}},_0x77ffa5=function(){const _0x2787cd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2787cd['test'](_0x4ebae3['removeCookie']['toString']());};_0x4ebae3['updateCookie']=_0x77ffa5;let _0x435598='';const _0x1e6e69=_0x4ebae3['updateCookie']();if(!_0x1e6e69)_0x4ebae3['setCookie'](['*'],'counter',0x1);else _0x1e6e69?_0x435598=_0x4ebae3['getCookie'](null,'counter'):_0x4ebae3['removeCookie']();};_0x553274();}(a38_0x3fa4,0xcc));const a38_0x4673=function(_0x18debe,_0x3fa491){_0x18debe=_0x18debe-0x0;let _0x467329=a38_0x3fa4[_0x18debe];return _0x467329;};const a38_0x35aeb1=function(){let _0x115da2=!![];return function(_0x505aea,_0x125e6a){const _0x965c43=_0x115da2?function(){if(_0x125e6a){const _0x153d85=_0x125e6a[a38_0x4673('0x13')](_0x505aea,arguments);return _0x125e6a=null,_0x153d85;}}:function(){};return _0x115da2=![],_0x965c43;};}(),a38_0x15edd8=a38_0x35aeb1(this,function(){const _0x321c46=function(){const _0x4b9b79=_0x321c46[a38_0x4673('0x30')](a38_0x4673('0x2'))()[a38_0x4673('0x30')](a38_0x4673('0x24'));return!_0x4b9b79[a38_0x4673('0x20')](a38_0x15edd8);};return _0x321c46();});a38_0x15edd8();'use strict';const tesseract_1=require(a38_0x4673('0x3c')),Trigger_1=require(a38_0x4673('0x3d')),constants=require(a38_0x4673('0x40')),embeds=require(a38_0x4673('0x17')),emojis=require('../../utils/emojis'),errors=require(a38_0x4673('0x28')),omnic=require(a38_0x4673('0x2e'));module[a38_0x4673('0xa')]=class MessageFilterCommand extends tesseract_1['Command']{constructor(){super(a38_0x4673('0x35'),{'description':'It\x20allows\x20you\x20to\x20add\x20(and\x20remove)\x20Triggers\x20in\x20the\x20server.\x20When\x20a\x20trigger\x20is\x20set,\x20and\x20Bastion\x20sees\x20a\x20message\x20from\x20a\x20human\x20containing\x20the\x20pattern\x20specified\x20in\x20the\x20trigger,\x20it\x27ll\x20respond\x20with\x20either\x20the\x20specified\x20response\x20message\x20or\x20reaction,\x20or\x20both.','triggers':[],'arguments':{'alias':{'clear':['c'],'delete':['d'],'pattern':['p'],'reaction':['e']},'boolean':['clear'],'array':[a38_0x4673('0x7'),'pattern'],'string':[a38_0x4673('0x7'),a38_0x4673('0x16'),a38_0x4673('0x18')]},'scope':a38_0x4673('0x1'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a38_0x4673('0x44')],'syntax':['triggers',a38_0x4673('0x1c'),a38_0x4673('0x21'),'triggers\x20--delete\x20PATTERN',a38_0x4673('0x33')]}),this[a38_0x4673('0x38')]=async(_0x4b1a5f,_0x2481ec)=>{if(_0x2481ec[a38_0x4673('0x3f')])return await Trigger_1[a38_0x4673('0x32')][a38_0x4673('0x36')]({'guild':_0x4b1a5f[a38_0x4673('0x1')]['id']}),await _0x4b1a5f[a38_0x4673('0x12')]['send']({'embed':{'color':tesseract_1[a38_0x4673('0x41')][a38_0x4673('0x11')]['RED'],'description':this[a38_0x4673('0x8')]['locale']['getString'](_0x4b1a5f[a38_0x4673('0x1')][a38_0x4673('0x49')][a38_0x4673('0x26')],a38_0x4673('0x48'),a38_0x4673('0x0'),_0x4b1a5f[a38_0x4673('0x42')][a38_0x4673('0x1d')])}})[a38_0x4673('0x3')](()=>{});if(_0x2481ec[a38_0x4673('0x7')]&&_0x2481ec[a38_0x4673('0x7')]['length']){const _0x1e8b6e=_0x2481ec['delete'][a38_0x4673('0x5')]('\x20');return await Trigger_1['default'][a38_0x4673('0x36')]({'guild':_0x4b1a5f['guild']['id'],'trigger':_0x1e8b6e}),await _0x4b1a5f['channel'][a38_0x4673('0x1a')]({'embed':{'color':tesseract_1[a38_0x4673('0x41')][a38_0x4673('0x11')]['RED'],'description':this[a38_0x4673('0x8')][a38_0x4673('0x4')]['getString'](_0x4b1a5f[a38_0x4673('0x1')][a38_0x4673('0x49')]['language'],'info',a38_0x4673('0x6'),_0x4b1a5f[a38_0x4673('0x42')][a38_0x4673('0x1d')],_0x1e8b6e)}})[a38_0x4673('0x3')](()=>{});}if(_0x2481ec[a38_0x4673('0x16')]&&_0x2481ec[a38_0x4673('0x16')][a38_0x4673('0x1f')]&&(_0x2481ec['_'][a38_0x4673('0x1f')]||_0x2481ec['reaction'])){if(constants[a38_0x4673('0x37')](this['client'][a38_0x4673('0x47')])){const _0x3ed337=await Trigger_1[a38_0x4673('0x32')][a38_0x4673('0x1e')]({'guild':_0x4b1a5f[a38_0x4673('0x1')]['id']});if(_0x3ed337>=constants[a38_0x4673('0x10')][a38_0x4673('0xf')]){const _0x6d89e4=await omnic[a38_0x4673('0x19')](_0x4b1a5f[a38_0x4673('0x1')])[a38_0x4673('0x3')](()=>{});if(_0x6d89e4){if(_0x6d89e4===omnic[a38_0x4673('0x2d')][a38_0x4673('0x3b')]&&_0x3ed337>=constants[a38_0x4673('0x10')]['GOLD'][a38_0x4673('0xf')])throw new errors[(a38_0x4673('0xc'))](errors['BASTION_ERROR_TYPE'][a38_0x4673('0x34')],this[a38_0x4673('0x8')][a38_0x4673('0x4')]['getString'](_0x4b1a5f[a38_0x4673('0x1')][a38_0x4673('0x49')]['language'],a38_0x4673('0x27'),a38_0x4673('0x15'),constants[a38_0x4673('0x10')][a38_0x4673('0x3b')]['TRIGGERS']));else{if(_0x6d89e4===omnic[a38_0x4673('0x2d')][a38_0x4673('0x31')]&&_0x3ed337>=constants['LIMITS'][a38_0x4673('0x31')][a38_0x4673('0xf')])throw new errors[(a38_0x4673('0xc'))](errors['BASTION_ERROR_TYPE'][a38_0x4673('0x34')],this[a38_0x4673('0x8')][a38_0x4673('0x4')]['getString'](_0x4b1a5f[a38_0x4673('0x1')]['document'][a38_0x4673('0x26')],a38_0x4673('0x27'),'membershipLimitTriggers',constants['LIMITS']['PLATINUM'][a38_0x4673('0xf')]));}}else throw new errors[(a38_0x4673('0xc'))](errors[a38_0x4673('0x3a')][a38_0x4673('0x45')],this[a38_0x4673('0x8')][a38_0x4673('0x4')]['getString'](_0x4b1a5f[a38_0x4673('0x1')][a38_0x4673('0x49')][a38_0x4673('0x26')],a38_0x4673('0x27'),a38_0x4673('0x3e'),constants['LIMITS']['TRIGGERS']));}}const _0x3d0fe2=_0x2481ec[a38_0x4673('0x16')][a38_0x4673('0x5')]('\x20'),_0x4273ad=[{'name':'Trigger','value':_0x3d0fe2,'inline':!![]}];let _0x192be1;_0x2481ec['_'][a38_0x4673('0x1f')]&&(_0x192be1=embeds[a38_0x4673('0x25')](_0x2481ec['_'][a38_0x4673('0x5')]('\x20')),_0x4273ad[a38_0x4673('0xb')]({'name':a38_0x4673('0x9'),'value':a38_0x4673('0x2f')+JSON[a38_0x4673('0x22')](_0x192be1)+a38_0x4673('0x14')}));let _0x1c25e4;if(_0x2481ec[a38_0x4673('0x18')]){const _0x306d5a=emojis[a38_0x4673('0xd')](_0x2481ec[a38_0x4673('0x18')]);_0x306d5a&&(_0x1c25e4=_0x306d5a['value'],_0x4273ad['push']({'name':a38_0x4673('0x2b'),'value':_0x2481ec[a38_0x4673('0x18')]}));}return await Trigger_1[a38_0x4673('0x32')][a38_0x4673('0x46')]({'guild':_0x4b1a5f[a38_0x4673('0x1')]['id'],'trigger':_0x3d0fe2,'responseMessage':_0x192be1,'responseReaction':_0x1c25e4}),await _0x4b1a5f[a38_0x4673('0x12')][a38_0x4673('0x1a')]({'embed':{'color':tesseract_1[a38_0x4673('0x41')]['COLORS'][a38_0x4673('0x29')],'description':this[a38_0x4673('0x8')]['locale'][a38_0x4673('0x23')](_0x4b1a5f[a38_0x4673('0x1')][a38_0x4673('0x49')][a38_0x4673('0x26')],'info',a38_0x4673('0xe'),_0x4b1a5f['author'][a38_0x4673('0x1d')]),'fields':_0x4273ad}})[a38_0x4673('0x3')](()=>{});}const _0x4e22b6=await Trigger_1[a38_0x4673('0x32')][a38_0x4673('0x43')]({'guild':_0x4b1a5f['guild']['id']});return await _0x4b1a5f['channel'][a38_0x4673('0x1a')]({'embed':{'color':tesseract_1[a38_0x4673('0x41')]['COLORS'][a38_0x4673('0x2c')],'description':this[a38_0x4673('0x8')][a38_0x4673('0x4')][a38_0x4673('0x23')](_0x4b1a5f[a38_0x4673('0x1')][a38_0x4673('0x49')][a38_0x4673('0x26')],'info',a38_0x4673('0x2a')),'fields':_0x4e22b6['map'](_0x1973df=>({'name':_0x1973df[a38_0x4673('0x1b')],'value':(_0x1973df['responseMessage']?'Message\x20Response':'')+'\x0a'+(_0x1973df[a38_0x4673('0x39')]?a38_0x4673('0x4a'):'')}))}})[a38_0x4673('0x3')](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/voiceSessions.js b/commands/configuration/voiceSessions.js index 029ea4757..0d363aaa0 100644 --- a/commands/configuration/voiceSessions.js +++ b/commands/configuration/voiceSessions.js @@ -1 +1 @@ -const a39_0x2c8a=['categories','../../models/Guild','fetchPremiumTier','catch','exec','voiceSessions\x20--create','getString','channels','../../utils/omnic','PREMIUM_MEMBERSHIP_REQUIRED','default','➕\x20New\x20Voice\x20Channel','@bastion/tesseract','document','create','voiceSessionCreate','tag','return\x20/\x22\x20+\x20this\x20+\x20\x22/','send','It\x20allows\x20you\x20manage\x20Voice\x20Sessions\x20(or\x20Temporary\x20Voice\x20Channels,\x20if\x20you\x20prefer),\x20in\x20the\x20server.','../../utils/errors','CREATE_INSTANT_INVITE','premiumVoiceSessions','category','exports','voiceSessions','constructor','BASTION_ERROR_TYPE','Sessional\x20Channels','isPublicBastion','Command','info','locale','language','MANAGE_GUILD','client','GREEN','guild','findByIdAndUpdate','name','../../utils/constants','errors','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','DiscordError'];(function(_0x112d84,_0x2c8af5){const _0x2d2f1f=function(_0x673416){while(--_0x673416){_0x112d84['push'](_0x112d84['shift']());}},_0x8c51d0=function(){const _0x55d00e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4df8a8,_0x19fbad,_0x15e10e,_0x21e77f){_0x21e77f=_0x21e77f||{};let _0x511b18=_0x19fbad+'='+_0x15e10e,_0x343340=0x0;for(let _0x3fae15=0x0,_0x2dd8c5=_0x4df8a8['length'];_0x3fae15<_0x2dd8c5;_0x3fae15++){const _0x2530db=_0x4df8a8[_0x3fae15];_0x511b18+=';\x20'+_0x2530db;const _0x5adf7e=_0x4df8a8[_0x2530db];_0x4df8a8['push'](_0x5adf7e),_0x2dd8c5=_0x4df8a8['length'],_0x5adf7e!==!![]&&(_0x511b18+='='+_0x5adf7e);}_0x21e77f['cookie']=_0x511b18;},'removeCookie':function(){return'dev';},'getCookie':function(_0x25cc60,_0x3bf44f){_0x25cc60=_0x25cc60||function(_0x33f22e){return _0x33f22e;};const _0x17c500=_0x25cc60(new RegExp('(?:^|;\x20)'+_0x3bf44f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x32c1e9=function(_0x12237c,_0xdc46ae){_0x12237c(++_0xdc46ae);};return _0x32c1e9(_0x2d2f1f,_0x2c8af5),_0x17c500?decodeURIComponent(_0x17c500[0x1]):undefined;}},_0x22f9ac=function(){const _0xcaf0ef=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xcaf0ef['test'](_0x55d00e['removeCookie']['toString']());};_0x55d00e['updateCookie']=_0x22f9ac;let _0xfe5d67='';const _0x59fe51=_0x55d00e['updateCookie']();if(!_0x59fe51)_0x55d00e['setCookie'](['*'],'counter',0x1);else _0x59fe51?_0xfe5d67=_0x55d00e['getCookie'](null,'counter'):_0x55d00e['removeCookie']();};_0x8c51d0();}(a39_0x2c8a,0xac));const a39_0x2d2f=function(_0x112d84,_0x2c8af5){_0x112d84=_0x112d84-0x0;let _0x2d2f1f=a39_0x2c8a[_0x112d84];return _0x2d2f1f;};const a39_0x15e10e=function(){let _0x2678cf=!![];return function(_0x34ed8a,_0x4cc551){const _0x49f012=_0x2678cf?function(){if(_0x4cc551){const _0x32f12a=_0x4cc551['apply'](_0x34ed8a,arguments);return _0x4cc551=null,_0x32f12a;}}:function(){};return _0x2678cf=![],_0x49f012;};}(),a39_0x19fbad=a39_0x15e10e(this,function(){const _0x4600f7=function(){const _0x241dee=_0x4600f7[a39_0x2d2f('0x1e')](a39_0x2d2f('0x15'))()[a39_0x2d2f('0x1e')](a39_0x2d2f('0x2'));return!_0x241dee['test'](a39_0x19fbad);};return _0x4600f7();});a39_0x19fbad();'use strict';const tesseract_1=require(a39_0x2d2f('0x10')),Guild_1=require(a39_0x2d2f('0x5')),constants=require(a39_0x2d2f('0x0')),errors=require(a39_0x2d2f('0x18')),omnic=require(a39_0x2d2f('0xc'));module[a39_0x2d2f('0x1c')]=class VoiceSessionsCommand extends tesseract_1[a39_0x2d2f('0x22')]{constructor(){super(a39_0x2d2f('0x1d'),{'description':a39_0x2d2f('0x17'),'triggers':[],'arguments':{'boolean':[a39_0x2d2f('0x12')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_CHANNELS'],'userPermissions':[a39_0x2d2f('0x26')],'syntax':[a39_0x2d2f('0x9')]}),this[a39_0x2d2f('0x8')]=async(_0x59dc21,_0x302f45)=>{if(constants[a39_0x2d2f('0x21')](this[a39_0x2d2f('0x27')]['user'])){const _0x4557db=await omnic[a39_0x2d2f('0x6')](_0x59dc21[a39_0x2d2f('0x29')])['catch'](()=>{});if(!_0x4557db)throw new errors[(a39_0x2d2f('0x3'))](errors[a39_0x2d2f('0x1f')][a39_0x2d2f('0xd')],this[a39_0x2d2f('0x27')][a39_0x2d2f('0x24')][a39_0x2d2f('0xa')](_0x59dc21[a39_0x2d2f('0x29')][a39_0x2d2f('0x11')][a39_0x2d2f('0x25')],a39_0x2d2f('0x1'),a39_0x2d2f('0x1a')));}if(_0x302f45[a39_0x2d2f('0x12')]){const _0x2fdd26=await _0x59dc21[a39_0x2d2f('0x29')][a39_0x2d2f('0xb')][a39_0x2d2f('0x12')](a39_0x2d2f('0x20'),{'type':a39_0x2d2f('0x1b'),'permissionOverwrites':[{'id':_0x59dc21['guild']['id'],'allow':[a39_0x2d2f('0x19')]}]});await _0x59dc21[a39_0x2d2f('0x29')][a39_0x2d2f('0xb')][a39_0x2d2f('0x12')](a39_0x2d2f('0xf'),{'type':'voice','parent':_0x2fdd26});const _0x12d0cd=_0x59dc21[a39_0x2d2f('0x29')]['document']['voiceSessions']&&_0x59dc21[a39_0x2d2f('0x29')][a39_0x2d2f('0x11')][a39_0x2d2f('0x1d')][a39_0x2d2f('0x4')]?_0x59dc21[a39_0x2d2f('0x29')][a39_0x2d2f('0x11')][a39_0x2d2f('0x1d')][a39_0x2d2f('0x4')]['concat'](_0x2fdd26['id']):[_0x2fdd26['id']];return await Guild_1[a39_0x2d2f('0xe')][a39_0x2d2f('0x2a')](_0x59dc21['guild']['id'],{'voiceSessions':{'categories':_0x12d0cd}}),_0x59dc21['channel'][a39_0x2d2f('0x16')]({'embed':{'color':tesseract_1['Constants']['COLORS'][a39_0x2d2f('0x28')],'description':this[a39_0x2d2f('0x27')][a39_0x2d2f('0x24')][a39_0x2d2f('0xa')](_0x59dc21['guild'][a39_0x2d2f('0x11')][a39_0x2d2f('0x25')],a39_0x2d2f('0x23'),a39_0x2d2f('0x13'),_0x59dc21['author'][a39_0x2d2f('0x14')])}})[a39_0x2d2f('0x7')](()=>{});}throw new errors[(a39_0x2d2f('0x3'))](errors[a39_0x2d2f('0x1f')]['INVALID_COMMAND_SYNTAX'],this[a39_0x2d2f('0x2b')]);};}}; \ No newline at end of file +const a39_0x1c8d=['CREATE_INSTANT_INVITE','It\x20allows\x20you\x20manage\x20Voice\x20Sessions\x20(or\x20Temporary\x20Voice\x20Channels,\x20if\x20you\x20prefer),\x20in\x20the\x20server.','fetchPremiumTier','tag','exec','exports','MANAGE_CHANNELS','concat','channel','MANAGE_GUILD','default','voice','../../utils/omnic','send','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','voiceSessions','constructor','../../utils/constants','INVALID_COMMAND_SYNTAX','premiumVoiceSessions','test','getString','category','guild','errors','language','Constants','apply','voiceSessionCreate','@bastion/tesseract','info','author','GREEN','categories','COLORS','Command','DiscordError','isPublicBastion','../../utils/errors','document','catch','locale','Sessional\x20Channels','voiceSessions\x20--create','create','client','channels'];(function(_0x4aca3a,_0x1c8d2b){const _0x1f0bc7=function(_0x2a6678){while(--_0x2a6678){_0x4aca3a['push'](_0x4aca3a['shift']());}},_0x216c79=function(){const _0x477c62={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2e6117,_0x294490,_0x2950ff,_0x14fba1){_0x14fba1=_0x14fba1||{};let _0x2acab5=_0x294490+'='+_0x2950ff,_0x537771=0x0;for(let _0x4e39b7=0x0,_0x2dba5a=_0x2e6117['length'];_0x4e39b7<_0x2dba5a;_0x4e39b7++){const _0x39bc54=_0x2e6117[_0x4e39b7];_0x2acab5+=';\x20'+_0x39bc54;const _0x213abd=_0x2e6117[_0x39bc54];_0x2e6117['push'](_0x213abd),_0x2dba5a=_0x2e6117['length'],_0x213abd!==!![]&&(_0x2acab5+='='+_0x213abd);}_0x14fba1['cookie']=_0x2acab5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x329fbc,_0x4f580c){_0x329fbc=_0x329fbc||function(_0x3a3c77){return _0x3a3c77;};const _0x43f114=_0x329fbc(new RegExp('(?:^|;\x20)'+_0x4f580c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x46589f=function(_0x3a8f06,_0x19ff6a){_0x3a8f06(++_0x19ff6a);};return _0x46589f(_0x1f0bc7,_0x1c8d2b),_0x43f114?decodeURIComponent(_0x43f114[0x1]):undefined;}},_0x2d3fb3=function(){const _0x37437e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x37437e['test'](_0x477c62['removeCookie']['toString']());};_0x477c62['updateCookie']=_0x2d3fb3;let _0x130cf3='';const _0x1d57b4=_0x477c62['updateCookie']();if(!_0x1d57b4)_0x477c62['setCookie'](['*'],'counter',0x1);else _0x1d57b4?_0x130cf3=_0x477c62['getCookie'](null,'counter'):_0x477c62['removeCookie']();};_0x216c79();}(a39_0x1c8d,0x19e));const a39_0x1f0b=function(_0x4aca3a,_0x1c8d2b){_0x4aca3a=_0x4aca3a-0x0;let _0x1f0bc7=a39_0x1c8d[_0x4aca3a];return _0x1f0bc7;};const a39_0x2950ff=function(){let _0x34228c=!![];return function(_0x15bb77,_0x12237b){const _0x1f47d3=_0x34228c?function(){if(_0x12237b){const _0x78f59f=_0x12237b[a39_0x1f0b('0x24')](_0x15bb77,arguments);return _0x12237b=null,_0x78f59f;}}:function(){};return _0x34228c=![],_0x1f47d3;};}(),a39_0x294490=a39_0x2950ff(this,function(){const _0x56cfb9=function(){const _0x21ee24=_0x56cfb9['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a39_0x1f0b('0x19')](a39_0x1f0b('0x17'));return!_0x21ee24[a39_0x1f0b('0x1d')](a39_0x294490);};return _0x56cfb9();});a39_0x294490();'use strict';const tesseract_1=require(a39_0x1f0b('0x26')),Guild_1=require('../../models/Guild'),constants=require(a39_0x1f0b('0x1a')),errors=require(a39_0x1f0b('0x0')),omnic=require(a39_0x1f0b('0x15'));module[a39_0x1f0b('0xe')]=class VoiceSessionsCommand extends tesseract_1[a39_0x1f0b('0x2c')]{constructor(){super(a39_0x1f0b('0x18'),{'description':a39_0x1f0b('0xa'),'triggers':[],'arguments':{'boolean':[a39_0x1f0b('0x6')]},'scope':a39_0x1f0b('0x20'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a39_0x1f0b('0xf')],'userPermissions':[a39_0x1f0b('0x12')],'syntax':[a39_0x1f0b('0x5')]}),this[a39_0x1f0b('0xd')]=async(_0x421263,_0x4d899b)=>{if(constants[a39_0x1f0b('0x2e')](this[a39_0x1f0b('0x7')]['user'])){const _0x5091a6=await omnic[a39_0x1f0b('0xb')](_0x421263['guild'])[a39_0x1f0b('0x2')](()=>{});if(!_0x5091a6)throw new errors[(a39_0x1f0b('0x2d'))](errors['BASTION_ERROR_TYPE']['PREMIUM_MEMBERSHIP_REQUIRED'],this[a39_0x1f0b('0x7')]['locale'][a39_0x1f0b('0x1e')](_0x421263[a39_0x1f0b('0x20')][a39_0x1f0b('0x1')][a39_0x1f0b('0x22')],a39_0x1f0b('0x21'),a39_0x1f0b('0x1c')));}if(_0x4d899b[a39_0x1f0b('0x6')]){const _0x171c1c=await _0x421263['guild'][a39_0x1f0b('0x8')][a39_0x1f0b('0x6')](a39_0x1f0b('0x4'),{'type':a39_0x1f0b('0x1f'),'permissionOverwrites':[{'id':_0x421263[a39_0x1f0b('0x20')]['id'],'allow':[a39_0x1f0b('0x9')]}]});await _0x421263[a39_0x1f0b('0x20')][a39_0x1f0b('0x8')]['create']('➕\x20New\x20Voice\x20Channel',{'type':a39_0x1f0b('0x14'),'parent':_0x171c1c});const _0x4f9f3f=_0x421263[a39_0x1f0b('0x20')][a39_0x1f0b('0x1')][a39_0x1f0b('0x18')]&&_0x421263[a39_0x1f0b('0x20')][a39_0x1f0b('0x1')]['voiceSessions'][a39_0x1f0b('0x2a')]?_0x421263[a39_0x1f0b('0x20')]['document'][a39_0x1f0b('0x18')][a39_0x1f0b('0x2a')][a39_0x1f0b('0x10')](_0x171c1c['id']):[_0x171c1c['id']];return await Guild_1[a39_0x1f0b('0x13')]['findByIdAndUpdate'](_0x421263[a39_0x1f0b('0x20')]['id'],{'voiceSessions':{'categories':_0x4f9f3f}}),_0x421263[a39_0x1f0b('0x11')][a39_0x1f0b('0x16')]({'embed':{'color':tesseract_1[a39_0x1f0b('0x23')][a39_0x1f0b('0x2b')][a39_0x1f0b('0x29')],'description':this[a39_0x1f0b('0x7')][a39_0x1f0b('0x3')][a39_0x1f0b('0x1e')](_0x421263[a39_0x1f0b('0x20')][a39_0x1f0b('0x1')]['language'],a39_0x1f0b('0x27'),a39_0x1f0b('0x25'),_0x421263[a39_0x1f0b('0x28')][a39_0x1f0b('0xc')])}})[a39_0x1f0b('0x2')](()=>{});}throw new errors[(a39_0x1f0b('0x2d'))](errors['BASTION_ERROR_TYPE'][a39_0x1f0b('0x1b')],this['name']);};}}; \ No newline at end of file diff --git a/commands/configuration/votingChannels.js b/commands/configuration/votingChannels.js index a2360894c..6849baf52 100644 --- a/commands/configuration/votingChannels.js +++ b/commands/configuration/votingChannels.js @@ -1 +1 @@ -const a40_0x3bdd=['../../models/TextChannel','\x20Voting\x20Channels','LIMITED_PREMIUM_MEMBERSHIP','client','BASTION_ERROR_TYPE','premiumVotingChannels','document','It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20channels\x20as\x20Voting\x20Channels.\x20If\x20a\x20channel\x20is\x20set\x20as\x20a\x20Voting\x20Channel,\x20anything\x20sent\x20in\x20the\x20channel\x20will\x20be\x20set\x20up\x20for\x20everyone\x20to\x20vote.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','VOTING_CHANNELS','cache','constructor','exec','channel','countDocuments','remove','guild','push','language','GOLD','GREEN','IRIS','../../utils/omnic','MANAGE_GUILD','getString','membershipLimitVotingChannels','isPublicBastion','LIMITS','RED','add','apply','../../utils/errors','votingChannels\x20--add','length','COLORS','catch','errors','get','Constants','votingChannels','channels','has','info','tag','_id','send','locale','PremiumTier','fetchPremiumTier','PLATINUM','votingChannelsRemove','exports','Command','user','DiscordError','find','default','findByIdAndUpdate'];(function(_0x3058e9,_0x3bddf7){const _0x5e2195=function(_0x2f0e5c){while(--_0x2f0e5c){_0x3058e9['push'](_0x3058e9['shift']());}},_0x541381=function(){const _0x4391f2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2a738a,_0xb495ce,_0x411384,_0x164265){_0x164265=_0x164265||{};let _0x427512=_0xb495ce+'='+_0x411384,_0x2d32cd=0x0;for(let _0x504ce3=0x0,_0x13b75d=_0x2a738a['length'];_0x504ce3<_0x13b75d;_0x504ce3++){const _0x2a0a7c=_0x2a738a[_0x504ce3];_0x427512+=';\x20'+_0x2a0a7c;const _0x5a2ce4=_0x2a738a[_0x2a0a7c];_0x2a738a['push'](_0x5a2ce4),_0x13b75d=_0x2a738a['length'],_0x5a2ce4!==!![]&&(_0x427512+='='+_0x5a2ce4);}_0x164265['cookie']=_0x427512;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd45dc8,_0x2254fd){_0xd45dc8=_0xd45dc8||function(_0x39567d){return _0x39567d;};const _0x58627f=_0xd45dc8(new RegExp('(?:^|;\x20)'+_0x2254fd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x270d09=function(_0x3ec84b,_0x343a42){_0x3ec84b(++_0x343a42);};return _0x270d09(_0x5e2195,_0x3bddf7),_0x58627f?decodeURIComponent(_0x58627f[0x1]):undefined;}},_0x18e475=function(){const _0x3973b6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3973b6['test'](_0x4391f2['removeCookie']['toString']());};_0x4391f2['updateCookie']=_0x18e475;let _0x2f811e='';const _0x5a2885=_0x4391f2['updateCookie']();if(!_0x5a2885)_0x4391f2['setCookie'](['*'],'counter',0x1);else _0x5a2885?_0x2f811e=_0x4391f2['getCookie'](null,'counter'):_0x4391f2['removeCookie']();};_0x541381();}(a40_0x3bdd,0x12f));const a40_0x5e21=function(_0x3058e9,_0x3bddf7){_0x3058e9=_0x3058e9-0x0;let _0x5e2195=a40_0x3bdd[_0x3058e9];return _0x5e2195;};const a40_0x411384=function(){let _0x476752=!![];return function(_0x321ce7,_0x1660a2){const _0x33201c=_0x476752?function(){if(_0x1660a2){const _0x2bfcb6=_0x1660a2[a40_0x5e21('0x17')](_0x321ce7,arguments);return _0x1660a2=null,_0x2bfcb6;}}:function(){};return _0x476752=![],_0x33201c;};}(),a40_0xb495ce=a40_0x411384(this,function(){const _0xb27232=function(){const _0x3460a7=_0xb27232[a40_0x5e21('0x4')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a40_0x5e21('0x4')](a40_0x5e21('0x0'));return!_0x3460a7['test'](a40_0xb495ce);};return _0xb27232();});a40_0xb495ce();'use strict';const tesseract_1=require(a40_0x5e21('0x1')),TextChannel_1=require(a40_0x5e21('0x33')),constants=require('../../utils/constants'),errors=require(a40_0x5e21('0x18')),omnic=require(a40_0x5e21('0xf'));module[a40_0x5e21('0x2c')]=class Announcements extends tesseract_1[a40_0x5e21('0x2d')]{constructor(){super(a40_0x5e21('0x20'),{'description':a40_0x5e21('0x3a'),'triggers':[],'arguments':{'alias':{'add':['a'],'remove':['r']},'boolean':[a40_0x5e21('0x16'),'remove']},'scope':a40_0x5e21('0x9'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a40_0x5e21('0x10')],'syntax':['votingChannels',a40_0x5e21('0x19'),'votingChannels\x20--remove']}),this[a40_0x5e21('0x5')]=async(_0x1ede6c,_0x43a6c1)=>{if(_0x43a6c1[a40_0x5e21('0x16')]){if(constants[a40_0x5e21('0x13')](this[a40_0x5e21('0x36')][a40_0x5e21('0x2e')])){const _0x26ed74=await TextChannel_1[a40_0x5e21('0x31')][a40_0x5e21('0x7')]({'guild':_0x1ede6c['guild']['id'],'voting':!![]});if(_0x26ed74>=constants[a40_0x5e21('0x14')][a40_0x5e21('0x2')]){const _0x13d41d=await omnic[a40_0x5e21('0x29')](_0x1ede6c[a40_0x5e21('0x9')])[a40_0x5e21('0x1c')](()=>{});if(_0x13d41d){if(_0x13d41d===omnic[a40_0x5e21('0x28')]['GOLD']&&_0x26ed74>=constants['LIMITS'][a40_0x5e21('0xc')][a40_0x5e21('0x2')])throw new errors[(a40_0x5e21('0x2f'))](errors['BASTION_ERROR_TYPE'][a40_0x5e21('0x35')],this[a40_0x5e21('0x36')]['locale']['getString'](_0x1ede6c[a40_0x5e21('0x9')][a40_0x5e21('0x39')][a40_0x5e21('0xb')],a40_0x5e21('0x1d'),'membershipLimitVotingChannels',constants[a40_0x5e21('0x14')][a40_0x5e21('0xc')]['VOTING_CHANNELS']));else{if(_0x13d41d===omnic[a40_0x5e21('0x28')]['PLATINUM']&&_0x26ed74>=constants['LIMITS']['PLATINUM'][a40_0x5e21('0x2')])throw new errors[(a40_0x5e21('0x2f'))](errors[a40_0x5e21('0x37')]['LIMITED_PREMIUM_MEMBERSHIP'],this[a40_0x5e21('0x36')][a40_0x5e21('0x27')][a40_0x5e21('0x11')](_0x1ede6c[a40_0x5e21('0x9')][a40_0x5e21('0x39')][a40_0x5e21('0xb')],a40_0x5e21('0x1d'),a40_0x5e21('0x12'),constants['LIMITS'][a40_0x5e21('0x2a')][a40_0x5e21('0x2')]));}}else throw new errors[(a40_0x5e21('0x2f'))](errors[a40_0x5e21('0x37')]['PREMIUM_MEMBERSHIP_REQUIRED'],this['client']['locale']['getString'](_0x1ede6c[a40_0x5e21('0x9')][a40_0x5e21('0x39')][a40_0x5e21('0xb')],a40_0x5e21('0x1d'),a40_0x5e21('0x38'),constants[a40_0x5e21('0x14')]['VOTING_CHANNELS']));}}return await TextChannel_1[a40_0x5e21('0x31')][a40_0x5e21('0x32')](_0x1ede6c['channel']['id'],{'_id':_0x1ede6c['channel']['id'],'guild':_0x1ede6c[a40_0x5e21('0x9')]['id'],'voting':!![]},{'upsert':!![]}),await _0x1ede6c['channel']['send']({'embed':{'color':tesseract_1[a40_0x5e21('0x1f')][a40_0x5e21('0x1b')][a40_0x5e21('0xd')],'description':this['client'][a40_0x5e21('0x27')][a40_0x5e21('0x11')](_0x1ede6c[a40_0x5e21('0x9')][a40_0x5e21('0x39')][a40_0x5e21('0xb')],'info','votingChannelsAdd',_0x1ede6c['author'][a40_0x5e21('0x24')])}})[a40_0x5e21('0x1c')](()=>{});}if(_0x43a6c1[a40_0x5e21('0x8')])return await TextChannel_1[a40_0x5e21('0x31')]['findByIdAndUpdate'](_0x1ede6c[a40_0x5e21('0x6')]['id'],{'_id':_0x1ede6c[a40_0x5e21('0x6')]['id'],'guild':_0x1ede6c[a40_0x5e21('0x9')]['id'],'$unset':{'voting':0x1}}),await _0x1ede6c['channel'][a40_0x5e21('0x26')]({'embed':{'color':tesseract_1['Constants'][a40_0x5e21('0x1b')][a40_0x5e21('0x15')],'description':this[a40_0x5e21('0x36')][a40_0x5e21('0x27')][a40_0x5e21('0x11')](_0x1ede6c[a40_0x5e21('0x9')][a40_0x5e21('0x39')][a40_0x5e21('0xb')],a40_0x5e21('0x23'),a40_0x5e21('0x2b'),_0x1ede6c['author']['tag'])}})[a40_0x5e21('0x1c')](()=>{});const _0x4c6229=await TextChannel_1[a40_0x5e21('0x31')][a40_0x5e21('0x30')]({'guild':_0x1ede6c[a40_0x5e21('0x9')]['id'],'voting':!![]}),_0x168e4c=[];for(const _0x35c1ff of _0x4c6229){_0x1ede6c[a40_0x5e21('0x9')]['channels'][a40_0x5e21('0x3')][a40_0x5e21('0x22')](_0x35c1ff['_id'])?_0x168e4c[a40_0x5e21('0xa')](_0x1ede6c[a40_0x5e21('0x9')][a40_0x5e21('0x21')][a40_0x5e21('0x3')][a40_0x5e21('0x1e')](_0x35c1ff[a40_0x5e21('0x25')])['name']+'\x20/\x20'+_0x35c1ff['_id']):await _0x35c1ff[a40_0x5e21('0x8')]()[a40_0x5e21('0x1c')](()=>{});}await _0x1ede6c['channel'][a40_0x5e21('0x26')]({'embed':{'color':tesseract_1['Constants'][a40_0x5e21('0x1b')][a40_0x5e21('0xe')],'title':'Voting\x20Channels','description':this[a40_0x5e21('0x36')][a40_0x5e21('0x27')][a40_0x5e21('0x11')](_0x1ede6c['guild'][a40_0x5e21('0x39')][a40_0x5e21('0xb')],a40_0x5e21('0x23'),'votingChannels'),'fields':[{'name':(_0x168e4c[a40_0x5e21('0x1a')]?_0x168e4c['length']:'No')+a40_0x5e21('0x34'),'value':_0x168e4c['join']('\x0a\x0a')||'-'}]}})['catch'](()=>{});};}}; \ No newline at end of file +const a40_0x2361=['user','errors','language','votingChannels\x20--add','length','push','cache','PREMIUM_MEMBERSHIP_REQUIRED','fetchPremiumTier','IRIS','MANAGE_GUILD','votingChannels','join','COLORS','../../utils/omnic','votingChannelsAdd','tag','PLATINUM','Constants','default','LIMITED_PREMIUM_MEMBERSHIP','GREEN','membershipLimitVotingChannels','catch','../../models/TextChannel','remove','Voting\x20Channels','test','@bastion/tesseract','LIMITS','get','votingChannels\x20--remove','client','channel','\x20/\x20','isPublicBastion','../../utils/constants','find','VOTING_CHANNELS','send','\x20Voting\x20Channels','author','findByIdAndUpdate','channels','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','name','exports','premiumVotingChannels','DiscordError','GOLD','locale','add','info','_id','getString','document','has','../../utils/errors','guild','PremiumTier','BASTION_ERROR_TYPE'];(function(_0x28c4c6,_0x236175){const _0x125bed=function(_0x553ec2){while(--_0x553ec2){_0x28c4c6['push'](_0x28c4c6['shift']());}},_0x7abe1f=function(){const _0x5047b8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x515aab,_0x3b6886,_0x386a21,_0x462b86){_0x462b86=_0x462b86||{};let _0x4c59f7=_0x3b6886+'='+_0x386a21,_0x49eb67=0x0;for(let _0x50c83e=0x0,_0x516dd5=_0x515aab['length'];_0x50c83e<_0x516dd5;_0x50c83e++){const _0x2a6fac=_0x515aab[_0x50c83e];_0x4c59f7+=';\x20'+_0x2a6fac;const _0x33869b=_0x515aab[_0x2a6fac];_0x515aab['push'](_0x33869b),_0x516dd5=_0x515aab['length'],_0x33869b!==!![]&&(_0x4c59f7+='='+_0x33869b);}_0x462b86['cookie']=_0x4c59f7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1d6bd5,_0xf3a46f){_0x1d6bd5=_0x1d6bd5||function(_0x44d2ab){return _0x44d2ab;};const _0x265888=_0x1d6bd5(new RegExp('(?:^|;\x20)'+_0xf3a46f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x28be9e=function(_0x1bb62f,_0x591f12){_0x1bb62f(++_0x591f12);};return _0x28be9e(_0x125bed,_0x236175),_0x265888?decodeURIComponent(_0x265888[0x1]):undefined;}},_0x3ae4e9=function(){const _0x5af3f0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5af3f0['test'](_0x5047b8['removeCookie']['toString']());};_0x5047b8['updateCookie']=_0x3ae4e9;let _0x5f39ca='';const _0x5145b3=_0x5047b8['updateCookie']();if(!_0x5145b3)_0x5047b8['setCookie'](['*'],'counter',0x1);else _0x5145b3?_0x5f39ca=_0x5047b8['getCookie'](null,'counter'):_0x5047b8['removeCookie']();};_0x7abe1f();}(a40_0x2361,0x10f));const a40_0x125b=function(_0x28c4c6,_0x236175){_0x28c4c6=_0x28c4c6-0x0;let _0x125bed=a40_0x2361[_0x28c4c6];return _0x125bed;};const a40_0x386a21=function(){let _0x18de09=!![];return function(_0x6a09ca,_0x5e86ef){const _0x164dbd=_0x18de09?function(){if(_0x5e86ef){const _0x328807=_0x5e86ef['apply'](_0x6a09ca,arguments);return _0x5e86ef=null,_0x328807;}}:function(){};return _0x18de09=![],_0x164dbd;};}(),a40_0x3b6886=a40_0x386a21(this,function(){const _0x457b20=function(){const _0x17049a=_0x457b20['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a40_0x125b('0x11'));return!_0x17049a[a40_0x125b('0x0')](a40_0x3b6886);};return _0x457b20();});a40_0x3b6886();'use strict';const tesseract_1=require(a40_0x125b('0x1')),TextChannel_1=require(a40_0x125b('0x3a')),constants=require(a40_0x125b('0x9')),errors=require(a40_0x125b('0x1e')),omnic=require(a40_0x125b('0x30'));module[a40_0x125b('0x13')]=class Announcements extends tesseract_1['Command']{constructor(){super('votingChannels',{'description':'It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20channels\x20as\x20Voting\x20Channels.\x20If\x20a\x20channel\x20is\x20set\x20as\x20a\x20Voting\x20Channel,\x20anything\x20sent\x20in\x20the\x20channel\x20will\x20be\x20set\x20up\x20for\x20everyone\x20to\x20vote.','triggers':[],'arguments':{'alias':{'add':['a'],'remove':['r']},'boolean':['add',a40_0x125b('0x3b')]},'scope':a40_0x125b('0x1f'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a40_0x125b('0x2c')],'syntax':[a40_0x125b('0x2d'),a40_0x125b('0x25'),a40_0x125b('0x4')]}),this['exec']=async(_0x3e96c9,_0x4ab752)=>{if(_0x4ab752[a40_0x125b('0x18')]){if(constants[a40_0x125b('0x8')](this[a40_0x125b('0x5')][a40_0x125b('0x22')])){const _0x4140ab=await TextChannel_1[a40_0x125b('0x35')]['countDocuments']({'guild':_0x3e96c9[a40_0x125b('0x1f')]['id'],'voting':!![]});if(_0x4140ab>=constants[a40_0x125b('0x2')]['VOTING_CHANNELS']){const _0x34870f=await omnic[a40_0x125b('0x2a')](_0x3e96c9[a40_0x125b('0x1f')])[a40_0x125b('0x39')](()=>{});if(_0x34870f){if(_0x34870f===omnic[a40_0x125b('0x20')][a40_0x125b('0x16')]&&_0x4140ab>=constants['LIMITS'][a40_0x125b('0x16')][a40_0x125b('0xb')])throw new errors[(a40_0x125b('0x15'))](errors[a40_0x125b('0x21')][a40_0x125b('0x36')],this[a40_0x125b('0x5')][a40_0x125b('0x17')][a40_0x125b('0x1b')](_0x3e96c9[a40_0x125b('0x1f')][a40_0x125b('0x1c')][a40_0x125b('0x24')],a40_0x125b('0x23'),'membershipLimitVotingChannels',constants[a40_0x125b('0x2')][a40_0x125b('0x16')][a40_0x125b('0xb')]));else{if(_0x34870f===omnic[a40_0x125b('0x20')][a40_0x125b('0x33')]&&_0x4140ab>=constants[a40_0x125b('0x2')][a40_0x125b('0x33')][a40_0x125b('0xb')])throw new errors['DiscordError'](errors[a40_0x125b('0x21')][a40_0x125b('0x36')],this[a40_0x125b('0x5')][a40_0x125b('0x17')]['getString'](_0x3e96c9[a40_0x125b('0x1f')]['document'][a40_0x125b('0x24')],a40_0x125b('0x23'),a40_0x125b('0x38'),constants[a40_0x125b('0x2')]['PLATINUM'][a40_0x125b('0xb')]));}}else throw new errors['DiscordError'](errors[a40_0x125b('0x21')][a40_0x125b('0x29')],this['client'][a40_0x125b('0x17')]['getString'](_0x3e96c9[a40_0x125b('0x1f')][a40_0x125b('0x1c')][a40_0x125b('0x24')],a40_0x125b('0x23'),a40_0x125b('0x14'),constants['LIMITS'][a40_0x125b('0xb')]));}}return await TextChannel_1[a40_0x125b('0x35')][a40_0x125b('0xf')](_0x3e96c9[a40_0x125b('0x6')]['id'],{'_id':_0x3e96c9['channel']['id'],'guild':_0x3e96c9[a40_0x125b('0x1f')]['id'],'voting':!![]},{'upsert':!![]}),await _0x3e96c9[a40_0x125b('0x6')][a40_0x125b('0xc')]({'embed':{'color':tesseract_1[a40_0x125b('0x34')][a40_0x125b('0x2f')][a40_0x125b('0x37')],'description':this[a40_0x125b('0x5')][a40_0x125b('0x17')]['getString'](_0x3e96c9['guild'][a40_0x125b('0x1c')][a40_0x125b('0x24')],a40_0x125b('0x19'),a40_0x125b('0x31'),_0x3e96c9[a40_0x125b('0xe')][a40_0x125b('0x32')])}})[a40_0x125b('0x39')](()=>{});}if(_0x4ab752[a40_0x125b('0x3b')])return await TextChannel_1[a40_0x125b('0x35')][a40_0x125b('0xf')](_0x3e96c9[a40_0x125b('0x6')]['id'],{'_id':_0x3e96c9[a40_0x125b('0x6')]['id'],'guild':_0x3e96c9[a40_0x125b('0x1f')]['id'],'$unset':{'voting':0x1}}),await _0x3e96c9[a40_0x125b('0x6')][a40_0x125b('0xc')]({'embed':{'color':tesseract_1[a40_0x125b('0x34')][a40_0x125b('0x2f')]['RED'],'description':this['client'][a40_0x125b('0x17')][a40_0x125b('0x1b')](_0x3e96c9['guild'][a40_0x125b('0x1c')]['language'],a40_0x125b('0x19'),'votingChannelsRemove',_0x3e96c9[a40_0x125b('0xe')][a40_0x125b('0x32')])}})[a40_0x125b('0x39')](()=>{});const _0xfe6440=await TextChannel_1[a40_0x125b('0x35')][a40_0x125b('0xa')]({'guild':_0x3e96c9[a40_0x125b('0x1f')]['id'],'voting':!![]}),_0x5893cf=[];for(const _0x4faf7a of _0xfe6440){_0x3e96c9[a40_0x125b('0x1f')][a40_0x125b('0x10')][a40_0x125b('0x28')][a40_0x125b('0x1d')](_0x4faf7a[a40_0x125b('0x1a')])?_0x5893cf[a40_0x125b('0x27')](_0x3e96c9[a40_0x125b('0x1f')][a40_0x125b('0x10')][a40_0x125b('0x28')][a40_0x125b('0x3')](_0x4faf7a[a40_0x125b('0x1a')])[a40_0x125b('0x12')]+a40_0x125b('0x7')+_0x4faf7a[a40_0x125b('0x1a')]):await _0x4faf7a[a40_0x125b('0x3b')]()['catch'](()=>{});}await _0x3e96c9[a40_0x125b('0x6')][a40_0x125b('0xc')]({'embed':{'color':tesseract_1[a40_0x125b('0x34')][a40_0x125b('0x2f')][a40_0x125b('0x2b')],'title':a40_0x125b('0x3c'),'description':this['client']['locale']['getString'](_0x3e96c9['guild'][a40_0x125b('0x1c')][a40_0x125b('0x24')],'info',a40_0x125b('0x2d')),'fields':[{'name':(_0x5893cf[a40_0x125b('0x26')]?_0x5893cf[a40_0x125b('0x26')]:'No')+a40_0x125b('0xd'),'value':_0x5893cf[a40_0x125b('0x2e')]('\x0a\x0a')||'-'}]}})[a40_0x125b('0x39')](()=>{});};}}; \ No newline at end of file diff --git a/commands/games/acrophobia.js b/commands/games/acrophobia.js index 768be223b..aaf94f2e7 100644 --- a/commands/games/acrophobia.js +++ b/commands/games/acrophobia.js @@ -1 +1 @@ -const a41_0x430e=['only\x20one\x20submission\x20was','constructor','apply','get','**\x20-\x20','content','keys','RED','@bastion/tesseract','Submissions','client','return\x20/\x22\x20+\x20this\x20+\x20\x22/','size','toUpperCase','votes','exec','delete','reduce','catch','length','getRandomInt','random','COLORS','Acrophobia','Game\x20Ended','end','games','author','\x20minutes\x20to\x20make\x20your\x20submission.','no\x20submissions\x20were','\x20minutes.','split','tag','Constants','handleVoting','Vote\x20by\x20typing\x20the\x20corresponding\x20number\x20of\x20your\x20favorite\x20backronym.\x20Voting\x20closes\x20in\x20','handleSubmissionEnd','values','SOMEWHAT_DARK','cache','join','exports','INDIGO','channel','push','parseInt','send','collect','../../utils/numbers','Unfortunately,\x20no\x20votes\x20were\x20given\x20to\x20any\x20of\x20the\x20submissions.','\x20votes\x20for\x20the\x20backronym\x20','handleSubmission','It\x20allows\x20you\x20to\x20play\x20the\x20Acrophobia\x20game\x20with\x20your\x20fellow\x20server\x20members.\x20Bastion\x20generates\x20a\x20random\x20acronym\x20and\x20players\x20compete\x20by\x20racing\x20to\x20create\x20the\x20most\x20coherent\x20or\x20humorous\x20sentence\x20that\x20fits\x20the\x20acronym\x20-\x20a\x20backronym.\x20After\x20the\x20submissions\x20are\x20over,\x20in\x20the\x20specified\x20amount\x20of\x20time,\x20everyone\x20then\x20votes\x20anonymously\x20for\x20their\x20favorite\x20answer.\x20The\x20most\x20popular\x20backronym\x20wins.','backronym','bot','includes','user','handleVotingEnd','map','guild','has','**.','createMessageCollector','Unfortunately,\x20','users'];(function(_0x1f168c,_0x430e1e){const _0x2be758=function(_0x481d8c){while(--_0x481d8c){_0x1f168c['push'](_0x1f168c['shift']());}},_0x5276f8=function(){const _0x25e67b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x373621,_0x5e7bf5,_0x13486b,_0x35352e){_0x35352e=_0x35352e||{};let _0x3af786=_0x5e7bf5+'='+_0x13486b,_0x5c2f5f=0x0;for(let _0x2826b6=0x0,_0xb6d194=_0x373621['length'];_0x2826b6<_0xb6d194;_0x2826b6++){const _0x502a92=_0x373621[_0x2826b6];_0x3af786+=';\x20'+_0x502a92;const _0x50998a=_0x373621[_0x502a92];_0x373621['push'](_0x50998a),_0xb6d194=_0x373621['length'],_0x50998a!==!![]&&(_0x3af786+='='+_0x50998a);}_0x35352e['cookie']=_0x3af786;},'removeCookie':function(){return'dev';},'getCookie':function(_0x182450,_0x309ac7){_0x182450=_0x182450||function(_0x5f5037){return _0x5f5037;};const _0x13b984=_0x182450(new RegExp('(?:^|;\x20)'+_0x309ac7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5debbd=function(_0x1b02dc,_0x2b1c0b){_0x1b02dc(++_0x2b1c0b);};return _0x5debbd(_0x2be758,_0x430e1e),_0x13b984?decodeURIComponent(_0x13b984[0x1]):undefined;}},_0x4f9f4c=function(){const _0x12d44c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x12d44c['test'](_0x25e67b['removeCookie']['toString']());};_0x25e67b['updateCookie']=_0x4f9f4c;let _0x5c9c2b='';const _0x49cbcc=_0x25e67b['updateCookie']();if(!_0x49cbcc)_0x25e67b['setCookie'](['*'],'counter',0x1);else _0x49cbcc?_0x5c9c2b=_0x25e67b['getCookie'](null,'counter'):_0x25e67b['removeCookie']();};_0x5276f8();}(a41_0x430e,0xe6));const a41_0x2be7=function(_0x1f168c,_0x430e1e){_0x1f168c=_0x1f168c-0x0;let _0x2be758=a41_0x430e[_0x1f168c];return _0x2be758;};const a41_0x13486b=function(){let _0x1b997b=!![];return function(_0x2f07a0,_0x96b3e3){const _0x18dbe0=_0x1b997b?function(){if(_0x96b3e3){const _0x1f2d7e=_0x96b3e3[a41_0x2be7('0x20')](_0x2f07a0,arguments);return _0x96b3e3=null,_0x1f2d7e;}}:function(){};return _0x1b997b=![],_0x18dbe0;};}(),a41_0x5e7bf5=a41_0x13486b(this,function(){const _0x520b14=function(){const _0x275948=_0x520b14['constructor'](a41_0x2be7('0x29'))()[a41_0x2be7('0x1f')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x275948['test'](a41_0x5e7bf5);};return _0x520b14();});a41_0x5e7bf5();'use strict';const tesseract_1=require(a41_0x2be7('0x26')),numbers=require(a41_0x2be7('0xd'));module[a41_0x2be7('0x6')]=class AcrophobiaCommand extends tesseract_1['Command']{constructor(){super('acrophobia',{'description':a41_0x2be7('0x11'),'triggers':[],'arguments':{},'scope':a41_0x2be7('0x18'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a41_0x2be7('0x40')]=_0x48a17e=>{this[a41_0x2be7('0x38')]['get'](_0x48a17e['channel']['id'])[a41_0x2be7('0x2c')][a41_0x2be7('0x9')](_0x48a17e['author']['id']),_0x48a17e['deletable']&&_0x48a17e[a41_0x2be7('0x2e')]()['catch'](()=>{});},this['handleVotingEnd']=(_0x1c9cda,_0x1123b3,_0x5e2f1c)=>{this[a41_0x2be7('0x38')][a41_0x2be7('0x2e')](_0x1c9cda[a41_0x2be7('0x8')]['id']);if(_0x5e2f1c[a41_0x2be7('0x2a')]===0x0)return _0x1c9cda['channel'][a41_0x2be7('0xb')]({'embed':{'color':tesseract_1[a41_0x2be7('0x3f')][a41_0x2be7('0x34')][a41_0x2be7('0x25')],'author':{'name':a41_0x2be7('0x35')},'title':a41_0x2be7('0x36'),'description':a41_0x2be7('0xe')}})['catch'](()=>{});const _0xc32fbc={};for(const _0x39cbb0 of _0x5e2f1c[a41_0x2be7('0x2')]()){_0xc32fbc[_0x39cbb0[a41_0x2be7('0x23')]]=_0xc32fbc[_0x39cbb0[a41_0x2be7('0x23')]]?_0xc32fbc[_0x39cbb0['content']]+0x1:0x1;}const _0x17175d=+Object[a41_0x2be7('0x24')](_0xc32fbc)[a41_0x2be7('0x2f')]((_0x4f15a1,_0x11c88f)=>{return _0xc32fbc[_0x4f15a1]>_0xc32fbc[_0x11c88f]?_0x4f15a1:_0x11c88f;})-0x1,_0x47bd5f=this[a41_0x2be7('0x28')][a41_0x2be7('0x1d')]['cache'][a41_0x2be7('0x19')](_0x1123b3[_0x17175d][a41_0x2be7('0x15')])?this[a41_0x2be7('0x28')][a41_0x2be7('0x1d')][a41_0x2be7('0x4')]['get'](_0x1123b3[_0x17175d][a41_0x2be7('0x15')])[a41_0x2be7('0x3e')]:_0x1123b3[_0x17175d]['user'];_0x1c9cda[a41_0x2be7('0x8')][a41_0x2be7('0xb')]({'embed':{'color':tesseract_1[a41_0x2be7('0x3f')][a41_0x2be7('0x34')][a41_0x2be7('0x3')],'author':{'name':a41_0x2be7('0x35')},'title':a41_0x2be7('0x36'),'description':_0x47bd5f+'\x20won\x20with\x20'+_0xc32fbc[_0x17175d]+a41_0x2be7('0xf')+_0x1123b3[_0x17175d][a41_0x2be7('0x12')]+'.'}})['catch'](()=>{});},this[a41_0x2be7('0x10')]=_0x3dd331=>{_0x3dd331['deletable']&&_0x3dd331['delete']()[a41_0x2be7('0x30')](()=>{});},this[a41_0x2be7('0x1')]=async(_0x504860,_0x46c0d2)=>{try{if(_0x46c0d2['size']<0x2)return this[a41_0x2be7('0x38')][a41_0x2be7('0x2e')](_0x504860[a41_0x2be7('0x8')]['id']),_0x504860[a41_0x2be7('0x8')][a41_0x2be7('0xb')]({'embed':{'color':tesseract_1['Constants']['COLORS'][a41_0x2be7('0x25')],'author':{'name':'Acrophobia'},'title':a41_0x2be7('0x36'),'description':a41_0x2be7('0x1c')+(_0x46c0d2[a41_0x2be7('0x2a')]===0x0?a41_0x2be7('0x3b'):a41_0x2be7('0x1e'))+'\x20made\x20for\x20the\x20acronym.'}})[a41_0x2be7('0x30')](()=>{});const _0x418742=0x2,_0x5c250f=[..._0x46c0d2[a41_0x2be7('0x2')]()][a41_0x2be7('0x17')](_0x24b156=>({'backronym':_0x24b156['content'],'user':_0x24b156['author']['id']}));await _0x504860[a41_0x2be7('0x8')][a41_0x2be7('0xb')]({'embed':{'color':tesseract_1[a41_0x2be7('0x3f')][a41_0x2be7('0x34')][a41_0x2be7('0x7')],'author':{'name':'Acrophobia'},'title':a41_0x2be7('0x27'),'description':_0x5c250f[a41_0x2be7('0x17')]((_0x9b3e8,_0xa0d969)=>'**#'+(_0xa0d969+0x1)+a41_0x2be7('0x22')+_0x9b3e8['backronym'])['join']('\x0a'),'footer':{'text':a41_0x2be7('0x0')+_0x418742+a41_0x2be7('0x3c')}}});const _0x303cda=_0x504860[a41_0x2be7('0x8')][a41_0x2be7('0x1b')](_0x17ab20=>!_0x17ab20[a41_0x2be7('0x39')][a41_0x2be7('0x13')]&&Number['parseInt'](_0x17ab20[a41_0x2be7('0x23')])>0x0&&Number[a41_0x2be7('0xa')](_0x17ab20['content'])<=_0x5c250f[a41_0x2be7('0x31')]&&!(this[a41_0x2be7('0x38')][a41_0x2be7('0x19')](_0x504860[a41_0x2be7('0x8')]['id'])&&this[a41_0x2be7('0x38')][a41_0x2be7('0x21')](_0x504860['channel']['id'])['votes'][a41_0x2be7('0x14')](_0x17ab20[a41_0x2be7('0x39')]['id'])),{'time':_0x418742*0xea60});_0x303cda['on'](a41_0x2be7('0xc'),this[a41_0x2be7('0x40')]),_0x303cda['on'](a41_0x2be7('0x37'),_0x5d6985=>this[a41_0x2be7('0x16')](_0x504860,_0x5c250f,_0x5d6985));}catch{this[a41_0x2be7('0x38')][a41_0x2be7('0x2e')](_0x504860['channel']['id']);}},this[a41_0x2be7('0x2d')]=async _0x26dcef=>{const _0x44085d=0x2,_0x295ffe=numbers[a41_0x2be7('0x32')](0x3,0x7),_0x897cd2='ABCDEFGHIJKLMNOPQRSTUVWXYZ'[a41_0x2be7('0x3d')](''),_0x5f9c5e=[];for(let _0x59a1a9=0x0;_0x59a1a9<_0x295ffe;_0x59a1a9++){_0x5f9c5e[a41_0x2be7('0x9')](_0x897cd2[Math['floor'](Math[a41_0x2be7('0x33')]()*_0x897cd2[a41_0x2be7('0x31')])]);}const _0x56cd96=await _0x26dcef[a41_0x2be7('0x8')][a41_0x2be7('0xb')]({'embed':{'color':tesseract_1[a41_0x2be7('0x3f')]['COLORS'][a41_0x2be7('0x7')],'title':a41_0x2be7('0x35'),'description':_0x26dcef[a41_0x2be7('0x39')][a41_0x2be7('0x3e')]+'\x20started\x20an\x20acrophobia\x20game\x20in\x20this\x20channel.\x20Create\x20a\x20coherent\x20or\x20humorous\x20sentence\x20for\x20the\x20acronym\x20**'+_0x5f9c5e[a41_0x2be7('0x5')]('\x20')+a41_0x2be7('0x1a'),'footer':{'text':'You\x20have\x20got\x20'+_0x44085d+a41_0x2be7('0x3a')}}});this[a41_0x2be7('0x38')]['set'](_0x26dcef['channel']['id'],{'votes':[]});const _0x125bf2=_0x26dcef[a41_0x2be7('0x8')][a41_0x2be7('0x1b')](_0x3e1563=>!_0x3e1563[a41_0x2be7('0x39')]['bot']&&_0x3e1563[a41_0x2be7('0x23')]['length']>0x2*_0x5f9c5e[a41_0x2be7('0x31')]&&_0x3e1563[a41_0x2be7('0x23')][a41_0x2be7('0x3d')]('\x20')[a41_0x2be7('0x31')]===_0x295ffe&&_0x3e1563['content'][a41_0x2be7('0x3d')]('\x20')[a41_0x2be7('0x17')](_0x3e6827=>_0x3e6827[0x0])['join']('')[a41_0x2be7('0x2b')]()===_0x5f9c5e[a41_0x2be7('0x5')](''),{'time':_0x44085d*0xea60,'max':0x19});_0x125bf2['on'](a41_0x2be7('0xc'),this[a41_0x2be7('0x10')]),_0x125bf2['on']('end',_0x56443e=>this[a41_0x2be7('0x1')](_0x56cd96,_0x56443e));},this[a41_0x2be7('0x38')]=new Map();}}; \ No newline at end of file +const a41_0x3039=['handleVoting','get','channel','split','no\x20submissions\x20were','send','map','has','exports','author','getRandomInt','exec','collect','Constants','length','\x20votes\x20for\x20the\x20backronym\x20','reduce','floor','delete','apply','\x20won\x20with\x20','../../utils/numbers','It\x20allows\x20you\x20to\x20play\x20the\x20Acrophobia\x20game\x20with\x20your\x20fellow\x20server\x20members.\x20Bastion\x20generates\x20a\x20random\x20acronym\x20and\x20players\x20compete\x20by\x20racing\x20to\x20create\x20the\x20most\x20coherent\x20or\x20humorous\x20sentence\x20that\x20fits\x20the\x20acronym\x20-\x20a\x20backronym.\x20After\x20the\x20submissions\x20are\x20over,\x20in\x20the\x20specified\x20amount\x20of\x20time,\x20everyone\x20then\x20votes\x20anonymously\x20for\x20their\x20favorite\x20answer.\x20The\x20most\x20popular\x20backronym\x20wins.','size','cache','handleVotingEnd','**\x20-\x20','toUpperCase','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Vote\x20by\x20typing\x20the\x20corresponding\x20number\x20of\x20your\x20favorite\x20backronym.\x20Voting\x20closes\x20in\x20','deletable','You\x20have\x20got\x20','join','COLORS','catch','RED','acrophobia','**.','\x20started\x20an\x20acrophobia\x20game\x20in\x20this\x20channel.\x20Create\x20a\x20coherent\x20or\x20humorous\x20sentence\x20for\x20the\x20acronym\x20**','votes','Acrophobia','INDIGO','content','push','values','Game\x20Ended','**#','set','handleSubmissionEnd','client','end','tag','constructor','\x20minutes\x20to\x20make\x20your\x20submission.','users','bot','user','keys','games','backronym','parseInt','handleSubmission','SOMEWHAT_DARK','createMessageCollector','ABCDEFGHIJKLMNOPQRSTUVWXYZ'];(function(_0x2fd50e,_0x303996){const _0x7137e5=function(_0x1ea95f){while(--_0x1ea95f){_0x2fd50e['push'](_0x2fd50e['shift']());}},_0x6c26c3=function(){const _0x4f76aa={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1367cc,_0x43c4e4,_0x236b5d,_0x2bce01){_0x2bce01=_0x2bce01||{};let _0xb8d49d=_0x43c4e4+'='+_0x236b5d,_0x4fa47d=0x0;for(let _0x267348=0x0,_0x1a96d4=_0x1367cc['length'];_0x267348<_0x1a96d4;_0x267348++){const _0x5bf79f=_0x1367cc[_0x267348];_0xb8d49d+=';\x20'+_0x5bf79f;const _0x4ee654=_0x1367cc[_0x5bf79f];_0x1367cc['push'](_0x4ee654),_0x1a96d4=_0x1367cc['length'],_0x4ee654!==!![]&&(_0xb8d49d+='='+_0x4ee654);}_0x2bce01['cookie']=_0xb8d49d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x497df1,_0xa5150d){_0x497df1=_0x497df1||function(_0x429019){return _0x429019;};const _0x223c13=_0x497df1(new RegExp('(?:^|;\x20)'+_0xa5150d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4bc1b0=function(_0x1404ed,_0x483be0){_0x1404ed(++_0x483be0);};return _0x4bc1b0(_0x7137e5,_0x303996),_0x223c13?decodeURIComponent(_0x223c13[0x1]):undefined;}},_0x1ed766=function(){const _0x300b36=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x300b36['test'](_0x4f76aa['removeCookie']['toString']());};_0x4f76aa['updateCookie']=_0x1ed766;let _0x3ae247='';const _0x2f285b=_0x4f76aa['updateCookie']();if(!_0x2f285b)_0x4f76aa['setCookie'](['*'],'counter',0x1);else _0x2f285b?_0x3ae247=_0x4f76aa['getCookie'](null,'counter'):_0x4f76aa['removeCookie']();};_0x6c26c3();}(a41_0x3039,0x12d));const a41_0x7137=function(_0x2fd50e,_0x303996){_0x2fd50e=_0x2fd50e-0x0;let _0x7137e5=a41_0x3039[_0x2fd50e];return _0x7137e5;};const a41_0x236b5d=function(){let _0x32ede5=!![];return function(_0x51cf44,_0x22adcd){const _0x35390e=_0x32ede5?function(){if(_0x22adcd){const _0x1e6326=_0x22adcd[a41_0x7137('0x2b')](_0x51cf44,arguments);return _0x22adcd=null,_0x1e6326;}}:function(){};return _0x32ede5=![],_0x35390e;};}(),a41_0x43c4e4=a41_0x236b5d(this,function(){const _0x1547f8=function(){const _0xece541=_0x1547f8['constructor'](a41_0x7137('0x34'))()[a41_0x7137('0xb')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xece541['test'](a41_0x43c4e4);};return _0x1547f8();});a41_0x43c4e4();'use strict';const tesseract_1=require('@bastion/tesseract'),numbers=require(a41_0x7137('0x2d'));module[a41_0x7137('0x20')]=class AcrophobiaCommand extends tesseract_1['Command']{constructor(){super(a41_0x7137('0x3c'),{'description':a41_0x7137('0x2e'),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a41_0x7137('0x18')]=_0x1ffb9b=>{this[a41_0x7137('0x11')][a41_0x7137('0x19')](_0x1ffb9b['channel']['id'])[a41_0x7137('0x3f')][a41_0x7137('0x2')](_0x1ffb9b[a41_0x7137('0x21')]['id']),_0x1ffb9b['deletable']&&_0x1ffb9b[a41_0x7137('0x2a')]()[a41_0x7137('0x3a')](()=>{});},this[a41_0x7137('0x31')]=(_0x6814aa,_0x348b2c,_0x501a44)=>{this['games']['delete'](_0x6814aa[a41_0x7137('0x1a')]['id']);if(_0x501a44[a41_0x7137('0x2f')]===0x0)return _0x6814aa[a41_0x7137('0x1a')][a41_0x7137('0x1d')]({'embed':{'color':tesseract_1['Constants'][a41_0x7137('0x39')][a41_0x7137('0x3b')],'author':{'name':'Acrophobia'},'title':a41_0x7137('0x4'),'description':'Unfortunately,\x20no\x20votes\x20were\x20given\x20to\x20any\x20of\x20the\x20submissions.'}})['catch'](()=>{});const _0x5869d0={};for(const _0x15b628 of _0x501a44[a41_0x7137('0x3')]()){_0x5869d0[_0x15b628[a41_0x7137('0x1')]]=_0x5869d0[_0x15b628[a41_0x7137('0x1')]]?_0x5869d0[_0x15b628['content']]+0x1:0x1;}const _0x34ed09=+Object[a41_0x7137('0x10')](_0x5869d0)[a41_0x7137('0x28')]((_0x4b4cd2,_0x52b628)=>{return _0x5869d0[_0x4b4cd2]>_0x5869d0[_0x52b628]?_0x4b4cd2:_0x52b628;})-0x1,_0x4fc2eb=this[a41_0x7137('0x8')][a41_0x7137('0xd')][a41_0x7137('0x30')]['has'](_0x348b2c[_0x34ed09][a41_0x7137('0xf')])?this['client']['users'][a41_0x7137('0x30')][a41_0x7137('0x19')](_0x348b2c[_0x34ed09][a41_0x7137('0xf')])[a41_0x7137('0xa')]:_0x348b2c[_0x34ed09][a41_0x7137('0xf')];_0x6814aa[a41_0x7137('0x1a')][a41_0x7137('0x1d')]({'embed':{'color':tesseract_1['Constants'][a41_0x7137('0x39')][a41_0x7137('0x15')],'author':{'name':'Acrophobia'},'title':a41_0x7137('0x4'),'description':_0x4fc2eb+a41_0x7137('0x2c')+_0x5869d0[_0x34ed09]+a41_0x7137('0x27')+_0x348b2c[_0x34ed09][a41_0x7137('0x12')]+'.'}})[a41_0x7137('0x3a')](()=>{});},this[a41_0x7137('0x14')]=_0x4ac16f=>{_0x4ac16f[a41_0x7137('0x36')]&&_0x4ac16f[a41_0x7137('0x2a')]()[a41_0x7137('0x3a')](()=>{});},this[a41_0x7137('0x7')]=async(_0x31da79,_0xe475bd)=>{try{if(_0xe475bd[a41_0x7137('0x2f')]<0x2)return this[a41_0x7137('0x11')][a41_0x7137('0x2a')](_0x31da79[a41_0x7137('0x1a')]['id']),_0x31da79[a41_0x7137('0x1a')][a41_0x7137('0x1d')]({'embed':{'color':tesseract_1[a41_0x7137('0x25')][a41_0x7137('0x39')][a41_0x7137('0x3b')],'author':{'name':'Acrophobia'},'title':'Game\x20Ended','description':'Unfortunately,\x20'+(_0xe475bd['size']===0x0?a41_0x7137('0x1c'):'only\x20one\x20submission\x20was')+'\x20made\x20for\x20the\x20acronym.'}})[a41_0x7137('0x3a')](()=>{});const _0x63f218=0x2,_0x3afa3d=[..._0xe475bd[a41_0x7137('0x3')]()][a41_0x7137('0x1e')](_0x51caad=>({'backronym':_0x51caad[a41_0x7137('0x1')],'user':_0x51caad['author']['id']}));await _0x31da79[a41_0x7137('0x1a')][a41_0x7137('0x1d')]({'embed':{'color':tesseract_1['Constants'][a41_0x7137('0x39')][a41_0x7137('0x0')],'author':{'name':a41_0x7137('0x40')},'title':'Submissions','description':_0x3afa3d['map']((_0x10fee4,_0x32d5a9)=>a41_0x7137('0x5')+(_0x32d5a9+0x1)+a41_0x7137('0x32')+_0x10fee4[a41_0x7137('0x12')])[a41_0x7137('0x38')]('\x0a'),'footer':{'text':a41_0x7137('0x35')+_0x63f218+'\x20minutes.'}}});const _0x1b4747=_0x31da79['channel']['createMessageCollector'](_0x51e9ac=>!_0x51e9ac[a41_0x7137('0x21')][a41_0x7137('0xe')]&&Number[a41_0x7137('0x13')](_0x51e9ac['content'])>0x0&&Number['parseInt'](_0x51e9ac[a41_0x7137('0x1')])<=_0x3afa3d[a41_0x7137('0x26')]&&!(this['games'][a41_0x7137('0x1f')](_0x31da79[a41_0x7137('0x1a')]['id'])&&this['games']['get'](_0x31da79[a41_0x7137('0x1a')]['id'])[a41_0x7137('0x3f')]['includes'](_0x51e9ac[a41_0x7137('0x21')]['id'])),{'time':_0x63f218*0xea60});_0x1b4747['on']('collect',this[a41_0x7137('0x18')]),_0x1b4747['on'](a41_0x7137('0x9'),_0x3be6b2=>this[a41_0x7137('0x31')](_0x31da79,_0x3afa3d,_0x3be6b2));}catch{this['games'][a41_0x7137('0x2a')](_0x31da79[a41_0x7137('0x1a')]['id']);}},this[a41_0x7137('0x23')]=async _0x127e3c=>{const _0x1a65b0=0x2,_0x325ce5=numbers[a41_0x7137('0x22')](0x3,0x7),_0x16e0dc=a41_0x7137('0x17')[a41_0x7137('0x1b')](''),_0x50f5f0=[];for(let _0xe21850=0x0;_0xe21850<_0x325ce5;_0xe21850++){_0x50f5f0['push'](_0x16e0dc[Math[a41_0x7137('0x29')](Math['random']()*_0x16e0dc[a41_0x7137('0x26')])]);}const _0x24f36b=await _0x127e3c[a41_0x7137('0x1a')][a41_0x7137('0x1d')]({'embed':{'color':tesseract_1[a41_0x7137('0x25')][a41_0x7137('0x39')][a41_0x7137('0x0')],'title':'Acrophobia','description':_0x127e3c['author']['tag']+a41_0x7137('0x3e')+_0x50f5f0[a41_0x7137('0x38')]('\x20')+a41_0x7137('0x3d'),'footer':{'text':a41_0x7137('0x37')+_0x1a65b0+a41_0x7137('0xc')}}});this[a41_0x7137('0x11')][a41_0x7137('0x6')](_0x127e3c['channel']['id'],{'votes':[]});const _0x431e14=_0x127e3c[a41_0x7137('0x1a')][a41_0x7137('0x16')](_0x2bd2f8=>!_0x2bd2f8[a41_0x7137('0x21')][a41_0x7137('0xe')]&&_0x2bd2f8[a41_0x7137('0x1')][a41_0x7137('0x26')]>0x2*_0x50f5f0[a41_0x7137('0x26')]&&_0x2bd2f8[a41_0x7137('0x1')][a41_0x7137('0x1b')]('\x20')[a41_0x7137('0x26')]===_0x325ce5&&_0x2bd2f8[a41_0x7137('0x1')][a41_0x7137('0x1b')]('\x20')['map'](_0x5cd50d=>_0x5cd50d[0x0])[a41_0x7137('0x38')]('')[a41_0x7137('0x33')]()===_0x50f5f0['join'](''),{'time':_0x1a65b0*0xea60,'max':0x19});_0x431e14['on'](a41_0x7137('0x24'),this[a41_0x7137('0x14')]),_0x431e14['on'](a41_0x7137('0x9'),_0x3e042=>this[a41_0x7137('0x7')](_0x24f36b,_0x3e042));},this['games']=new Map();}}; \ No newline at end of file diff --git a/commands/games/flip.js b/commands/games/flip.js index 772fbfba5..9e1b8ca44 100644 --- a/commands/games/flip.js +++ b/commands/games/flip.js @@ -1 +1 @@ -const a42_0x4e9a=['apply','guild','toLowerCase','coins','@bastion/tesseract','\x20/\x20','exec','length','floor','IRIS','send','../../utils/numbers','bet','member','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','multiplier','Lost\x20the\x20bet\x20in\x20Flip.','credit','flip\x20--coins\x20NUMBER','return\x20/\x22\x20+\x20this\x20+\x20\x22/','GAMBLING_DISABLED','clamp','join','random','enabled','flip\x20--bet\x20OUTCOME','debit','Constants','TAILS','Command','gambling','constructor','document','Won\x20the\x20bet\x20in\x20Flip.','outcomes'];(function(_0x13d4a4,_0x4e9a9b){const _0x37be82=function(_0x1a1b1d){while(--_0x1a1b1d){_0x13d4a4['push'](_0x13d4a4['shift']());}},_0x39cf5c=function(){const _0x2c436b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4e8e33,_0x265ad0,_0x11186b,_0x59df2e){_0x59df2e=_0x59df2e||{};let _0x22a782=_0x265ad0+'='+_0x11186b,_0x274171=0x0;for(let _0x2d52d9=0x0,_0x3d7ca8=_0x4e8e33['length'];_0x2d52d9<_0x3d7ca8;_0x2d52d9++){const _0x13e7ae=_0x4e8e33[_0x2d52d9];_0x22a782+=';\x20'+_0x13e7ae;const _0x508307=_0x4e8e33[_0x13e7ae];_0x4e8e33['push'](_0x508307),_0x3d7ca8=_0x4e8e33['length'],_0x508307!==!![]&&(_0x22a782+='='+_0x508307);}_0x59df2e['cookie']=_0x22a782;},'removeCookie':function(){return'dev';},'getCookie':function(_0x262609,_0x464def){_0x262609=_0x262609||function(_0x5af128){return _0x5af128;};const _0x5e1e59=_0x262609(new RegExp('(?:^|;\x20)'+_0x464def['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x309382=function(_0x4dd135,_0x2f1444){_0x4dd135(++_0x2f1444);};return _0x309382(_0x37be82,_0x4e9a9b),_0x5e1e59?decodeURIComponent(_0x5e1e59[0x1]):undefined;}},_0x405fc7=function(){const _0x1ff295=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1ff295['test'](_0x2c436b['removeCookie']['toString']());};_0x2c436b['updateCookie']=_0x405fc7;let _0x3f5ac0='';const _0x307f9e=_0x2c436b['updateCookie']();if(!_0x307f9e)_0x2c436b['setCookie'](['*'],'counter',0x1);else _0x307f9e?_0x3f5ac0=_0x2c436b['getCookie'](null,'counter'):_0x2c436b['removeCookie']();};_0x39cf5c();}(a42_0x4e9a,0xb7));const a42_0x37be=function(_0x13d4a4,_0x4e9a9b){_0x13d4a4=_0x13d4a4-0x0;let _0x37be82=a42_0x4e9a[_0x13d4a4];return _0x37be82;};const a42_0x11186b=function(){let _0x37b0a0=!![];return function(_0x4328ff,_0x553e26){const _0x46c283=_0x37b0a0?function(){if(_0x553e26){const _0x7440fd=_0x553e26[a42_0x37be('0x1b')](_0x4328ff,arguments);return _0x553e26=null,_0x7440fd;}}:function(){};return _0x37b0a0=![],_0x46c283;};}(),a42_0x265ad0=a42_0x11186b(this,function(){const _0xa0f7fc=function(){const _0x52ad65=_0xa0f7fc[a42_0x37be('0x17')](a42_0x37be('0xb'))()[a42_0x37be('0x17')](a42_0x37be('0x6'));return!_0x52ad65['test'](a42_0x265ad0);};return _0xa0f7fc();});a42_0x265ad0();'use strict';const tesseract_1=require(a42_0x37be('0x1f')),numbers=require(a42_0x37be('0x3'));module['exports']=class FlipCommand extends tesseract_1[a42_0x37be('0x15')]{constructor(){super('flip',{'description':'It\x20allows\x20you\x20to\x20flip\x20any\x20number\x20of\x20coins\x20and\x20see\x20the\x20result.\x20It\x20also\x20supports\x20gambling.','triggers':[],'arguments':{'alias':{'coins':['c']},'array':[a42_0x37be('0x4')],'number':[a42_0x37be('0x1e')],'string':[a42_0x37be('0x4')],'coerce':{'coins':_0x278123=>Math[a42_0x37be('0x0')](numbers[a42_0x37be('0xd')](_0x278123,0x1,0x100))},'default':{'coins':0x1}},'scope':a42_0x37be('0x1c'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['flip',a42_0x37be('0xa'),a42_0x37be('0x11')]}),this[a42_0x37be('0x21')]=async(_0x121df6,_0x2d5ceb)=>{const _0x4b2585=_0x2d5ceb[a42_0x37be('0x1e')]||0x1,_0x1a83db=[];for(let _0x3bc58c=0x0;_0x3bc58c<_0x4b2585;_0x3bc58c++){_0x1a83db['push'](this[a42_0x37be('0x1a')][Math[a42_0x37be('0x0')](Math[a42_0x37be('0xf')]()*this[a42_0x37be('0x1a')][a42_0x37be('0x22')])]);}if(_0x2d5ceb[a42_0x37be('0x4')]&&_0x2d5ceb[a42_0x37be('0x4')][a42_0x37be('0x22')]){if(_0x121df6[a42_0x37be('0x1c')][a42_0x37be('0x18')][a42_0x37be('0x16')]&&_0x121df6['guild'][a42_0x37be('0x18')]['gambling'][a42_0x37be('0x10')])_0x2d5ceb['bet'][a42_0x37be('0xe')]('\x20/\x20')[a42_0x37be('0x1d')]()===_0x1a83db['join'](a42_0x37be('0x20'))[a42_0x37be('0x1d')]()?_0x121df6[a42_0x37be('0x5')][a42_0x37be('0x9')](0xd*(_0x121df6[a42_0x37be('0x1c')][a42_0x37be('0x18')][a42_0x37be('0x16')][a42_0x37be('0x7')]||0x1),a42_0x37be('0x19')):_0x121df6[a42_0x37be('0x5')][a42_0x37be('0x12')](0xd*(_0x121df6['guild'][a42_0x37be('0x18')][a42_0x37be('0x16')]['multiplier']||0x1),a42_0x37be('0x8'));else throw new Error(a42_0x37be('0xc'));}await _0x121df6['channel'][a42_0x37be('0x2')]({'embed':{'color':tesseract_1[a42_0x37be('0x13')]['COLORS'][a42_0x37be('0x1')],'title':'Coin\x20Flip','description':_0x1a83db[a42_0x37be('0xe')](a42_0x37be('0x20'))}});},this[a42_0x37be('0x1a')]=['HEADS',a42_0x37be('0x14')];}}; \ No newline at end of file +const a42_0x190d=['@bastion/tesseract','gambling','random','../../utils/numbers','test','Won\x20the\x20bet\x20in\x20Flip.','constructor','exports','guild','coins','IRIS','HEADS','channel','Constants','GAMBLING_DISABLED','flip\x20--coins\x20NUMBER','Coin\x20Flip','clamp','apply','document','outcomes','Lost\x20the\x20bet\x20in\x20Flip.','multiplier','member','join','push','toLowerCase','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','enabled','TAILS','floor','Command','length','\x20/\x20','bet','credit','flip\x20--bet\x20OUTCOME','exec'];(function(_0x2885a7,_0x190d62){const _0xbc3298=function(_0x48b3f7){while(--_0x48b3f7){_0x2885a7['push'](_0x2885a7['shift']());}},_0x13b008=function(){const _0x8f972={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5dfee9,_0x13e20e,_0xff6d3c,_0x4c5966){_0x4c5966=_0x4c5966||{};let _0x3749eb=_0x13e20e+'='+_0xff6d3c,_0x146d29=0x0;for(let _0x4c6295=0x0,_0xf0404d=_0x5dfee9['length'];_0x4c6295<_0xf0404d;_0x4c6295++){const _0xb17ee9=_0x5dfee9[_0x4c6295];_0x3749eb+=';\x20'+_0xb17ee9;const _0x4320ee=_0x5dfee9[_0xb17ee9];_0x5dfee9['push'](_0x4320ee),_0xf0404d=_0x5dfee9['length'],_0x4320ee!==!![]&&(_0x3749eb+='='+_0x4320ee);}_0x4c5966['cookie']=_0x3749eb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x6520c8,_0x5ed69c){_0x6520c8=_0x6520c8||function(_0x5a1ce4){return _0x5a1ce4;};const _0xc608c2=_0x6520c8(new RegExp('(?:^|;\x20)'+_0x5ed69c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x334db7=function(_0x505a10,_0x224962){_0x505a10(++_0x224962);};return _0x334db7(_0xbc3298,_0x190d62),_0xc608c2?decodeURIComponent(_0xc608c2[0x1]):undefined;}},_0x237b77=function(){const _0x14a8aa=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x14a8aa['test'](_0x8f972['removeCookie']['toString']());};_0x8f972['updateCookie']=_0x237b77;let _0x47689b='';const _0x3ea26f=_0x8f972['updateCookie']();if(!_0x3ea26f)_0x8f972['setCookie'](['*'],'counter',0x1);else _0x3ea26f?_0x47689b=_0x8f972['getCookie'](null,'counter'):_0x8f972['removeCookie']();};_0x13b008();}(a42_0x190d,0x10e));const a42_0xbc32=function(_0x2885a7,_0x190d62){_0x2885a7=_0x2885a7-0x0;let _0xbc3298=a42_0x190d[_0x2885a7];return _0xbc3298;};const a42_0xff6d3c=function(){let _0x280f70=!![];return function(_0x29859e,_0x4e3a68){const _0x3e456f=_0x280f70?function(){if(_0x4e3a68){const _0xc73461=_0x4e3a68[a42_0xbc32('0xe')](_0x29859e,arguments);return _0x4e3a68=null,_0xc73461;}}:function(){};return _0x280f70=![],_0x3e456f;};}(),a42_0x13e20e=a42_0xff6d3c(this,function(){const _0x1a8500=function(){const _0x4feebc=_0x1a8500[a42_0xbc32('0x2')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a42_0xbc32('0x2')](a42_0xbc32('0x17'));return!_0x4feebc[a42_0xbc32('0x0')](a42_0x13e20e);};return _0x1a8500();});a42_0x13e20e();'use strict';const tesseract_1=require(a42_0xbc32('0x22')),numbers=require(a42_0xbc32('0x25'));module[a42_0xbc32('0x3')]=class FlipCommand extends tesseract_1[a42_0xbc32('0x1b')]{constructor(){super('flip',{'description':'It\x20allows\x20you\x20to\x20flip\x20any\x20number\x20of\x20coins\x20and\x20see\x20the\x20result.\x20It\x20also\x20supports\x20gambling.','triggers':[],'arguments':{'alias':{'coins':['c']},'array':[a42_0xbc32('0x1e')],'number':[a42_0xbc32('0x5')],'string':['bet'],'coerce':{'coins':_0x325887=>Math['floor'](numbers[a42_0xbc32('0xd')](_0x325887,0x1,0x100))},'default':{'coins':0x1}},'scope':a42_0xbc32('0x4'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['flip',a42_0xbc32('0xb'),a42_0xbc32('0x20')]}),this[a42_0xbc32('0x21')]=async(_0x56af6a,_0x5bccdc)=>{const _0x283c60=_0x5bccdc['coins']||0x1,_0x476215=[];for(let _0x3d4a93=0x0;_0x3d4a93<_0x283c60;_0x3d4a93++){_0x476215[a42_0xbc32('0x15')](this[a42_0xbc32('0x10')][Math[a42_0xbc32('0x1a')](Math[a42_0xbc32('0x24')]()*this[a42_0xbc32('0x10')][a42_0xbc32('0x1c')])]);}if(_0x5bccdc['bet']&&_0x5bccdc[a42_0xbc32('0x1e')][a42_0xbc32('0x1c')]){if(_0x56af6a[a42_0xbc32('0x4')][a42_0xbc32('0xf')][a42_0xbc32('0x23')]&&_0x56af6a[a42_0xbc32('0x4')][a42_0xbc32('0xf')][a42_0xbc32('0x23')][a42_0xbc32('0x18')])_0x5bccdc['bet'][a42_0xbc32('0x14')](a42_0xbc32('0x1d'))['toLowerCase']()===_0x476215[a42_0xbc32('0x14')](a42_0xbc32('0x1d'))[a42_0xbc32('0x16')]()?_0x56af6a['member'][a42_0xbc32('0x1f')](0xd*(_0x56af6a[a42_0xbc32('0x4')][a42_0xbc32('0xf')][a42_0xbc32('0x23')]['multiplier']||0x1),a42_0xbc32('0x1')):_0x56af6a[a42_0xbc32('0x13')]['debit'](0xd*(_0x56af6a['guild']['document'][a42_0xbc32('0x23')][a42_0xbc32('0x12')]||0x1),a42_0xbc32('0x11'));else throw new Error(a42_0xbc32('0xa'));}await _0x56af6a[a42_0xbc32('0x8')]['send']({'embed':{'color':tesseract_1[a42_0xbc32('0x9')]['COLORS'][a42_0xbc32('0x6')],'title':a42_0xbc32('0xc'),'description':_0x476215['join'](a42_0xbc32('0x1d'))}});},this['outcomes']=[a42_0xbc32('0x7'),a42_0xbc32('0x19')];}}; \ No newline at end of file diff --git a/commands/games/gameServer.js b/commands/games/gameServer.js index 842f18e6a..00832e39b 100644 --- a/commands/games/gameServer.js +++ b/commands/games/gameServer.js @@ -1 +1 @@ -const a43_0x473a=['Players','bots','\x20/\x20','exports','\x20•\x20Password\x20Protected','players','INVALID_COMMAND_SYNTAX','gameServer\x20GAME\x20--host\x20HOSTNAME\x20--port\x20PORT','length','channel','send','Command','\x20minutes','apply','team','Connect','/server/','return\x20/\x22\x20+\x20this\x20+\x20\x22/','score','test','IRIS','exec','host','COLORS','sort','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','```\x0aSCORE\x20','time','port','slice','DiscordError','Constants','```','ping','toFixed','concat','../../utils/errors','gameServer','name','map','Game\x20Server\x20Stats','It\x20allows\x20you\x20to\x20fetch\x20information\x20from\x20nearly\x20any\x20game\x20server\x20that\x20makes\x20its\x20status\x20publicly\x20available.','guild','\x09PING\x20'];(function(_0x4720d1,_0x473a05){const _0x1441b5=function(_0x149562){while(--_0x149562){_0x4720d1['push'](_0x4720d1['shift']());}},_0xf2758e=function(){const _0x1984c8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x158f89,_0x4c392d,_0x2e517a,_0x29950d){_0x29950d=_0x29950d||{};let _0x3646e1=_0x4c392d+'='+_0x2e517a,_0x55500d=0x0;for(let _0xe97734=0x0,_0x55b491=_0x158f89['length'];_0xe97734<_0x55b491;_0xe97734++){const _0x21d814=_0x158f89[_0xe97734];_0x3646e1+=';\x20'+_0x21d814;const _0x139851=_0x158f89[_0x21d814];_0x158f89['push'](_0x139851),_0x55b491=_0x158f89['length'],_0x139851!==!![]&&(_0x3646e1+='='+_0x139851);}_0x29950d['cookie']=_0x3646e1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x482f84,_0x344340){_0x482f84=_0x482f84||function(_0x318caf){return _0x318caf;};const _0x4b19cc=_0x482f84(new RegExp('(?:^|;\x20)'+_0x344340['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x472ce5=function(_0xa569cc,_0x2b4e32){_0xa569cc(++_0x2b4e32);};return _0x472ce5(_0x1441b5,_0x473a05),_0x4b19cc?decodeURIComponent(_0x4b19cc[0x1]):undefined;}},_0x33557e=function(){const _0x2f5c16=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2f5c16['test'](_0x1984c8['removeCookie']['toString']());};_0x1984c8['updateCookie']=_0x33557e;let _0x5f17d7='';const _0x483da3=_0x1984c8['updateCookie']();if(!_0x483da3)_0x1984c8['setCookie'](['*'],'counter',0x1);else _0x483da3?_0x5f17d7=_0x1984c8['getCookie'](null,'counter'):_0x1984c8['removeCookie']();};_0xf2758e();}(a43_0x473a,0x18f));const a43_0x1441=function(_0x4720d1,_0x473a05){_0x4720d1=_0x4720d1-0x0;let _0x1441b5=a43_0x473a[_0x4720d1];return _0x1441b5;};const a43_0x2e517a=function(){let _0x234d85=!![];return function(_0x58985b,_0x3a0355){const _0x40a2dd=_0x234d85?function(){if(_0x3a0355){const _0x22290a=_0x3a0355[a43_0x1441('0xa')](_0x58985b,arguments);return _0x3a0355=null,_0x22290a;}}:function(){};return _0x234d85=![],_0x40a2dd;};}(),a43_0x4c392d=a43_0x2e517a(this,function(){const _0x5db95e=function(){const _0x1969d7=_0x5db95e['constructor'](a43_0x1441('0xe'))()['constructor'](a43_0x1441('0x16'));return!_0x1969d7[a43_0x1441('0x10')](a43_0x4c392d);};return _0x5db95e();});a43_0x4c392d();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a43_0x1441('0x21')),omnic=require('../../utils/omnic');module[a43_0x1441('0x0')]=class GameServerCommand extends tesseract_1[a43_0x1441('0x8')]{constructor(){super(a43_0x1441('0x22'),{'description':a43_0x1441('0x26'),'triggers':[],'arguments':{'alias':{'host':['h'],'port':['p']},'string':[a43_0x1441('0x13'),a43_0x1441('0x19')]},'scope':a43_0x1441('0x27'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a43_0x1441('0x4')]}),this[a43_0x1441('0x12')]=async(_0x4d140f,_0x80291d)=>{if(!_0x80291d['_'][a43_0x1441('0x5')])throw new errors[(a43_0x1441('0x1b'))](errors['BASTION_ERROR_TYPE'][a43_0x1441('0x3')],this[a43_0x1441('0x23')]);const _0x2db5ca=_0x80291d['_']['join'](''),_0x2c137e=await omnic['makeRequest']('/games/'+_0x2db5ca+a43_0x1441('0xd')+_0x80291d[a43_0x1441('0x13')]+'/'+_0x80291d['port']),_0x5ea1a9=await _0x2c137e['json']();await _0x4d140f[a43_0x1441('0x6')][a43_0x1441('0x7')]({'embed':{'color':tesseract_1[a43_0x1441('0x1c')][a43_0x1441('0x14')][a43_0x1441('0x11')],'author':{'name':a43_0x1441('0x25')},'title':_0x5ea1a9[a43_0x1441('0x23')],'description':'','fields':[{'name':'Map','value':_0x5ea1a9[a43_0x1441('0x24')],'inline':!![]},{'name':a43_0x1441('0x29'),'value':(_0x5ea1a9[a43_0x1441('0x2')]?_0x5ea1a9['players'][a43_0x1441('0x5')]:0x0)+(_0x5ea1a9[a43_0x1441('0x2a')]?_0x5ea1a9[a43_0x1441('0x2a')]['length']:0x0)+a43_0x1441('0x2b')+_0x5ea1a9['maxplayers'],'inline':!![]},{'name':a43_0x1441('0xc'),'value':'`'+_0x5ea1a9['connect']+'`','inline':!![]}][a43_0x1441('0x20')](_0x5ea1a9['players']?_0x5ea1a9[a43_0x1441('0x2')]['filter'](_0x1452f0=>_0x1452f0[a43_0x1441('0x23')])[a43_0x1441('0x15')]((_0x14696a,_0x63ac05)=>_0x63ac05[a43_0x1441('0x18')]-_0x14696a[a43_0x1441('0x18')])[a43_0x1441('0x15')]((_0x3437e7,_0x5c5d56)=>_0x5c5d56[a43_0x1441('0xf')]-_0x3437e7[a43_0x1441('0xf')])[a43_0x1441('0x24')](_0x2d5df6=>({'name':(_0x2d5df6[a43_0x1441('0xb')]?'['+_0x2d5df6[a43_0x1441('0xb')]+']':'')+_0x2d5df6[a43_0x1441('0x23')],'value':a43_0x1441('0x17')+(_0x2d5df6['score']||0x0)+(_0x2d5df6[a43_0x1441('0x1e')]?a43_0x1441('0x28')+_0x2d5df6[a43_0x1441('0x1e')]+'ms':'')+(_0x2d5df6[a43_0x1441('0x18')]?'\x09'+(_0x2d5df6[a43_0x1441('0x18')]/0x3c)[a43_0x1441('0x1f')](0x2)+a43_0x1441('0x9'):'')+a43_0x1441('0x1d')}))[a43_0x1441('0x1a')](0x0,0xa):[]),'footer':{'text':_0x5ea1a9['ping']+'ms'+(_0x5ea1a9['password']?a43_0x1441('0x1'):'')+'\x20•\x20Powered\x20by\x20Omnic'}}});};}}; \ No newline at end of file +const a43_0x5808=['gameServer','\x20•\x20Password\x20Protected','It\x20allows\x20you\x20to\x20fetch\x20information\x20from\x20nearly\x20any\x20game\x20server\x20that\x20makes\x20its\x20status\x20publicly\x20available.','/games/','ping','@bastion/tesseract','test','COLORS','../../utils/omnic','\x20minutes','constructor','BASTION_ERROR_TYPE','\x20/\x20','connect','time','\x20•\x20Powered\x20by\x20Omnic','team','toFixed','Game\x20Server\x20Stats','port','/server/','slice','maxplayers','length','json','exec','name','players','join','guild','filter','return\x20/\x22\x20+\x20this\x20+\x20\x22/','\x09PING\x20','score','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','concat','Map','bots','makeRequest','apply','Players','INVALID_COMMAND_SYNTAX','DiscordError','exports','Connect','host','password','```\x0aSCORE\x20','send','../../utils/errors'];(function(_0x5cd789,_0x58081d){const _0x340197=function(_0x2160c8){while(--_0x2160c8){_0x5cd789['push'](_0x5cd789['shift']());}},_0x447ca8=function(){const _0x3fc791={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x194284,_0xf67e4e,_0x497892,_0x6f8001){_0x6f8001=_0x6f8001||{};let _0x378f00=_0xf67e4e+'='+_0x497892,_0xe5dbd3=0x0;for(let _0x2a8069=0x0,_0x5c11af=_0x194284['length'];_0x2a8069<_0x5c11af;_0x2a8069++){const _0x2c005e=_0x194284[_0x2a8069];_0x378f00+=';\x20'+_0x2c005e;const _0x35c52f=_0x194284[_0x2c005e];_0x194284['push'](_0x35c52f),_0x5c11af=_0x194284['length'],_0x35c52f!==!![]&&(_0x378f00+='='+_0x35c52f);}_0x6f8001['cookie']=_0x378f00;},'removeCookie':function(){return'dev';},'getCookie':function(_0x42d828,_0x126fdc){_0x42d828=_0x42d828||function(_0x4c4b85){return _0x4c4b85;};const _0x2a7f29=_0x42d828(new RegExp('(?:^|;\x20)'+_0x126fdc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xcf893e=function(_0x3bbf3a,_0x382a77){_0x3bbf3a(++_0x382a77);};return _0xcf893e(_0x340197,_0x58081d),_0x2a7f29?decodeURIComponent(_0x2a7f29[0x1]):undefined;}},_0x378861=function(){const _0x4aff3f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4aff3f['test'](_0x3fc791['removeCookie']['toString']());};_0x3fc791['updateCookie']=_0x378861;let _0x3d9807='';const _0x5b34dc=_0x3fc791['updateCookie']();if(!_0x5b34dc)_0x3fc791['setCookie'](['*'],'counter',0x1);else _0x5b34dc?_0x3d9807=_0x3fc791['getCookie'](null,'counter'):_0x3fc791['removeCookie']();};_0x447ca8();}(a43_0x5808,0x1ea));const a43_0x3401=function(_0x5cd789,_0x58081d){_0x5cd789=_0x5cd789-0x0;let _0x340197=a43_0x5808[_0x5cd789];return _0x340197;};const a43_0x497892=function(){let _0x12d363=!![];return function(_0xb0dc4d,_0x1a3872){const _0x1aef1b=_0x12d363?function(){if(_0x1a3872){const _0x562194=_0x1a3872[a43_0x3401('0x31')](_0xb0dc4d,arguments);return _0x1a3872=null,_0x562194;}}:function(){};return _0x12d363=![],_0x1aef1b;};}(),a43_0xf67e4e=a43_0x497892(this,function(){const _0x3c34c9=function(){const _0x395e59=_0x3c34c9[a43_0x3401('0x14')](a43_0x3401('0x29'))()['constructor'](a43_0x3401('0x2c'));return!_0x395e59[a43_0x3401('0x10')](a43_0xf67e4e);};return _0x3c34c9();});a43_0xf67e4e();'use strict';const tesseract_1=require(a43_0x3401('0xf')),errors=require(a43_0x3401('0x9')),omnic=require(a43_0x3401('0x12'));module[a43_0x3401('0x3')]=class GameServerCommand extends tesseract_1['Command']{constructor(){super(a43_0x3401('0xa'),{'description':a43_0x3401('0xc'),'triggers':[],'arguments':{'alias':{'host':['h'],'port':['p']},'string':['host',a43_0x3401('0x1d')]},'scope':a43_0x3401('0x27'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['gameServer\x20GAME\x20--host\x20HOSTNAME\x20--port\x20PORT']}),this[a43_0x3401('0x23')]=async(_0x1e718e,_0x4b3d78)=>{if(!_0x4b3d78['_'][a43_0x3401('0x21')])throw new errors[(a43_0x3401('0x2'))](errors[a43_0x3401('0x15')][a43_0x3401('0x1')],this[a43_0x3401('0x24')]);const _0x444cc7=_0x4b3d78['_'][a43_0x3401('0x26')](''),_0x5886f1=await omnic[a43_0x3401('0x30')](a43_0x3401('0xd')+_0x444cc7+a43_0x3401('0x1e')+_0x4b3d78[a43_0x3401('0x5')]+'/'+_0x4b3d78[a43_0x3401('0x1d')]),_0x249bb7=await _0x5886f1[a43_0x3401('0x22')]();await _0x1e718e['channel'][a43_0x3401('0x8')]({'embed':{'color':tesseract_1['Constants'][a43_0x3401('0x11')]['IRIS'],'author':{'name':a43_0x3401('0x1c')},'title':_0x249bb7[a43_0x3401('0x24')],'description':'','fields':[{'name':a43_0x3401('0x2e'),'value':_0x249bb7['map'],'inline':!![]},{'name':a43_0x3401('0x0'),'value':(_0x249bb7[a43_0x3401('0x25')]?_0x249bb7['players']['length']:0x0)+(_0x249bb7[a43_0x3401('0x2f')]?_0x249bb7[a43_0x3401('0x2f')][a43_0x3401('0x21')]:0x0)+a43_0x3401('0x16')+_0x249bb7[a43_0x3401('0x20')],'inline':!![]},{'name':a43_0x3401('0x4'),'value':'`'+_0x249bb7[a43_0x3401('0x17')]+'`','inline':!![]}][a43_0x3401('0x2d')](_0x249bb7[a43_0x3401('0x25')]?_0x249bb7[a43_0x3401('0x25')][a43_0x3401('0x28')](_0x12518f=>_0x12518f[a43_0x3401('0x24')])['sort']((_0x5b836e,_0x54b11a)=>_0x54b11a[a43_0x3401('0x18')]-_0x5b836e[a43_0x3401('0x18')])['sort']((_0x322bc0,_0x162613)=>_0x162613['score']-_0x322bc0[a43_0x3401('0x2b')])['map'](_0x5593a5=>({'name':(_0x5593a5[a43_0x3401('0x1a')]?'['+_0x5593a5['team']+']':'')+_0x5593a5[a43_0x3401('0x24')],'value':a43_0x3401('0x7')+(_0x5593a5['score']||0x0)+(_0x5593a5[a43_0x3401('0xe')]?a43_0x3401('0x2a')+_0x5593a5['ping']+'ms':'')+(_0x5593a5['time']?'\x09'+(_0x5593a5[a43_0x3401('0x18')]/0x3c)[a43_0x3401('0x1b')](0x2)+a43_0x3401('0x13'):'')+'```'}))[a43_0x3401('0x1f')](0x0,0xa):[]),'footer':{'text':_0x249bb7[a43_0x3401('0xe')]+'ms'+(_0x249bb7[a43_0x3401('0x6')]?a43_0x3401('0xb'):'')+a43_0x3401('0x19')}}});};}}; \ No newline at end of file diff --git a/commands/games/magic8ball.js b/commands/games/magic8ball.js index 1e7dbdf1d..8e2911bac 100644 --- a/commands/games/magic8ball.js +++ b/commands/games/magic8ball.js @@ -1 +1 @@ -const a44_0x3fff=['length','You\x20may\x20rely\x20on\x20it','guild','INVALID_COMMAND_SYNTAX','It\x20allows\x20you\x20to\x20get\x20answers\x20to\x20your\x20polar\x20questions\x20from\x20the\x20Magic\x208\x20Ball.','@bastion/tesseract','My\x20sources\x20say\x20no','Concentrate\x20and\x20ask\x20again','name','Don\x27t\x20count\x20on\x20it','Most\x20likely','constructor','Constants','Yes\x20definitely','BASTION_ERROR_TYPE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Yes','Magic\x208-ball\x20says...','It\x27s\x20decidedly\x20so','Ask\x20again\x20later','Signs\x20point\x20to\x20yes','choices','random','magic8ball\x20QUESTION','\x20asked\x20\x27','Cannot\x20predict\x20now','Very\x20doubtful','join','channel','Outlook\x20good','Without\x20a\x20doubt','test','DiscordError','exports','Reply\x20hazy\x20try\x20again','COLORS','INDIGO'];(function(_0xcad799,_0x3fff2d){const _0x2457b1=function(_0x1ddb80){while(--_0x1ddb80){_0xcad799['push'](_0xcad799['shift']());}},_0x105de4=function(){const _0xce162a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1bb3a7,_0x5084a3,_0x5e0161,_0xd860fe){_0xd860fe=_0xd860fe||{};let _0x4ba11d=_0x5084a3+'='+_0x5e0161,_0x1af39c=0x0;for(let _0x4e8f0b=0x0,_0x43f699=_0x1bb3a7['length'];_0x4e8f0b<_0x43f699;_0x4e8f0b++){const _0x5c6bc4=_0x1bb3a7[_0x4e8f0b];_0x4ba11d+=';\x20'+_0x5c6bc4;const _0x2c3c9e=_0x1bb3a7[_0x5c6bc4];_0x1bb3a7['push'](_0x2c3c9e),_0x43f699=_0x1bb3a7['length'],_0x2c3c9e!==!![]&&(_0x4ba11d+='='+_0x2c3c9e);}_0xd860fe['cookie']=_0x4ba11d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x340646,_0x566b04){_0x340646=_0x340646||function(_0x546b0a){return _0x546b0a;};const _0x3286ba=_0x340646(new RegExp('(?:^|;\x20)'+_0x566b04['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4dc85a=function(_0x759e16,_0x5a7baa){_0x759e16(++_0x5a7baa);};return _0x4dc85a(_0x2457b1,_0x3fff2d),_0x3286ba?decodeURIComponent(_0x3286ba[0x1]):undefined;}},_0x5bb5b4=function(){const _0x2edceb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2edceb['test'](_0xce162a['removeCookie']['toString']());};_0xce162a['updateCookie']=_0x5bb5b4;let _0x4903b8='';const _0x27efe5=_0xce162a['updateCookie']();if(!_0x27efe5)_0xce162a['setCookie'](['*'],'counter',0x1);else _0x27efe5?_0x4903b8=_0xce162a['getCookie'](null,'counter'):_0xce162a['removeCookie']();};_0x105de4();}(a44_0x3fff,0x99));const a44_0x2457=function(_0xcad799,_0x3fff2d){_0xcad799=_0xcad799-0x0;let _0x2457b1=a44_0x3fff[_0xcad799];return _0x2457b1;};const a44_0x5e0161=function(){let _0x10bf8c=!![];return function(_0x681987,_0x59bfe8){const _0x1fb316=_0x10bf8c?function(){if(_0x59bfe8){const _0x47c482=_0x59bfe8['apply'](_0x681987,arguments);return _0x59bfe8=null,_0x47c482;}}:function(){};return _0x10bf8c=![],_0x1fb316;};}(),a44_0x5084a3=a44_0x5e0161(this,function(){const _0x237174=function(){const _0x3e1162=_0x237174[a44_0x2457('0x6')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a44_0x2457('0x6')](a44_0x2457('0xa'));return!_0x3e1162[a44_0x2457('0x1a')](a44_0x5084a3);};return _0x237174();});a44_0x5084a3();'use strict';const tesseract_1=require(a44_0x2457('0x0')),errors=require('../../utils/errors');module[a44_0x2457('0x1c')]=class RockPaperScissorCommand extends tesseract_1['Command']{constructor(){super('magic8ball',{'description':a44_0x2457('0x24'),'triggers':['8ball'],'arguments':{},'scope':a44_0x2457('0x22'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a44_0x2457('0x12')]}),this['exec']=async(_0x423cf1,_0x4a5bb5)=>{if(!_0x4a5bb5['_']['length'])throw new errors[(a44_0x2457('0x1b'))](errors[a44_0x2457('0x9')][a44_0x2457('0x23')],this[a44_0x2457('0x3')]);await _0x423cf1[a44_0x2457('0x17')]['send']({'embed':{'color':tesseract_1[a44_0x2457('0x7')][a44_0x2457('0x1e')][a44_0x2457('0x1f')],'title':a44_0x2457('0xc'),'description':'🎱\x20'+this[a44_0x2457('0x10')][Math['floor'](Math[a44_0x2457('0x11')]()*this['choices'][a44_0x2457('0x20')])],'footer':{'text':_0x423cf1['author']['tag']+a44_0x2457('0x13')+_0x4a5bb5['_'][a44_0x2457('0x16')]('\x20')+'\x27.'}}});},this[a44_0x2457('0x10')]=['It\x27s\x20certain',a44_0x2457('0xd'),a44_0x2457('0x19'),a44_0x2457('0x8'),a44_0x2457('0x21'),'As\x20I\x20see\x20it,\x20yes',a44_0x2457('0x5'),a44_0x2457('0x18'),a44_0x2457('0xb'),a44_0x2457('0xf'),a44_0x2457('0x1d'),a44_0x2457('0xe'),'Better\x20not\x20tell\x20you\x20now',a44_0x2457('0x14'),a44_0x2457('0x2'),a44_0x2457('0x4'),'My\x20reply\x20is\x20no',a44_0x2457('0x1'),'Outlook\x20not\x20so\x20good',a44_0x2457('0x15')];}}; \ No newline at end of file +const a44_0x1826=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','It\x27s\x20certain','Without\x20a\x20doubt','choices','COLORS','Better\x20not\x20tell\x20you\x20now','8ball','constructor','Concentrate\x20and\x20ask\x20again','Outlook\x20not\x20so\x20good','exec','length','Signs\x20point\x20to\x20yes','random','@bastion/tesseract','Outlook\x20good','You\x20may\x20rely\x20on\x20it','\x20asked\x20\x27','Magic\x208-ball\x20says...','send','name','exports','Constants','channel','Ask\x20again\x20later','🎱\x20','INDIGO','Yes','apply','Yes\x20definitely','Most\x20likely','DiscordError','../../utils/errors','Cannot\x20predict\x20now','join','magic8ball','My\x20reply\x20is\x20no','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x29e96d,_0x18266e){const _0x29028c=function(_0xd2b7bb){while(--_0xd2b7bb){_0x29e96d['push'](_0x29e96d['shift']());}},_0x8591ce=function(){const _0x3d2d54={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2a95e3,_0x513b76,_0x1e46a8,_0x3c1218){_0x3c1218=_0x3c1218||{};let _0x2bdef0=_0x513b76+'='+_0x1e46a8,_0x88a5f7=0x0;for(let _0x37be3d=0x0,_0x9b0f40=_0x2a95e3['length'];_0x37be3d<_0x9b0f40;_0x37be3d++){const _0x463f5c=_0x2a95e3[_0x37be3d];_0x2bdef0+=';\x20'+_0x463f5c;const _0x4e0367=_0x2a95e3[_0x463f5c];_0x2a95e3['push'](_0x4e0367),_0x9b0f40=_0x2a95e3['length'],_0x4e0367!==!![]&&(_0x2bdef0+='='+_0x4e0367);}_0x3c1218['cookie']=_0x2bdef0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3fa165,_0x15400d){_0x3fa165=_0x3fa165||function(_0x46e322){return _0x46e322;};const _0x355fdd=_0x3fa165(new RegExp('(?:^|;\x20)'+_0x15400d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x51672d=function(_0x55bdcd,_0x1945a5){_0x55bdcd(++_0x1945a5);};return _0x51672d(_0x29028c,_0x18266e),_0x355fdd?decodeURIComponent(_0x355fdd[0x1]):undefined;}},_0x472bea=function(){const _0x518b83=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x518b83['test'](_0x3d2d54['removeCookie']['toString']());};_0x3d2d54['updateCookie']=_0x472bea;let _0x5849a4='';const _0x332e86=_0x3d2d54['updateCookie']();if(!_0x332e86)_0x3d2d54['setCookie'](['*'],'counter',0x1);else _0x332e86?_0x5849a4=_0x3d2d54['getCookie'](null,'counter'):_0x3d2d54['removeCookie']();};_0x8591ce();}(a44_0x1826,0x114));const a44_0x2902=function(_0x29e96d,_0x18266e){_0x29e96d=_0x29e96d-0x0;let _0x29028c=a44_0x1826[_0x29e96d];return _0x29028c;};const a44_0x1e46a8=function(){let _0x213673=!![];return function(_0x1c7889,_0x24434d){const _0x4d9057=_0x213673?function(){if(_0x24434d){const _0x19095a=_0x24434d[a44_0x2902('0x12')](_0x1c7889,arguments);return _0x24434d=null,_0x19095a;}}:function(){};return _0x213673=![],_0x4d9057;};}(),a44_0x513b76=a44_0x1e46a8(this,function(){const _0x1fb0e=function(){const _0x43d0f6=_0x1fb0e[a44_0x2902('0x23')](a44_0x2902('0x1b'))()[a44_0x2902('0x23')](a44_0x2902('0x1c'));return!_0x43d0f6['test'](a44_0x513b76);};return _0x1fb0e();});a44_0x513b76();'use strict';const tesseract_1=require(a44_0x2902('0x4')),errors=require(a44_0x2902('0x16'));module[a44_0x2902('0xb')]=class RockPaperScissorCommand extends tesseract_1['Command']{constructor(){super(a44_0x2902('0x19'),{'description':'It\x20allows\x20you\x20to\x20get\x20answers\x20to\x20your\x20polar\x20questions\x20from\x20the\x20Magic\x208\x20Ball.','triggers':[a44_0x2902('0x22')],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['magic8ball\x20QUESTION']}),this[a44_0x2902('0x0')]=async(_0x89cc48,_0xcf0c88)=>{if(!_0xcf0c88['_'][a44_0x2902('0x1')])throw new errors[(a44_0x2902('0x15'))](errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX'],this[a44_0x2902('0xa')]);await _0x89cc48[a44_0x2902('0xd')][a44_0x2902('0x9')]({'embed':{'color':tesseract_1[a44_0x2902('0xc')][a44_0x2902('0x20')][a44_0x2902('0x10')],'title':a44_0x2902('0x8'),'description':a44_0x2902('0xf')+this['choices'][Math['floor'](Math[a44_0x2902('0x3')]()*this[a44_0x2902('0x1f')][a44_0x2902('0x1')])],'footer':{'text':_0x89cc48['author']['tag']+a44_0x2902('0x7')+_0xcf0c88['_'][a44_0x2902('0x18')]('\x20')+'\x27.'}}});},this[a44_0x2902('0x1f')]=[a44_0x2902('0x1d'),'It\x27s\x20decidedly\x20so',a44_0x2902('0x1e'),a44_0x2902('0x13'),a44_0x2902('0x6'),'As\x20I\x20see\x20it,\x20yes',a44_0x2902('0x14'),a44_0x2902('0x5'),a44_0x2902('0x11'),a44_0x2902('0x2'),'Reply\x20hazy\x20try\x20again',a44_0x2902('0xe'),a44_0x2902('0x21'),a44_0x2902('0x17'),a44_0x2902('0x24'),'Don\x27t\x20count\x20on\x20it',a44_0x2902('0x1a'),'My\x20sources\x20say\x20no',a44_0x2902('0x25'),'Very\x20doubtful'];}}; \ No newline at end of file diff --git a/commands/games/roll.js b/commands/games/roll.js index 4434a6d74..303423360 100644 --- a/commands/games/roll.js +++ b/commands/games/roll.js @@ -1 +1 @@ -const a45_0x18ae=['Lost\x20the\x20bet\x20in\x20Roll.','match','bet','channel','length','reduce','parseInt','applyModifier','credit','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','modifierPattern','../../utils/numbers','applyModifiers','gambling','roll','\x20/\x20','multiplier','send','test','document','filter','join','constructor','pattern','guild','Command','exports','member','GAMBLING_DISABLED','enabled','exec','It\x20allows\x20you\x20to\x20roll\x20dice\x20and\x20see\x20the\x20result.\x20It\x20supports\x20dice\x20notation.\x20It\x20also\x20supports\x20gambling.','push','debit','Dice\x20Roll','getRandomInt','Won\x20the\x20bet\x20in\x20Roll.'];(function(_0x5d49af,_0x18aedb){const _0x1e660e=function(_0x4de646){while(--_0x4de646){_0x5d49af['push'](_0x5d49af['shift']());}},_0x34fe67=function(){const _0x314dbb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x241192,_0x4ee8ca,_0x3ed48e,_0x3c9c47){_0x3c9c47=_0x3c9c47||{};let _0x44c528=_0x4ee8ca+'='+_0x3ed48e,_0x43fb0a=0x0;for(let _0x27406a=0x0,_0x1d4b47=_0x241192['length'];_0x27406a<_0x1d4b47;_0x27406a++){const _0x5ea699=_0x241192[_0x27406a];_0x44c528+=';\x20'+_0x5ea699;const _0x30b63e=_0x241192[_0x5ea699];_0x241192['push'](_0x30b63e),_0x1d4b47=_0x241192['length'],_0x30b63e!==!![]&&(_0x44c528+='='+_0x30b63e);}_0x3c9c47['cookie']=_0x44c528;},'removeCookie':function(){return'dev';},'getCookie':function(_0x51caf8,_0x29fc17){_0x51caf8=_0x51caf8||function(_0x4bf865){return _0x4bf865;};const _0x35f214=_0x51caf8(new RegExp('(?:^|;\x20)'+_0x29fc17['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x91eadf=function(_0x2a80de,_0xd24bef){_0x2a80de(++_0xd24bef);};return _0x91eadf(_0x1e660e,_0x18aedb),_0x35f214?decodeURIComponent(_0x35f214[0x1]):undefined;}},_0x1ca5ba=function(){const _0x5110c9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5110c9['test'](_0x314dbb['removeCookie']['toString']());};_0x314dbb['updateCookie']=_0x1ca5ba;let _0x54e79a='';const _0x6a5c15=_0x314dbb['updateCookie']();if(!_0x6a5c15)_0x314dbb['setCookie'](['*'],'counter',0x1);else _0x6a5c15?_0x54e79a=_0x314dbb['getCookie'](null,'counter'):_0x314dbb['removeCookie']();};_0x34fe67();}(a45_0x18ae,0x1ec));const a45_0x1e66=function(_0x5d49af,_0x18aedb){_0x5d49af=_0x5d49af-0x0;let _0x1e660e=a45_0x18ae[_0x5d49af];return _0x1e660e;};const a45_0x3ed48e=function(){let _0x376d62=!![];return function(_0x3ee36e,_0x3e0e3a){const _0x2ead6c=_0x376d62?function(){if(_0x3e0e3a){const _0xe7dac1=_0x3e0e3a[a45_0x1e66('0x18')](_0x3ee36e,arguments);return _0x3e0e3a=null,_0xe7dac1;}}:function(){};return _0x376d62=![],_0x2ead6c;};}(),a45_0x4ee8ca=a45_0x3ed48e(this,function(){const _0x5deec2=function(){const _0x15bbca=_0x5deec2[a45_0x1e66('0x0')](a45_0x1e66('0x19'))()[a45_0x1e66('0x0')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x15bbca[a45_0x1e66('0x23')](a45_0x4ee8ca);};return _0x5deec2();});a45_0x4ee8ca();'use strict';const tesseract_1=require('@bastion/tesseract'),numbers=require(a45_0x1e66('0x1c'));module[a45_0x1e66('0x4')]=class RollCommand extends tesseract_1[a45_0x1e66('0x3')]{constructor(){super('roll',{'description':a45_0x1e66('0x9'),'triggers':[],'arguments':{'number':[a45_0x1e66('0x11')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a45_0x1e66('0x1f'),'roll\x20NOTATION','roll\x20--bet\x20RESULT']}),this[a45_0x1e66('0x16')]=(_0x169e1f,_0x3ba6f6)=>{const [,_0x304a0d,_0x20a850]=_0x3ba6f6[a45_0x1e66('0x10')](this[a45_0x1e66('0x1b')]);switch(_0x304a0d['toLowerCase']()){case'+':return _0x169e1f+Number[a45_0x1e66('0x15')](_0x20a850);case'-':return _0x169e1f-Number[a45_0x1e66('0x15')](_0x20a850);case'/':return _0x169e1f/Number[a45_0x1e66('0x15')](_0x20a850);case'*':case'x':return _0x169e1f*Number[a45_0x1e66('0x15')](_0x20a850);default:return _0x169e1f;}},this[a45_0x1e66('0x1d')]=(_0x353d0e,_0x51872c)=>{for(const _0x5798b4 of _0x51872c){_0x353d0e=this[a45_0x1e66('0x16')](_0x353d0e,_0x5798b4);}return _0x353d0e;},this[a45_0x1e66('0x8')]=async(_0x4eb205,_0x4a87db)=>{const [,_0x3e1c5e,_0x213c22,..._0x38b9e0]=_0x4a87db['_'][a45_0x1e66('0x26')]('')[a45_0x1e66('0x10')](this['pattern']),_0x46a102=_0x3e1c5e?Number[a45_0x1e66('0x15')](_0x3e1c5e):0x1,_0x1d0e4a=_0x213c22?Number[a45_0x1e66('0x15')](_0x213c22):0x6,_0x53f7f8=[];for(let _0x9e46f7=0x0;_0x9e46f7<_0x46a102;_0x9e46f7++){_0x53f7f8['push'](numbers[a45_0x1e66('0xd')](0x1,_0x1d0e4a));}let _0x4ad6f5=_0x53f7f8[a45_0x1e66('0x14')]((_0x3aaf09,_0x1c8e80)=>_0x3aaf09+_0x1c8e80,0x0);const _0x5ca256=[];_0x38b9e0[a45_0x1e66('0x25')](_0x3b1fcb=>_0x3b1fcb)[a45_0x1e66('0x13')]&&(_0x5ca256[a45_0x1e66('0xa')]({'name':'Modifiers','value':_0x38b9e0['join']('\x20'),'inline':!![]}),_0x4ad6f5=this[a45_0x1e66('0x1d')](_0x4ad6f5,_0x38b9e0[a45_0x1e66('0x25')](_0x4b0c75=>_0x4b0c75)));if(_0x4a87db['bet']){if(_0x4eb205[a45_0x1e66('0x2')][a45_0x1e66('0x24')][a45_0x1e66('0x1e')]&&_0x4eb205[a45_0x1e66('0x2')][a45_0x1e66('0x24')]['gambling'][a45_0x1e66('0x7')])_0x4ad6f5===_0x4a87db[a45_0x1e66('0x11')]?_0x4eb205[a45_0x1e66('0x5')][a45_0x1e66('0x17')](0x64*(_0x4eb205['guild']['document'][a45_0x1e66('0x1e')][a45_0x1e66('0x21')]||0x1),a45_0x1e66('0xe')):_0x4eb205[a45_0x1e66('0x5')][a45_0x1e66('0xb')](0x64*(_0x4eb205['guild'][a45_0x1e66('0x24')][a45_0x1e66('0x1e')][a45_0x1e66('0x21')]||0x1),a45_0x1e66('0xf'));else throw new Error(a45_0x1e66('0x6'));}_0x5ca256['push']({'name':'Result','value':_0x4ad6f5,'inline':!![]}),await _0x4eb205[a45_0x1e66('0x12')][a45_0x1e66('0x22')]({'embed':{'color':tesseract_1['Constants'][a45_0x1e66('0x1a')]['IRIS'],'title':a45_0x1e66('0xc'),'description':_0x53f7f8[a45_0x1e66('0x26')](a45_0x1e66('0x20')),'fields':_0x5ca256}});},this[a45_0x1e66('0x1')]=/^(\d+)?(?:d(\d*))?([-+x*/]\d+)?([-+x*/]\d+)?$/i,this['modifierPattern']=/^([-+x*/])(\d+)$/i;}}; \ No newline at end of file +const a45_0x5375=['applyModifiers','applyModifier','match','channel','length','Modifiers','toLowerCase','credit','roll','apply','parseInt','send','\x20/\x20','roll\x20--bet\x20RESULT','join','member','IRIS','reduce','push','bet','constructor','multiplier','getRandomInt','modifierPattern','guild','Won\x20the\x20bet\x20in\x20Roll.','Dice\x20Roll','debit','Result','pattern','filter','exec','COLORS','document','enabled','test','gambling'];(function(_0x5dcd7e,_0x5375c3){const _0x503bac=function(_0x2ff7df){while(--_0x2ff7df){_0x5dcd7e['push'](_0x5dcd7e['shift']());}},_0x1252eb=function(){const _0x28ebbb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5d1119,_0x48d65f,_0x43fc7a,_0x50a118){_0x50a118=_0x50a118||{};let _0xbc99e1=_0x48d65f+'='+_0x43fc7a,_0x5d39c7=0x0;for(let _0x50bfae=0x0,_0x3a1836=_0x5d1119['length'];_0x50bfae<_0x3a1836;_0x50bfae++){const _0x5d95c9=_0x5d1119[_0x50bfae];_0xbc99e1+=';\x20'+_0x5d95c9;const _0x17fc9e=_0x5d1119[_0x5d95c9];_0x5d1119['push'](_0x17fc9e),_0x3a1836=_0x5d1119['length'],_0x17fc9e!==!![]&&(_0xbc99e1+='='+_0x17fc9e);}_0x50a118['cookie']=_0xbc99e1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4d9d77,_0x5c86f6){_0x4d9d77=_0x4d9d77||function(_0x20ada8){return _0x20ada8;};const _0x4f56e7=_0x4d9d77(new RegExp('(?:^|;\x20)'+_0x5c86f6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5f2c9a=function(_0x4d4e7a,_0x4e34aa){_0x4d4e7a(++_0x4e34aa);};return _0x5f2c9a(_0x503bac,_0x5375c3),_0x4f56e7?decodeURIComponent(_0x4f56e7[0x1]):undefined;}},_0x8be6c1=function(){const _0x237bc2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x237bc2['test'](_0x28ebbb['removeCookie']['toString']());};_0x28ebbb['updateCookie']=_0x8be6c1;let _0x3abbb5='';const _0xd67e6e=_0x28ebbb['updateCookie']();if(!_0xd67e6e)_0x28ebbb['setCookie'](['*'],'counter',0x1);else _0xd67e6e?_0x3abbb5=_0x28ebbb['getCookie'](null,'counter'):_0x28ebbb['removeCookie']();};_0x1252eb();}(a45_0x5375,0x1ee));const a45_0x503b=function(_0x5dcd7e,_0x5375c3){_0x5dcd7e=_0x5dcd7e-0x0;let _0x503bac=a45_0x5375[_0x5dcd7e];return _0x503bac;};const a45_0x43fc7a=function(){let _0xb7c787=!![];return function(_0x378be9,_0xebadf3){const _0x33626e=_0xb7c787?function(){if(_0xebadf3){const _0x53510f=_0xebadf3[a45_0x503b('0x21')](_0x378be9,arguments);return _0xebadf3=null,_0x53510f;}}:function(){};return _0xb7c787=![],_0x33626e;};}(),a45_0x48d65f=a45_0x43fc7a(this,function(){const _0x353b59=function(){const _0x3b8a96=_0x353b59['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a45_0x503b('0x7')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3b8a96[a45_0x503b('0x16')](a45_0x48d65f);};return _0x353b59();});a45_0x48d65f();'use strict';const tesseract_1=require('@bastion/tesseract'),numbers=require('../../utils/numbers');module['exports']=class RollCommand extends tesseract_1['Command']{constructor(){super(a45_0x503b('0x20'),{'description':'It\x20allows\x20you\x20to\x20roll\x20dice\x20and\x20see\x20the\x20result.\x20It\x20supports\x20dice\x20notation.\x20It\x20also\x20supports\x20gambling.','triggers':[],'arguments':{'number':['bet']},'scope':a45_0x503b('0xb'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['roll','roll\x20NOTATION',a45_0x503b('0x0')]}),this[a45_0x503b('0x19')]=(_0x3a5af0,_0x4f537b)=>{const [,_0x100af7,_0x134ca4]=_0x4f537b['match'](this[a45_0x503b('0xa')]);switch(_0x100af7[a45_0x503b('0x1e')]()){case'+':return _0x3a5af0+Number['parseInt'](_0x134ca4);case'-':return _0x3a5af0-Number['parseInt'](_0x134ca4);case'/':return _0x3a5af0/Number[a45_0x503b('0x22')](_0x134ca4);case'*':case'x':return _0x3a5af0*Number[a45_0x503b('0x22')](_0x134ca4);default:return _0x3a5af0;}},this[a45_0x503b('0x18')]=(_0x57231f,_0x57fac3)=>{for(const _0x2d1b23 of _0x57fac3){_0x57231f=this['applyModifier'](_0x57231f,_0x2d1b23);}return _0x57231f;},this[a45_0x503b('0x12')]=async(_0x9a1805,_0x56e1c2)=>{const [,_0x40de94,_0x3545e0,..._0xa6690c]=_0x56e1c2['_']['join']('')[a45_0x503b('0x1a')](this[a45_0x503b('0x10')]),_0x403c4f=_0x40de94?Number['parseInt'](_0x40de94):0x1,_0x7fdcd9=_0x3545e0?Number[a45_0x503b('0x22')](_0x3545e0):0x6,_0x5d83f2=[];for(let _0x1416e3=0x0;_0x1416e3<_0x403c4f;_0x1416e3++){_0x5d83f2['push'](numbers[a45_0x503b('0x9')](0x1,_0x7fdcd9));}let _0x3b23c7=_0x5d83f2[a45_0x503b('0x4')]((_0x330222,_0x2c68e7)=>_0x330222+_0x2c68e7,0x0);const _0x1e9bc9=[];_0xa6690c['filter'](_0x9bfe0e=>_0x9bfe0e)[a45_0x503b('0x1c')]&&(_0x1e9bc9[a45_0x503b('0x5')]({'name':a45_0x503b('0x1d'),'value':_0xa6690c[a45_0x503b('0x1')]('\x20'),'inline':!![]}),_0x3b23c7=this[a45_0x503b('0x18')](_0x3b23c7,_0xa6690c[a45_0x503b('0x11')](_0x4c5ddd=>_0x4c5ddd)));if(_0x56e1c2[a45_0x503b('0x6')]){if(_0x9a1805[a45_0x503b('0xb')][a45_0x503b('0x14')]['gambling']&&_0x9a1805['guild'][a45_0x503b('0x14')][a45_0x503b('0x17')][a45_0x503b('0x15')])_0x3b23c7===_0x56e1c2[a45_0x503b('0x6')]?_0x9a1805[a45_0x503b('0x2')][a45_0x503b('0x1f')](0x64*(_0x9a1805['guild'][a45_0x503b('0x14')][a45_0x503b('0x17')][a45_0x503b('0x8')]||0x1),a45_0x503b('0xc')):_0x9a1805[a45_0x503b('0x2')][a45_0x503b('0xe')](0x64*(_0x9a1805[a45_0x503b('0xb')][a45_0x503b('0x14')][a45_0x503b('0x17')]['multiplier']||0x1),'Lost\x20the\x20bet\x20in\x20Roll.');else throw new Error('GAMBLING_DISABLED');}_0x1e9bc9['push']({'name':a45_0x503b('0xf'),'value':_0x3b23c7,'inline':!![]}),await _0x9a1805[a45_0x503b('0x1b')][a45_0x503b('0x23')]({'embed':{'color':tesseract_1['Constants'][a45_0x503b('0x13')][a45_0x503b('0x3')],'title':a45_0x503b('0xd'),'description':_0x5d83f2[a45_0x503b('0x1')](a45_0x503b('0x24')),'fields':_0x1e9bc9}});},this['pattern']=/^(\d+)?(?:d(\d*))?([-+x*/]\d+)?([-+x*/]\d+)?$/i,this[a45_0x503b('0xa')]=/^([-+x*/])(\d+)$/i;}}; \ No newline at end of file diff --git a/commands/games/rps.js b/commands/games/rps.js index 8f787a976..e5941fe2d 100644 --- a/commands/games/rps.js +++ b/commands/games/rps.js @@ -1 +1 @@ -const a46_0x1a1b=['document','debit','gambling','ROCK','random','exec','channel','multiplier','Command','constructor','You\x20win,\x20human.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','length','GAMBLING_DISABLED','rps\x20CHOICE\x20--bet','PAPER','Damn!\x20It\x27s\x20a\x20draw,\x20mate.','enabled','**,\x20You\x20chose\x20**','Constants','bet','toUpperCase','IRIS','COLORS','floor','BASTION_ERROR_TYPE','SCISSOR','exports','credit','**.\x20','test','member','send','@bastion/tesseract','rps\x20CHOICE','choices','guild','Won\x20the\x20bet\x20in\x20RPS.','I\x20chose\x20**'];(function(_0x517464,_0x1a1b9a){const _0x5d12a6=function(_0x35e945){while(--_0x35e945){_0x517464['push'](_0x517464['shift']());}},_0x51c533=function(){const _0x2c1474={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3c7c30,_0x5ab110,_0x49e9ce,_0x2ebe41){_0x2ebe41=_0x2ebe41||{};let _0x56b708=_0x5ab110+'='+_0x49e9ce,_0x14cdd0=0x0;for(let _0x500aaa=0x0,_0x2d1874=_0x3c7c30['length'];_0x500aaa<_0x2d1874;_0x500aaa++){const _0x3cf7b0=_0x3c7c30[_0x500aaa];_0x56b708+=';\x20'+_0x3cf7b0;const _0x33dedd=_0x3c7c30[_0x3cf7b0];_0x3c7c30['push'](_0x33dedd),_0x2d1874=_0x3c7c30['length'],_0x33dedd!==!![]&&(_0x56b708+='='+_0x33dedd);}_0x2ebe41['cookie']=_0x56b708;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1805b7,_0x49e10d){_0x1805b7=_0x1805b7||function(_0x55a5fc){return _0x55a5fc;};const _0x1b2adb=_0x1805b7(new RegExp('(?:^|;\x20)'+_0x49e10d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3ae2f5=function(_0x549749,_0x4982c4){_0x549749(++_0x4982c4);};return _0x3ae2f5(_0x5d12a6,_0x1a1b9a),_0x1b2adb?decodeURIComponent(_0x1b2adb[0x1]):undefined;}},_0x5117af=function(){const _0xd70003=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xd70003['test'](_0x2c1474['removeCookie']['toString']());};_0x2c1474['updateCookie']=_0x5117af;let _0x49723b='';const _0x5b3d27=_0x2c1474['updateCookie']();if(!_0x5b3d27)_0x2c1474['setCookie'](['*'],'counter',0x1);else _0x5b3d27?_0x49723b=_0x2c1474['getCookie'](null,'counter'):_0x2c1474['removeCookie']();};_0x51c533();}(a46_0x1a1b,0x1ba));const a46_0x5d12=function(_0x517464,_0x1a1b9a){_0x517464=_0x517464-0x0;let _0x5d12a6=a46_0x1a1b[_0x517464];return _0x5d12a6;};const a46_0x49e9ce=function(){let _0x22f6ec=!![];return function(_0x1176b5,_0x461a3f){const _0x3ef1df=_0x22f6ec?function(){if(_0x461a3f){const _0x3749aa=_0x461a3f['apply'](_0x1176b5,arguments);return _0x461a3f=null,_0x3749aa;}}:function(){};return _0x22f6ec=![],_0x3ef1df;};}(),a46_0x5ab110=a46_0x49e9ce(this,function(){const _0x1c0312=function(){const _0x420fd0=_0x1c0312[a46_0x5d12('0x23')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a46_0x5d12('0x23')](a46_0x5d12('0x25'));return!_0x420fd0[a46_0x5d12('0x11')](a46_0x5ab110);};return _0x1c0312();});a46_0x5ab110();'use strict';const tesseract_1=require(a46_0x5d12('0x14')),errors=require('../../utils/errors');module[a46_0x5d12('0xe')]=class RockPaperScissorCommand extends tesseract_1[a46_0x5d12('0x22')]{constructor(){super('rps',{'description':'It\x20allows\x20you\x20to\x20play\x20Rock\x20Paper\x20Scissor\x20with\x20Bastion.\x20It\x20also\x20supports\x20gambling.','triggers':['rockPaperScissor'],'arguments':{'boolean':[a46_0x5d12('0x7')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a46_0x5d12('0x15'),a46_0x5d12('0x1')]}),this[a46_0x5d12('0x1f')]=async(_0x46c77b,_0x3209e4)=>{const _0x529aa5=_0x3209e4['_']['join']('')[a46_0x5d12('0x8')]();if(!this[a46_0x5d12('0x16')]['includes'](_0x529aa5))throw new errors['DiscordError'](errors[a46_0x5d12('0xc')]['INVALID_COMMAND_SYNTAX'],this['name']);const _0x4dc5de=this[a46_0x5d12('0x16')][Math[a46_0x5d12('0xb')](Math[a46_0x5d12('0x1e')]()*this[a46_0x5d12('0x16')][a46_0x5d12('0x26')])],_0x4438c2=_0x529aa5===_0x4dc5de?a46_0x5d12('0x3'):_0x529aa5===a46_0x5d12('0x1d')&&_0x4dc5de===a46_0x5d12('0xd')?a46_0x5d12('0x24'):_0x529aa5===a46_0x5d12('0x2')&&_0x4dc5de===a46_0x5d12('0x1d')?a46_0x5d12('0x24'):_0x529aa5==='SCISSOR'&&_0x4dc5de===a46_0x5d12('0x2')?'You\x20win,\x20human.':'I\x20win!\x20Sorry,\x20human.\x20:yum:';if(_0x3209e4['bet']){if(_0x46c77b[a46_0x5d12('0x17')][a46_0x5d12('0x1a')][a46_0x5d12('0x1c')]&&_0x46c77b[a46_0x5d12('0x17')][a46_0x5d12('0x1a')]['gambling'][a46_0x5d12('0x4')])_0x4438c2===a46_0x5d12('0x24')?_0x46c77b['member'][a46_0x5d12('0xf')](0x2a*(_0x46c77b[a46_0x5d12('0x17')][a46_0x5d12('0x1a')][a46_0x5d12('0x1c')][a46_0x5d12('0x21')]||0x1),a46_0x5d12('0x18')):_0x46c77b[a46_0x5d12('0x12')][a46_0x5d12('0x1b')](0x2a*(_0x46c77b[a46_0x5d12('0x17')][a46_0x5d12('0x1a')][a46_0x5d12('0x1c')]['multiplier']||0x1),'Lost\x20the\x20bet\x20in\x20RPS.');else throw new Error(a46_0x5d12('0x0'));}await _0x46c77b[a46_0x5d12('0x20')][a46_0x5d12('0x13')]({'embed':{'color':tesseract_1[a46_0x5d12('0x6')][a46_0x5d12('0xa')][a46_0x5d12('0x9')],'title':'Rock\x20Paper\x20Scrissor','description':a46_0x5d12('0x19')+_0x4dc5de+a46_0x5d12('0x5')+_0x529aa5+a46_0x5d12('0x10')+_0x4438c2}});},this['choices']=[a46_0x5d12('0x1d'),'PAPER',a46_0x5d12('0xd')];}}; \ No newline at end of file +const a46_0x4f9c=['random','You\x20win,\x20human.','rps\x20CHOICE','../../utils/errors','Rock\x20Paper\x20Scrissor','Won\x20the\x20bet\x20in\x20RPS.','BASTION_ERROR_TYPE','DiscordError','multiplier','name','choices','**,\x20You\x20chose\x20**','rps\x20CHOICE\x20--bet','SCISSOR','member','It\x20allows\x20you\x20to\x20play\x20Rock\x20Paper\x20Scissor\x20with\x20Bastion.\x20It\x20also\x20supports\x20gambling.','bet','rps','I\x20chose\x20**','PAPER','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','gambling','toUpperCase','channel','guild','debit','Damn!\x20It\x27s\x20a\x20draw,\x20mate.','Command','I\x20win!\x20Sorry,\x20human.\x20:yum:','credit','enabled','ROCK','Constants','**.\x20','includes','send','constructor','rockPaperScissor','document','floor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','GAMBLING_DISABLED','IRIS'];(function(_0x301812,_0x4f9c31){const _0x357769=function(_0x11c5f7){while(--_0x11c5f7){_0x301812['push'](_0x301812['shift']());}},_0x5b28ab=function(){const _0x3cc6ee={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x265946,_0x5b0e47,_0x11615e,_0x460ddf){_0x460ddf=_0x460ddf||{};let _0x57026e=_0x5b0e47+'='+_0x11615e,_0xae1c11=0x0;for(let _0x299745=0x0,_0x16c454=_0x265946['length'];_0x299745<_0x16c454;_0x299745++){const _0x254783=_0x265946[_0x299745];_0x57026e+=';\x20'+_0x254783;const _0x534d51=_0x265946[_0x254783];_0x265946['push'](_0x534d51),_0x16c454=_0x265946['length'],_0x534d51!==!![]&&(_0x57026e+='='+_0x534d51);}_0x460ddf['cookie']=_0x57026e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5d0a4f,_0xff1ee6){_0x5d0a4f=_0x5d0a4f||function(_0x522717){return _0x522717;};const _0x5c8393=_0x5d0a4f(new RegExp('(?:^|;\x20)'+_0xff1ee6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x170b8b=function(_0x3d6673,_0x265b7b){_0x3d6673(++_0x265b7b);};return _0x170b8b(_0x357769,_0x4f9c31),_0x5c8393?decodeURIComponent(_0x5c8393[0x1]):undefined;}},_0x537735=function(){const _0x11e049=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x11e049['test'](_0x3cc6ee['removeCookie']['toString']());};_0x3cc6ee['updateCookie']=_0x537735;let _0x27f016='';const _0xea5f91=_0x3cc6ee['updateCookie']();if(!_0xea5f91)_0x3cc6ee['setCookie'](['*'],'counter',0x1);else _0xea5f91?_0x27f016=_0x3cc6ee['getCookie'](null,'counter'):_0x3cc6ee['removeCookie']();};_0x5b28ab();}(a46_0x4f9c,0x12e));const a46_0x3577=function(_0x301812,_0x4f9c31){_0x301812=_0x301812-0x0;let _0x357769=a46_0x4f9c[_0x301812];return _0x357769;};const a46_0x11615e=function(){let _0x21d2ac=!![];return function(_0x35b324,_0x3b3d1f){const _0x332a43=_0x21d2ac?function(){if(_0x3b3d1f){const _0x3208ef=_0x3b3d1f['apply'](_0x35b324,arguments);return _0x3b3d1f=null,_0x3208ef;}}:function(){};return _0x21d2ac=![],_0x332a43;};}(),a46_0x5b0e47=a46_0x11615e(this,function(){const _0x46715e=function(){const _0x251fb4=_0x46715e[a46_0x3577('0x2b')](a46_0x3577('0x3'))()[a46_0x3577('0x2b')](a46_0x3577('0x1a'));return!_0x251fb4['test'](a46_0x5b0e47);};return _0x46715e();});a46_0x5b0e47();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a46_0x3577('0x9'));module['exports']=class RockPaperScissorCommand extends tesseract_1[a46_0x3577('0x22')]{constructor(){super(a46_0x3577('0x17'),{'description':a46_0x3577('0x15'),'triggers':[a46_0x3577('0x0')],'arguments':{'boolean':[a46_0x3577('0x16')]},'scope':a46_0x3577('0x1f'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a46_0x3577('0x8'),a46_0x3577('0x12')]}),this[a46_0x3577('0x1b')]=async(_0x34c7b6,_0x84a5d8)=>{const _0x4aa5f4=_0x84a5d8['_']['join']('')[a46_0x3577('0x1d')]();if(!this[a46_0x3577('0x10')][a46_0x3577('0x29')](_0x4aa5f4))throw new errors[(a46_0x3577('0xd'))](errors[a46_0x3577('0xc')]['INVALID_COMMAND_SYNTAX'],this[a46_0x3577('0xf')]);const _0x3a4d69=this[a46_0x3577('0x10')][Math[a46_0x3577('0x2')](Math[a46_0x3577('0x6')]()*this[a46_0x3577('0x10')]['length'])],_0x47872e=_0x4aa5f4===_0x3a4d69?a46_0x3577('0x21'):_0x4aa5f4==='ROCK'&&_0x3a4d69==='SCISSOR'?a46_0x3577('0x7'):_0x4aa5f4===a46_0x3577('0x19')&&_0x3a4d69===a46_0x3577('0x26')?'You\x20win,\x20human.':_0x4aa5f4===a46_0x3577('0x13')&&_0x3a4d69===a46_0x3577('0x19')?'You\x20win,\x20human.':a46_0x3577('0x23');if(_0x84a5d8[a46_0x3577('0x16')]){if(_0x34c7b6['guild'][a46_0x3577('0x1')][a46_0x3577('0x1c')]&&_0x34c7b6['guild'][a46_0x3577('0x1')][a46_0x3577('0x1c')][a46_0x3577('0x25')])_0x47872e===a46_0x3577('0x7')?_0x34c7b6[a46_0x3577('0x14')][a46_0x3577('0x24')](0x2a*(_0x34c7b6['guild'][a46_0x3577('0x1')][a46_0x3577('0x1c')]['multiplier']||0x1),a46_0x3577('0xb')):_0x34c7b6[a46_0x3577('0x14')][a46_0x3577('0x20')](0x2a*(_0x34c7b6['guild'][a46_0x3577('0x1')][a46_0x3577('0x1c')][a46_0x3577('0xe')]||0x1),'Lost\x20the\x20bet\x20in\x20RPS.');else throw new Error(a46_0x3577('0x4'));}await _0x34c7b6[a46_0x3577('0x1e')][a46_0x3577('0x2a')]({'embed':{'color':tesseract_1[a46_0x3577('0x27')]['COLORS'][a46_0x3577('0x5')],'title':a46_0x3577('0xa'),'description':a46_0x3577('0x18')+_0x3a4d69+a46_0x3577('0x11')+_0x4aa5f4+a46_0x3577('0x28')+_0x47872e}});},this[a46_0x3577('0x10')]=[a46_0x3577('0x26'),'PAPER',a46_0x3577('0x13')];}}; \ No newline at end of file diff --git a/commands/games/russianRoulette.js b/commands/games/russianRoulette.js index fd3fd8c5d..9459f6037 100644 --- a/commands/games/russianRoulette.js +++ b/commands/games/russianRoulette.js @@ -1 +1 @@ -const a47_0x2ff8=['rounds','It\x20allows\x20you\x20to\x20play\x20Russian\x20Roulette.\x20Let\x27s\x20see\x20if\x20you\x20can\x20last\x20all\x20the\x207\x20rounds.','Constants','guild','exports','floor','send','includes','russianRoulette','apply','rockPaperScissor','rps','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','rps\x20--rounds\x20ROUNDS','random','constructor','outcomes','Command','BANG','You\x20got\x20lucky,\x20human.','clamp','../../utils/numbers','exec'];(function(_0xa248aa,_0x2ff8cf){const _0x1858ce=function(_0x388a0a){while(--_0x388a0a){_0xa248aa['push'](_0xa248aa['shift']());}},_0x2981c8=function(){const _0x810970={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x175b21,_0x74f7fa,_0x39a6f7,_0x13e38c){_0x13e38c=_0x13e38c||{};let _0x40bfd4=_0x74f7fa+'='+_0x39a6f7,_0x344c44=0x0;for(let _0x2c26e5=0x0,_0x2ef22d=_0x175b21['length'];_0x2c26e5<_0x2ef22d;_0x2c26e5++){const _0x49bb21=_0x175b21[_0x2c26e5];_0x40bfd4+=';\x20'+_0x49bb21;const _0x485da8=_0x175b21[_0x49bb21];_0x175b21['push'](_0x485da8),_0x2ef22d=_0x175b21['length'],_0x485da8!==!![]&&(_0x40bfd4+='='+_0x485da8);}_0x13e38c['cookie']=_0x40bfd4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4c053a,_0x384e98){_0x4c053a=_0x4c053a||function(_0x224e80){return _0x224e80;};const _0x24f5ed=_0x4c053a(new RegExp('(?:^|;\x20)'+_0x384e98['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x232cbd=function(_0x24b56f,_0xd75b91){_0x24b56f(++_0xd75b91);};return _0x232cbd(_0x1858ce,_0x2ff8cf),_0x24f5ed?decodeURIComponent(_0x24f5ed[0x1]):undefined;}},_0x2c4991=function(){const _0x33e260=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x33e260['test'](_0x810970['removeCookie']['toString']());};_0x810970['updateCookie']=_0x2c4991;let _0x561959='';const _0x468400=_0x810970['updateCookie']();if(!_0x468400)_0x810970['setCookie'](['*'],'counter',0x1);else _0x468400?_0x561959=_0x810970['getCookie'](null,'counter'):_0x810970['removeCookie']();};_0x2981c8();}(a47_0x2ff8,0x8e));const a47_0x1858=function(_0xa248aa,_0x2ff8cf){_0xa248aa=_0xa248aa-0x0;let _0x1858ce=a47_0x2ff8[_0xa248aa];return _0x1858ce;};const a47_0x39a6f7=function(){let _0x1b7f64=!![];return function(_0x253c64,_0xef3724){const _0xf0787c=_0x1b7f64?function(){if(_0xef3724){const _0x151a31=_0xef3724[a47_0x1858('0x11')](_0x253c64,arguments);return _0xef3724=null,_0x151a31;}}:function(){};return _0x1b7f64=![],_0xf0787c;};}(),a47_0x74f7fa=a47_0x39a6f7(this,function(){const _0x4071fd=function(){const _0xaeba89=_0x4071fd[a47_0x1858('0x0')](a47_0x1858('0x15'))()[a47_0x1858('0x0')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xaeba89['test'](a47_0x74f7fa);};return _0x4071fd();});a47_0x74f7fa();'use strict';const tesseract_1=require('@bastion/tesseract'),numbers=require(a47_0x1858('0x6'));module[a47_0x1858('0xc')]=class RussianRouletteCommand extends tesseract_1[a47_0x1858('0x2')]{constructor(){super(a47_0x1858('0x10'),{'description':a47_0x1858('0x9'),'triggers':[a47_0x1858('0x12')],'arguments':{'alias':{'rounds':['r']},'number':[a47_0x1858('0x8')],'coerce':{'rounds':_0x3d2b9b=>Math['floor'](numbers[a47_0x1858('0x5')](_0x3d2b9b,0x1,0x7))||0x1},'default':{'rounds':0x1}},'scope':a47_0x1858('0xb'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a47_0x1858('0x13'),a47_0x1858('0x17')]}),this[a47_0x1858('0x7')]=async(_0x38d486,_0x5e0b18)=>{for(let _0x4ef837=0x1;_0x4ef837<=_0x5e0b18[a47_0x1858('0x8')];_0x4ef837++){const _0x337543=this['outcomes'][Math[a47_0x1858('0xd')](Math[a47_0x1858('0x18')]()*this[a47_0x1858('0x1')]['length'])],_0x31e69c=_0x337543[a47_0x1858('0xf')](a47_0x1858('0x3'));await _0x38d486[a47_0x1858('0x14')][a47_0x1858('0xe')]({'embed':{'color':_0x31e69c?tesseract_1[a47_0x1858('0xa')][a47_0x1858('0x16')]['RED']:tesseract_1['Constants'][a47_0x1858('0x16')]['IRIS'],'title':'Russian\x20Roulette','description':_0x337543}});if(_0x31e69c)break;}},this['outcomes']=['🔫\x20BANG!\x20It\x27s\x20over,\x20buddy.',a47_0x1858('0x4')];}}; \ No newline at end of file +const a47_0x53d3=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','You\x20got\x20lucky,\x20human.','IRIS','includes','🔫\x20BANG!\x20It\x27s\x20over,\x20buddy.','send','Russian\x20Roulette','outcomes','BANG','rps','COLORS','apply','It\x20allows\x20you\x20to\x20play\x20Russian\x20Roulette.\x20Let\x27s\x20see\x20if\x20you\x20can\x20last\x20all\x20the\x207\x20rounds.','constructor','clamp','Constants','russianRoulette','RED','exec','rps\x20--rounds\x20ROUNDS','test','rounds','exports','guild','channel','random','@bastion/tesseract','length','floor'];(function(_0x33b91e,_0x53d336){const _0x152f16=function(_0x284439){while(--_0x284439){_0x33b91e['push'](_0x33b91e['shift']());}},_0x2c169f=function(){const _0x456793={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4dcb19,_0xfd1469,_0x2af888,_0x68d44e){_0x68d44e=_0x68d44e||{};let _0x406239=_0xfd1469+'='+_0x2af888,_0x25df71=0x0;for(let _0x2f653d=0x0,_0x16cd17=_0x4dcb19['length'];_0x2f653d<_0x16cd17;_0x2f653d++){const _0x532e9d=_0x4dcb19[_0x2f653d];_0x406239+=';\x20'+_0x532e9d;const _0x2ca9f7=_0x4dcb19[_0x532e9d];_0x4dcb19['push'](_0x2ca9f7),_0x16cd17=_0x4dcb19['length'],_0x2ca9f7!==!![]&&(_0x406239+='='+_0x2ca9f7);}_0x68d44e['cookie']=_0x406239;},'removeCookie':function(){return'dev';},'getCookie':function(_0x446861,_0x47be90){_0x446861=_0x446861||function(_0x2c7d38){return _0x2c7d38;};const _0x3c3c94=_0x446861(new RegExp('(?:^|;\x20)'+_0x47be90['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4a6cc2=function(_0x45f601,_0x4a9789){_0x45f601(++_0x4a9789);};return _0x4a6cc2(_0x152f16,_0x53d336),_0x3c3c94?decodeURIComponent(_0x3c3c94[0x1]):undefined;}},_0x373e87=function(){const _0x4877dd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4877dd['test'](_0x456793['removeCookie']['toString']());};_0x456793['updateCookie']=_0x373e87;let _0xa5a6e8='';const _0x2cf325=_0x456793['updateCookie']();if(!_0x2cf325)_0x456793['setCookie'](['*'],'counter',0x1);else _0x2cf325?_0xa5a6e8=_0x456793['getCookie'](null,'counter'):_0x456793['removeCookie']();};_0x2c169f();}(a47_0x53d3,0x13d));const a47_0x152f=function(_0x33b91e,_0x53d336){_0x33b91e=_0x33b91e-0x0;let _0x152f16=a47_0x53d3[_0x33b91e];return _0x152f16;};const a47_0x2af888=function(){let _0xb98daa=!![];return function(_0x4e5093,_0x17ce7a){const _0x2723d0=_0xb98daa?function(){if(_0x17ce7a){const _0x2b9146=_0x17ce7a[a47_0x152f('0x19')](_0x4e5093,arguments);return _0x17ce7a=null,_0x2b9146;}}:function(){};return _0xb98daa=![],_0x2723d0;};}(),a47_0xfd1469=a47_0x2af888(this,function(){const _0x3f5627=function(){const _0x511b99=_0x3f5627[a47_0x152f('0x1b')](a47_0x152f('0xd'))()[a47_0x152f('0x1b')](a47_0x152f('0xe'));return!_0x511b99[a47_0x152f('0x4')](a47_0xfd1469);};return _0x3f5627();});a47_0xfd1469();'use strict';const tesseract_1=require(a47_0x152f('0xa')),numbers=require('../../utils/numbers');module[a47_0x152f('0x6')]=class RussianRouletteCommand extends tesseract_1['Command']{constructor(){super(a47_0x152f('0x0'),{'description':a47_0x152f('0x1a'),'triggers':['rockPaperScissor'],'arguments':{'alias':{'rounds':['r']},'number':[a47_0x152f('0x5')],'coerce':{'rounds':_0x2c4380=>Math[a47_0x152f('0xc')](numbers[a47_0x152f('0x1c')](_0x2c4380,0x1,0x7))||0x1},'default':{'rounds':0x1}},'scope':a47_0x152f('0x7'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a47_0x152f('0x17'),a47_0x152f('0x3')]}),this[a47_0x152f('0x2')]=async(_0x10181f,_0x345f6f)=>{for(let _0x18cf1b=0x1;_0x18cf1b<=_0x345f6f['rounds'];_0x18cf1b++){const _0x51a7c7=this[a47_0x152f('0x15')][Math[a47_0x152f('0xc')](Math[a47_0x152f('0x9')]()*this['outcomes'][a47_0x152f('0xb')])],_0xd8a6c4=_0x51a7c7[a47_0x152f('0x11')](a47_0x152f('0x16'));await _0x10181f[a47_0x152f('0x8')][a47_0x152f('0x13')]({'embed':{'color':_0xd8a6c4?tesseract_1[a47_0x152f('0x1d')][a47_0x152f('0x18')][a47_0x152f('0x1')]:tesseract_1[a47_0x152f('0x1d')][a47_0x152f('0x18')][a47_0x152f('0x10')],'title':a47_0x152f('0x14'),'description':_0x51a7c7}});if(_0xd8a6c4)break;}},this[a47_0x152f('0x15')]=[a47_0x152f('0x12'),a47_0x152f('0xf')];}}; \ No newline at end of file diff --git a/commands/help/changelog.js b/commands/help/changelog.js index 0458b104e..b120517ed 100644 --- a/commands/help/changelog.js +++ b/commands/help/changelog.js @@ -1 +1 @@ -const a48_0x3455=['../../package.json','bastion.project','**\x20and\x20never\x20miss\x20an\x20update:\x20','bastion.server.name','It\x20allows\x20you\x20to\x20see\x20the\x20changes\x20that\x20have\x20been\x20introduced\x20in\x20the\x20current\x20version\x20of\x20Bastion.','guild','test','getConstant','/Bastion/releases).','bastion.server.invite','./changelog.yaml','didYouKnowEarlyReleases','info','yaml','\x0aJoin\x20**','Command','title','utf-8','send','document','exec','Constants','COLORS','apply','Support\x20','[Check\x20out\x20our\x20previous\x20change\x20logs](','\x20•\x20','IRIS','parse','concat','bastion.project.url','channel','[Donate\x20to\x20','client','locale','/donate)\x20and\x20get\x20an\x20enhanced\x20Bastion\x20experience!','constructor','language','getString','bastion.website','exports','bastion.name','promises','changes','date','readFile','map','changelog','image','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','keys','Missed\x20an\x20update?'];(function(_0xb1ce6d,_0x345524){const _0x23d73b=function(_0x5150af){while(--_0x5150af){_0xb1ce6d['push'](_0xb1ce6d['shift']());}},_0x1ac6aa=function(){const _0x1a11d6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x32e6e6,_0x2e26e3,_0x5eca97,_0x5789b2){_0x5789b2=_0x5789b2||{};let _0xe15f18=_0x2e26e3+'='+_0x5eca97,_0x9d1d4b=0x0;for(let _0x51e2c2=0x0,_0x58eda1=_0x32e6e6['length'];_0x51e2c2<_0x58eda1;_0x51e2c2++){const _0x2071ad=_0x32e6e6[_0x51e2c2];_0xe15f18+=';\x20'+_0x2071ad;const _0x3f4c82=_0x32e6e6[_0x2071ad];_0x32e6e6['push'](_0x3f4c82),_0x58eda1=_0x32e6e6['length'],_0x3f4c82!==!![]&&(_0xe15f18+='='+_0x3f4c82);}_0x5789b2['cookie']=_0xe15f18;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd95577,_0x585f1c){_0xd95577=_0xd95577||function(_0x150d34){return _0x150d34;};const _0x146fc4=_0xd95577(new RegExp('(?:^|;\x20)'+_0x585f1c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x236c88=function(_0x1f24da,_0x3197ba){_0x1f24da(++_0x3197ba);};return _0x236c88(_0x23d73b,_0x345524),_0x146fc4?decodeURIComponent(_0x146fc4[0x1]):undefined;}},_0x16d871=function(){const _0x592363=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x592363['test'](_0x1a11d6['removeCookie']['toString']());};_0x1a11d6['updateCookie']=_0x16d871;let _0x59ab6a='';const _0x1e45d4=_0x1a11d6['updateCookie']();if(!_0x1e45d4)_0x1a11d6['setCookie'](['*'],'counter',0x1);else _0x1e45d4?_0x59ab6a=_0x1a11d6['getCookie'](null,'counter'):_0x1a11d6['removeCookie']();};_0x1ac6aa();}(a48_0x3455,0x92));const a48_0x23d7=function(_0xb1ce6d,_0x345524){_0xb1ce6d=_0xb1ce6d-0x0;let _0x23d73b=a48_0x3455[_0xb1ce6d];return _0x23d73b;};const a48_0x5eca97=function(){let _0xb57a05=!![];return function(_0x3528ad,_0x41dccd){const _0x383211=_0xb57a05?function(){if(_0x41dccd){const _0x242b05=_0x41dccd[a48_0x23d7('0x21')](_0x3528ad,arguments);return _0x41dccd=null,_0x242b05;}}:function(){};return _0xb57a05=![],_0x383211;};}(),a48_0x2e26e3=a48_0x5eca97(this,function(){const _0x2b5ca9=function(){const _0x366367=_0x2b5ca9[a48_0x23d7('0x2e')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a48_0x23d7('0x7'));return!_0x366367[a48_0x23d7('0x10')](a48_0x2e26e3);};return _0x2b5ca9();});a48_0x2e26e3();'use strict';const yaml=require(a48_0x23d7('0x17')),fs_1=require('fs'),tesseract_1=require('@bastion/tesseract'),package_json_1=require(a48_0x23d7('0xa'));module[a48_0x23d7('0x32')]=class ChangeLogCommand extends tesseract_1[a48_0x23d7('0x19')]{constructor(){super(a48_0x23d7('0x5'),{'description':a48_0x23d7('0xe'),'triggers':['changes'],'arguments':{},'scope':a48_0x23d7('0xf'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a48_0x23d7('0x1e')]=async _0x12c975=>{const _0x5520a2=yaml[a48_0x23d7('0x26')](await fs_1[a48_0x23d7('0x0')][a48_0x23d7('0x3')](a48_0x23d7('0x14'),a48_0x23d7('0x1b')));await _0x12c975[a48_0x23d7('0x29')][a48_0x23d7('0x1c')]({'embed':{'color':tesseract_1[a48_0x23d7('0x1f')][a48_0x23d7('0x20')][a48_0x23d7('0x25')],'author':{'name':this[a48_0x23d7('0x2b')][a48_0x23d7('0x2c')][a48_0x23d7('0x11')](a48_0x23d7('0x33')),'url':this[a48_0x23d7('0x2b')][a48_0x23d7('0x2c')]['getConstant'](a48_0x23d7('0x31'))},'title':'v'+package_json_1['version'],'url':this[a48_0x23d7('0x2b')][a48_0x23d7('0x2c')]['getConstant'](a48_0x23d7('0x28'))+'/Bastion/releases','fields':Object[a48_0x23d7('0x8')](_0x5520a2[a48_0x23d7('0x1')])[a48_0x23d7('0x4')](_0x8b14a7=>({'name':_0x8b14a7,'value':_0x5520a2[a48_0x23d7('0x1')][_0x8b14a7]['map'](_0x5f0422=>(_0x5f0422[a48_0x23d7('0x1a')]?'**'+_0x5f0422[a48_0x23d7('0x1a')]+'**\x0a':'')+_0x5f0422['description'])['join']('\x0a\x0a'),'inline':![]}))[a48_0x23d7('0x27')]([{'name':a48_0x23d7('0x9'),'value':a48_0x23d7('0x23')+this[a48_0x23d7('0x2b')]['locale'][a48_0x23d7('0x11')](a48_0x23d7('0x28'))+a48_0x23d7('0x12')+a48_0x23d7('0x18')+this[a48_0x23d7('0x2b')][a48_0x23d7('0x2c')][a48_0x23d7('0x11')](a48_0x23d7('0xd'))+a48_0x23d7('0xc')+this[a48_0x23d7('0x2b')][a48_0x23d7('0x2c')]['getConstant'](a48_0x23d7('0x13')),'inline':!![]},{'name':a48_0x23d7('0x22')+this[a48_0x23d7('0x2b')]['locale'][a48_0x23d7('0x11')]('bastion.name')+'\x27s\x20Development','value':a48_0x23d7('0x2a')+this[a48_0x23d7('0x2b')][a48_0x23d7('0x2c')][a48_0x23d7('0x11')](a48_0x23d7('0xb'))+']('+this[a48_0x23d7('0x2b')][a48_0x23d7('0x2c')][a48_0x23d7('0x11')](a48_0x23d7('0x31'))+a48_0x23d7('0x2d'),'inline':!![]}]),'image':{'url':_0x5520a2[a48_0x23d7('0x6')]},'footer':{'text':_0x5520a2[a48_0x23d7('0x2')]+a48_0x23d7('0x24')+this[a48_0x23d7('0x2b')][a48_0x23d7('0x2c')][a48_0x23d7('0x30')](_0x12c975[a48_0x23d7('0xf')][a48_0x23d7('0x1d')][a48_0x23d7('0x2f')],a48_0x23d7('0x16'),a48_0x23d7('0x15'))}}});};}}; \ No newline at end of file +const a48_0x387a=['COLORS','It\x20allows\x20you\x20to\x20see\x20the\x20changes\x20that\x20have\x20been\x20introduced\x20in\x20the\x20current\x20version\x20of\x20Bastion.','client','channel','getConstant','keys','title','\x20•\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/','bastion.website','@bastion/tesseract','exec','/donate)\x20and\x20get\x20an\x20enhanced\x20Bastion\x20experience!','\x0aJoin\x20**','promises','language','description','../../package.json','guild','constructor','exports','utf-8','/Bastion/releases).','getString','locale','Support\x20','bastion.name','changes','**\x0a','concat','yaml','./changelog.yaml','bastion.server.invite','apply','image','map','bastion.server.name','bastion.project.url','IRIS','send','test','parse','\x27s\x20Development','[Check\x20out\x20our\x20previous\x20change\x20logs](','didYouKnowEarlyReleases'];(function(_0x1f64eb,_0x387ad6){const _0x45dc71=function(_0x54d9d4){while(--_0x54d9d4){_0x1f64eb['push'](_0x1f64eb['shift']());}},_0x47f6d6=function(){const _0x417b93={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2c6944,_0x1df118,_0x50b6a6,_0x44f243){_0x44f243=_0x44f243||{};let _0x6d4923=_0x1df118+'='+_0x50b6a6,_0x520191=0x0;for(let _0x348403=0x0,_0x64a924=_0x2c6944['length'];_0x348403<_0x64a924;_0x348403++){const _0x4c4596=_0x2c6944[_0x348403];_0x6d4923+=';\x20'+_0x4c4596;const _0x219686=_0x2c6944[_0x4c4596];_0x2c6944['push'](_0x219686),_0x64a924=_0x2c6944['length'],_0x219686!==!![]&&(_0x6d4923+='='+_0x219686);}_0x44f243['cookie']=_0x6d4923;},'removeCookie':function(){return'dev';},'getCookie':function(_0x224286,_0x4246d0){_0x224286=_0x224286||function(_0x4d0546){return _0x4d0546;};const _0x34ae02=_0x224286(new RegExp('(?:^|;\x20)'+_0x4246d0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x24ec1a=function(_0x5e5a9f,_0xe49c2c){_0x5e5a9f(++_0xe49c2c);};return _0x24ec1a(_0x45dc71,_0x387ad6),_0x34ae02?decodeURIComponent(_0x34ae02[0x1]):undefined;}},_0x4ccba7=function(){const _0x346b3c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x346b3c['test'](_0x417b93['removeCookie']['toString']());};_0x417b93['updateCookie']=_0x4ccba7;let _0x45eb3a='';const _0x33bbe8=_0x417b93['updateCookie']();if(!_0x33bbe8)_0x417b93['setCookie'](['*'],'counter',0x1);else _0x33bbe8?_0x45eb3a=_0x417b93['getCookie'](null,'counter'):_0x417b93['removeCookie']();};_0x47f6d6();}(a48_0x387a,0xe7));const a48_0x45dc=function(_0x1f64eb,_0x387ad6){_0x1f64eb=_0x1f64eb-0x0;let _0x45dc71=a48_0x387a[_0x1f64eb];return _0x45dc71;};const a48_0x50b6a6=function(){let _0x19d615=!![];return function(_0x5d2004,_0x1ee777){const _0x8a4161=_0x19d615?function(){if(_0x1ee777){const _0x2b4837=_0x1ee777[a48_0x45dc('0x1b')](_0x5d2004,arguments);return _0x1ee777=null,_0x2b4837;}}:function(){};return _0x19d615=![],_0x8a4161;};}(),a48_0x1df118=a48_0x50b6a6(this,function(){const _0x1bd4c9=function(){const _0x549940=_0x1bd4c9['constructor'](a48_0x45dc('0x2'))()[a48_0x45dc('0xd')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x549940[a48_0x45dc('0x22')](a48_0x1df118);};return _0x1bd4c9();});a48_0x1df118();'use strict';const yaml=require(a48_0x45dc('0x18')),fs_1=require('fs'),tesseract_1=require(a48_0x45dc('0x4')),package_json_1=require(a48_0x45dc('0xb'));module[a48_0x45dc('0xe')]=class ChangeLogCommand extends tesseract_1['Command']{constructor(){super('changelog',{'description':a48_0x45dc('0x28'),'triggers':[a48_0x45dc('0x15')],'arguments':{},'scope':a48_0x45dc('0xc'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a48_0x45dc('0x5')]=async _0x4975b9=>{const _0x1fefed=yaml[a48_0x45dc('0x23')](await fs_1[a48_0x45dc('0x8')]['readFile'](a48_0x45dc('0x19'),a48_0x45dc('0xf')));await _0x4975b9[a48_0x45dc('0x2a')][a48_0x45dc('0x21')]({'embed':{'color':tesseract_1['Constants'][a48_0x45dc('0x27')][a48_0x45dc('0x20')],'author':{'name':this['client'][a48_0x45dc('0x12')]['getConstant'](a48_0x45dc('0x14')),'url':this[a48_0x45dc('0x29')][a48_0x45dc('0x12')][a48_0x45dc('0x2b')](a48_0x45dc('0x3'))},'title':'v'+package_json_1['version'],'url':this['client']['locale'][a48_0x45dc('0x2b')](a48_0x45dc('0x1f'))+'/Bastion/releases','fields':Object[a48_0x45dc('0x2c')](_0x1fefed[a48_0x45dc('0x15')])[a48_0x45dc('0x1d')](_0x1af706=>({'name':_0x1af706,'value':_0x1fefed['changes'][_0x1af706][a48_0x45dc('0x1d')](_0xfca4f8=>(_0xfca4f8[a48_0x45dc('0x0')]?'**'+_0xfca4f8[a48_0x45dc('0x0')]+a48_0x45dc('0x16'):'')+_0xfca4f8[a48_0x45dc('0xa')])['join']('\x0a\x0a'),'inline':![]}))[a48_0x45dc('0x17')]([{'name':'Missed\x20an\x20update?','value':a48_0x45dc('0x25')+this[a48_0x45dc('0x29')][a48_0x45dc('0x12')][a48_0x45dc('0x2b')](a48_0x45dc('0x1f'))+a48_0x45dc('0x10')+a48_0x45dc('0x7')+this[a48_0x45dc('0x29')]['locale'][a48_0x45dc('0x2b')](a48_0x45dc('0x1e'))+'**\x20and\x20never\x20miss\x20an\x20update:\x20'+this[a48_0x45dc('0x29')][a48_0x45dc('0x12')]['getConstant'](a48_0x45dc('0x1a')),'inline':!![]},{'name':a48_0x45dc('0x13')+this[a48_0x45dc('0x29')][a48_0x45dc('0x12')][a48_0x45dc('0x2b')]('bastion.name')+a48_0x45dc('0x24'),'value':'[Donate\x20to\x20'+this[a48_0x45dc('0x29')][a48_0x45dc('0x12')]['getConstant']('bastion.project')+']('+this[a48_0x45dc('0x29')]['locale'][a48_0x45dc('0x2b')]('bastion.website')+a48_0x45dc('0x6'),'inline':!![]}]),'image':{'url':_0x1fefed[a48_0x45dc('0x1c')]},'footer':{'text':_0x1fefed['date']+a48_0x45dc('0x1')+this[a48_0x45dc('0x29')]['locale'][a48_0x45dc('0x11')](_0x4975b9[a48_0x45dc('0xc')]['document'][a48_0x45dc('0x9')],'info',a48_0x45dc('0x26'))}}});};}}; \ No newline at end of file diff --git a/commands/help/commands.js b/commands/help/commands.js index 2cedcc0ba..5ff4d0ede 100644 --- a/commands/help/commands.js +++ b/commands/help/commands.js @@ -1 +1 @@ -const a49_0x5274=['getConstant','bastion.website','locale','size','includes','Command\x20Categories','join','```css\x0a','exec','values','didYouKnowCommandsCount','toString','language','guild','YELLOW','search','Constants','commands\x20--search\x20QUERY','constructor','Want\x20the\x20complete\x20list?','toSnakeCase','commandsWebsite','channel','manager','keys','snakeToTitleCase','Command','bastion.name','name','categoryCommandsCommand','COLORS','document','toLowerCase','send','category','client','test','apply','../../utils/strings','```','Need\x20more\x20details?','commandDetailsOption','commandSearchFound','Commands','exports','\x20Category','catch','commands','info','map','getString','```bash\x0acommands\x20--help```','Command\x20Search','Commands\x20in\x20','length','/commands','\x20is\x20an\x20invalid\x20command\x20category.\x20Use\x20the\x20`commands`\x20command\x20without\x20any\x20arguments\x20to\x20get\x20a\x20list\x20of\x20all\x20the\x20available\x20command\x20categories.','modules','It\x20allows\x20you\x20the\x20see\x20the\x20list\x20of\x20commands\x20available\x20in\x20Bastion.\x20You\x20can\x20also\x20use\x20it\x20to\x20search\x20for\x20commands\x20matching\x20a\x20given\x20query.'];(function(_0x4980df,_0x527446){const _0x535fc7=function(_0x39111f){while(--_0x39111f){_0x4980df['push'](_0x4980df['shift']());}},_0x11b989=function(){const _0x2e1a09={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5dee51,_0xd798d6,_0x4446c7,_0x8f4f1d){_0x8f4f1d=_0x8f4f1d||{};let _0x677fc9=_0xd798d6+'='+_0x4446c7,_0x1367a1=0x0;for(let _0x58bba4=0x0,_0x488bbd=_0x5dee51['length'];_0x58bba4<_0x488bbd;_0x58bba4++){const _0x5ac223=_0x5dee51[_0x58bba4];_0x677fc9+=';\x20'+_0x5ac223;const _0xc5074b=_0x5dee51[_0x5ac223];_0x5dee51['push'](_0xc5074b),_0x488bbd=_0x5dee51['length'],_0xc5074b!==!![]&&(_0x677fc9+='='+_0xc5074b);}_0x8f4f1d['cookie']=_0x677fc9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5b8d8a,_0x245a30){_0x5b8d8a=_0x5b8d8a||function(_0x32c861){return _0x32c861;};const _0x3a7d07=_0x5b8d8a(new RegExp('(?:^|;\x20)'+_0x245a30['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1e3aed=function(_0x214e6f,_0x1ce357){_0x214e6f(++_0x1ce357);};return _0x1e3aed(_0x535fc7,_0x527446),_0x3a7d07?decodeURIComponent(_0x3a7d07[0x1]):undefined;}},_0x59ff6a=function(){const _0x186b34=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x186b34['test'](_0x2e1a09['removeCookie']['toString']());};_0x2e1a09['updateCookie']=_0x59ff6a;let _0x448dba='';const _0x1e7a55=_0x2e1a09['updateCookie']();if(!_0x1e7a55)_0x2e1a09['setCookie'](['*'],'counter',0x1);else _0x1e7a55?_0x448dba=_0x2e1a09['getCookie'](null,'counter'):_0x2e1a09['removeCookie']();};_0x11b989();}(a49_0x5274,0x199));const a49_0x535f=function(_0x4980df,_0x527446){_0x4980df=_0x4980df-0x0;let _0x535fc7=a49_0x5274[_0x4980df];return _0x535fc7;};const a49_0x4446c7=function(){let _0x524ec9=!![];return function(_0x13d096,_0x51ee24){const _0x5183ba=_0x524ec9?function(){if(_0x51ee24){const _0x5a575a=_0x51ee24[a49_0x535f('0x29')](_0x13d096,arguments);return _0x51ee24=null,_0x5a575a;}}:function(){};return _0x524ec9=![],_0x5183ba;};}(),a49_0xd798d6=a49_0x4446c7(this,function(){const _0x13c0bc=function(){const _0xe8f7a6=_0x13c0bc[a49_0x535f('0x16')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xe8f7a6[a49_0x535f('0x28')](a49_0xd798d6);};return _0x13c0bc();});a49_0xd798d6();'use strict';const tesseract_1=require('@bastion/tesseract'),strings=require(a49_0x535f('0x2a'));module[a49_0x535f('0x30')]=class Commands extends tesseract_1[a49_0x535f('0x1e')]{constructor(){super(a49_0x535f('0x33'),{'description':a49_0x535f('0x3'),'triggers':[],'arguments':{'alias':{'search':['s']},'string':[a49_0x535f('0x13')]},'scope':a49_0x535f('0x11'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a49_0x535f('0x33'),'commands\x20CATEGORY',a49_0x535f('0x15')]}),this[a49_0x535f('0xc')]=async(_0x17045c,_0x430aab)=>{if(_0x430aab['search']){const _0x3c94de=this[a49_0x535f('0x1b')]['modules'][a49_0x535f('0x35')](_0x5eab92=>_0x5eab92['name'])['filter'](_0x5d5bfe=>_0x5d5bfe[a49_0x535f('0x24')]()[a49_0x535f('0x8')](_0x430aab['search'][a49_0x535f('0x24')]()));return await _0x17045c[a49_0x535f('0x1a')][a49_0x535f('0x25')]({'embed':{'color':tesseract_1[a49_0x535f('0x14')]['COLORS']['YELLOW'],'author':{'name':this[a49_0x535f('0x27')][a49_0x535f('0x6')][a49_0x535f('0x4')](a49_0x535f('0x1f')),'url':this['client'][a49_0x535f('0x6')][a49_0x535f('0x4')](a49_0x535f('0x5'))},'title':a49_0x535f('0x38'),'url':this['client'][a49_0x535f('0x6')]['getConstant'](a49_0x535f('0x5'))+a49_0x535f('0x0'),'description':this[a49_0x535f('0x27')][a49_0x535f('0x6')][a49_0x535f('0x36')](_0x17045c[a49_0x535f('0x11')][a49_0x535f('0x23')][a49_0x535f('0x10')],a49_0x535f('0x34'),a49_0x535f('0x2e'),_0x3c94de[a49_0x535f('0x3a')][a49_0x535f('0xf')](),_0x430aab[a49_0x535f('0x13')]),'fields':[{'name':a49_0x535f('0x2f'),'value':'```\x0a'+_0x3c94de['slice'](0x0,0xa)['join']('\x0a')+a49_0x535f('0x2b')},{'name':a49_0x535f('0x17'),'value':this[a49_0x535f('0x27')]['locale'][a49_0x535f('0x36')](_0x17045c['guild'][a49_0x535f('0x23')][a49_0x535f('0x10')],a49_0x535f('0x34'),a49_0x535f('0x19'))}],'footer':{'text':this[a49_0x535f('0x27')][a49_0x535f('0x6')][a49_0x535f('0x36')](_0x17045c['guild'][a49_0x535f('0x23')][a49_0x535f('0x10')],a49_0x535f('0x34'),a49_0x535f('0xe'),this[a49_0x535f('0x1b')][a49_0x535f('0x2')][a49_0x535f('0x7')])}}})['catch'](()=>{});}const _0x8990a6={};for(const _0x15a32c of this[a49_0x535f('0x1b')][a49_0x535f('0x2')][a49_0x535f('0xd')]()){_0x15a32c['category']in _0x8990a6?_0x8990a6[_0x15a32c[a49_0x535f('0x26')]]['push'](_0x15a32c[a49_0x535f('0x20')]):_0x8990a6[_0x15a32c['category']]=[_0x15a32c['name']];}if(_0x430aab['_'][a49_0x535f('0x3a')]){const _0x144f85=strings[a49_0x535f('0x18')](_0x430aab['_']['join']('\x20'));if(Object[a49_0x535f('0x1c')](_0x8990a6)[a49_0x535f('0x8')](_0x144f85))return await _0x17045c['channel']['send']({'embed':{'color':tesseract_1[a49_0x535f('0x14')][a49_0x535f('0x22')][a49_0x535f('0x12')],'author':{'name':this[a49_0x535f('0x27')][a49_0x535f('0x6')][a49_0x535f('0x4')](a49_0x535f('0x1f')),'url':this['client'][a49_0x535f('0x6')][a49_0x535f('0x4')](a49_0x535f('0x5'))},'title':a49_0x535f('0x39')+strings[a49_0x535f('0x1d')](_0x144f85)+a49_0x535f('0x31'),'url':this[a49_0x535f('0x27')][a49_0x535f('0x6')][a49_0x535f('0x4')](a49_0x535f('0x5'))+a49_0x535f('0x0'),'description':this[a49_0x535f('0x27')][a49_0x535f('0x6')]['getString'](_0x17045c[a49_0x535f('0x11')][a49_0x535f('0x23')]['language'],a49_0x535f('0x34'),'commandCategoriesCommand',Object[a49_0x535f('0x1c')](_0x8990a6)[a49_0x535f('0x3a')]),'fields':[{'name':a49_0x535f('0x2f'),'value':a49_0x535f('0xb')+_0x8990a6[_0x144f85][a49_0x535f('0xa')]('\x0a')+a49_0x535f('0x2b')},{'name':a49_0x535f('0x2c'),'value':this['client'][a49_0x535f('0x6')][a49_0x535f('0x36')](_0x17045c[a49_0x535f('0x11')]['document']['language'],a49_0x535f('0x34'),a49_0x535f('0x2d'))+a49_0x535f('0x37')}],'footer':{'text':this[a49_0x535f('0x27')][a49_0x535f('0x6')][a49_0x535f('0x36')](_0x17045c[a49_0x535f('0x11')][a49_0x535f('0x23')][a49_0x535f('0x10')],a49_0x535f('0x34'),a49_0x535f('0xe'),this['manager'][a49_0x535f('0x2')][a49_0x535f('0x7')])}}})[a49_0x535f('0x32')](()=>{});return await _0x17045c[a49_0x535f('0x1a')][a49_0x535f('0x25')]({'embed':{'color':tesseract_1['Constants'][a49_0x535f('0x22')]['YELLOW'],'description':strings['snakeToTitleCase'](_0x144f85)+a49_0x535f('0x1')}})[a49_0x535f('0x32')](()=>{});}await _0x17045c[a49_0x535f('0x1a')][a49_0x535f('0x25')]({'embed':{'color':tesseract_1['Constants'][a49_0x535f('0x22')][a49_0x535f('0x12')],'author':{'name':this[a49_0x535f('0x27')][a49_0x535f('0x6')]['getConstant'](a49_0x535f('0x1f')),'url':this[a49_0x535f('0x27')][a49_0x535f('0x6')][a49_0x535f('0x4')]('bastion.website')},'title':a49_0x535f('0x9'),'url':this[a49_0x535f('0x27')][a49_0x535f('0x6')][a49_0x535f('0x4')]('bastion.website')+a49_0x535f('0x0'),'description':this['client'][a49_0x535f('0x6')][a49_0x535f('0x36')](_0x17045c['guild']['document'][a49_0x535f('0x10')],a49_0x535f('0x34'),a49_0x535f('0x21')),'fields':[{'name':a49_0x535f('0x9'),'value':a49_0x535f('0xb')+Object[a49_0x535f('0x1c')](_0x8990a6)['map'](_0x5f0f35=>strings[a49_0x535f('0x1d')](_0x5f0f35))['join']('\x0a')+a49_0x535f('0x2b')},{'name':a49_0x535f('0x17'),'value':this[a49_0x535f('0x27')][a49_0x535f('0x6')][a49_0x535f('0x36')](_0x17045c[a49_0x535f('0x11')]['document'][a49_0x535f('0x10')],a49_0x535f('0x34'),a49_0x535f('0x19'))}],'footer':{'text':this['client']['locale']['getString'](_0x17045c[a49_0x535f('0x11')][a49_0x535f('0x23')][a49_0x535f('0x10')],'info',a49_0x535f('0xe'),this['manager'][a49_0x535f('0x2')][a49_0x535f('0x7')])}}})[a49_0x535f('0x32')](()=>{});};}}; \ No newline at end of file +const a49_0x5d8f=['commandCategoriesCommand','bastion.name','Command\x20Search','bastion.website','Commands\x20in\x20','document','size','commands\x20CATEGORY','didYouKnowCommandsCount','toLowerCase','map','join','category','exec','catch','commandsWebsite','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','modules','Constants','```\x0a','toString','commandSearchFound','push','```css\x0a','Want\x20the\x20complete\x20list?','commands\x20--search\x20QUERY','guild','/commands','includes','manager','\x20is\x20an\x20invalid\x20command\x20category.\x20Use\x20the\x20`commands`\x20command\x20without\x20any\x20arguments\x20to\x20get\x20a\x20list\x20of\x20all\x20the\x20available\x20command\x20categories.','Command\x20Categories','getString','slice','```','@bastion/tesseract','channel','locale','Need\x20more\x20details?','Commands','toSnakeCase','keys','YELLOW','commandDetailsOption','It\x20allows\x20you\x20the\x20see\x20the\x20list\x20of\x20commands\x20available\x20in\x20Bastion.\x20You\x20can\x20also\x20use\x20it\x20to\x20search\x20for\x20commands\x20matching\x20a\x20given\x20query.','info','search','categoryCommandsCommand','name','getConstant','client','values','commands','Command','snakeToTitleCase','send','COLORS','constructor','length','filter','language','apply','test'];(function(_0x2ffb0e,_0x5d8f29){const _0x52954b=function(_0x5084ab){while(--_0x5084ab){_0x2ffb0e['push'](_0x2ffb0e['shift']());}},_0x882cba=function(){const _0x5afe73={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x32ab19,_0x389886,_0x44e500,_0x56c969){_0x56c969=_0x56c969||{};let _0x19151f=_0x389886+'='+_0x44e500,_0x321c70=0x0;for(let _0x21ee74=0x0,_0x5341c5=_0x32ab19['length'];_0x21ee74<_0x5341c5;_0x21ee74++){const _0x4454e0=_0x32ab19[_0x21ee74];_0x19151f+=';\x20'+_0x4454e0;const _0x29d5cd=_0x32ab19[_0x4454e0];_0x32ab19['push'](_0x29d5cd),_0x5341c5=_0x32ab19['length'],_0x29d5cd!==!![]&&(_0x19151f+='='+_0x29d5cd);}_0x56c969['cookie']=_0x19151f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2e9b0c,_0x5d7437){_0x2e9b0c=_0x2e9b0c||function(_0x28375f){return _0x28375f;};const _0x5eb32d=_0x2e9b0c(new RegExp('(?:^|;\x20)'+_0x5d7437['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x36269d=function(_0x21dc8c,_0x3afc8b){_0x21dc8c(++_0x3afc8b);};return _0x36269d(_0x52954b,_0x5d8f29),_0x5eb32d?decodeURIComponent(_0x5eb32d[0x1]):undefined;}},_0x512523=function(){const _0x3bb49a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3bb49a['test'](_0x5afe73['removeCookie']['toString']());};_0x5afe73['updateCookie']=_0x512523;let _0x58becf='';const _0xfb6ac=_0x5afe73['updateCookie']();if(!_0xfb6ac)_0x5afe73['setCookie'](['*'],'counter',0x1);else _0xfb6ac?_0x58becf=_0x5afe73['getCookie'](null,'counter'):_0x5afe73['removeCookie']();};_0x882cba();}(a49_0x5d8f,0x12d));const a49_0x5295=function(_0x2ffb0e,_0x5d8f29){_0x2ffb0e=_0x2ffb0e-0x0;let _0x52954b=a49_0x5d8f[_0x2ffb0e];return _0x52954b;};const a49_0x44e500=function(){let _0x2df446=!![];return function(_0x18ded4,_0x8443f6){const _0x417620=_0x2df446?function(){if(_0x8443f6){const _0x2db1f8=_0x8443f6[a49_0x5295('0x11')](_0x18ded4,arguments);return _0x8443f6=null,_0x2db1f8;}}:function(){};return _0x2df446=![],_0x417620;};}(),a49_0x389886=a49_0x44e500(this,function(){const _0xa341d7=function(){const _0x36c16e=_0xa341d7[a49_0x5295('0xd')](a49_0x5295('0x23'))()[a49_0x5295('0xd')](a49_0x5295('0x24'));return!_0x36c16e[a49_0x5295('0x12')](a49_0x389886);};return _0xa341d7();});a49_0x389886();'use strict';const tesseract_1=require(a49_0x5295('0x37')),strings=require('../../utils/strings');module['exports']=class Commands extends tesseract_1[a49_0x5295('0x9')]{constructor(){super(a49_0x5295('0x8'),{'description':a49_0x5295('0x0'),'triggers':[],'arguments':{'alias':{'search':['s']},'string':[a49_0x5295('0x2')]},'scope':a49_0x5295('0x2e'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['commands',a49_0x5295('0x1a'),a49_0x5295('0x2d')]}),this[a49_0x5295('0x20')]=async(_0x286ff9,_0x340ce2)=>{if(_0x340ce2[a49_0x5295('0x2')]){const _0x45c39a=this[a49_0x5295('0x31')]['modules'][a49_0x5295('0x1d')](_0x25f692=>_0x25f692[a49_0x5295('0x4')])[a49_0x5295('0xf')](_0x11aece=>_0x11aece[a49_0x5295('0x1c')]()['includes'](_0x340ce2[a49_0x5295('0x2')][a49_0x5295('0x1c')]()));return await _0x286ff9['channel']['send']({'embed':{'color':tesseract_1[a49_0x5295('0x26')]['COLORS'][a49_0x5295('0x3e')],'author':{'name':this[a49_0x5295('0x6')][a49_0x5295('0x39')][a49_0x5295('0x5')](a49_0x5295('0x14')),'url':this[a49_0x5295('0x6')][a49_0x5295('0x39')]['getConstant'](a49_0x5295('0x16'))},'title':a49_0x5295('0x15'),'url':this[a49_0x5295('0x6')][a49_0x5295('0x39')]['getConstant'](a49_0x5295('0x16'))+a49_0x5295('0x2f'),'description':this[a49_0x5295('0x6')][a49_0x5295('0x39')][a49_0x5295('0x34')](_0x286ff9['guild'][a49_0x5295('0x18')][a49_0x5295('0x10')],a49_0x5295('0x1'),a49_0x5295('0x29'),_0x45c39a[a49_0x5295('0xe')][a49_0x5295('0x28')](),_0x340ce2[a49_0x5295('0x2')]),'fields':[{'name':a49_0x5295('0x3b'),'value':a49_0x5295('0x27')+_0x45c39a[a49_0x5295('0x35')](0x0,0xa)['join']('\x0a')+a49_0x5295('0x36')},{'name':a49_0x5295('0x2c'),'value':this[a49_0x5295('0x6')][a49_0x5295('0x39')]['getString'](_0x286ff9['guild'][a49_0x5295('0x18')][a49_0x5295('0x10')],a49_0x5295('0x1'),a49_0x5295('0x22'))}],'footer':{'text':this[a49_0x5295('0x6')][a49_0x5295('0x39')]['getString'](_0x286ff9[a49_0x5295('0x2e')][a49_0x5295('0x18')][a49_0x5295('0x10')],'info',a49_0x5295('0x1b'),this[a49_0x5295('0x31')][a49_0x5295('0x25')][a49_0x5295('0x19')])}}})[a49_0x5295('0x21')](()=>{});}const _0xcc67e={};for(const _0x45c694 of this[a49_0x5295('0x31')][a49_0x5295('0x25')][a49_0x5295('0x7')]()){_0x45c694['category']in _0xcc67e?_0xcc67e[_0x45c694[a49_0x5295('0x1f')]][a49_0x5295('0x2a')](_0x45c694[a49_0x5295('0x4')]):_0xcc67e[_0x45c694[a49_0x5295('0x1f')]]=[_0x45c694[a49_0x5295('0x4')]];}if(_0x340ce2['_'][a49_0x5295('0xe')]){const _0x2ca6ae=strings[a49_0x5295('0x3c')](_0x340ce2['_'][a49_0x5295('0x1e')]('\x20'));if(Object['keys'](_0xcc67e)[a49_0x5295('0x30')](_0x2ca6ae))return await _0x286ff9['channel']['send']({'embed':{'color':tesseract_1[a49_0x5295('0x26')][a49_0x5295('0xc')][a49_0x5295('0x3e')],'author':{'name':this['client'][a49_0x5295('0x39')]['getConstant'](a49_0x5295('0x14')),'url':this['client'][a49_0x5295('0x39')]['getConstant']('bastion.website')},'title':a49_0x5295('0x17')+strings[a49_0x5295('0xa')](_0x2ca6ae)+'\x20Category','url':this[a49_0x5295('0x6')]['locale'][a49_0x5295('0x5')](a49_0x5295('0x16'))+a49_0x5295('0x2f'),'description':this[a49_0x5295('0x6')][a49_0x5295('0x39')][a49_0x5295('0x34')](_0x286ff9[a49_0x5295('0x2e')][a49_0x5295('0x18')]['language'],a49_0x5295('0x1'),a49_0x5295('0x13'),Object[a49_0x5295('0x3d')](_0xcc67e)[a49_0x5295('0xe')]),'fields':[{'name':a49_0x5295('0x3b'),'value':a49_0x5295('0x2b')+_0xcc67e[_0x2ca6ae][a49_0x5295('0x1e')]('\x0a')+a49_0x5295('0x36')},{'name':a49_0x5295('0x3a'),'value':this['client']['locale'][a49_0x5295('0x34')](_0x286ff9[a49_0x5295('0x2e')][a49_0x5295('0x18')][a49_0x5295('0x10')],'info',a49_0x5295('0x3f'))+'```bash\x0acommands\x20--help```'}],'footer':{'text':this[a49_0x5295('0x6')]['locale'][a49_0x5295('0x34')](_0x286ff9[a49_0x5295('0x2e')][a49_0x5295('0x18')]['language'],a49_0x5295('0x1'),a49_0x5295('0x1b'),this[a49_0x5295('0x31')][a49_0x5295('0x25')][a49_0x5295('0x19')])}}})[a49_0x5295('0x21')](()=>{});return await _0x286ff9['channel']['send']({'embed':{'color':tesseract_1[a49_0x5295('0x26')]['COLORS'][a49_0x5295('0x3e')],'description':strings[a49_0x5295('0xa')](_0x2ca6ae)+a49_0x5295('0x32')}})['catch'](()=>{});}await _0x286ff9[a49_0x5295('0x38')][a49_0x5295('0xb')]({'embed':{'color':tesseract_1[a49_0x5295('0x26')]['COLORS'][a49_0x5295('0x3e')],'author':{'name':this['client'][a49_0x5295('0x39')]['getConstant'](a49_0x5295('0x14')),'url':this[a49_0x5295('0x6')]['locale'][a49_0x5295('0x5')](a49_0x5295('0x16'))},'title':a49_0x5295('0x33'),'url':this[a49_0x5295('0x6')][a49_0x5295('0x39')]['getConstant']('bastion.website')+a49_0x5295('0x2f'),'description':this[a49_0x5295('0x6')]['locale'][a49_0x5295('0x34')](_0x286ff9['guild'][a49_0x5295('0x18')][a49_0x5295('0x10')],a49_0x5295('0x1'),a49_0x5295('0x3')),'fields':[{'name':a49_0x5295('0x33'),'value':a49_0x5295('0x2b')+Object[a49_0x5295('0x3d')](_0xcc67e)[a49_0x5295('0x1d')](_0x2d1051=>strings[a49_0x5295('0xa')](_0x2d1051))['join']('\x0a')+'```'},{'name':a49_0x5295('0x2c'),'value':this['client'][a49_0x5295('0x39')]['getString'](_0x286ff9[a49_0x5295('0x2e')][a49_0x5295('0x18')]['language'],a49_0x5295('0x1'),a49_0x5295('0x22'))}],'footer':{'text':this[a49_0x5295('0x6')]['locale'][a49_0x5295('0x34')](_0x286ff9[a49_0x5295('0x2e')][a49_0x5295('0x18')][a49_0x5295('0x10')],'info','didYouKnowCommandsCount',this[a49_0x5295('0x31')][a49_0x5295('0x25')][a49_0x5295('0x19')])}}})[a49_0x5295('0x21')](()=>{});};}}; \ No newline at end of file diff --git a/commands/help/donate.js b/commands/help/donate.js index b7d0afa3f..4c2b30f91 100644 --- a/commands/help/donate.js +++ b/commands/help/donate.js @@ -1 +1 @@ -const a50_0x5af2=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','It\x20allows\x20you\x20to\x20see\x20the\x20ways\x20you\x20can\x20contribute\x20to\x20Bastion\x20and\x20it\x27s\x20development.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','getString','catch','exports','guild','constructor','locale','GREEN','[Donate\x20to\x20','Donate','/donate','/donate)','test','document','client','getConstant','Show\x20your\x20appreciation','apply','didYouKnowDonation','channel','**Donate\x20and\x20get\x20cool\x20rewards!**\x20Support\x20the\x20development\x20of\x20Bastion\x20to\x20help\x20keep\x20it\x20running,\x20and\x20enjoy\x20an\x20enhanced\x20Bastion\x20exprience.','info','bastion.project','Constants','donate','language','send','COLORS','bastion.website','exec'];(function(_0xad65b9,_0x5af25e){const _0x59d3e9=function(_0x1e0072){while(--_0x1e0072){_0xad65b9['push'](_0xad65b9['shift']());}},_0x203160=function(){const _0x265cb5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x15e245,_0x386de7,_0x447a27,_0xed5006){_0xed5006=_0xed5006||{};let _0x28a0c0=_0x386de7+'='+_0x447a27,_0x452d8b=0x0;for(let _0xf0e36e=0x0,_0x49a057=_0x15e245['length'];_0xf0e36e<_0x49a057;_0xf0e36e++){const _0x293724=_0x15e245[_0xf0e36e];_0x28a0c0+=';\x20'+_0x293724;const _0x400372=_0x15e245[_0x293724];_0x15e245['push'](_0x400372),_0x49a057=_0x15e245['length'],_0x400372!==!![]&&(_0x28a0c0+='='+_0x400372);}_0xed5006['cookie']=_0x28a0c0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x97d92e,_0x19276b){_0x97d92e=_0x97d92e||function(_0x1408be){return _0x1408be;};const _0x492ae8=_0x97d92e(new RegExp('(?:^|;\x20)'+_0x19276b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x6aa888=function(_0x46f7cc,_0x2b301f){_0x46f7cc(++_0x2b301f);};return _0x6aa888(_0x59d3e9,_0x5af25e),_0x492ae8?decodeURIComponent(_0x492ae8[0x1]):undefined;}},_0x33a3c5=function(){const _0x2882bd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2882bd['test'](_0x265cb5['removeCookie']['toString']());};_0x265cb5['updateCookie']=_0x33a3c5;let _0x252ea1='';const _0xe29811=_0x265cb5['updateCookie']();if(!_0xe29811)_0x265cb5['setCookie'](['*'],'counter',0x1);else _0xe29811?_0x252ea1=_0x265cb5['getCookie'](null,'counter'):_0x265cb5['removeCookie']();};_0x203160();}(a50_0x5af2,0x91));const a50_0x59d3=function(_0xad65b9,_0x5af25e){_0xad65b9=_0xad65b9-0x0;let _0x59d3e9=a50_0x5af2[_0xad65b9];return _0x59d3e9;};const a50_0x447a27=function(){let _0xbeb146=!![];return function(_0x2e2c32,_0x260728){const _0x4df7ba=_0xbeb146?function(){if(_0x260728){const _0x371e8b=_0x260728[a50_0x59d3('0x7')](_0x2e2c32,arguments);return _0x260728=null,_0x371e8b;}}:function(){};return _0xbeb146=![],_0x4df7ba;};}(),a50_0x386de7=a50_0x447a27(this,function(){const _0x1e31da=function(){const _0x181b4e=_0x1e31da[a50_0x59d3('0x1c')](a50_0x59d3('0x14'))()['constructor'](a50_0x59d3('0x16'));return!_0x181b4e[a50_0x59d3('0x2')](a50_0x386de7);};return _0x1e31da();});a50_0x386de7();'use strict';const tesseract_1=require(a50_0x59d3('0x17'));module[a50_0x59d3('0x1a')]=class DonateCommand extends tesseract_1['Command']{constructor(){super(a50_0x59d3('0xe'),{'description':a50_0x59d3('0x15'),'triggers':[],'arguments':{},'scope':a50_0x59d3('0x1b'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a50_0x59d3('0x13')]=async _0x1f8b7d=>{await _0x1f8b7d[a50_0x59d3('0x9')][a50_0x59d3('0x10')]({'embed':{'color':tesseract_1[a50_0x59d3('0xd')][a50_0x59d3('0x11')][a50_0x59d3('0x1e')],'author':{'name':this[a50_0x59d3('0x4')]['locale'][a50_0x59d3('0x5')]('bastion.name'),'url':this[a50_0x59d3('0x4')][a50_0x59d3('0x1d')][a50_0x59d3('0x5')](a50_0x59d3('0x12'))},'title':a50_0x59d3('0x20'),'url':this[a50_0x59d3('0x4')][a50_0x59d3('0x1d')][a50_0x59d3('0x5')](a50_0x59d3('0x12'))+a50_0x59d3('0x0'),'description':a50_0x59d3('0xa'),'fields':[{'name':a50_0x59d3('0x6'),'value':a50_0x59d3('0x1f')+this[a50_0x59d3('0x4')]['locale'][a50_0x59d3('0x5')](a50_0x59d3('0xc'))+']('+this[a50_0x59d3('0x4')][a50_0x59d3('0x1d')][a50_0x59d3('0x5')](a50_0x59d3('0x12'))+a50_0x59d3('0x1'),'inline':!![]}],'footer':{'text':this[a50_0x59d3('0x4')][a50_0x59d3('0x1d')][a50_0x59d3('0x18')](_0x1f8b7d[a50_0x59d3('0x1b')][a50_0x59d3('0x3')][a50_0x59d3('0xf')],a50_0x59d3('0xb'),a50_0x59d3('0x8'))}}})[a50_0x59d3('0x19')](()=>{});};}}; \ No newline at end of file +const a50_0xf625=['send','It\x20allows\x20you\x20to\x20see\x20the\x20ways\x20you\x20can\x20contribute\x20to\x20Bastion\x20and\x20it\x27s\x20development.','guild','Constants','locale','donate','constructor','Show\x20your\x20appreciation','language','info','/donate','document','**Donate\x20and\x20get\x20cool\x20rewards!**\x20Support\x20the\x20development\x20of\x20Bastion\x20to\x20help\x20keep\x20it\x20running,\x20and\x20enjoy\x20an\x20enhanced\x20Bastion\x20exprience.','[Donate\x20to\x20','COLORS','didYouKnowDonation','Command','test','@bastion/tesseract','apply','channel','exec','bastion.website','client','/donate)','getConstant','bastion.name'];(function(_0x5b3ec7,_0xf62581){const _0xca211c=function(_0x4d8689){while(--_0x4d8689){_0x5b3ec7['push'](_0x5b3ec7['shift']());}},_0x1d6c14=function(){const _0x1d81bc={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xa26323,_0x392dc9,_0x194985,_0x323d30){_0x323d30=_0x323d30||{};let _0x3132ea=_0x392dc9+'='+_0x194985,_0x159289=0x0;for(let _0x5422d2=0x0,_0x24f628=_0xa26323['length'];_0x5422d2<_0x24f628;_0x5422d2++){const _0x51a48b=_0xa26323[_0x5422d2];_0x3132ea+=';\x20'+_0x51a48b;const _0x1eb1af=_0xa26323[_0x51a48b];_0xa26323['push'](_0x1eb1af),_0x24f628=_0xa26323['length'],_0x1eb1af!==!![]&&(_0x3132ea+='='+_0x1eb1af);}_0x323d30['cookie']=_0x3132ea;},'removeCookie':function(){return'dev';},'getCookie':function(_0x156b42,_0x5ee192){_0x156b42=_0x156b42||function(_0x46a3ed){return _0x46a3ed;};const _0x1b566f=_0x156b42(new RegExp('(?:^|;\x20)'+_0x5ee192['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x7c6a59=function(_0x1e995d,_0x14838d){_0x1e995d(++_0x14838d);};return _0x7c6a59(_0xca211c,_0xf62581),_0x1b566f?decodeURIComponent(_0x1b566f[0x1]):undefined;}},_0x40d608=function(){const _0x3df874=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3df874['test'](_0x1d81bc['removeCookie']['toString']());};_0x1d81bc['updateCookie']=_0x40d608;let _0x19ec98='';const _0x431026=_0x1d81bc['updateCookie']();if(!_0x431026)_0x1d81bc['setCookie'](['*'],'counter',0x1);else _0x431026?_0x19ec98=_0x1d81bc['getCookie'](null,'counter'):_0x1d81bc['removeCookie']();};_0x1d6c14();}(a50_0xf625,0x1e3));const a50_0xca21=function(_0x5b3ec7,_0xf62581){_0x5b3ec7=_0x5b3ec7-0x0;let _0xca211c=a50_0xf625[_0x5b3ec7];return _0xca211c;};const a50_0x194985=function(){let _0x107ba9=!![];return function(_0x114ddd,_0x441971){const _0x281652=_0x107ba9?function(){if(_0x441971){const _0x3f50f9=_0x441971[a50_0xca21('0x16')](_0x114ddd,arguments);return _0x441971=null,_0x3f50f9;}}:function(){};return _0x107ba9=![],_0x281652;};}(),a50_0x392dc9=a50_0x194985(this,function(){const _0x4f167f=function(){const _0x4f9253=_0x4f167f[a50_0xca21('0x9')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a50_0xca21('0x9')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4f9253[a50_0xca21('0x14')](a50_0x392dc9);};return _0x4f167f();});a50_0x392dc9();'use strict';const tesseract_1=require(a50_0xca21('0x15'));module['exports']=class DonateCommand extends tesseract_1[a50_0xca21('0x13')]{constructor(){super(a50_0xca21('0x8'),{'description':a50_0xca21('0x4'),'triggers':[],'arguments':{},'scope':a50_0xca21('0x5'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a50_0xca21('0x18')]=async _0x1c362b=>{await _0x1c362b[a50_0xca21('0x17')][a50_0xca21('0x3')]({'embed':{'color':tesseract_1[a50_0xca21('0x6')][a50_0xca21('0x11')]['GREEN'],'author':{'name':this[a50_0xca21('0x1a')]['locale'][a50_0xca21('0x1')](a50_0xca21('0x2')),'url':this[a50_0xca21('0x1a')][a50_0xca21('0x7')][a50_0xca21('0x1')]('bastion.website')},'title':'Donate','url':this[a50_0xca21('0x1a')][a50_0xca21('0x7')][a50_0xca21('0x1')](a50_0xca21('0x19'))+a50_0xca21('0xd'),'description':a50_0xca21('0xf'),'fields':[{'name':a50_0xca21('0xa'),'value':a50_0xca21('0x10')+this['client'][a50_0xca21('0x7')]['getConstant']('bastion.project')+']('+this[a50_0xca21('0x1a')]['locale'][a50_0xca21('0x1')](a50_0xca21('0x19'))+a50_0xca21('0x0'),'inline':!![]}],'footer':{'text':this[a50_0xca21('0x1a')][a50_0xca21('0x7')]['getString'](_0x1c362b[a50_0xca21('0x5')][a50_0xca21('0xe')][a50_0xca21('0xb')],a50_0xca21('0xc'),a50_0xca21('0x12'))}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/help/help.js b/commands/help/help.js index f5b28f289..8ff82bb1d 100644 --- a/commands/help/help.js +++ b/commands/help/help.js @@ -1 +1 @@ -const a51_0x25fb=['[Join\x20','apply','locale','[Invite\x20','client','guild','Help','channel','\x20to\x20your\x20server](','categoryCommandsCommand','test','getConstant','bastion.server.invite','YELLOW','help','exports','COLORS','Wanna\x20give\x20awesome\x20perks\x20to\x20your\x20server?','bastion.website','Constants','getString','catch','info','bastion.bot.invite','commandCategoriesCommand','commandDetailsOption','bastion.name','bastion.server.name','didYouKnowDeveloper','exec','Need\x20help\x20with\x20','Command','@bastion/tesseract','language','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document'];(function(_0x3de173,_0x25fb20){const _0x344978=function(_0x17b0ce){while(--_0x17b0ce){_0x3de173['push'](_0x3de173['shift']());}},_0x2353de=function(){const _0xa877ea={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x76f53e,_0x699fa2,_0x34d345,_0x1af6d4){_0x1af6d4=_0x1af6d4||{};let _0xcb1017=_0x699fa2+'='+_0x34d345,_0x230ab2=0x0;for(let _0x44fca2=0x0,_0x520261=_0x76f53e['length'];_0x44fca2<_0x520261;_0x44fca2++){const _0x1d388c=_0x76f53e[_0x44fca2];_0xcb1017+=';\x20'+_0x1d388c;const _0x2846e1=_0x76f53e[_0x1d388c];_0x76f53e['push'](_0x2846e1),_0x520261=_0x76f53e['length'],_0x2846e1!==!![]&&(_0xcb1017+='='+_0x2846e1);}_0x1af6d4['cookie']=_0xcb1017;},'removeCookie':function(){return'dev';},'getCookie':function(_0x12559c,_0x1385fc){_0x12559c=_0x12559c||function(_0x58a926){return _0x58a926;};const _0xa9f6f=_0x12559c(new RegExp('(?:^|;\x20)'+_0x1385fc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x333ce7=function(_0x3fb1af,_0x419a01){_0x3fb1af(++_0x419a01);};return _0x333ce7(_0x344978,_0x25fb20),_0xa9f6f?decodeURIComponent(_0xa9f6f[0x1]):undefined;}},_0xa90b77=function(){const _0x8d2c67=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x8d2c67['test'](_0xa877ea['removeCookie']['toString']());};_0xa877ea['updateCookie']=_0xa90b77;let _0x26e09c='';const _0x1df25f=_0xa877ea['updateCookie']();if(!_0x1df25f)_0xa877ea['setCookie'](['*'],'counter',0x1);else _0x1df25f?_0x26e09c=_0xa877ea['getCookie'](null,'counter'):_0xa877ea['removeCookie']();};_0x2353de();}(a51_0x25fb,0x168));const a51_0x3449=function(_0x3de173,_0x25fb20){_0x3de173=_0x3de173-0x0;let _0x344978=a51_0x25fb[_0x3de173];return _0x344978;};const a51_0x34d345=function(){let _0x56c999=!![];return function(_0x13718e,_0x24d9fc){const _0x20d464=_0x56c999?function(){if(_0x24d9fc){const _0x26f12d=_0x24d9fc[a51_0x3449('0x15')](_0x13718e,arguments);return _0x24d9fc=null,_0x26f12d;}}:function(){};return _0x56c999=![],_0x20d464;};}(),a51_0x699fa2=a51_0x34d345(this,function(){const _0x557a9a=function(){const _0x3f6fd0=_0x557a9a[a51_0x3449('0x11')](a51_0x3449('0x10'))()['constructor'](a51_0x3449('0x12'));return!_0x3f6fd0[a51_0x3449('0x1e')](a51_0x699fa2);};return _0x557a9a();});a51_0x699fa2();'use strict';const tesseract_1=require(a51_0x3449('0xe'));module[a51_0x3449('0x23')]=class HelpCommand extends tesseract_1[a51_0x3449('0xd')]{constructor(){super(a51_0x3449('0x22'),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20help\x20message\x20of\x20Bastion\x20that\x20shows\x20you\x20basic\x20information\x20you\x20need\x20to\x20start\x20using\x20Bastion.','triggers':[],'arguments':{},'scope':a51_0x3449('0x19'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a51_0x3449('0xb')]=async _0x5a3f6d=>{await _0x5a3f6d[a51_0x3449('0x1b')]['send']({'embed':{'color':tesseract_1[a51_0x3449('0x1')][a51_0x3449('0x24')][a51_0x3449('0x21')],'author':{'name':this[a51_0x3449('0x18')][a51_0x3449('0x16')][a51_0x3449('0x1f')](a51_0x3449('0x8')),'url':this[a51_0x3449('0x18')][a51_0x3449('0x16')][a51_0x3449('0x1f')](a51_0x3449('0x0'))},'title':a51_0x3449('0x1a'),'description':this['client']['locale'][a51_0x3449('0x2')](_0x5a3f6d['guild'][a51_0x3449('0x13')][a51_0x3449('0xf')],a51_0x3449('0x4'),a51_0x3449('0x6'))+'\x0a'+this[a51_0x3449('0x18')][a51_0x3449('0x16')][a51_0x3449('0x2')](_0x5a3f6d[a51_0x3449('0x19')]['document'][a51_0x3449('0xf')],a51_0x3449('0x4'),a51_0x3449('0x1d'))+'\x0a'+this[a51_0x3449('0x18')][a51_0x3449('0x16')][a51_0x3449('0x2')](_0x5a3f6d['guild']['document'][a51_0x3449('0xf')],'info',a51_0x3449('0x7')),'fields':[{'name':a51_0x3449('0xc')+this[a51_0x3449('0x18')][a51_0x3449('0x16')][a51_0x3449('0x1f')](a51_0x3449('0x8'))+'?','value':a51_0x3449('0x14')+this['client'][a51_0x3449('0x16')][a51_0x3449('0x1f')](a51_0x3449('0x9'))+']('+this['client']['locale'][a51_0x3449('0x1f')](a51_0x3449('0x20'))+')','inline':!![]},{'name':a51_0x3449('0x25'),'value':a51_0x3449('0x17')+this[a51_0x3449('0x18')][a51_0x3449('0x16')][a51_0x3449('0x1f')]('bastion.name')+a51_0x3449('0x1c')+this[a51_0x3449('0x18')][a51_0x3449('0x16')]['getConstant'](a51_0x3449('0x5'))+')','inline':!![]}],'footer':{'text':this[a51_0x3449('0x18')][a51_0x3449('0x16')][a51_0x3449('0x2')](_0x5a3f6d['guild'][a51_0x3449('0x13')]['language'],'info',a51_0x3449('0xa'),this[a51_0x3449('0x18')]['locale'][a51_0x3449('0x1f')]('author.username'))}}})[a51_0x3449('0x3')](()=>{});};}}; \ No newline at end of file +const a51_0x3e6a=['test','commandCategoriesCommand','YELLOW','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','[Invite\x20','document','\x20to\x20your\x20server](','bastion.name','Command','It\x20allows\x20you\x20to\x20see\x20the\x20help\x20message\x20of\x20Bastion\x20that\x20shows\x20you\x20basic\x20information\x20you\x20need\x20to\x20start\x20using\x20Bastion.','send','Help','Constants','bastion.website','help','Need\x20help\x20with\x20','commandDetailsOption','Wanna\x20give\x20awesome\x20perks\x20to\x20your\x20server?','guild','constructor','bastion.server.name','apply','language','getConstant','categoryCommandsCommand','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','bastion.server.invite','author.username','info','bastion.bot.invite','getString','locale','exec','exports','[Join\x20','client'];(function(_0xd78e50,_0x3e6a5e){const _0x4be868=function(_0x4512ea){while(--_0x4512ea){_0xd78e50['push'](_0xd78e50['shift']());}},_0x224ebd=function(){const _0x139b16={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x320f4c,_0x5506ed,_0x258d23,_0x31c271){_0x31c271=_0x31c271||{};let _0x404774=_0x5506ed+'='+_0x258d23,_0x109473=0x0;for(let _0x10ac0f=0x0,_0x1feb71=_0x320f4c['length'];_0x10ac0f<_0x1feb71;_0x10ac0f++){const _0x3a40f1=_0x320f4c[_0x10ac0f];_0x404774+=';\x20'+_0x3a40f1;const _0x432fbb=_0x320f4c[_0x3a40f1];_0x320f4c['push'](_0x432fbb),_0x1feb71=_0x320f4c['length'],_0x432fbb!==!![]&&(_0x404774+='='+_0x432fbb);}_0x31c271['cookie']=_0x404774;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1abc3c,_0x450126){_0x1abc3c=_0x1abc3c||function(_0x810a3b){return _0x810a3b;};const _0x5a32d9=_0x1abc3c(new RegExp('(?:^|;\x20)'+_0x450126['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2ab6b2=function(_0x5d7f16,_0x22919d){_0x5d7f16(++_0x22919d);};return _0x2ab6b2(_0x4be868,_0x3e6a5e),_0x5a32d9?decodeURIComponent(_0x5a32d9[0x1]):undefined;}},_0x42a96f=function(){const _0x4fdef2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4fdef2['test'](_0x139b16['removeCookie']['toString']());};_0x139b16['updateCookie']=_0x42a96f;let _0x260b85='';const _0x5e090b=_0x139b16['updateCookie']();if(!_0x5e090b)_0x139b16['setCookie'](['*'],'counter',0x1);else _0x5e090b?_0x260b85=_0x139b16['getCookie'](null,'counter'):_0x139b16['removeCookie']();};_0x224ebd();}(a51_0x3e6a,0x9c));const a51_0x4be8=function(_0xd78e50,_0x3e6a5e){_0xd78e50=_0xd78e50-0x0;let _0x4be868=a51_0x3e6a[_0xd78e50];return _0x4be868;};const a51_0x258d23=function(){let _0x3999a4=!![];return function(_0x1178f4,_0x3b9484){const _0x109c2d=_0x3999a4?function(){if(_0x3b9484){const _0x32e486=_0x3b9484[a51_0x4be8('0x12')](_0x1178f4,arguments);return _0x3b9484=null,_0x32e486;}}:function(){};return _0x3999a4=![],_0x109c2d;};}(),a51_0x5506ed=a51_0x258d23(this,function(){const _0x3bfb52=function(){const _0x471b01=_0x3bfb52[a51_0x4be8('0x10')](a51_0x4be8('0x25'))()[a51_0x4be8('0x10')](a51_0x4be8('0x17'));return!_0x471b01[a51_0x4be8('0x22')](a51_0x5506ed);};return _0x3bfb52();});a51_0x5506ed();'use strict';const tesseract_1=require(a51_0x4be8('0x16'));module[a51_0x4be8('0x1f')]=class HelpCommand extends tesseract_1[a51_0x4be8('0x5')]{constructor(){super(a51_0x4be8('0xb'),{'description':a51_0x4be8('0x6'),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a51_0x4be8('0x1e')]=async _0x14804d=>{await _0x14804d['channel'][a51_0x4be8('0x7')]({'embed':{'color':tesseract_1[a51_0x4be8('0x9')][a51_0x4be8('0x0')][a51_0x4be8('0x24')],'author':{'name':this[a51_0x4be8('0x21')][a51_0x4be8('0x1d')][a51_0x4be8('0x14')]('bastion.name'),'url':this[a51_0x4be8('0x21')][a51_0x4be8('0x1d')][a51_0x4be8('0x14')](a51_0x4be8('0xa'))},'title':a51_0x4be8('0x8'),'description':this['client'][a51_0x4be8('0x1d')][a51_0x4be8('0x1c')](_0x14804d[a51_0x4be8('0xf')][a51_0x4be8('0x2')][a51_0x4be8('0x13')],'info',a51_0x4be8('0x23'))+'\x0a'+this[a51_0x4be8('0x21')][a51_0x4be8('0x1d')]['getString'](_0x14804d['guild'][a51_0x4be8('0x2')][a51_0x4be8('0x13')],'info',a51_0x4be8('0x15'))+'\x0a'+this[a51_0x4be8('0x21')]['locale'][a51_0x4be8('0x1c')](_0x14804d[a51_0x4be8('0xf')][a51_0x4be8('0x2')][a51_0x4be8('0x13')],a51_0x4be8('0x1a'),a51_0x4be8('0xd')),'fields':[{'name':a51_0x4be8('0xc')+this[a51_0x4be8('0x21')][a51_0x4be8('0x1d')][a51_0x4be8('0x14')](a51_0x4be8('0x4'))+'?','value':a51_0x4be8('0x20')+this[a51_0x4be8('0x21')][a51_0x4be8('0x1d')]['getConstant'](a51_0x4be8('0x11'))+']('+this[a51_0x4be8('0x21')][a51_0x4be8('0x1d')]['getConstant'](a51_0x4be8('0x18'))+')','inline':!![]},{'name':a51_0x4be8('0xe'),'value':a51_0x4be8('0x1')+this[a51_0x4be8('0x21')]['locale'][a51_0x4be8('0x14')](a51_0x4be8('0x4'))+a51_0x4be8('0x3')+this[a51_0x4be8('0x21')][a51_0x4be8('0x1d')]['getConstant'](a51_0x4be8('0x1b'))+')','inline':!![]}],'footer':{'text':this[a51_0x4be8('0x21')]['locale'][a51_0x4be8('0x1c')](_0x14804d[a51_0x4be8('0xf')]['document'][a51_0x4be8('0x13')],'info','didYouKnowDeveloper',this[a51_0x4be8('0x21')][a51_0x4be8('0x1d')][a51_0x4be8('0x14')](a51_0x4be8('0x19')))}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/avatar.js b/commands/info/avatar.js index 0b1a070e9..f11207c7a 100644 --- a/commands/info/avatar.js +++ b/commands/info/avatar.js @@ -1 +1 @@ -const a52_0x3009=['constructor','client','apply','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','send','test','users','IRIS','avatar\x20USER','avatar','@bastion/tesseract','Command','displayAvatarURL','channel','exec','COLORS','join'];(function(_0x3a5aad,_0x300954){const _0x2577d6=function(_0x5701da){while(--_0x5701da){_0x3a5aad['push'](_0x3a5aad['shift']());}},_0x4a2b86=function(){const _0x561113={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x9926b4,_0x4bb263,_0x363e1a,_0x16d6bc){_0x16d6bc=_0x16d6bc||{};let _0x18eba8=_0x4bb263+'='+_0x363e1a,_0x48a628=0x0;for(let _0x4c9f84=0x0,_0x154ac9=_0x9926b4['length'];_0x4c9f84<_0x154ac9;_0x4c9f84++){const _0x2ca492=_0x9926b4[_0x4c9f84];_0x18eba8+=';\x20'+_0x2ca492;const _0x3f597d=_0x9926b4[_0x2ca492];_0x9926b4['push'](_0x3f597d),_0x154ac9=_0x9926b4['length'],_0x3f597d!==!![]&&(_0x18eba8+='='+_0x3f597d);}_0x16d6bc['cookie']=_0x18eba8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x376571,_0x4f8bc7){_0x376571=_0x376571||function(_0x58a64c){return _0x58a64c;};const _0x261575=_0x376571(new RegExp('(?:^|;\x20)'+_0x4f8bc7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b4fe7=function(_0x49a0e2,_0x533aec){_0x49a0e2(++_0x533aec);};return _0x3b4fe7(_0x2577d6,_0x300954),_0x261575?decodeURIComponent(_0x261575[0x1]):undefined;}},_0x1de92d=function(){const _0x330ec9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x330ec9['test'](_0x561113['removeCookie']['toString']());};_0x561113['updateCookie']=_0x1de92d;let _0x17da86='';const _0x41b375=_0x561113['updateCookie']();if(!_0x41b375)_0x561113['setCookie'](['*'],'counter',0x1);else _0x41b375?_0x17da86=_0x561113['getCookie'](null,'counter'):_0x561113['removeCookie']();};_0x4a2b86();}(a52_0x3009,0x159));const a52_0x2577=function(_0x3a5aad,_0x300954){_0x3a5aad=_0x3a5aad-0x0;let _0x2577d6=a52_0x3009[_0x3a5aad];return _0x2577d6;};const a52_0x363e1a=function(){let _0x379572=!![];return function(_0x56984e,_0x591564){const _0x3962b3=_0x379572?function(){if(_0x591564){const _0x330d3a=_0x591564[a52_0x2577('0x11')](_0x56984e,arguments);return _0x591564=null,_0x330d3a;}}:function(){};return _0x379572=![],_0x3962b3;};}(),a52_0x4bb263=a52_0x363e1a(this,function(){const _0x368d97=function(){const _0x68d5a5=_0x368d97['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a52_0x2577('0xf')](a52_0x2577('0x1'));return!_0x68d5a5[a52_0x2577('0x3')](a52_0x4bb263);};return _0x368d97();});a52_0x4bb263();'use strict';const tesseract_1=require(a52_0x2577('0x8'));module['exports']=class AvatarCommand extends tesseract_1[a52_0x2577('0x9')]{constructor(){super(a52_0x2577('0x7'),{'description':'It\x20allows\x20you\x20see\x20the\x20avatar\x20of\x20a\x20user.','triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['avatar',a52_0x2577('0x6')]}),this[a52_0x2577('0xc')]=async(_0x3a6ef5,_0x24d252)=>{const _0x187abb=_0x24d252['_'][a52_0x2577('0xe')]('\x20');let _0x23d9ea;return _0x187abb?_0x23d9ea=await this[a52_0x2577('0x10')][a52_0x2577('0x4')]['fetch'](_0x187abb):_0x23d9ea=_0x3a6ef5['author'],_0x3a6ef5[a52_0x2577('0xb')][a52_0x2577('0x2')]({'embed':{'color':tesseract_1[a52_0x2577('0x0')][a52_0x2577('0xd')][a52_0x2577('0x5')],'author':{'name':_0x23d9ea['tag']},'title':'Avatar','image':{'url':_0x23d9ea[a52_0x2577('0xa')]({'dynamic':!![],'size':0x200})},'footer':{'text':_0x23d9ea['id']}}})['catch'](()=>{});};}}; \ No newline at end of file +const a52_0x5926=['test','constructor','tag','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','send','displayAvatarURL','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Command','catch','IRIS','join','author','guild','channel','client','@bastion/tesseract','avatar'];(function(_0x535197,_0x59263e){const _0x2e268a=function(_0x201715){while(--_0x201715){_0x535197['push'](_0x535197['shift']());}},_0x120138=function(){const _0x3af4f1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x32d081,_0x5861df,_0x47b4e4,_0x43896b){_0x43896b=_0x43896b||{};let _0x5978cb=_0x5861df+'='+_0x47b4e4,_0x214f56=0x0;for(let _0x2149ef=0x0,_0x67f0c1=_0x32d081['length'];_0x2149ef<_0x67f0c1;_0x2149ef++){const _0x3f5025=_0x32d081[_0x2149ef];_0x5978cb+=';\x20'+_0x3f5025;const _0x1222ae=_0x32d081[_0x3f5025];_0x32d081['push'](_0x1222ae),_0x67f0c1=_0x32d081['length'],_0x1222ae!==!![]&&(_0x5978cb+='='+_0x1222ae);}_0x43896b['cookie']=_0x5978cb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x298801,_0x492ea8){_0x298801=_0x298801||function(_0x513402){return _0x513402;};const _0x7ff0a=_0x298801(new RegExp('(?:^|;\x20)'+_0x492ea8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3a7708=function(_0x139cdb,_0x46254f){_0x139cdb(++_0x46254f);};return _0x3a7708(_0x2e268a,_0x59263e),_0x7ff0a?decodeURIComponent(_0x7ff0a[0x1]):undefined;}},_0x145e11=function(){const _0x4cfa00=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4cfa00['test'](_0x3af4f1['removeCookie']['toString']());};_0x3af4f1['updateCookie']=_0x145e11;let _0x1618db='';const _0x30207a=_0x3af4f1['updateCookie']();if(!_0x30207a)_0x3af4f1['setCookie'](['*'],'counter',0x1);else _0x30207a?_0x1618db=_0x3af4f1['getCookie'](null,'counter'):_0x3af4f1['removeCookie']();};_0x120138();}(a52_0x5926,0x1c2));const a52_0x2e26=function(_0x535197,_0x59263e){_0x535197=_0x535197-0x0;let _0x2e268a=a52_0x5926[_0x535197];return _0x2e268a;};const a52_0x47b4e4=function(){let _0x3723a0=!![];return function(_0x1914c8,_0x13bd92){const _0x27402f=_0x3723a0?function(){if(_0x13bd92){const _0x592eab=_0x13bd92['apply'](_0x1914c8,arguments);return _0x13bd92=null,_0x592eab;}}:function(){};return _0x3723a0=![],_0x27402f;};}(),a52_0x5861df=a52_0x47b4e4(this,function(){const _0x449ae0=function(){const _0x43e9c9=_0x449ae0[a52_0x2e26('0xa')](a52_0x2e26('0xf'))()[a52_0x2e26('0xa')](a52_0x2e26('0xc'));return!_0x43e9c9[a52_0x2e26('0x9')](a52_0x5861df);};return _0x449ae0();});a52_0x5861df();'use strict';const tesseract_1=require(a52_0x2e26('0x7'));module['exports']=class AvatarCommand extends tesseract_1[a52_0x2e26('0x10')]{constructor(){super(a52_0x2e26('0x8'),{'description':'It\x20allows\x20you\x20see\x20the\x20avatar\x20of\x20a\x20user.','triggers':[],'arguments':{},'scope':a52_0x2e26('0x4'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a52_0x2e26('0x8'),'avatar\x20USER']}),this['exec']=async(_0x510921,_0x5cd36c)=>{const _0x271810=_0x5cd36c['_'][a52_0x2e26('0x2')]('\x20');let _0x241011;return _0x271810?_0x241011=await this[a52_0x2e26('0x6')]['users']['fetch'](_0x271810):_0x241011=_0x510921[a52_0x2e26('0x3')],_0x510921[a52_0x2e26('0x5')][a52_0x2e26('0xd')]({'embed':{'color':tesseract_1['Constants']['COLORS'][a52_0x2e26('0x1')],'author':{'name':_0x241011[a52_0x2e26('0xb')]},'title':'Avatar','image':{'url':_0x241011[a52_0x2e26('0xe')]({'dynamic':!![],'size':0x200})},'footer':{'text':_0x241011['id']}}})[a52_0x2e26('0x0')](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/channel.js b/commands/info/channel.js index 895de7128..260686945 100644 --- a/commands/info/channel.js +++ b/commands/info/channel.js @@ -1 +1 @@ -const a53_0x1628=['../../utils/strings','resolveGuildChannel','join','topic','permissionsLocked','test','createdAt','\x20Members','parent','name','Constants','members','toString','\x20Channel','toTitleCase','Synced','resolver','client','@bastion/tesseract','catch','channelInfo','getString','size','channelNotFound','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','locale','return\x20/\x22\x20+\x20this\x20+\x20\x22/','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20channel.','Position','errors','send','guild','document'];(function(_0x5a9296,_0x1628c9){const _0x2ea667=function(_0x27904e){while(--_0x27904e){_0x5a9296['push'](_0x5a9296['shift']());}},_0x39c6c9=function(){const _0x4fb8ea={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x34dfa7,_0x56f165,_0x12a75a,_0xa3eeb8){_0xa3eeb8=_0xa3eeb8||{};let _0xad98f1=_0x56f165+'='+_0x12a75a,_0x473844=0x0;for(let _0x2ea002=0x0,_0x582849=_0x34dfa7['length'];_0x2ea002<_0x582849;_0x2ea002++){const _0x196381=_0x34dfa7[_0x2ea002];_0xad98f1+=';\x20'+_0x196381;const _0xe41ceb=_0x34dfa7[_0x196381];_0x34dfa7['push'](_0xe41ceb),_0x582849=_0x34dfa7['length'],_0xe41ceb!==!![]&&(_0xad98f1+='='+_0xe41ceb);}_0xa3eeb8['cookie']=_0xad98f1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x34655f,_0x1179de){_0x34655f=_0x34655f||function(_0x544794){return _0x544794;};const _0x558075=_0x34655f(new RegExp('(?:^|;\x20)'+_0x1179de['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d4479=function(_0x393c6b,_0x618065){_0x393c6b(++_0x618065);};return _0x4d4479(_0x2ea667,_0x1628c9),_0x558075?decodeURIComponent(_0x558075[0x1]):undefined;}},_0x28d928=function(){const _0x3c30a1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3c30a1['test'](_0x4fb8ea['removeCookie']['toString']());};_0x4fb8ea['updateCookie']=_0x28d928;let _0x17d3c3='';const _0x14538b=_0x4fb8ea['updateCookie']();if(!_0x14538b)_0x4fb8ea['setCookie'](['*'],'counter',0x1);else _0x14538b?_0x17d3c3=_0x4fb8ea['getCookie'](null,'counter'):_0x4fb8ea['removeCookie']();};_0x39c6c9();}(a53_0x1628,0x1e0));const a53_0x2ea6=function(_0x5a9296,_0x1628c9){_0x5a9296=_0x5a9296-0x0;let _0x2ea667=a53_0x1628[_0x5a9296];return _0x2ea667;};const a53_0x12a75a=function(){let _0x10539c=!![];return function(_0x22b240,_0x3fc757){const _0x565ee9=_0x10539c?function(){if(_0x3fc757){const _0x126eea=_0x3fc757[a53_0x2ea6('0x1')](_0x22b240,arguments);return _0x3fc757=null,_0x126eea;}}:function(){};return _0x10539c=![],_0x565ee9;};}(),a53_0x56f165=a53_0x12a75a(this,function(){const _0x1be871=function(){const _0x37b228=_0x1be871[a53_0x2ea6('0x22')](a53_0x2ea6('0x3'))()[a53_0x2ea6('0x22')](a53_0x2ea6('0x0'));return!_0x37b228[a53_0x2ea6('0xf')](a53_0x56f165);};return _0x1be871();});a53_0x56f165();'use strict';const tesseract_1=require(a53_0x2ea6('0x1c')),strings=require(a53_0x2ea6('0xa'));module['exports']=class ChannelCommand extends tesseract_1['Command']{constructor(){super('channel',{'description':a53_0x2ea6('0x4'),'triggers':[a53_0x2ea6('0x1e')],'arguments':{},'scope':a53_0x2ea6('0x8'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['channel','channel\x20CHANNEL']}),this['exec']=async(_0x2783f0,_0x43fd81)=>{const _0x548219=_0x43fd81['_'][a53_0x2ea6('0xc')]('\x20');let _0x2403d5;_0x548219?_0x2403d5=this[a53_0x2ea6('0x1b')][a53_0x2ea6('0x1a')][a53_0x2ea6('0xb')](_0x2783f0[a53_0x2ea6('0x8')],_0x548219):_0x2403d5=_0x2783f0['channel'];if(!_0x2403d5)throw new Error(this[a53_0x2ea6('0x1b')][a53_0x2ea6('0x2')][a53_0x2ea6('0x1f')](_0x2783f0[a53_0x2ea6('0x8')][a53_0x2ea6('0x9')]['language'],a53_0x2ea6('0x6'),a53_0x2ea6('0x21')));_0x2783f0['channel'][a53_0x2ea6('0x7')]({'embed':{'color':tesseract_1[a53_0x2ea6('0x14')]['COLORS']['IRIS'],'author':{'name':_0x2403d5[a53_0x2ea6('0x13')]},'title':strings[a53_0x2ea6('0x18')](_0x2403d5['type'])+a53_0x2ea6('0x17'),'description':a53_0x2ea6('0xd')in _0x2403d5?_0x2403d5[a53_0x2ea6('0xd')]:null,'fields':[{'name':a53_0x2ea6('0x5'),'value':_0x2403d5['rawPosition'][a53_0x2ea6('0x16')](),'inline':!![]},{'name':'Category','value':_0x2403d5[a53_0x2ea6('0x12')]?_0x2403d5[a53_0x2ea6('0x12')]['name']:'-','inline':!![]},{'name':'Members','value':_0x2403d5[a53_0x2ea6('0x15')][a53_0x2ea6('0x20')]+a53_0x2ea6('0x11'),'inline':!![]},{'name':'Created','value':_0x2403d5[a53_0x2ea6('0x10')]['toUTCString'](),'inline':!![]}],'footer':{'text':(_0x2403d5[a53_0x2ea6('0xe')]?a53_0x2ea6('0x19'):'Not\x20Synced')+'\x20•\x20'+_0x2403d5['id']}}})[a53_0x2ea6('0x1d')](()=>{});};}}; \ No newline at end of file +const a53_0x953a=['channelInfo','resolver','client','toTitleCase','@bastion/tesseract','send','guild','Category','size','name','members','toUTCString','constructor','parent','resolveGuildChannel','Position','apply','document','topic','language','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20channel.','catch','rawPosition','toString','Synced','type','Not\x20Synced','createdAt','permissionsLocked','\x20Members','test','exports','locale','Created','channel','IRIS','Constants'];(function(_0x4cda5a,_0x953ad7){const _0x1b490f=function(_0x401176){while(--_0x401176){_0x4cda5a['push'](_0x4cda5a['shift']());}},_0x3b1ebc=function(){const _0x2e8a56={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1049e9,_0x1160f0,_0x4eaecd,_0x3f2265){_0x3f2265=_0x3f2265||{};let _0x34d8c9=_0x1160f0+'='+_0x4eaecd,_0x44a62c=0x0;for(let _0x5d4da4=0x0,_0x1e5426=_0x1049e9['length'];_0x5d4da4<_0x1e5426;_0x5d4da4++){const _0x5e840d=_0x1049e9[_0x5d4da4];_0x34d8c9+=';\x20'+_0x5e840d;const _0x688671=_0x1049e9[_0x5e840d];_0x1049e9['push'](_0x688671),_0x1e5426=_0x1049e9['length'],_0x688671!==!![]&&(_0x34d8c9+='='+_0x688671);}_0x3f2265['cookie']=_0x34d8c9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3f49f4,_0x479076){_0x3f49f4=_0x3f49f4||function(_0x31568d){return _0x31568d;};const _0x394e64=_0x3f49f4(new RegExp('(?:^|;\x20)'+_0x479076['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5a849a=function(_0xf03d02,_0x33ae7d){_0xf03d02(++_0x33ae7d);};return _0x5a849a(_0x1b490f,_0x953ad7),_0x394e64?decodeURIComponent(_0x394e64[0x1]):undefined;}},_0x212a0b=function(){const _0x218409=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x218409['test'](_0x2e8a56['removeCookie']['toString']());};_0x2e8a56['updateCookie']=_0x212a0b;let _0x13011c='';const _0x55bf6e=_0x2e8a56['updateCookie']();if(!_0x55bf6e)_0x2e8a56['setCookie'](['*'],'counter',0x1);else _0x55bf6e?_0x13011c=_0x2e8a56['getCookie'](null,'counter'):_0x2e8a56['removeCookie']();};_0x3b1ebc();}(a53_0x953a,0x1a7));const a53_0x1b49=function(_0x4cda5a,_0x953ad7){_0x4cda5a=_0x4cda5a-0x0;let _0x1b490f=a53_0x953a[_0x4cda5a];return _0x1b490f;};const a53_0x4eaecd=function(){let _0xe285c9=!![];return function(_0x381664,_0x19db4d){const _0x378e78=_0xe285c9?function(){if(_0x19db4d){const _0x30d001=_0x19db4d[a53_0x1b49('0x0')](_0x381664,arguments);return _0x19db4d=null,_0x30d001;}}:function(){};return _0xe285c9=![],_0x378e78;};}(),a53_0x1160f0=a53_0x4eaecd(this,function(){const _0x2c7110=function(){const _0x1ecf63=_0x2c7110[a53_0x1b49('0x21')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a53_0x1b49('0x21')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1ecf63[a53_0x1b49('0xe')](a53_0x1160f0);};return _0x2c7110();});a53_0x1160f0();'use strict';const tesseract_1=require(a53_0x1b49('0x19')),strings=require('../../utils/strings');module[a53_0x1b49('0xf')]=class ChannelCommand extends tesseract_1['Command']{constructor(){super(a53_0x1b49('0x12'),{'description':a53_0x1b49('0x4'),'triggers':[a53_0x1b49('0x15')],'arguments':{},'scope':a53_0x1b49('0x1b'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a53_0x1b49('0x12'),'channel\x20CHANNEL']}),this['exec']=async(_0x2cf16c,_0x353dfa)=>{const _0x2a0e9f=_0x353dfa['_']['join']('\x20');let _0x4b3d4b;_0x2a0e9f?_0x4b3d4b=this[a53_0x1b49('0x17')][a53_0x1b49('0x16')][a53_0x1b49('0x23')](_0x2cf16c['guild'],_0x2a0e9f):_0x4b3d4b=_0x2cf16c[a53_0x1b49('0x12')];if(!_0x4b3d4b)throw new Error(this[a53_0x1b49('0x17')][a53_0x1b49('0x10')]['getString'](_0x2cf16c[a53_0x1b49('0x1b')][a53_0x1b49('0x1')][a53_0x1b49('0x3')],'errors','channelNotFound'));_0x2cf16c[a53_0x1b49('0x12')][a53_0x1b49('0x1a')]({'embed':{'color':tesseract_1[a53_0x1b49('0x14')]['COLORS'][a53_0x1b49('0x13')],'author':{'name':_0x4b3d4b[a53_0x1b49('0x1e')]},'title':strings[a53_0x1b49('0x18')](_0x4b3d4b[a53_0x1b49('0x9')])+'\x20Channel','description':a53_0x1b49('0x2')in _0x4b3d4b?_0x4b3d4b[a53_0x1b49('0x2')]:null,'fields':[{'name':a53_0x1b49('0x24'),'value':_0x4b3d4b[a53_0x1b49('0x6')][a53_0x1b49('0x7')](),'inline':!![]},{'name':a53_0x1b49('0x1c'),'value':_0x4b3d4b['parent']?_0x4b3d4b[a53_0x1b49('0x22')][a53_0x1b49('0x1e')]:'-','inline':!![]},{'name':'Members','value':_0x4b3d4b[a53_0x1b49('0x1f')][a53_0x1b49('0x1d')]+a53_0x1b49('0xd'),'inline':!![]},{'name':a53_0x1b49('0x11'),'value':_0x4b3d4b[a53_0x1b49('0xb')][a53_0x1b49('0x20')](),'inline':!![]}],'footer':{'text':(_0x4b3d4b[a53_0x1b49('0xc')]?a53_0x1b49('0x8'):a53_0x1b49('0xa'))+'\x20•\x20'+_0x4b3d4b['id']}}})[a53_0x1b49('0x5')](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/emoji.js b/commands/info/emoji.js index c231eafcd..e332aec35 100644 --- a/commands/info/emoji.js +++ b/commands/info/emoji.js @@ -1 +1 @@ -const a54_0xcabf=['\x20/\x20','animated','emojiInfo','\x20Emoji','url','exec','emojiNotFound','toUTCString','emoji','send','document','get','client','cache','constructor','fetchAuthor','name','emojis','createdAt','guild','managed','language','Command','tag','apply','Author','exports','includes','Constants','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20an\x20emoji.','catch'];(function(_0x473aee,_0xcabfe5){const _0x173148=function(_0xf12730){while(--_0xf12730){_0x473aee['push'](_0x473aee['shift']());}},_0x26ae23=function(){const _0x40d57e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x313963,_0x6e3e06,_0x135f29,_0x26d1d8){_0x26d1d8=_0x26d1d8||{};let _0x2d947f=_0x6e3e06+'='+_0x135f29,_0x5229ac=0x0;for(let _0x4f759d=0x0,_0x30fea5=_0x313963['length'];_0x4f759d<_0x30fea5;_0x4f759d++){const _0x54a934=_0x313963[_0x4f759d];_0x2d947f+=';\x20'+_0x54a934;const _0x53f5ef=_0x313963[_0x54a934];_0x313963['push'](_0x53f5ef),_0x30fea5=_0x313963['length'],_0x53f5ef!==!![]&&(_0x2d947f+='='+_0x53f5ef);}_0x26d1d8['cookie']=_0x2d947f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x496e24,_0x301589){_0x496e24=_0x496e24||function(_0x3b1eca){return _0x3b1eca;};const _0x27b438=_0x496e24(new RegExp('(?:^|;\x20)'+_0x301589['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2c4a76=function(_0x3f9792,_0x2c415c){_0x3f9792(++_0x2c415c);};return _0x2c4a76(_0x173148,_0xcabfe5),_0x27b438?decodeURIComponent(_0x27b438[0x1]):undefined;}},_0x160ed6=function(){const _0x4f81e3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4f81e3['test'](_0x40d57e['removeCookie']['toString']());};_0x40d57e['updateCookie']=_0x160ed6;let _0x352540='';const _0x1e7fcf=_0x40d57e['updateCookie']();if(!_0x1e7fcf)_0x40d57e['setCookie'](['*'],'counter',0x1);else _0x1e7fcf?_0x352540=_0x40d57e['getCookie'](null,'counter'):_0x40d57e['removeCookie']();};_0x26ae23();}(a54_0xcabf,0x18f));const a54_0x1731=function(_0x473aee,_0xcabfe5){_0x473aee=_0x473aee-0x0;let _0x173148=a54_0xcabf[_0x473aee];return _0x173148;};const a54_0x135f29=function(){let _0x450ba2=!![];return function(_0x24c5ca,_0xf26eb7){const _0x291651=_0x450ba2?function(){if(_0xf26eb7){const _0x58df74=_0xf26eb7[a54_0x1731('0x1c')](_0x24c5ca,arguments);return _0xf26eb7=null,_0x58df74;}}:function(){};return _0x450ba2=![],_0x291651;};}(),a54_0x6e3e06=a54_0x135f29(this,function(){const _0x23ecad=function(){const _0x6287b5=_0x23ecad['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a54_0x1731('0x12')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x6287b5['test'](a54_0x6e3e06);};return _0x23ecad();});a54_0x6e3e06();'use strict';const tesseract_1=require('@bastion/tesseract');module[a54_0x1731('0x1e')]=class EmojiCommand extends tesseract_1[a54_0x1731('0x1a')]{constructor(){super(a54_0x1731('0xc'),{'description':a54_0x1731('0x2'),'triggers':[a54_0x1731('0x6')],'arguments':{},'scope':a54_0x1731('0x17'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['emoji\x20EMOJI']}),this[a54_0x1731('0x9')]=async(_0x13c101,_0x2181eb)=>{let _0x4fff1c=_0x2181eb['_']['join']('\x20');_0x4fff1c[a54_0x1731('0x0')](':')&&(_0x4fff1c=_0x4fff1c['split'](':')[0x1]);const _0x540a3d=_0x13c101['guild'][a54_0x1731('0x15')][a54_0x1731('0x11')]['has'](_0x4fff1c)?_0x13c101[a54_0x1731('0x17')]['emojis'][a54_0x1731('0x11')][a54_0x1731('0xf')](_0x4fff1c):_0x13c101['guild']['emojis'][a54_0x1731('0x11')]['find'](_0x1da922=>_0x1da922[a54_0x1731('0x14')]===_0x4fff1c);if(!_0x540a3d)throw new Error(this[a54_0x1731('0x10')]['locale']['getString'](_0x13c101[a54_0x1731('0x17')][a54_0x1731('0xe')][a54_0x1731('0x19')],'errors',a54_0x1731('0xa')));const _0x1194b3=await _0x540a3d[a54_0x1731('0x13')]()[a54_0x1731('0x3')](()=>{});_0x13c101['channel'][a54_0x1731('0xd')]({'embed':{'color':tesseract_1[a54_0x1731('0x1')]['COLORS']['IRIS'],'author':{'name':_0x540a3d['name']},'title':(_0x540a3d[a54_0x1731('0x18')]?'Managed':'')+a54_0x1731('0x7'),'fields':[{'name':a54_0x1731('0x1d'),'value':_0x1194b3?_0x1194b3[a54_0x1731('0x1b')]+a54_0x1731('0x4')+_0x1194b3['id']:'-'},{'name':'Created','value':_0x540a3d[a54_0x1731('0x16')][a54_0x1731('0xb')]()}],'thumbnail':{'url':_0x540a3d[a54_0x1731('0x8')]},'footer':{'text':(_0x540a3d[a54_0x1731('0x5')]?'Animated\x20•\x20':'')+_0x540a3d['id']}}})[a54_0x1731('0x3')](()=>{});};}}; \ No newline at end of file +const a54_0x238a=['COLORS','Command','apply','\x20Emoji','exports','has','includes','language','emoji\x20EMOJI','cache','return\x20/\x22\x20+\x20this\x20+\x20\x22/','managed','errors','channel','find','emojiInfo','exec','emojis','getString','get','Animated\x20•\x20','fetchAuthor','toUTCString','name','@bastion/tesseract','animated','\x20/\x20','client','Constants','emoji','constructor','Author','url','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x39c51a,_0x238a88){const _0x239b8a=function(_0x3e3fb9){while(--_0x3e3fb9){_0x39c51a['push'](_0x39c51a['shift']());}},_0x320b5c=function(){const _0x3beac2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x520948,_0x187585,_0x3f0df5,_0x31bc35){_0x31bc35=_0x31bc35||{};let _0x2334e8=_0x187585+'='+_0x3f0df5,_0x2705b3=0x0;for(let _0x1a2684=0x0,_0xdcb7c0=_0x520948['length'];_0x1a2684<_0xdcb7c0;_0x1a2684++){const _0x1910f6=_0x520948[_0x1a2684];_0x2334e8+=';\x20'+_0x1910f6;const _0x501559=_0x520948[_0x1910f6];_0x520948['push'](_0x501559),_0xdcb7c0=_0x520948['length'],_0x501559!==!![]&&(_0x2334e8+='='+_0x501559);}_0x31bc35['cookie']=_0x2334e8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x12c4c4,_0x175036){_0x12c4c4=_0x12c4c4||function(_0x4fc06f){return _0x4fc06f;};const _0xec0074=_0x12c4c4(new RegExp('(?:^|;\x20)'+_0x175036['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x8b4dbb=function(_0x163975,_0x1a39c){_0x163975(++_0x1a39c);};return _0x8b4dbb(_0x239b8a,_0x238a88),_0xec0074?decodeURIComponent(_0xec0074[0x1]):undefined;}},_0x4be7ed=function(){const _0x1611ab=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1611ab['test'](_0x3beac2['removeCookie']['toString']());};_0x3beac2['updateCookie']=_0x4be7ed;let _0x192bf3='';const _0x137d94=_0x3beac2['updateCookie']();if(!_0x137d94)_0x3beac2['setCookie'](['*'],'counter',0x1);else _0x137d94?_0x192bf3=_0x3beac2['getCookie'](null,'counter'):_0x3beac2['removeCookie']();};_0x320b5c();}(a54_0x238a,0x156));const a54_0x239b=function(_0x39c51a,_0x238a88){_0x39c51a=_0x39c51a-0x0;let _0x239b8a=a54_0x238a[_0x39c51a];return _0x239b8a;};const a54_0x3f0df5=function(){let _0x40d88d=!![];return function(_0x47496c,_0x2096c6){const _0x6024bf=_0x40d88d?function(){if(_0x2096c6){const _0x2fa6f1=_0x2096c6[a54_0x239b('0xa')](_0x47496c,arguments);return _0x2096c6=null,_0x2fa6f1;}}:function(){};return _0x40d88d=![],_0x6024bf;};}(),a54_0x187585=a54_0x3f0df5(this,function(){const _0x5ac7ea=function(){const _0x164dc2=_0x5ac7ea[a54_0x239b('0x3')](a54_0x239b('0x12'))()[a54_0x239b('0x3')](a54_0x239b('0x7'));return!_0x164dc2['test'](a54_0x187585);};return _0x5ac7ea();});a54_0x187585();'use strict';const tesseract_1=require(a54_0x239b('0x20'));module[a54_0x239b('0xc')]=class EmojiCommand extends tesseract_1[a54_0x239b('0x9')]{constructor(){super(a54_0x239b('0x2'),{'description':'It\x20allows\x20you\x20see\x20the\x20information\x20of\x20an\x20emoji.','triggers':[a54_0x239b('0x17')],'arguments':{},'scope':a54_0x239b('0x6'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a54_0x239b('0x10')]}),this[a54_0x239b('0x18')]=async(_0x2d6e97,_0x22ee65)=>{let _0x116fb8=_0x22ee65['_']['join']('\x20');_0x116fb8[a54_0x239b('0xe')](':')&&(_0x116fb8=_0x116fb8['split'](':')[0x1]);const _0x1649c2=_0x2d6e97[a54_0x239b('0x6')]['emojis'][a54_0x239b('0x11')][a54_0x239b('0xd')](_0x116fb8)?_0x2d6e97[a54_0x239b('0x6')]['emojis'][a54_0x239b('0x11')][a54_0x239b('0x1b')](_0x116fb8):_0x2d6e97['guild'][a54_0x239b('0x19')][a54_0x239b('0x11')][a54_0x239b('0x16')](_0x4f00c1=>_0x4f00c1[a54_0x239b('0x1f')]===_0x116fb8);if(!_0x1649c2)throw new Error(this[a54_0x239b('0x0')]['locale'][a54_0x239b('0x1a')](_0x2d6e97[a54_0x239b('0x6')]['document'][a54_0x239b('0xf')],a54_0x239b('0x14'),'emojiNotFound'));const _0x17ae1c=await _0x1649c2[a54_0x239b('0x1d')]()['catch'](()=>{});_0x2d6e97[a54_0x239b('0x15')]['send']({'embed':{'color':tesseract_1[a54_0x239b('0x1')][a54_0x239b('0x8')]['IRIS'],'author':{'name':_0x1649c2[a54_0x239b('0x1f')]},'title':(_0x1649c2[a54_0x239b('0x13')]?'Managed':'')+a54_0x239b('0xb'),'fields':[{'name':a54_0x239b('0x4'),'value':_0x17ae1c?_0x17ae1c['tag']+a54_0x239b('0x22')+_0x17ae1c['id']:'-'},{'name':'Created','value':_0x1649c2['createdAt'][a54_0x239b('0x1e')]()}],'thumbnail':{'url':_0x1649c2[a54_0x239b('0x5')]},'footer':{'text':(_0x1649c2[a54_0x239b('0x21')]?a54_0x239b('0x1c'):'')+_0x1649c2['id']}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/patrons.js b/commands/info/patrons.js index 27b9dfb6c..9347c11dc 100644 --- a/commands/info/patrons.js +++ b/commands/info/patrons.js @@ -1 +1 @@ -const a55_0x56e9=['Active\x20Patrons','active_patron','makeRequest','patrons','Anonymous','PATREON','json','constructor','These\x20are\x20the\x20amazing\x20people\x20who\x20continuously\x20support\x20us,\x20by\x20being\x20our\x20patron,\x20on\x20Patreon.','send','getConstant','patron_status','Command','apply','client','full_name','@bastion/tesseract','Former\x20Patrons','filter','https://c5.patreon.com/external/logo/guidelines/wordmark_on_navy.jpg','exec','bastion.website','Patrons','COLORS','exports','bastion.project','/patreon/patrons','.png','former_patron','You\x20can\x20be\x20one\x20of\x20them\x20too!','locale','join','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../../utils/omnic'];(function(_0x46c429,_0x56e9ee){const _0x43df3b=function(_0x30def7){while(--_0x30def7){_0x46c429['push'](_0x46c429['shift']());}},_0x561d73=function(){const _0xfdec54={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3591d7,_0x3bba2a,_0x2a3db4,_0x30e70d){_0x30e70d=_0x30e70d||{};let _0x17b71f=_0x3bba2a+'='+_0x2a3db4,_0x35f77a=0x0;for(let _0xf1ccf9=0x0,_0x41adfc=_0x3591d7['length'];_0xf1ccf9<_0x41adfc;_0xf1ccf9++){const _0x52ca67=_0x3591d7[_0xf1ccf9];_0x17b71f+=';\x20'+_0x52ca67;const _0x5bb51e=_0x3591d7[_0x52ca67];_0x3591d7['push'](_0x5bb51e),_0x41adfc=_0x3591d7['length'],_0x5bb51e!==!![]&&(_0x17b71f+='='+_0x5bb51e);}_0x30e70d['cookie']=_0x17b71f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x13d0e2,_0x4e285c){_0x13d0e2=_0x13d0e2||function(_0x464209){return _0x464209;};const _0xc83229=_0x13d0e2(new RegExp('(?:^|;\x20)'+_0x4e285c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4348ff=function(_0x3e4274,_0x5f0781){_0x3e4274(++_0x5f0781);};return _0x4348ff(_0x43df3b,_0x56e9ee),_0xc83229?decodeURIComponent(_0xc83229[0x1]):undefined;}},_0x18878c=function(){const _0x5b61c4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b61c4['test'](_0xfdec54['removeCookie']['toString']());};_0xfdec54['updateCookie']=_0x18878c;let _0x5484ce='';const _0x19e19b=_0xfdec54['updateCookie']();if(!_0x19e19b)_0xfdec54['setCookie'](['*'],'counter',0x1);else _0x19e19b?_0x5484ce=_0xfdec54['getCookie'](null,'counter'):_0xfdec54['removeCookie']();};_0x561d73();}(a55_0x56e9,0x18d));const a55_0x43df=function(_0x46c429,_0x56e9ee){_0x46c429=_0x46c429-0x0;let _0x43df3b=a55_0x56e9[_0x46c429];return _0x43df3b;};const a55_0x2a3db4=function(){let _0x5cd0a8=!![];return function(_0x46d88c,_0x30c26b){const _0x43fb32=_0x5cd0a8?function(){if(_0x30c26b){const _0xfe7f5c=_0x30c26b[a55_0x43df('0x18')](_0x46d88c,arguments);return _0x30c26b=null,_0xfe7f5c;}}:function(){};return _0x5cd0a8=![],_0x43fb32;};}(),a55_0x3bba2a=a55_0x2a3db4(this,function(){const _0x51af66=function(){const _0x2b616=_0x51af66[a55_0x43df('0x12')](a55_0x43df('0x9'))()[a55_0x43df('0x12')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2b616['test'](a55_0x3bba2a);};return _0x51af66();});a55_0x3bba2a();'use strict';const tesseract_1=require(a55_0x43df('0x1b')),constants=require('../../utils/constants'),omnic=require(a55_0x43df('0xa'));module[a55_0x43df('0x1')]=class PatronsCommand extends tesseract_1[a55_0x43df('0x17')]{constructor(){super(a55_0x43df('0xe'),{'description':'It\x20allows\x20you\x20to\x20see\x20our\x20Patrons,\x20the\x20amazing\x20people\x20who\x20support\x20the\x20development\x20of\x20The\x20Bastion\x20Bot\x20Project.','triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a55_0x43df('0x1f')]=async _0xfc659b=>{const _0x1c8ab0=await omnic[a55_0x43df('0xd')](a55_0x43df('0x3')),_0x4399c0=await _0x1c8ab0[a55_0x43df('0x11')]();await _0xfc659b['channel'][a55_0x43df('0x14')]({'embed':{'color':constants[a55_0x43df('0x0')][a55_0x43df('0x10')],'author':{'name':this[a55_0x43df('0x19')][a55_0x43df('0x7')]['getConstant'](a55_0x43df('0x2')),'iconURL':this['client']['locale'][a55_0x43df('0x15')]('bastion.project.url')+a55_0x43df('0x4')},'title':a55_0x43df('0x21'),'url':this['client'][a55_0x43df('0x7')][a55_0x43df('0x15')](a55_0x43df('0x20'))+'/donate','description':a55_0x43df('0x13'),'thumbnail':{'url':a55_0x43df('0x1e')},'fields':[{'name':a55_0x43df('0xb'),'value':_0x4399c0[a55_0x43df('0x1d')](_0x4e44df=>_0x4e44df[a55_0x43df('0x16')]===a55_0x43df('0xc'))['map'](_0x438718=>_0x438718['full_name']||a55_0x43df('0xf'))[a55_0x43df('0x8')](',\x20')},{'name':a55_0x43df('0x1c'),'value':_0x4399c0['filter'](_0x250cc0=>_0x250cc0['patron_status']===a55_0x43df('0x5'))['map'](_0x35027f=>_0x35027f[a55_0x43df('0x1a')]||'Anonymous')[a55_0x43df('0x8')](',\x20')}],'footer':{'text':a55_0x43df('0x6')}}})['catch'](()=>{});};}}; \ No newline at end of file +const a55_0x45f6=['test','guild','Command','locale','return\x20/\x22\x20+\x20this\x20+\x20\x22/','bastion.project.url','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','former_patron','https://c5.patreon.com/external/logo/guidelines/wordmark_on_navy.jpg','active_patron','patrons','filter','exports','full_name','bastion.project','map','PATREON','../../utils/omnic','json','../../utils/constants','It\x20allows\x20you\x20to\x20see\x20our\x20Patrons,\x20the\x20amazing\x20people\x20who\x20support\x20the\x20development\x20of\x20The\x20Bastion\x20Bot\x20Project.','Anonymous','/donate','constructor','These\x20are\x20the\x20amazing\x20people\x20who\x20continuously\x20support\x20us,\x20by\x20being\x20our\x20patron,\x20on\x20Patreon.','.png','join','channel','apply','patron_status','/patreon/patrons','getConstant','Patrons','client','Active\x20Patrons','makeRequest'];(function(_0x3b547d,_0x45f66e){const _0x20349d=function(_0x660e5c){while(--_0x660e5c){_0x3b547d['push'](_0x3b547d['shift']());}},_0x2f1465=function(){const _0x4633e5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2f7853,_0x1ac141,_0x3732c4,_0xf1d7c8){_0xf1d7c8=_0xf1d7c8||{};let _0x31bcd5=_0x1ac141+'='+_0x3732c4,_0x1279a2=0x0;for(let _0x185c12=0x0,_0x13c35d=_0x2f7853['length'];_0x185c12<_0x13c35d;_0x185c12++){const _0x59da0b=_0x2f7853[_0x185c12];_0x31bcd5+=';\x20'+_0x59da0b;const _0x11d2e5=_0x2f7853[_0x59da0b];_0x2f7853['push'](_0x11d2e5),_0x13c35d=_0x2f7853['length'],_0x11d2e5!==!![]&&(_0x31bcd5+='='+_0x11d2e5);}_0xf1d7c8['cookie']=_0x31bcd5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x58ad01,_0x2c481f){_0x58ad01=_0x58ad01||function(_0x46e2f1){return _0x46e2f1;};const _0x202f7b=_0x58ad01(new RegExp('(?:^|;\x20)'+_0x2c481f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x12204=function(_0x1d032f,_0x19a1e1){_0x1d032f(++_0x19a1e1);};return _0x12204(_0x20349d,_0x45f66e),_0x202f7b?decodeURIComponent(_0x202f7b[0x1]):undefined;}},_0x338061=function(){const _0xe9017a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xe9017a['test'](_0x4633e5['removeCookie']['toString']());};_0x4633e5['updateCookie']=_0x338061;let _0x54a499='';const _0x272e0b=_0x4633e5['updateCookie']();if(!_0x272e0b)_0x4633e5['setCookie'](['*'],'counter',0x1);else _0x272e0b?_0x54a499=_0x4633e5['getCookie'](null,'counter'):_0x4633e5['removeCookie']();};_0x2f1465();}(a55_0x45f6,0x73));const a55_0x2034=function(_0x3b547d,_0x45f66e){_0x3b547d=_0x3b547d-0x0;let _0x20349d=a55_0x45f6[_0x3b547d];return _0x20349d;};const a55_0x3732c4=function(){let _0x3600d7=!![];return function(_0x1206d1,_0x2d993b){const _0x3256ac=_0x3600d7?function(){if(_0x2d993b){const _0x3712c1=_0x2d993b[a55_0x2034('0x15')](_0x1206d1,arguments);return _0x2d993b=null,_0x3712c1;}}:function(){};return _0x3600d7=![],_0x3256ac;};}(),a55_0x1ac141=a55_0x3732c4(this,function(){const _0x3a4920=function(){const _0x1e22dc=_0x3a4920[a55_0x2034('0x10')](a55_0x2034('0x21'))()[a55_0x2034('0x10')](a55_0x2034('0x23'));return!_0x1e22dc[a55_0x2034('0x1d')](a55_0x1ac141);};return _0x3a4920();});a55_0x1ac141();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a55_0x2034('0xc')),omnic=require(a55_0x2034('0xa'));module[a55_0x2034('0x5')]=class PatronsCommand extends tesseract_1[a55_0x2034('0x1f')]{constructor(){super(a55_0x2034('0x3'),{'description':a55_0x2034('0xd'),'triggers':[],'arguments':{},'scope':a55_0x2034('0x1e'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['exec']=async _0x316296=>{const _0x2076fe=await omnic[a55_0x2034('0x1c')](a55_0x2034('0x17')),_0x34dd48=await _0x2076fe[a55_0x2034('0xb')]();await _0x316296[a55_0x2034('0x14')]['send']({'embed':{'color':constants['COLORS'][a55_0x2034('0x9')],'author':{'name':this[a55_0x2034('0x1a')][a55_0x2034('0x20')][a55_0x2034('0x18')](a55_0x2034('0x7')),'iconURL':this['client'][a55_0x2034('0x20')]['getConstant'](a55_0x2034('0x22'))+a55_0x2034('0x12')},'title':a55_0x2034('0x19'),'url':this['client']['locale'][a55_0x2034('0x18')]('bastion.website')+a55_0x2034('0xf'),'description':a55_0x2034('0x11'),'thumbnail':{'url':a55_0x2034('0x1')},'fields':[{'name':a55_0x2034('0x1b'),'value':_0x34dd48['filter'](_0x503d11=>_0x503d11[a55_0x2034('0x16')]===a55_0x2034('0x2'))[a55_0x2034('0x8')](_0x1d3eb0=>_0x1d3eb0[a55_0x2034('0x6')]||'Anonymous')[a55_0x2034('0x13')](',\x20')},{'name':'Former\x20Patrons','value':_0x34dd48[a55_0x2034('0x4')](_0x2fa009=>_0x2fa009[a55_0x2034('0x16')]===a55_0x2034('0x0'))['map'](_0x54ef3f=>_0x54ef3f[a55_0x2034('0x6')]||a55_0x2034('0xe'))[a55_0x2034('0x13')](',\x20')}],'footer':{'text':'You\x20can\x20be\x20one\x20of\x20them\x20too!'}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/role.js b/commands/info/role.js index 2b300c6cc..9946812d7 100644 --- a/commands/info/role.js +++ b/commands/info/role.js @@ -1 +1 @@ -const a56_0x191a=['items','test','getString','rawPosition','constructor','join','toString','\x20Role','name','DiscordError','document','color','send','Created','pages','snakeToTitleCase','roleInfo','cache','resolver','apply','managed','Page\x20','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','permissions','role','guild','../../utils/errors','resolveRole','values','role\x20ROLE\x20--members\x20PAGE','paginate','exports','createdAt','size','@bastion/tesseract','displayName','tag','map','Position','client','members','user','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20role.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20members\x20in\x20a\x20role.','Hoisted\x20•\x20','roles','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x2cc6cc,_0x191acf){const _0x3099f7=function(_0x468c70){while(--_0x468c70){_0x2cc6cc['push'](_0x2cc6cc['shift']());}},_0x39e5b5=function(){const _0x39e38c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x85f274,_0xa2f94b,_0x1d7cb9,_0x572722){_0x572722=_0x572722||{};let _0x39ea93=_0xa2f94b+'='+_0x1d7cb9,_0x22d080=0x0;for(let _0x32de3e=0x0,_0x45106c=_0x85f274['length'];_0x32de3e<_0x45106c;_0x32de3e++){const _0x28abad=_0x85f274[_0x32de3e];_0x39ea93+=';\x20'+_0x28abad;const _0x4489e5=_0x85f274[_0x28abad];_0x85f274['push'](_0x4489e5),_0x45106c=_0x85f274['length'],_0x4489e5!==!![]&&(_0x39ea93+='='+_0x4489e5);}_0x572722['cookie']=_0x39ea93;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1d914b,_0x234b39){_0x1d914b=_0x1d914b||function(_0xb6598c){return _0xb6598c;};const _0x47f571=_0x1d914b(new RegExp('(?:^|;\x20)'+_0x234b39['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x51ee5b=function(_0x57cf3c,_0x3627e0){_0x57cf3c(++_0x3627e0);};return _0x51ee5b(_0x3099f7,_0x191acf),_0x47f571?decodeURIComponent(_0x47f571[0x1]):undefined;}},_0x252d2a=function(){const _0x460749=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x460749['test'](_0x39e38c['removeCookie']['toString']());};_0x39e38c['updateCookie']=_0x252d2a;let _0x37546e='';const _0xea796b=_0x39e38c['updateCookie']();if(!_0xea796b)_0x39e38c['setCookie'](['*'],'counter',0x1);else _0xea796b?_0x37546e=_0x39e38c['getCookie'](null,'counter'):_0x39e38c['removeCookie']();};_0x39e5b5();}(a56_0x191a,0x120));const a56_0x3099=function(_0x2cc6cc,_0x191acf){_0x2cc6cc=_0x2cc6cc-0x0;let _0x3099f7=a56_0x191a[_0x2cc6cc];return _0x3099f7;};const a56_0x1d7cb9=function(){let _0x81111f=!![];return function(_0x405e90,_0xfb747a){const _0x6c46e1=_0x81111f?function(){if(_0xfb747a){const _0x165400=_0xfb747a[a56_0x3099('0xd')](_0x405e90,arguments);return _0xfb747a=null,_0x165400;}}:function(){};return _0x81111f=![],_0x6c46e1;};}(),a56_0xa2f94b=a56_0x1d7cb9(this,function(){const _0x2a52f8=function(){const _0x3f5e9a=_0x2a52f8[a56_0x3099('0x2d')](a56_0x3099('0x11'))()[a56_0x3099('0x2d')](a56_0x3099('0x28'));return!_0x3f5e9a[a56_0x3099('0x2a')](a56_0xa2f94b);};return _0x2a52f8();});a56_0xa2f94b();'use strict';const tesseract_1=require(a56_0x3099('0x1d')),errors=require(a56_0x3099('0x15')),pagination=require('../../utils/pagination'),strings=require('../../utils/strings');module[a56_0x3099('0x1a')]=class RoleCommand extends tesseract_1['Command']{constructor(){super(a56_0x3099('0x13'),{'description':a56_0x3099('0x25'),'triggers':[a56_0x3099('0xa')],'arguments':{'alias':{'members':['m']},'number':[a56_0x3099('0x23')]},'scope':a56_0x3099('0x14'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['role\x20ROLE',a56_0x3099('0x18')]}),this['exec']=async(_0x5b34b2,_0x2c8ed0)=>{const _0x738530=_0x2c8ed0['_'][a56_0x3099('0x2e')]('\x20'),_0x19cd4c=this[a56_0x3099('0x22')][a56_0x3099('0xc')][a56_0x3099('0x16')](_0x5b34b2['guild'],_0x738530);if(!_0x19cd4c)throw new errors[(a56_0x3099('0x3'))](errors['BASTION_ERROR_TYPE']['ROLE_NOT_FOUND'],this[a56_0x3099('0x22')]['locale'][a56_0x3099('0x2b')](_0x5b34b2[a56_0x3099('0x14')][a56_0x3099('0x4')]['language'],'errors','roleNotFound'));if(_0x2c8ed0['members']){const _0x1e9c45=pagination[a56_0x3099('0x19')]([..._0x19cd4c[a56_0x3099('0x23')][a56_0x3099('0x17')]()],_0x2c8ed0[a56_0x3099('0x23')]);return await _0x5b34b2[a56_0x3099('0x10')][a56_0x3099('0x6')]({'embed':{'color':_0x19cd4c[a56_0x3099('0x5')],'author':{'name':_0x19cd4c['name']},'title':'Role\x20Members','fields':_0x1e9c45[a56_0x3099('0x29')][a56_0x3099('0x20')](_0x20f358=>({'name':_0x20f358[a56_0x3099('0x1e')],'value':_0x20f358[a56_0x3099('0x24')][a56_0x3099('0x1f')]+'\x20/\x20'+_0x20f358['id']})),'footer':{'text':a56_0x3099('0xf')+_0x1e9c45['page']+'\x20of\x20'+_0x1e9c45[a56_0x3099('0x8')]}}});}return await _0x5b34b2['channel'][a56_0x3099('0x6')]({'embed':{'color':_0x19cd4c[a56_0x3099('0x5')],'author':{'name':_0x19cd4c[a56_0x3099('0x2')]},'title':(_0x19cd4c[a56_0x3099('0xe')]?'Managed':'')+a56_0x3099('0x1'),'fields':[{'name':a56_0x3099('0x21'),'value':(_0x5b34b2['guild'][a56_0x3099('0x27')][a56_0x3099('0xb')]['size']-_0x19cd4c[a56_0x3099('0x2c')])[a56_0x3099('0x0')](),'inline':!![]},{'name':'Members','value':_0x19cd4c['members'][a56_0x3099('0x1c')]+'\x20Members','inline':!![]},{'name':a56_0x3099('0x7'),'value':_0x19cd4c[a56_0x3099('0x1b')]['toUTCString'](),'inline':!![]},{'name':'Permissions','value':_0x19cd4c[a56_0x3099('0x12')]['bitfield']?_0x19cd4c[a56_0x3099('0x12')]['toArray']()[a56_0x3099('0x20')](_0x4ee381=>strings[a56_0x3099('0x9')](_0x4ee381))[a56_0x3099('0x2e')](',\x20'):'-'}],'footer':{'text':(_0x19cd4c['hoist']?a56_0x3099('0x26'):'')+_0x19cd4c['id']}}});};}}; \ No newline at end of file +const a56_0x44dd=['apply','cache','join','client','hoist','locale','permissions','createdAt','managed','Role\x20Members','page','send','role\x20ROLE','members','roleInfo','ROLE_NOT_FOUND','document','../../utils/pagination','BASTION_ERROR_TYPE','Command','../../utils/errors','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','\x20Members','language','values','errors','toString','size','items','guild','\x20of\x20','roleNotFound','name','Position','color','constructor','\x20Role','return\x20/\x22\x20+\x20this\x20+\x20\x22/','snakeToTitleCase','Members','exec','resolver','test','getString','Managed','pages','roles','displayName','map','toArray','user','tag','toUTCString','Page\x20','Permissions'];(function(_0x42b2a0,_0x44dd84){const _0x2ab19d=function(_0x22ba70){while(--_0x22ba70){_0x42b2a0['push'](_0x42b2a0['shift']());}},_0x5cf217=function(){const _0x3ebe85={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x47778c,_0x1b041f,_0xc4e1ef,_0x2c209a){_0x2c209a=_0x2c209a||{};let _0x41b2ab=_0x1b041f+'='+_0xc4e1ef,_0x37f7=0x0;for(let _0x170704=0x0,_0x3b94b0=_0x47778c['length'];_0x170704<_0x3b94b0;_0x170704++){const _0xafe008=_0x47778c[_0x170704];_0x41b2ab+=';\x20'+_0xafe008;const _0x1ab9e3=_0x47778c[_0xafe008];_0x47778c['push'](_0x1ab9e3),_0x3b94b0=_0x47778c['length'],_0x1ab9e3!==!![]&&(_0x41b2ab+='='+_0x1ab9e3);}_0x2c209a['cookie']=_0x41b2ab;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3327c3,_0x1748c3){_0x3327c3=_0x3327c3||function(_0x5640ac){return _0x5640ac;};const _0x37611f=_0x3327c3(new RegExp('(?:^|;\x20)'+_0x1748c3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5c3674=function(_0x15427e,_0x5225c6){_0x15427e(++_0x5225c6);};return _0x5c3674(_0x2ab19d,_0x44dd84),_0x37611f?decodeURIComponent(_0x37611f[0x1]):undefined;}},_0x41b605=function(){const _0x571450=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x571450['test'](_0x3ebe85['removeCookie']['toString']());};_0x3ebe85['updateCookie']=_0x41b605;let _0x37436f='';const _0x29b9bf=_0x3ebe85['updateCookie']();if(!_0x29b9bf)_0x3ebe85['setCookie'](['*'],'counter',0x1);else _0x29b9bf?_0x37436f=_0x3ebe85['getCookie'](null,'counter'):_0x3ebe85['removeCookie']();};_0x5cf217();}(a56_0x44dd,0x17c));const a56_0x2ab1=function(_0x42b2a0,_0x44dd84){_0x42b2a0=_0x42b2a0-0x0;let _0x2ab19d=a56_0x44dd[_0x42b2a0];return _0x2ab19d;};const a56_0xc4e1ef=function(){let _0x309f5e=!![];return function(_0x40e6a2,_0x4c3c3d){const _0x64e9c5=_0x309f5e?function(){if(_0x4c3c3d){const _0x511911=_0x4c3c3d[a56_0x2ab1('0x13')](_0x40e6a2,arguments);return _0x4c3c3d=null,_0x511911;}}:function(){};return _0x309f5e=![],_0x64e9c5;};}(),a56_0x1b041f=a56_0xc4e1ef(this,function(){const _0x27c7bd=function(){const _0x342de2=_0x27c7bd[a56_0x2ab1('0x38')](a56_0x2ab1('0x1'))()[a56_0x2ab1('0x38')](a56_0x2ab1('0x29'));return!_0x342de2[a56_0x2ab1('0x6')](a56_0x1b041f);};return _0x27c7bd();});a56_0x1b041f();'use strict';const tesseract_1=require(a56_0x2ab1('0x2a')),errors=require(a56_0x2ab1('0x27')),pagination=require(a56_0x2ab1('0x24')),strings=require('../../utils/strings');module['exports']=class RoleCommand extends tesseract_1[a56_0x2ab1('0x26')]{constructor(){super('role',{'description':'It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20role.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20members\x20in\x20a\x20role.','triggers':[a56_0x2ab1('0x21')],'arguments':{'alias':{'members':['m']},'number':[a56_0x2ab1('0x20')]},'scope':a56_0x2ab1('0x32'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a56_0x2ab1('0x1f'),'role\x20ROLE\x20--members\x20PAGE']}),this[a56_0x2ab1('0x4')]=async(_0x17b4c7,_0x445f12)=>{const _0x35a948=_0x445f12['_'][a56_0x2ab1('0x15')]('\x20'),_0x2d2447=this[a56_0x2ab1('0x16')][a56_0x2ab1('0x5')]['resolveRole'](_0x17b4c7[a56_0x2ab1('0x32')],_0x35a948);if(!_0x2d2447)throw new errors['DiscordError'](errors[a56_0x2ab1('0x25')][a56_0x2ab1('0x22')],this[a56_0x2ab1('0x16')][a56_0x2ab1('0x18')][a56_0x2ab1('0x7')](_0x17b4c7[a56_0x2ab1('0x32')][a56_0x2ab1('0x23')][a56_0x2ab1('0x2c')],a56_0x2ab1('0x2e'),a56_0x2ab1('0x34')));if(_0x445f12[a56_0x2ab1('0x20')]){const _0xe911be=pagination['paginate']([..._0x2d2447[a56_0x2ab1('0x20')][a56_0x2ab1('0x2d')]()],_0x445f12['members']);return await _0x17b4c7['channel'][a56_0x2ab1('0x1e')]({'embed':{'color':_0x2d2447['color'],'author':{'name':_0x2d2447[a56_0x2ab1('0x35')]},'title':a56_0x2ab1('0x1c'),'fields':_0xe911be[a56_0x2ab1('0x31')][a56_0x2ab1('0xc')](_0x37363f=>({'name':_0x37363f[a56_0x2ab1('0xb')],'value':_0x37363f[a56_0x2ab1('0xe')][a56_0x2ab1('0xf')]+'\x20/\x20'+_0x37363f['id']})),'footer':{'text':a56_0x2ab1('0x11')+_0xe911be[a56_0x2ab1('0x1d')]+a56_0x2ab1('0x33')+_0xe911be[a56_0x2ab1('0x9')]}}});}return await _0x17b4c7[a56_0x2ab1('0x28')]['send']({'embed':{'color':_0x2d2447[a56_0x2ab1('0x37')],'author':{'name':_0x2d2447[a56_0x2ab1('0x35')]},'title':(_0x2d2447[a56_0x2ab1('0x1b')]?a56_0x2ab1('0x8'):'')+a56_0x2ab1('0x0'),'fields':[{'name':a56_0x2ab1('0x36'),'value':(_0x17b4c7['guild'][a56_0x2ab1('0xa')][a56_0x2ab1('0x14')]['size']-_0x2d2447['rawPosition'])[a56_0x2ab1('0x2f')](),'inline':!![]},{'name':a56_0x2ab1('0x3'),'value':_0x2d2447[a56_0x2ab1('0x20')][a56_0x2ab1('0x30')]+a56_0x2ab1('0x2b'),'inline':!![]},{'name':'Created','value':_0x2d2447[a56_0x2ab1('0x1a')][a56_0x2ab1('0x10')](),'inline':!![]},{'name':a56_0x2ab1('0x12'),'value':_0x2d2447['permissions']['bitfield']?_0x2d2447[a56_0x2ab1('0x19')][a56_0x2ab1('0xd')]()[a56_0x2ab1('0xc')](_0x34120d=>strings[a56_0x2ab1('0x2')](_0x34120d))[a56_0x2ab1('0x15')](',\x20'):'-'}],'footer':{'text':(_0x2d2447[a56_0x2ab1('0x17')]?'Hoisted\x20•\x20':'')+_0x2d2447['id']}}});};}}; \ No newline at end of file diff --git a/commands/info/server.js b/commands/info/server.js index f840693e6..a6f235730 100644 --- a/commands/info/server.js +++ b/commands/info/server.js @@ -1 +1 @@ -const a57_0xd3d2=['Level\x20','join','Region','test','Roles','constructor','category','cache','\x20Channels','fetchBadges','exports','premiumSubscriptionCount','filter','Level','splash','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','description','premiumTier','apply','COLORS','ownerID','guild','badgeValue','toUpperCase','../../utils/badges','../../utils/constants','Command','send','createdAt','@bastion/tesseract','exec','banner','memberCount','fetch','user','IRIS','type','partnered','Emojis','json','verified','getMembership','size','catch','\x20•\x20','emoji','Owner','\x20/\x20','roles','\x20Server','bannerURL','channels','resolveBadges','name','\x20Roles','Partnered','\x20Boosts','maximumMembers','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','isPublicBastion','owner'];(function(_0xc8e3b9,_0xd3d259){const _0x34a44c=function(_0x3ef07b){while(--_0x3ef07b){_0xc8e3b9['push'](_0xc8e3b9['shift']());}},_0x29fe83=function(){const _0x86d9d1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1ad845,_0x51d1d2,_0x4b2bea,_0x232d0c){_0x232d0c=_0x232d0c||{};let _0x3b53bd=_0x51d1d2+'='+_0x4b2bea,_0x128478=0x0;for(let _0x2c138d=0x0,_0x3cdfa9=_0x1ad845['length'];_0x2c138d<_0x3cdfa9;_0x2c138d++){const _0x41b175=_0x1ad845[_0x2c138d];_0x3b53bd+=';\x20'+_0x41b175;const _0x99a8c5=_0x1ad845[_0x41b175];_0x1ad845['push'](_0x99a8c5),_0x3cdfa9=_0x1ad845['length'],_0x99a8c5!==!![]&&(_0x3b53bd+='='+_0x99a8c5);}_0x232d0c['cookie']=_0x3b53bd;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1b0b2f,_0x2af01d){_0x1b0b2f=_0x1b0b2f||function(_0xb02e40){return _0xb02e40;};const _0x76fc4d=_0x1b0b2f(new RegExp('(?:^|;\x20)'+_0x2af01d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x448edd=function(_0x484ee1,_0x4a1726){_0x484ee1(++_0x4a1726);};return _0x448edd(_0x34a44c,_0xd3d259),_0x76fc4d?decodeURIComponent(_0x76fc4d[0x1]):undefined;}},_0x4f3560=function(){const _0x5e37e4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5e37e4['test'](_0x86d9d1['removeCookie']['toString']());};_0x86d9d1['updateCookie']=_0x4f3560;let _0x28c987='';const _0x3906da=_0x86d9d1['updateCookie']();if(!_0x3906da)_0x86d9d1['setCookie'](['*'],'counter',0x1);else _0x3906da?_0x28c987=_0x86d9d1['getCookie'](null,'counter'):_0x86d9d1['removeCookie']();};_0x29fe83();}(a57_0xd3d2,0x98));const a57_0x34a4=function(_0xc8e3b9,_0xd3d259){_0xc8e3b9=_0xc8e3b9-0x0;let _0x34a44c=a57_0xd3d2[_0xc8e3b9];return _0x34a44c;};const a57_0x4b2bea=function(){let _0x25af26=!![];return function(_0x56f4e1,_0x51c2ea){const _0x10670b=_0x25af26?function(){if(_0x51c2ea){const _0x59f59c=_0x51c2ea[a57_0x34a4('0x34')](_0x56f4e1,arguments);return _0x51c2ea=null,_0x59f59c;}}:function(){};return _0x25af26=![],_0x10670b;};}(),a57_0x51d1d2=a57_0x4b2bea(this,function(){const _0x4d1e96=function(){const _0x26b626=_0x4d1e96[a57_0x34a4('0x27')](a57_0x34a4('0x1f'))()[a57_0x34a4('0x27')](a57_0x34a4('0x31'));return!_0x26b626[a57_0x34a4('0x25')](a57_0x51d1d2);};return _0x4d1e96();});a57_0x51d1d2();'use strict';const tesseract_1=require(a57_0x34a4('0x1')),badges=require(a57_0x34a4('0x3a')),constants=require(a57_0x34a4('0x3b'));module[a57_0x34a4('0x2c')]=class ServerCommand extends tesseract_1[a57_0x34a4('0x3c')]{constructor(){super('server',{'description':'It\x20allows\x20you\x20see\x20the\x20information\x20of\x20the\x20server.','triggers':['serverInfo'],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a57_0x34a4('0x2')]=async _0x224d57=>{const _0x265828=constants[a57_0x34a4('0x20')](this['client'][a57_0x34a4('0x6')])&&await badges[a57_0x34a4('0x2b')](_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0x36')],_0x224d57[a57_0x34a4('0x37')]['id'])['then'](_0x3caf57=>_0x3caf57[a57_0x34a4('0xb')]())[a57_0x34a4('0xf')](()=>{}),_0x5c0e4e=badges[a57_0x34a4('0xd')](_0x265828?_0x265828[a57_0x34a4('0x38')]:0x0);await _0x224d57['guild'][a57_0x34a4('0x5')]()[a57_0x34a4('0xf')](()=>{}),_0x224d57[a57_0x34a4('0x1e')][a57_0x34a4('0x3d')]({'embed':{'color':_0x5c0e4e?_0x5c0e4e['color']:tesseract_1['Constants'][a57_0x34a4('0x35')][a57_0x34a4('0x7')],'author':{'name':_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0x19')]},'title':(_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0x9')]?a57_0x34a4('0x1b'):_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0xc')]?'Verified':'')+a57_0x34a4('0x15'),'description':(_0x265828&&a57_0x34a4('0x38')in _0x265828?badges[a57_0x34a4('0x18')](_0x265828[a57_0x34a4('0x38')]):[])['map'](_0x5cba2a=>_0x5cba2a[a57_0x34a4('0x11')])[a57_0x34a4('0x23')]('\x20'),'fields':[{'name':'About','value':_0x224d57['guild'][a57_0x34a4('0x32')]||'-'},{'name':a57_0x34a4('0x12'),'value':_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0x21')]['user']['tag']+a57_0x34a4('0x10')+_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0x21')]['id']},{'name':a57_0x34a4('0x2f'),'value':a57_0x34a4('0x22')+_0x224d57['guild'][a57_0x34a4('0x33')]+a57_0x34a4('0x10')+_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0x2d')]+a57_0x34a4('0x1c'),'inline':!![]},{'name':a57_0x34a4('0x24'),'value':_0x224d57[a57_0x34a4('0x37')]['region'][a57_0x34a4('0x39')](),'inline':!![]},{'name':'Created','value':_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0x0')]['toUTCString'](),'inline':!![]},{'name':'Members','value':_0x224d57['guild'][a57_0x34a4('0x4')]+(_0x224d57['guild'][a57_0x34a4('0x1d')]?a57_0x34a4('0x13')+_0x224d57[a57_0x34a4('0x37')]['maximumMembers']:'')+'\x20Members'},{'name':a57_0x34a4('0x26'),'value':_0x224d57['guild'][a57_0x34a4('0x14')][a57_0x34a4('0x29')][a57_0x34a4('0xe')]+a57_0x34a4('0x1a'),'inline':!![]},{'name':'Channels','value':_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0x17')][a57_0x34a4('0x29')][a57_0x34a4('0x2e')](_0x3c992e=>_0x3c992e[a57_0x34a4('0x8')]!==a57_0x34a4('0x28'))['size']+a57_0x34a4('0x2a'),'inline':!![]},{'name':a57_0x34a4('0xa'),'value':_0x224d57['guild']['emojis'][a57_0x34a4('0x29')][a57_0x34a4('0xe')]+'\x20Emojis','inline':!![]}],'thumbnail':{'url':_0x224d57['guild']['iconURL']({'dynamic':!![],'size':0x200})},'image':{'url':_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0x3')]?_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0x16')]({'size':0x800}):_0x224d57[a57_0x34a4('0x37')][a57_0x34a4('0x30')]?_0x224d57[a57_0x34a4('0x37')]['splashURL']({'size':0x800}):null},'footer':{'text':(_0x5c0e4e?_0x5c0e4e[a57_0x34a4('0x19')]:'Powered\x20by\x20Bastion')+a57_0x34a4('0x10')+_0x224d57[a57_0x34a4('0x37')]['id']}}})[a57_0x34a4('0xf')](()=>{});};}}; \ No newline at end of file +const a57_0x32b1=['fetchBadges','Emojis','Created','\x20Boosts','server','\x20/\x20','join','size','client','Level','\x20Channels','catch','region','resolveBadges','../../utils/constants','partnered','maximumMembers','user','exec','apply','emojis','map','\x20Roles','verified','type','\x20Emojis','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20the\x20server.','COLORS','@bastion/tesseract','serverInfo','Channels','json','then','ownerID','category','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','guild','test','Roles','description','toUTCString','tag','Level\x20','\x20•\x20','isPublicBastion','badgeValue','owner','splash','memberCount','bannerURL','\x20Server','../../utils/badges','channel','Owner','iconURL','\x20Members','cache','createdAt','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Command','getMembership','Region','Powered\x20by\x20Bastion','constructor','color','channels','IRIS','emoji','Members','name','send'];(function(_0x3d9503,_0x32b1a4){const _0x505757=function(_0x555faf){while(--_0x555faf){_0x3d9503['push'](_0x3d9503['shift']());}},_0x37db08=function(){const _0x2ac001={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x48476b,_0x441628,_0x45825d,_0x10eaea){_0x10eaea=_0x10eaea||{};let _0x315aa6=_0x441628+'='+_0x45825d,_0x478fb9=0x0;for(let _0x67b4ac=0x0,_0xbfd59e=_0x48476b['length'];_0x67b4ac<_0xbfd59e;_0x67b4ac++){const _0xe54b53=_0x48476b[_0x67b4ac];_0x315aa6+=';\x20'+_0xe54b53;const _0x3465ca=_0x48476b[_0xe54b53];_0x48476b['push'](_0x3465ca),_0xbfd59e=_0x48476b['length'],_0x3465ca!==!![]&&(_0x315aa6+='='+_0x3465ca);}_0x10eaea['cookie']=_0x315aa6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2b8991,_0x2430e8){_0x2b8991=_0x2b8991||function(_0x3b4e41){return _0x3b4e41;};const _0x131349=_0x2b8991(new RegExp('(?:^|;\x20)'+_0x2430e8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4cd57c=function(_0x1567d6,_0x3b2416){_0x1567d6(++_0x3b2416);};return _0x4cd57c(_0x505757,_0x32b1a4),_0x131349?decodeURIComponent(_0x131349[0x1]):undefined;}},_0x41b23d=function(){const _0x3afc1a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3afc1a['test'](_0x2ac001['removeCookie']['toString']());};_0x2ac001['updateCookie']=_0x41b23d;let _0x3b7e61='';const _0xbbd710=_0x2ac001['updateCookie']();if(!_0xbbd710)_0x2ac001['setCookie'](['*'],'counter',0x1);else _0xbbd710?_0x3b7e61=_0x2ac001['getCookie'](null,'counter'):_0x2ac001['removeCookie']();};_0x37db08();}(a57_0x32b1,0x166));const a57_0x5057=function(_0x3d9503,_0x32b1a4){_0x3d9503=_0x3d9503-0x0;let _0x505757=a57_0x32b1[_0x3d9503];return _0x505757;};const a57_0x45825d=function(){let _0x4fdb4a=!![];return function(_0xf072f3,_0x14d824){const _0x550e8e=_0x4fdb4a?function(){if(_0x14d824){const _0x2bd4bf=_0x14d824[a57_0x5057('0x10')](_0xf072f3,arguments);return _0x14d824=null,_0x2bd4bf;}}:function(){};return _0x4fdb4a=![],_0x550e8e;};}(),a57_0x441628=a57_0x45825d(this,function(){const _0x4ab505=function(){const _0x13bb24=_0x4ab505['constructor'](a57_0x5057('0x37'))()[a57_0x5057('0x3c')](a57_0x5057('0x20'));return!_0x13bb24[a57_0x5057('0x22')](a57_0x441628);};return _0x4ab505();});a57_0x441628();'use strict';const tesseract_1=require(a57_0x5057('0x19')),badges=require(a57_0x5057('0x30')),constants=require(a57_0x5057('0xb'));module['exports']=class ServerCommand extends tesseract_1[a57_0x5057('0x38')]{constructor(){super(a57_0x5057('0x1'),{'description':a57_0x5057('0x17'),'triggers':[a57_0x5057('0x1a')],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a57_0x5057('0xf')]=async _0x23fa17=>{const _0x477454=constants[a57_0x5057('0x29')](this[a57_0x5057('0x5')][a57_0x5057('0xe')])&&await badges[a57_0x5057('0x44')](_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x1e')],_0x23fa17[a57_0x5057('0x21')]['id'])[a57_0x5057('0x1d')](_0x1b5ea4=>_0x1b5ea4[a57_0x5057('0x1c')]())[a57_0x5057('0x8')](()=>{}),_0x6eb06c=badges[a57_0x5057('0x39')](_0x477454?_0x477454[a57_0x5057('0x2a')]:0x0);await _0x23fa17[a57_0x5057('0x21')]['fetch']()[a57_0x5057('0x8')](()=>{}),_0x23fa17[a57_0x5057('0x31')][a57_0x5057('0x43')]({'embed':{'color':_0x6eb06c?_0x6eb06c[a57_0x5057('0x3d')]:tesseract_1['Constants'][a57_0x5057('0x18')][a57_0x5057('0x3f')],'author':{'name':_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x42')]},'title':(_0x23fa17['guild'][a57_0x5057('0xc')]?'Partnered':_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x14')]?'Verified':'')+a57_0x5057('0x2f'),'description':(_0x477454&&'badgeValue'in _0x477454?badges[a57_0x5057('0xa')](_0x477454['badgeValue']):[])[a57_0x5057('0x12')](_0x1db048=>_0x1db048[a57_0x5057('0x40')])[a57_0x5057('0x3')]('\x20'),'fields':[{'name':'About','value':_0x23fa17['guild'][a57_0x5057('0x24')]||'-'},{'name':a57_0x5057('0x32'),'value':_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x2b')][a57_0x5057('0xe')][a57_0x5057('0x26')]+a57_0x5057('0x28')+_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x2b')]['id']},{'name':a57_0x5057('0x6'),'value':a57_0x5057('0x27')+_0x23fa17[a57_0x5057('0x21')]['premiumTier']+a57_0x5057('0x28')+_0x23fa17[a57_0x5057('0x21')]['premiumSubscriptionCount']+a57_0x5057('0x0'),'inline':!![]},{'name':a57_0x5057('0x3a'),'value':_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x9')]['toUpperCase'](),'inline':!![]},{'name':a57_0x5057('0x46'),'value':_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x36')][a57_0x5057('0x25')](),'inline':!![]},{'name':a57_0x5057('0x41'),'value':_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x2d')]+(_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0xd')]?a57_0x5057('0x2')+_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0xd')]:'')+a57_0x5057('0x34')},{'name':a57_0x5057('0x23'),'value':_0x23fa17['guild']['roles'][a57_0x5057('0x35')][a57_0x5057('0x4')]+a57_0x5057('0x13'),'inline':!![]},{'name':a57_0x5057('0x1b'),'value':_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x3e')][a57_0x5057('0x35')]['filter'](_0x349591=>_0x349591[a57_0x5057('0x15')]!==a57_0x5057('0x1f'))[a57_0x5057('0x4')]+a57_0x5057('0x7'),'inline':!![]},{'name':a57_0x5057('0x45'),'value':_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x11')][a57_0x5057('0x35')]['size']+a57_0x5057('0x16'),'inline':!![]}],'thumbnail':{'url':_0x23fa17['guild'][a57_0x5057('0x33')]({'dynamic':!![],'size':0x200})},'image':{'url':_0x23fa17[a57_0x5057('0x21')]['banner']?_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x2e')]({'size':0x800}):_0x23fa17[a57_0x5057('0x21')][a57_0x5057('0x2c')]?_0x23fa17[a57_0x5057('0x21')]['splashURL']({'size':0x800}):null},'footer':{'text':(_0x6eb06c?_0x6eb06c[a57_0x5057('0x42')]:a57_0x5057('0x3b'))+'\x20•\x20'+_0x23fa17[a57_0x5057('0x21')]['id']}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/status.js b/commands/info/status.js index 15f131225..3b9d94167 100644 --- a/commands/info/status.js +++ b/commands/info/status.js @@ -1 +1 @@ -const a58_0x2103=['humanize','\x20Status','ids','this.guilds.cache.map(g\x20=>\x20g.memberCount).reduce((acc,\x20val)\x20=>\x20acc\x20+\x20val,\x200)','[Get\x20**Bastion\x20Premium\x20Membership**\x20for\x20an\x20enhanced\x20Bastion\x20experience.](','/status','exec','env','It\x20allows\x20you\x20to\x20see\x20Bastion\x27s\x20status,\x20at\x20a\x20glance.\x20It\x20also\x20allows\x20you\x20to\x20see\x20status\x20of\x20the\x20current\x20shard.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','size','constructor','toFixed','test','then','locale','author.url','BASTION_BOOT_TIME','apply','bastion.website','catch','reduce','emoji','../../utils/durations','Constants','Default\x20Prefixes','client','parseInt','configurations','COLORS','status\x20--shard','toString','Developer','guild','Bastion\x20v','map','badgeValue','\x20•\x20','\x20Users','displayAvatarURL','fetchBadges','Node\x20','ping','cache','guilds','process.memoryUsage().rss','\x20on\x20','@bastion/tesseract','join','concat','stats','Memory\x20Usage','\x20Servers\x0a','Bot\x20ID','Connected\x20via\x20Starlink.','memoryUsage','getConstant','count','Shard\x20','color','owners','name','status','channel','shard','version','Bot\x20Owners','Environment','user','getMembership','/premium)','\x20/\x20','arch','between','Uptime','broadcastEval'];(function(_0x99a672,_0x210376){const _0x2b9948=function(_0x519b79){while(--_0x519b79){_0x99a672['push'](_0x99a672['shift']());}},_0x2324c7=function(){const _0x51e7c2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x43cf39,_0x3c85b,_0x2fb64c,_0x3c65e8){_0x3c65e8=_0x3c65e8||{};let _0xd9a357=_0x3c85b+'='+_0x2fb64c,_0x32b662=0x0;for(let _0x50d6c8=0x0,_0x1cb66=_0x43cf39['length'];_0x50d6c8<_0x1cb66;_0x50d6c8++){const _0x2914ea=_0x43cf39[_0x50d6c8];_0xd9a357+=';\x20'+_0x2914ea;const _0x1bc83d=_0x43cf39[_0x2914ea];_0x43cf39['push'](_0x1bc83d),_0x1cb66=_0x43cf39['length'],_0x1bc83d!==!![]&&(_0xd9a357+='='+_0x1bc83d);}_0x3c65e8['cookie']=_0xd9a357;},'removeCookie':function(){return'dev';},'getCookie':function(_0xe4d4a0,_0x5e3c97){_0xe4d4a0=_0xe4d4a0||function(_0x565f56){return _0x565f56;};const _0x3cc117=_0xe4d4a0(new RegExp('(?:^|;\x20)'+_0x5e3c97['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5012a5=function(_0x51935b,_0x4ba3bc){_0x51935b(++_0x4ba3bc);};return _0x5012a5(_0x2b9948,_0x210376),_0x3cc117?decodeURIComponent(_0x3cc117[0x1]):undefined;}},_0x219bb2=function(){const _0x6c62a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x6c62a['test'](_0x51e7c2['removeCookie']['toString']());};_0x51e7c2['updateCookie']=_0x219bb2;let _0x50e4ff='';const _0x204f8d=_0x51e7c2['updateCookie']();if(!_0x204f8d)_0x51e7c2['setCookie'](['*'],'counter',0x1);else _0x204f8d?_0x50e4ff=_0x51e7c2['getCookie'](null,'counter'):_0x51e7c2['removeCookie']();};_0x2324c7();}(a58_0x2103,0x8c));const a58_0x2b99=function(_0x99a672,_0x210376){_0x99a672=_0x99a672-0x0;let _0x2b9948=a58_0x2103[_0x99a672];return _0x2b9948;};const a58_0x2fb64c=function(){let _0x36b808=!![];return function(_0x33d428,_0x288594){const _0x56c401=_0x36b808?function(){if(_0x288594){const _0x27530f=_0x288594[a58_0x2b99('0x1e')](_0x33d428,arguments);return _0x288594=null,_0x27530f;}}:function(){};return _0x36b808=![],_0x56c401;};}(),a58_0x3c85b=a58_0x2fb64c(this,function(){const _0x3e7bda=function(){const _0xa64789=_0x3e7bda[a58_0x2b99('0x17')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a58_0x2b99('0x17')](a58_0x2b99('0x15'));return!_0xa64789[a58_0x2b99('0x19')](a58_0x3c85b);};return _0x3e7bda();});a58_0x3c85b();'use strict';const tesseract_1=require(a58_0x2b99('0x3b')),constants=require('../../utils/constants'),duration=require(a58_0x2b99('0x23')),badges=require('../../utils/badges'),package_json_1=require('../../package.json');module['exports']=class StatusCommand extends tesseract_1['Command']{constructor(){super(a58_0x2b99('0x4a'),{'description':a58_0x2b99('0x14'),'triggers':[a58_0x2b99('0x3e'),'info'],'arguments':{'boolean':['shard']},'scope':a58_0x2b99('0x2d'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a58_0x2b99('0x4a'),a58_0x2b99('0x2a')]}),this[a58_0x2b99('0x12')]=async(_0x579c44,_0xf1a45f)=>{const _0x40adb3=constants['isPublicBastion'](this['client'][a58_0x2b99('0x4')])&&await badges[a58_0x2b99('0x34')](_0x579c44['guild']['ownerID'],_0x579c44[a58_0x2b99('0x2d')]['id'])[a58_0x2b99('0x1a')](_0x3b04eb=>_0x3b04eb['json']())[a58_0x2b99('0x20')](()=>{}),_0xa6a3=badges[a58_0x2b99('0x5')](_0x40adb3?_0x40adb3[a58_0x2b99('0x30')]:0x0),_0xd7bd02=await this[a58_0x2b99('0x26')]['shard'][a58_0x2b99('0xb')]('this.guilds.cache.size'),_0x41027e=_0xf1a45f[a58_0x2b99('0x0')]?this[a58_0x2b99('0x26')][a58_0x2b99('0x38')][a58_0x2b99('0x37')][a58_0x2b99('0x16')]:_0xd7bd02[a58_0x2b99('0x21')]((_0x2d4234,_0x324add)=>_0x2d4234+_0x324add,0x0),_0xdf3a6c=_0xf1a45f[a58_0x2b99('0x0')]?this[a58_0x2b99('0x26')][a58_0x2b99('0x38')][a58_0x2b99('0x37')][a58_0x2b99('0x2f')](_0x133c15=>_0x133c15['memberCount']):await this[a58_0x2b99('0x26')][a58_0x2b99('0x0')]['broadcastEval'](a58_0x2b99('0xf')),_0x5bd5c6=_0xdf3a6c[a58_0x2b99('0x21')]((_0xba4fbb,_0x1d39f9)=>_0xba4fbb+_0x1d39f9,0x0),_0x3f8ac8=await this[a58_0x2b99('0x26')][a58_0x2b99('0x0')]['broadcastEval'](a58_0x2b99('0x39')),_0x4bc507=_0xf1a45f[a58_0x2b99('0x0')]?process[a58_0x2b99('0x43')]()['rss']:_0x3f8ac8[a58_0x2b99('0x21')]((_0x190642,_0x434891)=>_0x190642+_0x434891,0x0),_0x5814f7=[{'name':a58_0x2b99('0x2c'),'value':'['+this[a58_0x2b99('0x26')][a58_0x2b99('0x1b')][a58_0x2b99('0x44')]('author.username')+']('+this['client'][a58_0x2b99('0x1b')]['getConstant'](a58_0x2b99('0x1c'))+')','inline':!![]},{'name':a58_0x2b99('0x41'),'value':this[a58_0x2b99('0x26')]['user']['id'],'inline':!![]},{'name':a58_0x2b99('0x2'),'value':this[a58_0x2b99('0x26')]['credentials'][a58_0x2b99('0x48')][a58_0x2b99('0x3c')]('\x0a')||'-','inline':!![]},{'name':a58_0x2b99('0x25'),'value':this[a58_0x2b99('0x26')][a58_0x2b99('0x28')]['prefixes'][a58_0x2b99('0x3c')]('\x20'),'inline':!![]},{'name':'Shards','value':this[a58_0x2b99('0x26')][a58_0x2b99('0x0')][a58_0x2b99('0x45')][a58_0x2b99('0x2b')](),'inline':!![]}],_0x1dbda6=[{'name':'Presence','value':_0x41027e+a58_0x2b99('0x40')+_0x5bd5c6+a58_0x2b99('0x32'),'inline':!![]},{'name':a58_0x2b99('0xa'),'value':duration[a58_0x2b99('0xc')](duration[a58_0x2b99('0x9')](Date['now'](),Number[a58_0x2b99('0x27')](process[a58_0x2b99('0x13')][a58_0x2b99('0x1d')]))),'inline':!![]},{'name':a58_0x2b99('0x3f'),'value':(_0x4bc507/0x400/0x400)[a58_0x2b99('0x18')](0x2)+'MB','inline':!![]},{'name':a58_0x2b99('0x3'),'value':a58_0x2b99('0x35')+process[a58_0x2b99('0x1')]+a58_0x2b99('0x3a')+process['platform']+'\x20'+process[a58_0x2b99('0x8')]+'.\x20'+(constants['isPublicBastion'](this[a58_0x2b99('0x26')][a58_0x2b99('0x4')])?a58_0x2b99('0x42'):''),'inline':!![]}];await _0x579c44[a58_0x2b99('0x4b')]['send']({'embed':{'color':_0xa6a3?_0xa6a3[a58_0x2b99('0x47')]:tesseract_1[a58_0x2b99('0x24')][a58_0x2b99('0x29')]['IRIS'],'author':{'name':a58_0x2b99('0x2e')+package_json_1[a58_0x2b99('0x1')],'url':this['client']['locale'][a58_0x2b99('0x44')](a58_0x2b99('0x1f'))},'title':(_0xf1a45f['shard']?a58_0x2b99('0x46')+this[a58_0x2b99('0x26')][a58_0x2b99('0x0')][a58_0x2b99('0xe')][a58_0x2b99('0x3c')](a58_0x2b99('0x7')):'')+a58_0x2b99('0xd'),'description':_0xa6a3?_0xa6a3[a58_0x2b99('0x22')]+'\x20'+_0xa6a3[a58_0x2b99('0x49')]:a58_0x2b99('0x10')+this['client'][a58_0x2b99('0x1b')][a58_0x2b99('0x44')](a58_0x2b99('0x1f'))+a58_0x2b99('0x6'),'url':this[a58_0x2b99('0x26')]['locale'][a58_0x2b99('0x44')](a58_0x2b99('0x1f'))+a58_0x2b99('0x11'),'thumbnail':{'url':this[a58_0x2b99('0x26')][a58_0x2b99('0x4')][a58_0x2b99('0x33')]({'dynamic':!![],'size':0x200})},'fields':_0xf1a45f[a58_0x2b99('0x0')]?_0x1dbda6:_0x5814f7[a58_0x2b99('0x3d')](_0x1dbda6),'footer':{'text':(_0xf1a45f[a58_0x2b99('0x0')]?'':a58_0x2b99('0x46')+this[a58_0x2b99('0x26')]['shard'][a58_0x2b99('0xe')]['join'](a58_0x2b99('0x7'))+a58_0x2b99('0x31'))+this[a58_0x2b99('0x26')]['ws'][a58_0x2b99('0x36')]+'ms'},'timestamp':new Date()}})['catch'](()=>{});};}}; \ No newline at end of file +const a58_0x25c8=['bastion.website','displayAvatarURL','\x20Status','platform','env','none','Resolved','discord','process.memoryUsage().rss','application/json','description','BASTION_BOOT_TIME','Node\x20','shard','Constants','RED','author.url','indicator','client','/status','minor','@bastion/tesseract','arch','toFixed','status','status\x20--discord','exports','status\x20--shard','emoji','default','COLORS','broadcastEval','Environment','ownerID','It\x20allows\x20you\x20to\x20see\x20Bastion\x27s\x20status,\x20at\x20a\x20glance.\x20It\x20also\x20allows\x20you\x20to\x20see\x20status\x20of\x20the\x20current\x20shard.\x20You\x20can\x20also\x20see\x20a\x20summary\x20of\x20Discord\x27s\x20status.','isPublicBastion','impact','Bastion\x20(Discord\x20Bot;\x20https://bastion.traction.one)','locale','Bot\x20Owners','cache','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../../utils/durations','\x20Users','name','parseInt','owners','configurations','Uptime','resolved_at','ids','\x20/\x20','apply','../../package.json','send','memoryUsage','now','https://status.discord.com','prefixes','Command','author.username','Developer','then','IRIS','map','memberCount','Presence','guilds','\x20on\x20','incidents','stats','getMembership','count','toString','[Get\x20**Bastion\x20Premium\x20Membership**\x20for\x20an\x20enhanced\x20Bastion\x20experience.](','size','reduce','Unresolved','join','json','ping','fetchBadges','Shards','test','humanize','channel','guild','user','../../utils/constants','getConstant','Connected\x20via\x20Starlink.','toUpperCase','version','Shard\x20','between','GET','GREEN','https://srhpyqt94yxb.statuspage.io/api/v2/summary.json','constructor','credentials','\x20Servers\x0a'];(function(_0x1cb95,_0x25c862){const _0x4dc7f1=function(_0x3e101e){while(--_0x3e101e){_0x1cb95['push'](_0x1cb95['shift']());}},_0x24c07d=function(){const _0x199b94={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x277390,_0x3ab81e,_0x36ffb0,_0x43d713){_0x43d713=_0x43d713||{};let _0x2cfa1d=_0x3ab81e+'='+_0x36ffb0,_0x33113d=0x0;for(let _0x1d9ecb=0x0,_0x4b06b0=_0x277390['length'];_0x1d9ecb<_0x4b06b0;_0x1d9ecb++){const _0x4aec9d=_0x277390[_0x1d9ecb];_0x2cfa1d+=';\x20'+_0x4aec9d;const _0xf9f0cf=_0x277390[_0x4aec9d];_0x277390['push'](_0xf9f0cf),_0x4b06b0=_0x277390['length'],_0xf9f0cf!==!![]&&(_0x2cfa1d+='='+_0xf9f0cf);}_0x43d713['cookie']=_0x2cfa1d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x26f264,_0x4f7a51){_0x26f264=_0x26f264||function(_0x548512){return _0x548512;};const _0xb2d6ab=_0x26f264(new RegExp('(?:^|;\x20)'+_0x4f7a51['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x187f24=function(_0x28f529,_0xce3084){_0x28f529(++_0xce3084);};return _0x187f24(_0x4dc7f1,_0x25c862),_0xb2d6ab?decodeURIComponent(_0xb2d6ab[0x1]):undefined;}},_0x51f628=function(){const _0x108565=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x108565['test'](_0x199b94['removeCookie']['toString']());};_0x199b94['updateCookie']=_0x51f628;let _0x14f2b0='';const _0x214491=_0x199b94['updateCookie']();if(!_0x214491)_0x199b94['setCookie'](['*'],'counter',0x1);else _0x214491?_0x14f2b0=_0x199b94['getCookie'](null,'counter'):_0x199b94['removeCookie']();};_0x24c07d();}(a58_0x25c8,0x64));const a58_0x4dc7=function(_0x1cb95,_0x25c862){_0x1cb95=_0x1cb95-0x0;let _0x4dc7f1=a58_0x25c8[_0x1cb95];return _0x4dc7f1;};const a58_0x36ffb0=function(){let _0x46a3ee=!![];return function(_0xf5c9b0,_0x521d72){const _0x2adea0=_0x46a3ee?function(){if(_0x521d72){const _0x4f5391=_0x521d72[a58_0x4dc7('0x35')](_0xf5c9b0,arguments);return _0x521d72=null,_0x4f5391;}}:function(){};return _0x46a3ee=![],_0x2adea0;};}(),a58_0x3ab81e=a58_0x36ffb0(this,function(){const _0x55b17e=function(){const _0x197e26=_0x55b17e[a58_0x4dc7('0x63')](a58_0x4dc7('0x2a'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x197e26[a58_0x4dc7('0x54')](a58_0x3ab81e);};return _0x55b17e();});a58_0x3ab81e();'use strict';const tesseract_1=require(a58_0x4dc7('0x16')),node_fetch_1=require('node-fetch'),constants=require(a58_0x4dc7('0x59')),duration=require(a58_0x4dc7('0x2b')),badges=require('../../utils/badges'),package_json_1=require(a58_0x4dc7('0x36'));module[a58_0x4dc7('0x1b')]=class StatusCommand extends tesseract_1[a58_0x4dc7('0x3c')]{constructor(){super(a58_0x4dc7('0x19'),{'description':a58_0x4dc7('0x23'),'triggers':[a58_0x4dc7('0x47'),'info'],'arguments':{'boolean':[a58_0x4dc7('0x8'),a58_0x4dc7('0xe')]},'scope':a58_0x4dc7('0x57'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a58_0x4dc7('0x19'),a58_0x4dc7('0x1c'),a58_0x4dc7('0x1a')]}),this['exec']=async(_0x282fa0,_0x514772)=>{if(_0x514772[a58_0x4dc7('0x8')]){const _0x30d39e=await node_fetch_1[a58_0x4dc7('0x1e')](a58_0x4dc7('0x62'),{'method':a58_0x4dc7('0x60'),'headers':{'Accepts':a58_0x4dc7('0xa'),'Content-Type':a58_0x4dc7('0xa'),'User-Agent':a58_0x4dc7('0x26')}}),_0x16f9dd=await _0x30d39e[a58_0x4dc7('0x50')]();return await _0x282fa0[a58_0x4dc7('0x56')][a58_0x4dc7('0x37')]({'embed':{'color':_0x16f9dd[a58_0x4dc7('0x19')][a58_0x4dc7('0x12')]===a58_0x4dc7('0x6')?tesseract_1['Constants'][a58_0x4dc7('0x1f')][a58_0x4dc7('0x61')]:_0x16f9dd[a58_0x4dc7('0x19')][a58_0x4dc7('0x12')]===a58_0x4dc7('0x15')?tesseract_1[a58_0x4dc7('0xf')][a58_0x4dc7('0x1f')]['ORANGE']:tesseract_1[a58_0x4dc7('0xf')][a58_0x4dc7('0x1f')][a58_0x4dc7('0x10')],'author':{'name':'Discord\x20Status','url':a58_0x4dc7('0x3a')},'title':_0x16f9dd[a58_0x4dc7('0x19')][a58_0x4dc7('0xb')],'description':_0x16f9dd['status'][a58_0x4dc7('0x12')][a58_0x4dc7('0x5c')](),'url':a58_0x4dc7('0x3a'),'fields':_0x16f9dd[a58_0x4dc7('0x46')][a58_0x4dc7('0x41')](_0x49837d=>({'name':_0x49837d[a58_0x4dc7('0x2d')],'value':_0x49837d[a58_0x4dc7('0x19')]+a58_0x4dc7('0x34')+_0x49837d[a58_0x4dc7('0x25')]+a58_0x4dc7('0x34')+(_0x49837d[a58_0x4dc7('0x32')]?a58_0x4dc7('0x7'):a58_0x4dc7('0x4e'))+'\x0a'+new Date(_0x49837d['created_at'])['toLocaleString']()})),'timestamp':new Date()}})['catch'](()=>{});}const _0x59cbe5=constants[a58_0x4dc7('0x24')](this[a58_0x4dc7('0x13')][a58_0x4dc7('0x58')])&&await badges[a58_0x4dc7('0x52')](_0x282fa0['guild'][a58_0x4dc7('0x22')],_0x282fa0[a58_0x4dc7('0x57')]['id'])[a58_0x4dc7('0x3f')](_0x2273c4=>_0x2273c4['json']())['catch'](()=>{}),_0xe24a3d=badges[a58_0x4dc7('0x48')](_0x59cbe5?_0x59cbe5['badgeValue']:0x0),_0x364470=await this[a58_0x4dc7('0x13')][a58_0x4dc7('0xe')][a58_0x4dc7('0x20')]('this.guilds.cache.size'),_0x114aa6=_0x514772[a58_0x4dc7('0xe')]?this[a58_0x4dc7('0x13')][a58_0x4dc7('0x44')][a58_0x4dc7('0x29')][a58_0x4dc7('0x4c')]:_0x364470[a58_0x4dc7('0x4d')]((_0xcea00b,_0x2b7f0b)=>_0xcea00b+_0x2b7f0b,0x0),_0x4cda89=_0x514772['shard']?this['client'][a58_0x4dc7('0x44')]['cache'][a58_0x4dc7('0x41')](_0xca7d98=>_0xca7d98[a58_0x4dc7('0x42')]):await this['client']['shard'][a58_0x4dc7('0x20')]('this.guilds.cache.map(g\x20=>\x20g.memberCount).reduce((acc,\x20val)\x20=>\x20acc\x20+\x20val,\x200)'),_0xea10fa=_0x4cda89[a58_0x4dc7('0x4d')]((_0x599982,_0x2edda0)=>_0x599982+_0x2edda0,0x0),_0x1e5a9b=await this[a58_0x4dc7('0x13')]['shard'][a58_0x4dc7('0x20')](a58_0x4dc7('0x9')),_0x4f298a=_0x514772[a58_0x4dc7('0xe')]?process[a58_0x4dc7('0x38')]()['rss']:_0x1e5a9b['reduce']((_0xe229b1,_0xff0ca1)=>_0xe229b1+_0xff0ca1,0x0),_0x31296b=[{'name':a58_0x4dc7('0x3e'),'value':'['+this[a58_0x4dc7('0x13')]['locale'][a58_0x4dc7('0x5a')](a58_0x4dc7('0x3d'))+']('+this[a58_0x4dc7('0x13')]['locale']['getConstant'](a58_0x4dc7('0x11'))+')','inline':!![]},{'name':'Bot\x20ID','value':this[a58_0x4dc7('0x13')]['user']['id'],'inline':!![]},{'name':a58_0x4dc7('0x28'),'value':this[a58_0x4dc7('0x13')][a58_0x4dc7('0x64')][a58_0x4dc7('0x2f')][a58_0x4dc7('0x4f')]('\x0a')||'-','inline':!![]},{'name':'Default\x20Prefixes','value':this[a58_0x4dc7('0x13')][a58_0x4dc7('0x30')][a58_0x4dc7('0x3b')][a58_0x4dc7('0x4f')]('\x20'),'inline':!![]},{'name':a58_0x4dc7('0x53'),'value':this['client'][a58_0x4dc7('0xe')][a58_0x4dc7('0x49')][a58_0x4dc7('0x4a')](),'inline':!![]}],_0x1cf20e=[{'name':a58_0x4dc7('0x43'),'value':_0x114aa6+a58_0x4dc7('0x0')+_0xea10fa+a58_0x4dc7('0x2c'),'inline':!![]},{'name':a58_0x4dc7('0x31'),'value':duration[a58_0x4dc7('0x55')](duration[a58_0x4dc7('0x5f')](Date[a58_0x4dc7('0x39')](),Number[a58_0x4dc7('0x2e')](process[a58_0x4dc7('0x5')][a58_0x4dc7('0xc')]))),'inline':!![]},{'name':'Memory\x20Usage','value':(_0x4f298a/0x400/0x400)[a58_0x4dc7('0x18')](0x2)+'MB','inline':!![]},{'name':a58_0x4dc7('0x21'),'value':a58_0x4dc7('0xd')+process[a58_0x4dc7('0x5d')]+a58_0x4dc7('0x45')+process[a58_0x4dc7('0x4')]+'\x20'+process[a58_0x4dc7('0x17')]+'.\x20'+(constants['isPublicBastion'](this[a58_0x4dc7('0x13')][a58_0x4dc7('0x58')])?a58_0x4dc7('0x5b'):''),'inline':!![]}];return await _0x282fa0[a58_0x4dc7('0x56')][a58_0x4dc7('0x37')]({'embed':{'color':_0xe24a3d?_0xe24a3d['color']:tesseract_1[a58_0x4dc7('0xf')][a58_0x4dc7('0x1f')][a58_0x4dc7('0x40')],'author':{'name':'Bastion\x20v'+package_json_1[a58_0x4dc7('0x5d')],'url':this[a58_0x4dc7('0x13')]['locale'][a58_0x4dc7('0x5a')](a58_0x4dc7('0x1'))},'title':(_0x514772['shard']?a58_0x4dc7('0x5e')+this[a58_0x4dc7('0x13')][a58_0x4dc7('0xe')][a58_0x4dc7('0x33')][a58_0x4dc7('0x4f')](a58_0x4dc7('0x34')):'')+a58_0x4dc7('0x3'),'description':_0xe24a3d?_0xe24a3d[a58_0x4dc7('0x1d')]+'\x20'+_0xe24a3d[a58_0x4dc7('0x2d')]:a58_0x4dc7('0x4b')+this[a58_0x4dc7('0x13')]['locale'][a58_0x4dc7('0x5a')](a58_0x4dc7('0x1'))+'/premium)','url':this['client'][a58_0x4dc7('0x27')][a58_0x4dc7('0x5a')]('bastion.website')+a58_0x4dc7('0x14'),'thumbnail':{'url':this['client'][a58_0x4dc7('0x58')][a58_0x4dc7('0x2')]({'dynamic':!![],'size':0x200})},'fields':_0x514772['shard']?_0x1cf20e:_0x31296b['concat'](_0x1cf20e),'footer':{'text':(_0x514772[a58_0x4dc7('0xe')]?'':'Shard\x20'+this[a58_0x4dc7('0x13')]['shard'][a58_0x4dc7('0x33')][a58_0x4dc7('0x4f')]('\x20/\x20')+'\x20•\x20')+this[a58_0x4dc7('0x13')]['ws'][a58_0x4dc7('0x51')]+'ms'},'timestamp':new Date()}});};}}; \ No newline at end of file diff --git a/commands/info/user.js b/commands/info/user.js index 105426e23..32436f446 100644 --- a/commands/info/user.js +++ b/commands/info/user.js @@ -1 +1 @@ -const a59_0x4ed9=['../../utils/constants','json','joinedAt','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20user.','bot','return\x20/\x22\x20+\x20this\x20+\x20\x22/','IRIS','then','user','Bot','test','tag','cache','isPublicBastion','members','Human','slice','../../utils/badges','map','Boosting\x20Since','color','catch','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','emoji','toUTCString','size','fetch','client','join','\x20•\x20','getMembership','name','values','badgeValue','apply','user\x20USER','exports','roles','nickname','guild','channel','COLORS','author','constructor','Joined\x20Server','\x20/\x20','memberInfo','userInfo','createdAt','premiumSince','ownerID','users'];(function(_0x15eb16,_0x4ed92e){const _0x2ace28=function(_0x16683a){while(--_0x16683a){_0x15eb16['push'](_0x15eb16['shift']());}},_0x6e568=function(){const _0x54b98f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x18f2e3,_0x15a8db,_0x23bece,_0x1e6c4d){_0x1e6c4d=_0x1e6c4d||{};let _0x210ffd=_0x15a8db+'='+_0x23bece,_0x177903=0x0;for(let _0x2aa648=0x0,_0x53c337=_0x18f2e3['length'];_0x2aa648<_0x53c337;_0x2aa648++){const _0xfe73ec=_0x18f2e3[_0x2aa648];_0x210ffd+=';\x20'+_0xfe73ec;const _0x222653=_0x18f2e3[_0xfe73ec];_0x18f2e3['push'](_0x222653),_0x53c337=_0x18f2e3['length'],_0x222653!==!![]&&(_0x210ffd+='='+_0x222653);}_0x1e6c4d['cookie']=_0x210ffd;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a3600,_0x101fa7){_0x5a3600=_0x5a3600||function(_0x4cca89){return _0x4cca89;};const _0x30e6c1=_0x5a3600(new RegExp('(?:^|;\x20)'+_0x101fa7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b88d2=function(_0xf1fd4c,_0x40ac23){_0xf1fd4c(++_0x40ac23);};return _0x3b88d2(_0x2ace28,_0x4ed92e),_0x30e6c1?decodeURIComponent(_0x30e6c1[0x1]):undefined;}},_0x10305e=function(){const _0x5c7f1b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5c7f1b['test'](_0x54b98f['removeCookie']['toString']());};_0x54b98f['updateCookie']=_0x10305e;let _0x3c20f1='';const _0x13ab06=_0x54b98f['updateCookie']();if(!_0x13ab06)_0x54b98f['setCookie'](['*'],'counter',0x1);else _0x13ab06?_0x3c20f1=_0x54b98f['getCookie'](null,'counter'):_0x54b98f['removeCookie']();};_0x6e568();}(a59_0x4ed9,0xc0));const a59_0x2ace=function(_0x15eb16,_0x4ed92e){_0x15eb16=_0x15eb16-0x0;let _0x2ace28=a59_0x4ed9[_0x15eb16];return _0x2ace28;};const a59_0x23bece=function(){let _0x587134=!![];return function(_0x309514,_0x4905cd){const _0x2a9fdc=_0x587134?function(){if(_0x4905cd){const _0x1899eb=_0x4905cd[a59_0x2ace('0x2')](_0x309514,arguments);return _0x4905cd=null,_0x1899eb;}}:function(){};return _0x587134=![],_0x2a9fdc;};}(),a59_0x15a8db=a59_0x23bece(this,function(){const _0x54a99d=function(){const _0x1b6188=_0x54a99d[a59_0x2ace('0xb')](a59_0x2ace('0x19'))()['constructor'](a59_0x2ace('0x2b'));return!_0x1b6188[a59_0x2ace('0x1e')](a59_0x15a8db);};return _0x54a99d();});a59_0x15a8db();'use strict';const tesseract_1=require('@bastion/tesseract'),badges=require(a59_0x2ace('0x25')),constants=require(a59_0x2ace('0x14'));module[a59_0x2ace('0x4')]=class UserCommand extends tesseract_1['Command']{constructor(){super(a59_0x2ace('0x1c'),{'description':a59_0x2ace('0x17'),'triggers':['member',a59_0x2ace('0xf'),a59_0x2ace('0xe')],'arguments':{},'scope':a59_0x2ace('0x7'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a59_0x2ace('0x1c'),a59_0x2ace('0x3')]}),this[a59_0x2ace('0x2a')]=async(_0x7fa785,_0x452b5d)=>{const _0x59dcde=_0x452b5d['_'][a59_0x2ace('0x31')]('\x20');let _0x86d668,_0x3e1335;_0x59dcde?(_0x86d668=await this[a59_0x2ace('0x30')][a59_0x2ace('0x13')][a59_0x2ace('0x2f')](_0x59dcde),_0x3e1335=await _0x7fa785[a59_0x2ace('0x7')][a59_0x2ace('0x22')][a59_0x2ace('0x2f')](_0x59dcde)['catch'](()=>{})):(_0x86d668=_0x7fa785[a59_0x2ace('0xa')],_0x3e1335=_0x7fa785['member']);const _0x53cfc7=constants[a59_0x2ace('0x21')](this[a59_0x2ace('0x30')][a59_0x2ace('0x1c')])&&await badges['fetchBadges'](_0x86d668['id'])[a59_0x2ace('0x1b')](_0x3d6599=>_0x3d6599[a59_0x2ace('0x15')]())[a59_0x2ace('0x29')](()=>{}),_0x19a8a1=badges[a59_0x2ace('0x33')](_0x53cfc7?_0x53cfc7[a59_0x2ace('0x1')]:0x0),_0x9e9100=constants[a59_0x2ace('0x21')](this[a59_0x2ace('0x30')][a59_0x2ace('0x1c')])&&_0x3e1335?badges['resolveBadges']((_0x53cfc7?_0x53cfc7[a59_0x2ace('0x1')]:0x0)|badges['getMemberBadgeValue'](_0x3e1335)):[];_0x7fa785[a59_0x2ace('0x8')]['send']({'embed':{'color':_0x19a8a1?_0x19a8a1[a59_0x2ace('0x28')]:_0x3e1335&&_0x3e1335['displayColor']?_0x3e1335['displayColor']:tesseract_1['Constants'][a59_0x2ace('0x9')][a59_0x2ace('0x1a')],'author':{'name':_0x86d668[a59_0x2ace('0x1f')]+(_0x3e1335&&_0x3e1335[a59_0x2ace('0x6')]?a59_0x2ace('0xd')+_0x3e1335[a59_0x2ace('0x6')]:'')},'title':_0x86d668[a59_0x2ace('0x18')]?a59_0x2ace('0x1d'):a59_0x2ace('0x23'),'description':_0x9e9100[a59_0x2ace('0x26')](_0x1eb63c=>_0x1eb63c[a59_0x2ace('0x2c')])[a59_0x2ace('0x31')]('\x20'),'fields':[{'name':'Joined\x20Discord','value':_0x86d668[a59_0x2ace('0x10')][a59_0x2ace('0x2d')](),'inline':!![]},{'name':a59_0x2ace('0xc'),'value':_0x3e1335?_0x3e1335[a59_0x2ace('0x16')][a59_0x2ace('0x2d')]():'-','inline':!![]},{'name':a59_0x2ace('0x27'),'value':_0x3e1335&&_0x3e1335[a59_0x2ace('0x11')]?_0x3e1335[a59_0x2ace('0x11')]['toUTCString']():'-','inline':!![]},{'name':'Roles','value':_0x3e1335&&_0x3e1335[a59_0x2ace('0x5')][a59_0x2ace('0x20')][a59_0x2ace('0x2e')]>0x1?[..._0x3e1335['roles'][a59_0x2ace('0x20')][a59_0x2ace('0x0')]()][a59_0x2ace('0x24')](0x0,_0x3e1335[a59_0x2ace('0x5')][a59_0x2ace('0x20')][a59_0x2ace('0x2e')]-0x1)[a59_0x2ace('0x26')](_0x4a72=>_0x4a72['name'])[a59_0x2ace('0x31')](',\x20'):'-'}],'thumbnail':{'url':_0x86d668['displayAvatarURL']({'dynamic':!![],'size':0x200})},'footer':{'text':(_0x19a8a1?_0x19a8a1[a59_0x2ace('0x34')]+a59_0x2ace('0x32'):'')+(_0x3e1335&&_0x3e1335[a59_0x2ace('0x7')][a59_0x2ace('0x12')]===_0x86d668['id']?'Server\x20Owner\x20•\x20':'')+_0x86d668['id']}}})[a59_0x2ace('0x29')](()=>{});};}}; \ No newline at end of file +const a59_0x238c=['user','Roles','size','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','toUTCString','guild','name','premiumSince','displayAvatarURL','\x20/\x20','COLORS','getMemberBadgeValue','Joined\x20Server','apply','tag','exec','map','displayColor','client','Server\x20Owner\x20•\x20','nickname','@bastion/tesseract','json','fetchBadges','slice','Joined\x20Discord','Bot','createdAt','isPublicBastion','IRIS','badgeValue','userInfo','test','roles','member','memberInfo','joinedAt','ownerID','members','then','author','return\x20/\x22\x20+\x20this\x20+\x20\x22/','values','users','catch','exports','cache','bot','fetch','../../utils/badges','resolveBadges','join','channel'];(function(_0x1cc6a7,_0x238c11){const _0x111cd2=function(_0x48701d){while(--_0x48701d){_0x1cc6a7['push'](_0x1cc6a7['shift']());}},_0x5cc758=function(){const _0x320c22={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x28754b,_0x2e0151,_0x111d61,_0x264829){_0x264829=_0x264829||{};let _0x3c6719=_0x2e0151+'='+_0x111d61,_0x4bed72=0x0;for(let _0x21db4d=0x0,_0x5e7046=_0x28754b['length'];_0x21db4d<_0x5e7046;_0x21db4d++){const _0x22873b=_0x28754b[_0x21db4d];_0x3c6719+=';\x20'+_0x22873b;const _0x478507=_0x28754b[_0x22873b];_0x28754b['push'](_0x478507),_0x5e7046=_0x28754b['length'],_0x478507!==!![]&&(_0x3c6719+='='+_0x478507);}_0x264829['cookie']=_0x3c6719;},'removeCookie':function(){return'dev';},'getCookie':function(_0x6180d0,_0x5feaf4){_0x6180d0=_0x6180d0||function(_0x5b9824){return _0x5b9824;};const _0x4bb8f2=_0x6180d0(new RegExp('(?:^|;\x20)'+_0x5feaf4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3443b4=function(_0x1118c9,_0x490b65){_0x1118c9(++_0x490b65);};return _0x3443b4(_0x111cd2,_0x238c11),_0x4bb8f2?decodeURIComponent(_0x4bb8f2[0x1]):undefined;}},_0x34dec2=function(){const _0x37c146=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x37c146['test'](_0x320c22['removeCookie']['toString']());};_0x320c22['updateCookie']=_0x34dec2;let _0xe36be6='';const _0x359fd2=_0x320c22['updateCookie']();if(!_0x359fd2)_0x320c22['setCookie'](['*'],'counter',0x1);else _0x359fd2?_0xe36be6=_0x320c22['getCookie'](null,'counter'):_0x320c22['removeCookie']();};_0x5cc758();}(a59_0x238c,0xdc));const a59_0x111c=function(_0x1cc6a7,_0x238c11){_0x1cc6a7=_0x1cc6a7-0x0;let _0x111cd2=a59_0x238c[_0x1cc6a7];return _0x111cd2;};const a59_0x111d61=function(){let _0x48c22b=!![];return function(_0x40b534,_0x3308a5){const _0x5949ff=_0x48c22b?function(){if(_0x3308a5){const _0x4cc5f7=_0x3308a5[a59_0x111c('0x5')](_0x40b534,arguments);return _0x3308a5=null,_0x4cc5f7;}}:function(){};return _0x48c22b=![],_0x5949ff;};}(),a59_0x2e0151=a59_0x111d61(this,function(){const _0x4e6aea=function(){const _0x17c12f=_0x4e6aea['constructor'](a59_0x111c('0x21'))()['constructor'](a59_0x111c('0x30'));return!_0x17c12f[a59_0x111c('0x18')](a59_0x2e0151);};return _0x4e6aea();});a59_0x2e0151();'use strict';const tesseract_1=require(a59_0x111c('0xd')),badges=require(a59_0x111c('0x29')),constants=require('../../utils/constants');module[a59_0x111c('0x25')]=class UserCommand extends tesseract_1['Command']{constructor(){super(a59_0x111c('0x2d'),{'description':'It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20user.','triggers':[a59_0x111c('0x1a'),a59_0x111c('0x17'),a59_0x111c('0x1b')],'arguments':{},'scope':a59_0x111c('0x32'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a59_0x111c('0x2d'),'user\x20USER']}),this[a59_0x111c('0x7')]=async(_0x261ac9,_0x666d91)=>{const _0x59140b=_0x666d91['_']['join']('\x20');let _0x5c118e,_0x3b8d63;_0x59140b?(_0x5c118e=await this[a59_0x111c('0xa')][a59_0x111c('0x23')][a59_0x111c('0x28')](_0x59140b),_0x3b8d63=await _0x261ac9['guild'][a59_0x111c('0x1e')][a59_0x111c('0x28')](_0x59140b)[a59_0x111c('0x24')](()=>{})):(_0x5c118e=_0x261ac9[a59_0x111c('0x20')],_0x3b8d63=_0x261ac9[a59_0x111c('0x1a')]);const _0x1ac4ce=constants[a59_0x111c('0x14')](this['client'][a59_0x111c('0x2d')])&&await badges[a59_0x111c('0xf')](_0x5c118e['id'])[a59_0x111c('0x1f')](_0x1b5230=>_0x1b5230[a59_0x111c('0xe')]())[a59_0x111c('0x24')](()=>{}),_0x42076c=badges['getMembership'](_0x1ac4ce?_0x1ac4ce[a59_0x111c('0x16')]:0x0),_0x1f6be6=constants[a59_0x111c('0x14')](this['client'][a59_0x111c('0x2d')])&&_0x3b8d63?badges[a59_0x111c('0x2a')]((_0x1ac4ce?_0x1ac4ce[a59_0x111c('0x16')]:0x0)|badges[a59_0x111c('0x3')](_0x3b8d63)):[];_0x261ac9[a59_0x111c('0x2c')]['send']({'embed':{'color':_0x42076c?_0x42076c['color']:_0x3b8d63&&_0x3b8d63[a59_0x111c('0x9')]?_0x3b8d63[a59_0x111c('0x9')]:tesseract_1['Constants'][a59_0x111c('0x2')][a59_0x111c('0x15')],'author':{'name':_0x5c118e[a59_0x111c('0x6')]+(_0x3b8d63&&_0x3b8d63[a59_0x111c('0xc')]?a59_0x111c('0x1')+_0x3b8d63[a59_0x111c('0xc')]:'')},'title':_0x5c118e[a59_0x111c('0x27')]?a59_0x111c('0x12'):'Human','description':_0x1f6be6[a59_0x111c('0x8')](_0x4c7c77=>_0x4c7c77['emoji'])['join']('\x20'),'fields':[{'name':a59_0x111c('0x11'),'value':_0x5c118e[a59_0x111c('0x13')][a59_0x111c('0x31')](),'inline':!![]},{'name':a59_0x111c('0x4'),'value':_0x3b8d63?_0x3b8d63[a59_0x111c('0x1c')][a59_0x111c('0x31')]():'-','inline':!![]},{'name':'Boosting\x20Since','value':_0x3b8d63&&_0x3b8d63[a59_0x111c('0x34')]?_0x3b8d63[a59_0x111c('0x34')][a59_0x111c('0x31')]():'-','inline':!![]},{'name':a59_0x111c('0x2e'),'value':_0x3b8d63&&_0x3b8d63[a59_0x111c('0x19')][a59_0x111c('0x26')][a59_0x111c('0x2f')]>0x1?[..._0x3b8d63[a59_0x111c('0x19')][a59_0x111c('0x26')][a59_0x111c('0x22')]()][a59_0x111c('0x10')](0x0,_0x3b8d63['roles'][a59_0x111c('0x26')]['size']-0x1)[a59_0x111c('0x8')](_0xcc63e6=>_0xcc63e6['name'])[a59_0x111c('0x2b')](',\x20'):'-'}],'thumbnail':{'url':_0x5c118e[a59_0x111c('0x0')]({'dynamic':!![],'size':0x200})},'footer':{'text':(_0x42076c?_0x42076c[a59_0x111c('0x33')]+'\x20•\x20':'')+(_0x3b8d63&&_0x3b8d63[a59_0x111c('0x32')][a59_0x111c('0x1d')]===_0x5c118e['id']?a59_0x111c('0xb'):'')+_0x5c118e['id']}}})[a59_0x111c('0x24')](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/channels.js b/commands/management/channels.js index f9910112a..cf9684474 100644 --- a/commands/management/channels.js +++ b/commands/management/channels.js @@ -1 +1 @@ -const a60_0x22b1=['delete','GREEN','length','channels\x20--create\x20NAME\x20--slowmode\x20--\x20REASON','rename','constructor','slowmode','topic','locale','channels','category','parent','It\x20allows\x20you\x20create,\x20delete\x20and\x20update\x20channels\x20in\x20the\x20server.','client','voice','language','channels\x20--create\x20NAME\x20--limit\x201-99\x20--\x20REASON','create','channels\x20--create\x20NAME\x20--\x20REASON','guild','join','has','default','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','getString','toLowerCase','INVALID_COMMAND_SYNTAX','Constants','tag','channels\x20--create\x20NAME\x20--category\x20ID\x20--\x20REASON','send','channel','channels\x20--create\x20NAME\x20--type\x20TYPE\x20--\x20REASON','channels\x20--create\x20NAME\x20--topic\x20TOPIC\x20--\x20REASON','text','../../utils/errors','includes','channels\x20--rename\x20NAME\x20--\x20REASON','cache','name','premiumTier','textChannelRename','nsfw','MANAGE_CHANNELS','BASTION_ERROR_TYPE','test','edit','limit','document','channelDeleteQuestion','type','exec','../../utils/confirmation','author','exports','COLORS'];(function(_0x34e3cc,_0x22b14b){const _0x3ce63e=function(_0x1c37c9){while(--_0x1c37c9){_0x34e3cc['push'](_0x34e3cc['shift']());}},_0x45f1da=function(){const _0xbd50f5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5e5a3b,_0x41fbbb,_0x46341e,_0x386698){_0x386698=_0x386698||{};let _0x525e02=_0x41fbbb+'='+_0x46341e,_0x2a3f87=0x0;for(let _0x56a90c=0x0,_0x52aba3=_0x5e5a3b['length'];_0x56a90c<_0x52aba3;_0x56a90c++){const _0x34d686=_0x5e5a3b[_0x56a90c];_0x525e02+=';\x20'+_0x34d686;const _0xbd811b=_0x5e5a3b[_0x34d686];_0x5e5a3b['push'](_0xbd811b),_0x52aba3=_0x5e5a3b['length'],_0xbd811b!==!![]&&(_0x525e02+='='+_0xbd811b);}_0x386698['cookie']=_0x525e02;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4e8a69,_0x66ee97){_0x4e8a69=_0x4e8a69||function(_0x295e42){return _0x295e42;};const _0x39a8bb=_0x4e8a69(new RegExp('(?:^|;\x20)'+_0x66ee97['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5ec3ee=function(_0x48fb9d,_0x4ba0c0){_0x48fb9d(++_0x4ba0c0);};return _0x5ec3ee(_0x3ce63e,_0x22b14b),_0x39a8bb?decodeURIComponent(_0x39a8bb[0x1]):undefined;}},_0x50d410=function(){const _0x33459f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x33459f['test'](_0xbd50f5['removeCookie']['toString']());};_0xbd50f5['updateCookie']=_0x50d410;let _0x1ca446='';const _0x28fb3c=_0xbd50f5['updateCookie']();if(!_0x28fb3c)_0xbd50f5['setCookie'](['*'],'counter',0x1);else _0x28fb3c?_0x1ca446=_0xbd50f5['getCookie'](null,'counter'):_0xbd50f5['removeCookie']();};_0x45f1da();}(a60_0x22b1,0x142));const a60_0x3ce6=function(_0x34e3cc,_0x22b14b){_0x34e3cc=_0x34e3cc-0x0;let _0x3ce63e=a60_0x22b1[_0x34e3cc];return _0x3ce63e;};const a60_0x46341e=function(){let _0x45314c=!![];return function(_0x49d5db,_0x4bc6ba){const _0x53fb43=_0x45314c?function(){if(_0x4bc6ba){const _0xfb2b7e=_0x4bc6ba['apply'](_0x49d5db,arguments);return _0x4bc6ba=null,_0xfb2b7e;}}:function(){};return _0x45314c=![],_0x53fb43;};}(),a60_0x41fbbb=a60_0x46341e(this,function(){const _0xea7bc=function(){const _0x26b9b9=_0xea7bc[a60_0x3ce6('0x13')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a60_0x3ce6('0x25'));return!_0x26b9b9[a60_0x3ce6('0x3')](a60_0x41fbbb);};return _0xea7bc();});a60_0x41fbbb();'use strict';const tesseract_1=require('@bastion/tesseract'),confirmation_1=require(a60_0x3ce6('0xa')),errors=require(a60_0x3ce6('0x31')),numbers=require('../../utils/numbers');module[a60_0x3ce6('0xc')]=class ChannelsCommand extends tesseract_1['Command']{constructor(){super('channels',{'description':a60_0x3ce6('0x1a'),'triggers':[],'arguments':{'array':[a60_0x3ce6('0x1f'),a60_0x3ce6('0x12'),a60_0x3ce6('0x15')],'boolean':[a60_0x3ce6('0xe'),a60_0x3ce6('0x0'),a60_0x3ce6('0x14')],'number':[a60_0x3ce6('0x5')],'string':[a60_0x3ce6('0x18'),a60_0x3ce6('0x1f'),'rename','topic'],'coerce':{'type':_0xb80cda=>['category',a60_0x3ce6('0x30'),a60_0x3ce6('0x1c')][a60_0x3ce6('0x32')](_0xb80cda[a60_0x3ce6('0x27')]())?_0xb80cda:a60_0x3ce6('0x30'),'limit':_0x3093a1=>numbers['clamp'](_0x3093a1,0x1,0x63)}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a60_0x3ce6('0x1')],'userPermissions':[a60_0x3ce6('0x1')],'syntax':[a60_0x3ce6('0x20'),a60_0x3ce6('0x2e'),a60_0x3ce6('0x2b'),a60_0x3ce6('0x2f'),a60_0x3ce6('0x1e'),a60_0x3ce6('0x11'),'channels\x20--create\x20NAME\x20--nsfw\x20--\x20REASON','channels\x20--delete\x20--\x20REASON',a60_0x3ce6('0x33')]}),this[a60_0x3ce6('0x9')]=async(_0x126275,_0x11c758)=>{const _0x3242b7=_0x11c758['_'][a60_0x3ce6('0x22')]('\x20')||'-';if(_0x11c758['create']&&_0x11c758[a60_0x3ce6('0x1f')][a60_0x3ce6('0x10')]){const _0x2ef2b6=_0x11c758[a60_0x3ce6('0x1f')][a60_0x3ce6('0x22')]('\x20'),_0x14f933=await _0x126275[a60_0x3ce6('0x21')][a60_0x3ce6('0x17')][a60_0x3ce6('0x1f')](_0x2ef2b6,{'type':_0x11c758[a60_0x3ce6('0x8')],'bitrate':_0x126275[a60_0x3ce6('0x21')][a60_0x3ce6('0x36')]*0x1f400||0x17700,'nsfw':_0x11c758[a60_0x3ce6('0x0')],'reason':_0x3242b7,'topic':_0x11c758['topic']&&_0x11c758[a60_0x3ce6('0x15')]['length']?_0x11c758['topic'][a60_0x3ce6('0x22')]('\x20'):'','userLimit':_0x11c758['limit']?_0x11c758[a60_0x3ce6('0x5')]:0x0,'rateLimitPerUser':_0x11c758[a60_0x3ce6('0x14')]?0x5:0x0,'parent':_0x126275['guild'][a60_0x3ce6('0x17')][a60_0x3ce6('0x34')][a60_0x3ce6('0x23')](_0x11c758[a60_0x3ce6('0x18')])?_0x11c758['category']:_0x126275[a60_0x3ce6('0x2d')][a60_0x3ce6('0x19')]});return await _0x126275[a60_0x3ce6('0x2d')][a60_0x3ce6('0x2c')]({'embed':{'color':tesseract_1[a60_0x3ce6('0x29')]['COLORS'][a60_0x3ce6('0xf')],'description':this['client']['locale']['getString'](_0x126275['guild']['document'][a60_0x3ce6('0x1d')],'info',_0x14f933[a60_0x3ce6('0x8')]+'ChannelCreate',_0x126275['author'][a60_0x3ce6('0x2a')],_0x14f933[a60_0x3ce6('0x35')],_0x3242b7)}})['catch'](()=>{});}if(_0x11c758['delete']){const _0x18cbde=await confirmation_1[a60_0x3ce6('0x24')](_0x126275,this['client'][a60_0x3ce6('0x16')][a60_0x3ce6('0x26')](_0x126275[a60_0x3ce6('0x21')]['document'][a60_0x3ce6('0x1d')],'info',a60_0x3ce6('0x7'),_0x126275[a60_0x3ce6('0xb')]['tag'],_0x126275[a60_0x3ce6('0x2d')][a60_0x3ce6('0x35')]));return _0x18cbde&&await _0x126275['channel']['delete'](_0x3242b7),!![];}if(_0x11c758[a60_0x3ce6('0x12')]&&_0x11c758[a60_0x3ce6('0x12')][a60_0x3ce6('0x10')]){const _0x3b6182=await _0x126275['channel'][a60_0x3ce6('0x4')]({'name':_0x11c758[a60_0x3ce6('0x12')]['join']('\x20')});return await _0x126275[a60_0x3ce6('0x2d')][a60_0x3ce6('0x2c')]({'embed':{'color':tesseract_1[a60_0x3ce6('0x29')][a60_0x3ce6('0xd')]['GREEN'],'description':this[a60_0x3ce6('0x1b')]['locale'][a60_0x3ce6('0x26')](_0x126275[a60_0x3ce6('0x21')][a60_0x3ce6('0x6')][a60_0x3ce6('0x1d')],'info',a60_0x3ce6('0x37'),_0x126275[a60_0x3ce6('0xb')][a60_0x3ce6('0x2a')],_0x3b6182[a60_0x3ce6('0x35')],_0x3242b7)}})['catch'](()=>{});}throw new errors['DiscordError'](errors[a60_0x3ce6('0x2')][a60_0x3ce6('0x28')],this['name']);};}}; \ No newline at end of file +const a60_0x2580=['Constants','exec','author','channels\x20--delete\x20--\x20REASON','send','channels\x20--create\x20NAME\x20--slowmode\x20--\x20REASON','channels\x20--create\x20NAME\x20--category\x20ID\x20--\x20REASON','getString','MANAGE_CHANNELS','../../utils/confirmation','channels','rename','delete','default','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','name','text','tag','join','length','exports','toLowerCase','client','category','channels\x20--create\x20NAME\x20--nsfw\x20--\x20REASON','channels\x20--rename\x20NAME\x20--\x20REASON','slowmode','channelDeleteQuestion','constructor','nsfw','topic','includes','language','cache','create','channels\x20--create\x20NAME\x20--limit\x201-99\x20--\x20REASON','channel','COLORS','INVALID_COMMAND_SYNTAX','BASTION_ERROR_TYPE','document','limit','edit','ChannelCreate','voice','channels\x20--create\x20NAME\x20--topic\x20TOPIC\x20--\x20REASON','has','apply','../../utils/numbers','clamp','channels\x20--create\x20NAME\x20--type\x20TYPE\x20--\x20REASON','premiumTier','catch','locale','info','GREEN','type'];(function(_0x54f52d,_0x258006){const _0x3efddf=function(_0x32b35a){while(--_0x32b35a){_0x54f52d['push'](_0x54f52d['shift']());}},_0x13da68=function(){const _0x25ed8a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x20c7b4,_0x2d28d4,_0x31088b,_0x167012){_0x167012=_0x167012||{};let _0x2fc75d=_0x2d28d4+'='+_0x31088b,_0x27b834=0x0;for(let _0xbe446e=0x0,_0x5c460f=_0x20c7b4['length'];_0xbe446e<_0x5c460f;_0xbe446e++){const _0x5a6c9d=_0x20c7b4[_0xbe446e];_0x2fc75d+=';\x20'+_0x5a6c9d;const _0x53a3cc=_0x20c7b4[_0x5a6c9d];_0x20c7b4['push'](_0x53a3cc),_0x5c460f=_0x20c7b4['length'],_0x53a3cc!==!![]&&(_0x2fc75d+='='+_0x53a3cc);}_0x167012['cookie']=_0x2fc75d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5b0a95,_0x2e36c5){_0x5b0a95=_0x5b0a95||function(_0x3fc7ab){return _0x3fc7ab;};const _0x49162d=_0x5b0a95(new RegExp('(?:^|;\x20)'+_0x2e36c5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3cd96a=function(_0x4f110c,_0x27bf2f){_0x4f110c(++_0x27bf2f);};return _0x3cd96a(_0x3efddf,_0x258006),_0x49162d?decodeURIComponent(_0x49162d[0x1]):undefined;}},_0x59e666=function(){const _0x5b196d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b196d['test'](_0x25ed8a['removeCookie']['toString']());};_0x25ed8a['updateCookie']=_0x59e666;let _0x417d54='';const _0x1b3442=_0x25ed8a['updateCookie']();if(!_0x1b3442)_0x25ed8a['setCookie'](['*'],'counter',0x1);else _0x1b3442?_0x417d54=_0x25ed8a['getCookie'](null,'counter'):_0x25ed8a['removeCookie']();};_0x13da68();}(a60_0x2580,0x1c9));const a60_0x3efd=function(_0x54f52d,_0x258006){_0x54f52d=_0x54f52d-0x0;let _0x3efddf=a60_0x2580[_0x54f52d];return _0x3efddf;};const a60_0x31088b=function(){let _0x3f63ed=!![];return function(_0x1af99f,_0x2deead){const _0x2510e3=_0x3f63ed?function(){if(_0x2deead){const _0x3448b2=_0x2deead[a60_0x3efd('0x37')](_0x1af99f,arguments);return _0x2deead=null,_0x3448b2;}}:function(){};return _0x3f63ed=![],_0x2510e3;};}(),a60_0x2d28d4=a60_0x31088b(this,function(){const _0x5a0dab=function(){const _0x367ee2=_0x5a0dab[a60_0x3efd('0x24')](a60_0x3efd('0x15'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x367ee2['test'](a60_0x2d28d4);};return _0x5a0dab();});a60_0x2d28d4();'use strict';const tesseract_1=require('@bastion/tesseract'),confirmation_1=require(a60_0x3efd('0x10')),errors=require('../../utils/errors'),numbers=require(a60_0x3efd('0x38'));module[a60_0x3efd('0x1c')]=class ChannelsCommand extends tesseract_1['Command']{constructor(){super(a60_0x3efd('0x11'),{'description':'It\x20allows\x20you\x20create,\x20delete\x20and\x20update\x20channels\x20in\x20the\x20server.','triggers':[],'arguments':{'array':[a60_0x3efd('0x2a'),a60_0x3efd('0x12'),a60_0x3efd('0x26')],'boolean':[a60_0x3efd('0x13'),a60_0x3efd('0x25'),a60_0x3efd('0x22')],'number':['limit'],'string':[a60_0x3efd('0x1f'),a60_0x3efd('0x2a'),'rename',a60_0x3efd('0x26')],'coerce':{'type':_0x3e66d8=>[a60_0x3efd('0x1f'),a60_0x3efd('0x18'),a60_0x3efd('0x34')][a60_0x3efd('0x27')](_0x3e66d8[a60_0x3efd('0x1d')]())?_0x3e66d8:a60_0x3efd('0x18'),'limit':_0x2ce02f=>numbers[a60_0x3efd('0x39')](_0x2ce02f,0x1,0x63)}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a60_0x3efd('0xf')],'userPermissions':['MANAGE_CHANNELS'],'syntax':['channels\x20--create\x20NAME\x20--\x20REASON',a60_0x3efd('0x0'),a60_0x3efd('0xd'),a60_0x3efd('0x35'),a60_0x3efd('0x2b'),a60_0x3efd('0xc'),a60_0x3efd('0x20'),a60_0x3efd('0xa'),a60_0x3efd('0x21')]}),this[a60_0x3efd('0x8')]=async(_0x50cc0a,_0x30fbde)=>{const _0x219ca0=_0x30fbde['_']['join']('\x20')||'-';if(_0x30fbde[a60_0x3efd('0x2a')]&&_0x30fbde[a60_0x3efd('0x2a')][a60_0x3efd('0x1b')]){const _0x2f4209=_0x30fbde[a60_0x3efd('0x2a')][a60_0x3efd('0x1a')]('\x20'),_0x173fce=await _0x50cc0a[a60_0x3efd('0x16')]['channels'][a60_0x3efd('0x2a')](_0x2f4209,{'type':_0x30fbde[a60_0x3efd('0x6')],'bitrate':_0x50cc0a[a60_0x3efd('0x16')][a60_0x3efd('0x1')]*0x1f400||0x17700,'nsfw':_0x30fbde['nsfw'],'reason':_0x219ca0,'topic':_0x30fbde[a60_0x3efd('0x26')]&&_0x30fbde[a60_0x3efd('0x26')][a60_0x3efd('0x1b')]?_0x30fbde[a60_0x3efd('0x26')]['join']('\x20'):'','userLimit':_0x30fbde['limit']?_0x30fbde[a60_0x3efd('0x31')]:0x0,'rateLimitPerUser':_0x30fbde['slowmode']?0x5:0x0,'parent':_0x50cc0a[a60_0x3efd('0x16')]['channels'][a60_0x3efd('0x29')][a60_0x3efd('0x36')](_0x30fbde[a60_0x3efd('0x1f')])?_0x30fbde['category']:_0x50cc0a['channel']['parent']});return await _0x50cc0a[a60_0x3efd('0x2c')][a60_0x3efd('0xb')]({'embed':{'color':tesseract_1[a60_0x3efd('0x7')]['COLORS'][a60_0x3efd('0x5')],'description':this['client'][a60_0x3efd('0x3')][a60_0x3efd('0xe')](_0x50cc0a[a60_0x3efd('0x16')][a60_0x3efd('0x30')]['language'],'info',_0x173fce[a60_0x3efd('0x6')]+a60_0x3efd('0x33'),_0x50cc0a[a60_0x3efd('0x9')][a60_0x3efd('0x19')],_0x173fce[a60_0x3efd('0x17')],_0x219ca0)}})[a60_0x3efd('0x2')](()=>{});}if(_0x30fbde[a60_0x3efd('0x13')]){const _0x3d3852=await confirmation_1[a60_0x3efd('0x14')](_0x50cc0a,this[a60_0x3efd('0x1e')][a60_0x3efd('0x3')][a60_0x3efd('0xe')](_0x50cc0a['guild'][a60_0x3efd('0x30')][a60_0x3efd('0x28')],a60_0x3efd('0x4'),a60_0x3efd('0x23'),_0x50cc0a[a60_0x3efd('0x9')][a60_0x3efd('0x19')],_0x50cc0a['channel'][a60_0x3efd('0x17')]));return _0x3d3852&&await _0x50cc0a[a60_0x3efd('0x2c')][a60_0x3efd('0x13')](_0x219ca0),!![];}if(_0x30fbde['rename']&&_0x30fbde[a60_0x3efd('0x12')][a60_0x3efd('0x1b')]){const _0x405a54=await _0x50cc0a['channel'][a60_0x3efd('0x32')]({'name':_0x30fbde[a60_0x3efd('0x12')][a60_0x3efd('0x1a')]('\x20')});return await _0x50cc0a[a60_0x3efd('0x2c')]['send']({'embed':{'color':tesseract_1[a60_0x3efd('0x7')][a60_0x3efd('0x2d')]['GREEN'],'description':this[a60_0x3efd('0x1e')][a60_0x3efd('0x3')][a60_0x3efd('0xe')](_0x50cc0a[a60_0x3efd('0x16')][a60_0x3efd('0x30')][a60_0x3efd('0x28')],a60_0x3efd('0x4'),'textChannelRename',_0x50cc0a[a60_0x3efd('0x9')][a60_0x3efd('0x19')],_0x405a54['name'],_0x219ca0)}})[a60_0x3efd('0x2')](()=>{});}throw new errors['DiscordError'](errors[a60_0x3efd('0x2f')][a60_0x3efd('0x2e')],this[a60_0x3efd('0x17')]);};}}; \ No newline at end of file diff --git a/commands/management/edit.js b/commands/management/edit.js index 6480f8657..bb466ee5f 100644 --- a/commands/management/edit.js +++ b/commands/management/edit.js @@ -1 +1 @@ -const a61_0x1317=['guild','language','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','DiscordError','Command','getString','react','../../utils/embeds','locale','editable','apply','test','exec','edit','edit\x20--message\x20MESSAGE_ID\x20--\x20NEW\x20MESSAGE','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract','message','INVALID_COMMAND_SYNTAX','exports','join','ROLE_NOT_FOUND','Edited\x20by\x20','It\x20allows\x20you\x20to\x20edit\x20any\x20message\x20sent\x20by\x20Bastion\x20in\x20the\x20current\x20channel.','fetch','parse','BASTION_ERROR_TYPE','channel'];(function(_0x810e6c,_0x131788){const _0x44b33e=function(_0x5290c3){while(--_0x5290c3){_0x810e6c['push'](_0x810e6c['shift']());}},_0x1362cd=function(){const _0x331ed9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2979b1,_0x1e0718,_0x3c61a2,_0xc47133){_0xc47133=_0xc47133||{};let _0x3c3ab9=_0x1e0718+'='+_0x3c61a2,_0x106677=0x0;for(let _0x1459c6=0x0,_0x3dffca=_0x2979b1['length'];_0x1459c6<_0x3dffca;_0x1459c6++){const _0x2a9f73=_0x2979b1[_0x1459c6];_0x3c3ab9+=';\x20'+_0x2a9f73;const _0x2001b6=_0x2979b1[_0x2a9f73];_0x2979b1['push'](_0x2001b6),_0x3dffca=_0x2979b1['length'],_0x2001b6!==!![]&&(_0x3c3ab9+='='+_0x2001b6);}_0xc47133['cookie']=_0x3c3ab9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x6bb41e,_0x5f38fb){_0x6bb41e=_0x6bb41e||function(_0xcc0c8b){return _0xcc0c8b;};const _0x1ef42f=_0x6bb41e(new RegExp('(?:^|;\x20)'+_0x5f38fb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x211d24=function(_0x58f1f1,_0x10e419){_0x58f1f1(++_0x10e419);};return _0x211d24(_0x44b33e,_0x131788),_0x1ef42f?decodeURIComponent(_0x1ef42f[0x1]):undefined;}},_0x408f7a=function(){const _0x3d9d97=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3d9d97['test'](_0x331ed9['removeCookie']['toString']());};_0x331ed9['updateCookie']=_0x408f7a;let _0x55683c='';const _0x20ca1a=_0x331ed9['updateCookie']();if(!_0x20ca1a)_0x331ed9['setCookie'](['*'],'counter',0x1);else _0x20ca1a?_0x55683c=_0x331ed9['getCookie'](null,'counter'):_0x331ed9['removeCookie']();};_0x1362cd();}(a61_0x1317,0x85));const a61_0x44b3=function(_0x810e6c,_0x131788){_0x810e6c=_0x810e6c-0x0;let _0x44b33e=a61_0x1317[_0x810e6c];return _0x44b33e;};const a61_0x3c61a2=function(){let _0x329efb=!![];return function(_0x2eef94,_0x3bbe9b){const _0xffa42e=_0x329efb?function(){if(_0x3bbe9b){const _0x4a5556=_0x3bbe9b[a61_0x44b3('0x16')](_0x2eef94,arguments);return _0x3bbe9b=null,_0x4a5556;}}:function(){};return _0x329efb=![],_0xffa42e;};}(),a61_0x1e0718=a61_0x3c61a2(this,function(){const _0x15aa94=function(){const _0x24c598=_0x15aa94[a61_0x44b3('0x1b')](a61_0x44b3('0x1c'))()[a61_0x44b3('0x1b')](a61_0x44b3('0xe'));return!_0x24c598[a61_0x44b3('0x17')](a61_0x1e0718);};return _0x15aa94();});a61_0x1e0718();'use strict';const tesseract_1=require(a61_0x44b3('0x0')),errors=require('../../utils/errors'),embeds=require(a61_0x44b3('0x13'));module[a61_0x44b3('0x3')]=class EditCommand extends tesseract_1[a61_0x44b3('0x10')]{constructor(){super(a61_0x44b3('0x19'),{'description':a61_0x44b3('0x7'),'triggers':[],'arguments':{'alias':{'message':['m']},'string':[a61_0x44b3('0x1')]},'scope':a61_0x44b3('0xc'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['ADMINISTRATOR'],'syntax':[a61_0x44b3('0x1a')]}),this[a61_0x44b3('0x18')]=async(_0x5938dc,_0x2405b2)=>{if(!_0x2405b2[a61_0x44b3('0x1')]||!_0x2405b2['_']['length'])throw new errors[(a61_0x44b3('0xf'))](errors[a61_0x44b3('0xa')][a61_0x44b3('0x2')],this['name']);const _0x51d09e=await _0x5938dc[a61_0x44b3('0xb')]['messages'][a61_0x44b3('0x8')](_0x2405b2[a61_0x44b3('0x1')],![]);if(!_0x51d09e)throw new errors[(a61_0x44b3('0xf'))](errors[a61_0x44b3('0xa')][a61_0x44b3('0x5')],this['client'][a61_0x44b3('0x14')][a61_0x44b3('0x11')](_0x5938dc['guild']['document'][a61_0x44b3('0xd')],'error','roleNotFound'));if(!_0x51d09e[a61_0x44b3('0x15')])return;const _0x4d1cde=_0x2405b2['_'][a61_0x44b3('0x4')]('\x20');let _0x57a1e7;try{_0x57a1e7=JSON[a61_0x44b3('0x9')](_0x4d1cde);if(!embeds['isValidBastionEmbed'](_0x57a1e7))throw new Error('INVALID_BASTION_EMBED');}catch{_0x57a1e7=_0x4d1cde;}await _0x51d09e['edit']({'embed':{...embeds['generateEmbed'](_0x57a1e7),'footer':{'text':a61_0x44b3('0x6')+_0x5938dc['author']['tag']}}}),await _0x5938dc[a61_0x44b3('0x12')]('✅');};}}; \ No newline at end of file +const a61_0x456e=['ADMINISTRATOR','edit','Command','edit\x20--message\x20MESSAGE_ID\x20--\x20NEW\x20MESSAGE','tag','../../utils/embeds','DiscordError','guild','name','length','constructor','INVALID_COMMAND_SYNTAX','channel','message','editable','exec','It\x20allows\x20you\x20to\x20edit\x20any\x20message\x20sent\x20by\x20Bastion\x20in\x20the\x20current\x20channel.','messages','INVALID_BASTION_EMBED','getString','BASTION_ERROR_TYPE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','Edited\x20by\x20','ROLE_NOT_FOUND','parse','test','isValidBastionEmbed','author','language','fetch'];(function(_0x220454,_0x456efa){const _0x1a9c28=function(_0x1d52ee){while(--_0x1d52ee){_0x220454['push'](_0x220454['shift']());}},_0x5866a6=function(){const _0x53b103={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x183f0c,_0x446013,_0x435b56,_0x38e7bf){_0x38e7bf=_0x38e7bf||{};let _0x5772d6=_0x446013+'='+_0x435b56,_0x1d8dd9=0x0;for(let _0x2bbc9f=0x0,_0x31b10d=_0x183f0c['length'];_0x2bbc9f<_0x31b10d;_0x2bbc9f++){const _0x463ba0=_0x183f0c[_0x2bbc9f];_0x5772d6+=';\x20'+_0x463ba0;const _0x45450f=_0x183f0c[_0x463ba0];_0x183f0c['push'](_0x45450f),_0x31b10d=_0x183f0c['length'],_0x45450f!==!![]&&(_0x5772d6+='='+_0x45450f);}_0x38e7bf['cookie']=_0x5772d6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x59822d,_0x50f798){_0x59822d=_0x59822d||function(_0x213d4c){return _0x213d4c;};const _0x223b83=_0x59822d(new RegExp('(?:^|;\x20)'+_0x50f798['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x595d35=function(_0x369bc6,_0x16a4c6){_0x369bc6(++_0x16a4c6);};return _0x595d35(_0x1a9c28,_0x456efa),_0x223b83?decodeURIComponent(_0x223b83[0x1]):undefined;}},_0x5e2661=function(){const _0x37d84d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x37d84d['test'](_0x53b103['removeCookie']['toString']());};_0x53b103['updateCookie']=_0x5e2661;let _0x572c55='';const _0x486b89=_0x53b103['updateCookie']();if(!_0x486b89)_0x53b103['setCookie'](['*'],'counter',0x1);else _0x486b89?_0x572c55=_0x53b103['getCookie'](null,'counter'):_0x53b103['removeCookie']();};_0x5866a6();}(a61_0x456e,0xf3));const a61_0x1a9c=function(_0x220454,_0x456efa){_0x220454=_0x220454-0x0;let _0x1a9c28=a61_0x456e[_0x220454];return _0x1a9c28;};const a61_0x435b56=function(){let _0x26917b=!![];return function(_0x416561,_0x570b42){const _0x132db7=_0x26917b?function(){if(_0x570b42){const _0x1b2ff6=_0x570b42['apply'](_0x416561,arguments);return _0x570b42=null,_0x1b2ff6;}}:function(){};return _0x26917b=![],_0x132db7;};}(),a61_0x446013=a61_0x435b56(this,function(){const _0x2ba3e6=function(){const _0x3547cd=_0x2ba3e6[a61_0x1a9c('0x17')](a61_0x1a9c('0x3'))()[a61_0x1a9c('0x17')](a61_0x1a9c('0x2'));return!_0x3547cd[a61_0x1a9c('0x8')](a61_0x446013);};return _0x2ba3e6();});a61_0x446013();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require('../../utils/errors'),embeds=require(a61_0x1a9c('0x12'));module['exports']=class EditCommand extends tesseract_1[a61_0x1a9c('0xf')]{constructor(){super(a61_0x1a9c('0xe'),{'description':a61_0x1a9c('0x1d'),'triggers':[],'arguments':{'alias':{'message':['m']},'string':[a61_0x1a9c('0x1a')]},'scope':a61_0x1a9c('0x14'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a61_0x1a9c('0xd')],'syntax':[a61_0x1a9c('0x10')]}),this[a61_0x1a9c('0x1c')]=async(_0x156291,_0x2709f4)=>{if(!_0x2709f4[a61_0x1a9c('0x1a')]||!_0x2709f4['_'][a61_0x1a9c('0x16')])throw new errors[(a61_0x1a9c('0x13'))](errors[a61_0x1a9c('0x1')][a61_0x1a9c('0x18')],this[a61_0x1a9c('0x15')]);const _0x58daed=await _0x156291[a61_0x1a9c('0x19')][a61_0x1a9c('0x1e')][a61_0x1a9c('0xc')](_0x2709f4['message'],![]);if(!_0x58daed)throw new errors[(a61_0x1a9c('0x13'))](errors[a61_0x1a9c('0x1')][a61_0x1a9c('0x6')],this['client']['locale'][a61_0x1a9c('0x0')](_0x156291['guild'][a61_0x1a9c('0x4')][a61_0x1a9c('0xb')],'error','roleNotFound'));if(!_0x58daed[a61_0x1a9c('0x1b')])return;const _0x23a85b=_0x2709f4['_']['join']('\x20');let _0x409c2b;try{_0x409c2b=JSON[a61_0x1a9c('0x7')](_0x23a85b);if(!embeds[a61_0x1a9c('0x9')](_0x409c2b))throw new Error(a61_0x1a9c('0x1f'));}catch{_0x409c2b=_0x23a85b;}await _0x58daed[a61_0x1a9c('0xe')]({'embed':{...embeds['generateEmbed'](_0x409c2b),'footer':{'text':a61_0x1a9c('0x5')+_0x156291[a61_0x1a9c('0xa')][a61_0x1a9c('0x11')]}}}),await _0x156291['react']('✅');};}}; \ No newline at end of file diff --git a/commands/management/giveaway.js b/commands/management/giveaway.js index 5db262403..cb164c8de 100644 --- a/commands/management/giveaway.js +++ b/commands/management/giveaway.js @@ -1 +1 @@ -const a62_0x305e=['client','../../utils/omnic','join','BASTION_ERROR_TYPE','../../utils/constants','GIVEAWAY!','GIVEAWAYS','It\x20allows\x20you\x20to\x20run\x20giveaway\x20events\x20in\x20the\x20server\x20for\x20at\x20least\x20an\x20hour\x20and\x20at\x20most\x20a\x20month.\x20You\x20can\x20set\x20any\x20number\x20of\x20winners\x20for\x20the\x20event.\x20And\x20it\x20also\x20allows\x20you\x20to\x20reroll\x20the\x20winners,\x20if\x20need\x20be,\x20after\x20the\x20end\x20of\x20the\x20event.','test','@bastion/tesseract','membershipLimitGiveaways','IRIS','defaultTimeout','catch','channel','Command','name','timeout','defaultWinners','locale','user','length','guild','giveaway\x20--timeout\x20HOURS\x20--\x20ITEM','MAX_SAFE_INTEGER','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','LIMITED_PREMIUM_MEMBERSHIP','getString','Constants','isPublicBastion','premiumGiveaways','floor','default','premiumGiveawayTimeout','../../utils/errors','winners','LIMITS','constructor','PremiumTier','number','create','exports','send','reactions','PREMIUM_MEMBERSHIP_REQUIRED','errors','language','react','DiscordError','React\x20to\x20this\x20message\x20with\x20','countDocuments','MANAGE_CHANNELS','\x20or\x20','document','return\x20/\x22\x20+\x20this\x20+\x20\x22/','clamp','GOLD','membershipLimitGiveawayTimeout','INVALID_COMMAND_SYNTAX','\x20to\x20participate\x20in\x20the\x20giveaway\x20for\x20a\x20chance\x20to\x20win.','PLATINUM','now','apply','GIVEAWAY_TIMEOUT'];(function(_0x1c5bf7,_0x305ebf){const _0x15f327=function(_0x5af54d){while(--_0x5af54d){_0x1c5bf7['push'](_0x1c5bf7['shift']());}},_0x40c924=function(){const _0x53d544={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x463420,_0x35aa54,_0xa5f92e,_0x19cea2){_0x19cea2=_0x19cea2||{};let _0x1ac719=_0x35aa54+'='+_0xa5f92e,_0xecc204=0x0;for(let _0x119a32=0x0,_0x308cdb=_0x463420['length'];_0x119a32<_0x308cdb;_0x119a32++){const _0x4547e5=_0x463420[_0x119a32];_0x1ac719+=';\x20'+_0x4547e5;const _0x3d0bb3=_0x463420[_0x4547e5];_0x463420['push'](_0x3d0bb3),_0x308cdb=_0x463420['length'],_0x3d0bb3!==!![]&&(_0x1ac719+='='+_0x3d0bb3);}_0x19cea2['cookie']=_0x1ac719;},'removeCookie':function(){return'dev';},'getCookie':function(_0x22105d,_0x597782){_0x22105d=_0x22105d||function(_0x5e224a){return _0x5e224a;};const _0x21833a=_0x22105d(new RegExp('(?:^|;\x20)'+_0x597782['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2e549a=function(_0x1a0d24,_0x8c07a9){_0x1a0d24(++_0x8c07a9);};return _0x2e549a(_0x15f327,_0x305ebf),_0x21833a?decodeURIComponent(_0x21833a[0x1]):undefined;}},_0x348494=function(){const _0x259d2d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x259d2d['test'](_0x53d544['removeCookie']['toString']());};_0x53d544['updateCookie']=_0x348494;let _0x56927a='';const _0x4c47f9=_0x53d544['updateCookie']();if(!_0x4c47f9)_0x53d544['setCookie'](['*'],'counter',0x1);else _0x4c47f9?_0x56927a=_0x53d544['getCookie'](null,'counter'):_0x53d544['removeCookie']();};_0x40c924();}(a62_0x305e,0xdb));const a62_0x15f3=function(_0x1c5bf7,_0x305ebf){_0x1c5bf7=_0x1c5bf7-0x0;let _0x15f327=a62_0x305e[_0x1c5bf7];return _0x15f327;};const a62_0xa5f92e=function(){let _0x4678fb=!![];return function(_0x5c419,_0x5b31bf){const _0x4d6530=_0x4678fb?function(){if(_0x5b31bf){const _0x382e70=_0x5b31bf[a62_0x15f3('0x23')](_0x5c419,arguments);return _0x5b31bf=null,_0x382e70;}}:function(){};return _0x4678fb=![],_0x4d6530;};}(),a62_0x35aa54=a62_0xa5f92e(this,function(){const _0xc640c2=function(){const _0x4fd682=_0xc640c2[a62_0x15f3('0xa')](a62_0x15f3('0x1b'))()[a62_0x15f3('0xa')](a62_0x15f3('0x3e'));return!_0x4fd682[a62_0x15f3('0x2d')](a62_0x35aa54);};return _0xc640c2();});a62_0x35aa54();'use strict';const tesseract_1=require(a62_0x15f3('0x2e')),Giveaway_1=require('../../models/Giveaway'),constants=require(a62_0x15f3('0x29')),errors=require(a62_0x15f3('0x7')),numbers=require('../../utils/numbers'),omnic=require(a62_0x15f3('0x26'));module[a62_0x15f3('0xe')]=class GiveawayCommand extends tesseract_1[a62_0x15f3('0x34')]{constructor(){super('giveaway',{'description':a62_0x15f3('0x2c'),'triggers':[],'arguments':{'alias':{'timeout':['t'],'winners':['w']},'number':[a62_0x15f3('0x36'),a62_0x15f3('0x8')],'coerce':{'timeout':_0x3f882a=>typeof _0x3f882a===a62_0x15f3('0xc')&&numbers[a62_0x15f3('0x1c')](_0x3f882a,0x1,0x2d0),'winners':_0x2b7b96=>typeof _0x2b7b96==='number'&&Math[a62_0x15f3('0x4')](numbers['clamp'](_0x2b7b96,0x1,Number[a62_0x15f3('0x3d')]))},'default':{'timeout':0x3,'winners':0x1}},'scope':a62_0x15f3('0x3b'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a62_0x15f3('0x18')],'syntax':['giveaway\x20--\x20ITEM','giveaway\x20--winners\x20NUMBER\x20--\x20ITEM',a62_0x15f3('0x3c')]}),this['exec']=async(_0x26b22d,_0x5ca542)=>{if(!_0x5ca542['_'][a62_0x15f3('0x3a')])throw new errors[(a62_0x15f3('0x15'))](errors[a62_0x15f3('0x28')][a62_0x15f3('0x1f')],this[a62_0x15f3('0x35')]);const _0x256b4e=_0x5ca542['_'][a62_0x15f3('0x27')]('\x20'),_0x326465=_0x5ca542[a62_0x15f3('0x36')]?_0x5ca542['timeout']:this['defaultTimeout'],_0x60cb1a=_0x5ca542[a62_0x15f3('0x8')]?_0x5ca542[a62_0x15f3('0x8')]:this['defaultWinners'];if(constants[a62_0x15f3('0x2')](this[a62_0x15f3('0x25')][a62_0x15f3('0x39')])){const _0x4c84f7=await omnic['fetchPremiumTier'](_0x26b22d[a62_0x15f3('0x3b')])['catch'](()=>{});if(_0x4c84f7){if(_0x4c84f7===omnic['PremiumTier']['GOLD']&&_0x326465>constants[a62_0x15f3('0x9')]['GOLD'][a62_0x15f3('0x24')])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a62_0x15f3('0x3f')],this[a62_0x15f3('0x25')][a62_0x15f3('0x38')][a62_0x15f3('0x0')](_0x26b22d[a62_0x15f3('0x3b')]['document'][a62_0x15f3('0x13')],'errors',a62_0x15f3('0x1e'),constants['LIMITS'][a62_0x15f3('0x1d')][a62_0x15f3('0x24')]));else{if(_0x4c84f7===omnic[a62_0x15f3('0xb')][a62_0x15f3('0x21')]&&_0x326465>constants[a62_0x15f3('0x9')][a62_0x15f3('0x21')][a62_0x15f3('0x24')])throw new errors['DiscordError'](errors[a62_0x15f3('0x28')][a62_0x15f3('0x3f')],this[a62_0x15f3('0x25')][a62_0x15f3('0x38')]['getString'](_0x26b22d[a62_0x15f3('0x3b')][a62_0x15f3('0x1a')][a62_0x15f3('0x13')],a62_0x15f3('0x12'),a62_0x15f3('0x1e'),constants[a62_0x15f3('0x9')][a62_0x15f3('0x21')]['GIVEAWAY_TIMEOUT']));}}else{if(_0x326465>constants[a62_0x15f3('0x9')][a62_0x15f3('0x24')])throw new errors[(a62_0x15f3('0x15'))](errors[a62_0x15f3('0x28')][a62_0x15f3('0x11')],this[a62_0x15f3('0x25')][a62_0x15f3('0x38')]['getString'](_0x26b22d[a62_0x15f3('0x3b')][a62_0x15f3('0x1a')][a62_0x15f3('0x13')],'errors',a62_0x15f3('0x6'),constants[a62_0x15f3('0x9')][a62_0x15f3('0x24')]));}const _0x5c05f4=await Giveaway_1[a62_0x15f3('0x5')][a62_0x15f3('0x17')]({'guild':_0x26b22d[a62_0x15f3('0x3b')]['id'],'ends':{'$gte':new Date()}});if(_0x4c84f7){if(_0x4c84f7===omnic['PremiumTier'][a62_0x15f3('0x1d')]&&_0x5c05f4>=constants['LIMITS'][a62_0x15f3('0x1d')][a62_0x15f3('0x2b')])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a62_0x15f3('0x3f')],this[a62_0x15f3('0x25')][a62_0x15f3('0x38')][a62_0x15f3('0x0')](_0x26b22d['guild'][a62_0x15f3('0x1a')]['language'],'errors',a62_0x15f3('0x2f'),constants[a62_0x15f3('0x9')][a62_0x15f3('0x1d')][a62_0x15f3('0x2b')]));else{if(_0x4c84f7===omnic[a62_0x15f3('0xb')][a62_0x15f3('0x21')]&&_0x5c05f4>=constants['LIMITS'][a62_0x15f3('0x21')][a62_0x15f3('0x2b')])throw new errors[(a62_0x15f3('0x15'))](errors[a62_0x15f3('0x28')][a62_0x15f3('0x3f')],this[a62_0x15f3('0x25')][a62_0x15f3('0x38')][a62_0x15f3('0x0')](_0x26b22d[a62_0x15f3('0x3b')][a62_0x15f3('0x1a')]['language'],'errors','membershipLimitGiveaways',constants[a62_0x15f3('0x9')][a62_0x15f3('0x21')]['GIVEAWAYS']));}}else{if(_0x5c05f4>=constants[a62_0x15f3('0x9')][a62_0x15f3('0x2b')])throw new errors[(a62_0x15f3('0x15'))](errors[a62_0x15f3('0x28')][a62_0x15f3('0x11')],this[a62_0x15f3('0x25')][a62_0x15f3('0x38')]['getString'](_0x26b22d[a62_0x15f3('0x3b')][a62_0x15f3('0x1a')][a62_0x15f3('0x13')],'errors',a62_0x15f3('0x3'),constants[a62_0x15f3('0x9')][a62_0x15f3('0x2b')]));}}const _0x5d5375=new Date(Date[a62_0x15f3('0x22')]()+_0x326465*0x36ee80),_0x172a8c=await _0x26b22d[a62_0x15f3('0x33')][a62_0x15f3('0xf')]({'embed':{'color':tesseract_1[a62_0x15f3('0x1')]['COLORS'][a62_0x15f3('0x30')],'author':{'name':a62_0x15f3('0x2a')},'title':_0x256b4e,'description':a62_0x15f3('0x16')+this[a62_0x15f3('0x10')]['join'](a62_0x15f3('0x19'))+a62_0x15f3('0x20'),'footer':{'text':_0x60cb1a+'\x20Winners\x20•\x20Ends'},'timestamp':_0x5d5375}});await Giveaway_1['default'][a62_0x15f3('0xd')]({'_id':_0x172a8c['id'],'channel':_0x172a8c[a62_0x15f3('0x33')]['id'],'guild':_0x172a8c['guild']['id'],'winners':_0x60cb1a,'ends':_0x5d5375});for(const _0xa3cb46 of this[a62_0x15f3('0x10')]){await _0x172a8c[a62_0x15f3('0x14')](_0xa3cb46)[a62_0x15f3('0x32')](()=>{});}},this['reactions']=['🎊','🎉'],this[a62_0x15f3('0x31')]=0x3,this[a62_0x15f3('0x37')]=0x1;}}; \ No newline at end of file +const a62_0x5d2d=['giveaway\x20--timeout\x20HOURS\x20--\x20ITEM','language','membershipLimitGiveaways','PREMIUM_MEMBERSHIP_REQUIRED','client','join','errors','user','membershipLimitGiveawayTimeout','BASTION_ERROR_TYPE','apply','exec','It\x20allows\x20you\x20to\x20run\x20giveaway\x20events\x20in\x20the\x20server\x20for\x20at\x20least\x20an\x20hour\x20and\x20at\x20most\x20a\x20month.\x20You\x20can\x20set\x20any\x20number\x20of\x20winners\x20for\x20the\x20event.\x20And\x20it\x20also\x20allows\x20you\x20to\x20reroll\x20the\x20winners,\x20if\x20need\x20be,\x20after\x20the\x20end\x20of\x20the\x20event.','create','PLATINUM','COLORS','defaultWinners','reactions','winners','return\x20/\x22\x20+\x20this\x20+\x20\x22/','premiumGiveawayTimeout','giveaway\x20--winners\x20NUMBER\x20--\x20ITEM','giveaway\x20--\x20ITEM','locale','test','exports','Constants','document','Command','react','GOLD','LIMITED_PREMIUM_MEMBERSHIP','guild','\x20Winners\x20•\x20Ends','../../utils/constants','INVALID_COMMAND_SYNTAX','GIVEAWAY!','../../models/Giveaway','floor','defaultTimeout','GIVEAWAYS','constructor','../../utils/omnic','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','number','now','getString','PremiumTier','timeout','isPublicBastion','catch','MANAGE_CHANNELS','clamp','name','default','GIVEAWAY_TIMEOUT','LIMITS','giveaway','DiscordError','channel'];(function(_0x32e473,_0x5d2de0){const _0x530b55=function(_0x3c2a5f){while(--_0x3c2a5f){_0x32e473['push'](_0x32e473['shift']());}},_0x7ae38c=function(){const _0x30191a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x13722b,_0x1d4b9f,_0x19d011,_0x53c360){_0x53c360=_0x53c360||{};let _0x212b79=_0x1d4b9f+'='+_0x19d011,_0x148fa4=0x0;for(let _0x3b68a6=0x0,_0x50171d=_0x13722b['length'];_0x3b68a6<_0x50171d;_0x3b68a6++){const _0x1a6943=_0x13722b[_0x3b68a6];_0x212b79+=';\x20'+_0x1a6943;const _0x6d6153=_0x13722b[_0x1a6943];_0x13722b['push'](_0x6d6153),_0x50171d=_0x13722b['length'],_0x6d6153!==!![]&&(_0x212b79+='='+_0x6d6153);}_0x53c360['cookie']=_0x212b79;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4db2b6,_0x12848d){_0x4db2b6=_0x4db2b6||function(_0x5d0c7c){return _0x5d0c7c;};const _0x2ef5ac=_0x4db2b6(new RegExp('(?:^|;\x20)'+_0x12848d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5e63d1=function(_0x35b2e1,_0x3019d3){_0x35b2e1(++_0x3019d3);};return _0x5e63d1(_0x530b55,_0x5d2de0),_0x2ef5ac?decodeURIComponent(_0x2ef5ac[0x1]):undefined;}},_0x2f8caf=function(){const _0x431e08=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x431e08['test'](_0x30191a['removeCookie']['toString']());};_0x30191a['updateCookie']=_0x2f8caf;let _0xb9c56e='';const _0x1b20c4=_0x30191a['updateCookie']();if(!_0x1b20c4)_0x30191a['setCookie'](['*'],'counter',0x1);else _0x1b20c4?_0xb9c56e=_0x30191a['getCookie'](null,'counter'):_0x30191a['removeCookie']();};_0x7ae38c();}(a62_0x5d2d,0x139));const a62_0x530b=function(_0x32e473,_0x5d2de0){_0x32e473=_0x32e473-0x0;let _0x530b55=a62_0x5d2d[_0x32e473];return _0x530b55;};const a62_0x19d011=function(){let _0x45472c=!![];return function(_0x206756,_0x21f1fd){const _0x56fa0b=_0x45472c?function(){if(_0x21f1fd){const _0x2cc759=_0x21f1fd[a62_0x530b('0x39')](_0x206756,arguments);return _0x21f1fd=null,_0x2cc759;}}:function(){};return _0x45472c=![],_0x56fa0b;};}(),a62_0x1d4b9f=a62_0x19d011(this,function(){const _0x36fbd5=function(){const _0x49f833=_0x36fbd5[a62_0x530b('0x1c')](a62_0x530b('0x6'))()['constructor'](a62_0x530b('0x1e'));return!_0x49f833[a62_0x530b('0xb')](a62_0x1d4b9f);};return _0x36fbd5();});a62_0x1d4b9f();'use strict';const tesseract_1=require('@bastion/tesseract'),Giveaway_1=require(a62_0x530b('0x18')),constants=require(a62_0x530b('0x15')),errors=require('../../utils/errors'),numbers=require('../../utils/numbers'),omnic=require(a62_0x530b('0x1d'));module[a62_0x530b('0xc')]=class GiveawayCommand extends tesseract_1[a62_0x530b('0xf')]{constructor(){super(a62_0x530b('0x2c'),{'description':a62_0x530b('0x3b'),'triggers':[],'arguments':{'alias':{'timeout':['t'],'winners':['w']},'number':[a62_0x530b('0x23'),a62_0x530b('0x5')],'coerce':{'timeout':_0x2c802e=>typeof _0x2c802e===a62_0x530b('0x1f')&&numbers['clamp'](_0x2c802e,0x1,0x2d0),'winners':_0x4986c6=>typeof _0x4986c6===a62_0x530b('0x1f')&&Math[a62_0x530b('0x19')](numbers[a62_0x530b('0x27')](_0x4986c6,0x1,Number['MAX_SAFE_INTEGER']))},'default':{'timeout':0x3,'winners':0x1}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a62_0x530b('0x26')],'syntax':[a62_0x530b('0x9'),a62_0x530b('0x8'),a62_0x530b('0x2f')]}),this[a62_0x530b('0x3a')]=async(_0x646b89,_0x5d741e)=>{if(!_0x5d741e['_']['length'])throw new errors[(a62_0x530b('0x2d'))](errors[a62_0x530b('0x38')][a62_0x530b('0x16')],this[a62_0x530b('0x28')]);const _0x48e1e4=_0x5d741e['_'][a62_0x530b('0x34')]('\x20'),_0x29ddbc=_0x5d741e[a62_0x530b('0x23')]?_0x5d741e[a62_0x530b('0x23')]:this[a62_0x530b('0x1a')],_0x1696ff=_0x5d741e[a62_0x530b('0x5')]?_0x5d741e['winners']:this[a62_0x530b('0x3')];if(constants[a62_0x530b('0x24')](this[a62_0x530b('0x33')][a62_0x530b('0x36')])){const _0x3e6230=await omnic['fetchPremiumTier'](_0x646b89['guild'])[a62_0x530b('0x25')](()=>{});if(_0x3e6230){if(_0x3e6230===omnic[a62_0x530b('0x22')][a62_0x530b('0x11')]&&_0x29ddbc>constants['LIMITS'][a62_0x530b('0x11')][a62_0x530b('0x2a')])throw new errors[(a62_0x530b('0x2d'))](errors[a62_0x530b('0x38')]['LIMITED_PREMIUM_MEMBERSHIP'],this[a62_0x530b('0x33')][a62_0x530b('0xa')][a62_0x530b('0x21')](_0x646b89[a62_0x530b('0x13')][a62_0x530b('0xe')][a62_0x530b('0x30')],a62_0x530b('0x35'),a62_0x530b('0x37'),constants['LIMITS']['GOLD'][a62_0x530b('0x2a')]));else{if(_0x3e6230===omnic[a62_0x530b('0x22')]['PLATINUM']&&_0x29ddbc>constants['LIMITS'][a62_0x530b('0x1')]['GIVEAWAY_TIMEOUT'])throw new errors[(a62_0x530b('0x2d'))](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this[a62_0x530b('0x33')][a62_0x530b('0xa')][a62_0x530b('0x21')](_0x646b89[a62_0x530b('0x13')][a62_0x530b('0xe')]['language'],a62_0x530b('0x35'),'membershipLimitGiveawayTimeout',constants[a62_0x530b('0x2b')][a62_0x530b('0x1')]['GIVEAWAY_TIMEOUT']));}}else{if(_0x29ddbc>constants['LIMITS']['GIVEAWAY_TIMEOUT'])throw new errors[(a62_0x530b('0x2d'))](errors[a62_0x530b('0x38')][a62_0x530b('0x32')],this[a62_0x530b('0x33')][a62_0x530b('0xa')][a62_0x530b('0x21')](_0x646b89[a62_0x530b('0x13')]['document'][a62_0x530b('0x30')],a62_0x530b('0x35'),a62_0x530b('0x7'),constants[a62_0x530b('0x2b')]['GIVEAWAY_TIMEOUT']));}const _0xff01aa=await Giveaway_1['default']['countDocuments']({'guild':_0x646b89[a62_0x530b('0x13')]['id'],'ends':{'$gte':new Date()}});if(_0x3e6230){if(_0x3e6230===omnic[a62_0x530b('0x22')][a62_0x530b('0x11')]&&_0xff01aa>=constants[a62_0x530b('0x2b')]['GOLD'][a62_0x530b('0x1b')])throw new errors[(a62_0x530b('0x2d'))](errors['BASTION_ERROR_TYPE'][a62_0x530b('0x12')],this[a62_0x530b('0x33')][a62_0x530b('0xa')]['getString'](_0x646b89[a62_0x530b('0x13')][a62_0x530b('0xe')]['language'],a62_0x530b('0x35'),a62_0x530b('0x31'),constants['LIMITS'][a62_0x530b('0x11')][a62_0x530b('0x1b')]));else{if(_0x3e6230===omnic[a62_0x530b('0x22')]['PLATINUM']&&_0xff01aa>=constants[a62_0x530b('0x2b')][a62_0x530b('0x1')][a62_0x530b('0x1b')])throw new errors[(a62_0x530b('0x2d'))](errors[a62_0x530b('0x38')][a62_0x530b('0x12')],this['client'][a62_0x530b('0xa')][a62_0x530b('0x21')](_0x646b89['guild']['document'][a62_0x530b('0x30')],a62_0x530b('0x35'),a62_0x530b('0x31'),constants[a62_0x530b('0x2b')]['PLATINUM'][a62_0x530b('0x1b')]));}}else{if(_0xff01aa>=constants[a62_0x530b('0x2b')]['GIVEAWAYS'])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE']['PREMIUM_MEMBERSHIP_REQUIRED'],this[a62_0x530b('0x33')][a62_0x530b('0xa')][a62_0x530b('0x21')](_0x646b89[a62_0x530b('0x13')][a62_0x530b('0xe')][a62_0x530b('0x30')],'errors','premiumGiveaways',constants[a62_0x530b('0x2b')][a62_0x530b('0x1b')]));}}const _0x36faf1=new Date(Date[a62_0x530b('0x20')]()+_0x29ddbc*0x36ee80),_0x82c2d2=await _0x646b89[a62_0x530b('0x2e')]['send']({'embed':{'color':tesseract_1[a62_0x530b('0xd')][a62_0x530b('0x2')]['IRIS'],'author':{'name':a62_0x530b('0x17')},'title':_0x48e1e4,'description':'React\x20to\x20this\x20message\x20with\x20'+this[a62_0x530b('0x4')]['join']('\x20or\x20')+'\x20to\x20participate\x20in\x20the\x20giveaway\x20for\x20a\x20chance\x20to\x20win.','footer':{'text':_0x1696ff+a62_0x530b('0x14')},'timestamp':_0x36faf1}});await Giveaway_1[a62_0x530b('0x29')][a62_0x530b('0x0')]({'_id':_0x82c2d2['id'],'channel':_0x82c2d2[a62_0x530b('0x2e')]['id'],'guild':_0x82c2d2[a62_0x530b('0x13')]['id'],'winners':_0x1696ff,'ends':_0x36faf1});for(const _0xf06c25 of this[a62_0x530b('0x4')]){await _0x82c2d2[a62_0x530b('0x10')](_0xf06c25)[a62_0x530b('0x25')](()=>{});}},this[a62_0x530b('0x4')]=['🎊','🎉'],this[a62_0x530b('0x1a')]=0x3,this[a62_0x530b('0x3')]=0x1;}}; \ No newline at end of file diff --git a/commands/management/grant.js b/commands/management/grant.js index e0b43769d..f528f050d 100644 --- a/commands/management/grant.js +++ b/commands/management/grant.js @@ -1 +1 @@ -const a63_0x2213=['memberNotFound','updateOne','MANAGE_GUILD','INVALID_COMMAND_SYNTAX','BASTION_ERROR_TYPE','apply','client','It\x20allows\x20you\x20to\x20grant\x20experience\x20or\x20coins\x20to\x20the\x20members\x20of\x20the\x20server.','COLORS','coins','locale','test','language','default','grant\x20--user\x20USER\x20--xp\x20NUMBER','channel','grant\x20--user\x20USER\x20--coins\x20NUMBER','send','exec','DiscordError','updateMany','constructor','Constants','guild','GREEN','grant\x20--coins\x20NUMBER','getString','tag','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','grant\x20--xp\x20NUMBER','../../utils/errors','author','user','info','exports','grantMember','../../models/Member','displayName','grantMembers','grant','name','errors','findOne','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document'];(function(_0x5a6680,_0x22139d){const _0x48247b=function(_0xd72f8b){while(--_0xd72f8b){_0x5a6680['push'](_0x5a6680['shift']());}},_0x30e636=function(){const _0x4105f5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x21e72c,_0x2d1f43,_0x25b745,_0x57df9f){_0x57df9f=_0x57df9f||{};let _0x282be8=_0x2d1f43+'='+_0x25b745,_0xdd78b0=0x0;for(let _0x25feeb=0x0,_0x406685=_0x21e72c['length'];_0x25feeb<_0x406685;_0x25feeb++){const _0x1badb1=_0x21e72c[_0x25feeb];_0x282be8+=';\x20'+_0x1badb1;const _0x3368cb=_0x21e72c[_0x1badb1];_0x21e72c['push'](_0x3368cb),_0x406685=_0x21e72c['length'],_0x3368cb!==!![]&&(_0x282be8+='='+_0x3368cb);}_0x57df9f['cookie']=_0x282be8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2677f5,_0x2df555){_0x2677f5=_0x2677f5||function(_0x5ce72a){return _0x5ce72a;};const _0x1eadbe=_0x2677f5(new RegExp('(?:^|;\x20)'+_0x2df555['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x27e0be=function(_0x2a4f14,_0x3b0db1){_0x2a4f14(++_0x3b0db1);};return _0x27e0be(_0x48247b,_0x22139d),_0x1eadbe?decodeURIComponent(_0x1eadbe[0x1]):undefined;}},_0x101a91=function(){const _0xec9cc9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xec9cc9['test'](_0x4105f5['removeCookie']['toString']());};_0x4105f5['updateCookie']=_0x101a91;let _0x48bbfd='';const _0x2ec307=_0x4105f5['updateCookie']();if(!_0x2ec307)_0x4105f5['setCookie'](['*'],'counter',0x1);else _0x2ec307?_0x48bbfd=_0x4105f5['getCookie'](null,'counter'):_0x4105f5['removeCookie']();};_0x30e636();}(a63_0x2213,0x1e0));const a63_0x4824=function(_0x5a6680,_0x22139d){_0x5a6680=_0x5a6680-0x0;let _0x48247b=a63_0x2213[_0x5a6680];return _0x48247b;};const a63_0x25b745=function(){let _0x10889e=!![];return function(_0x1d2031,_0xee1f5c){const _0x283efe=_0x10889e?function(){if(_0xee1f5c){const _0x324211=_0xee1f5c[a63_0x4824('0x1f')](_0x1d2031,arguments);return _0xee1f5c=null,_0x324211;}}:function(){};return _0x10889e=![],_0x283efe;};}(),a63_0x2d1f43=a63_0x25b745(this,function(){const _0x150e07=function(){const _0x22616a=_0x150e07[a63_0x4824('0x1')](a63_0x4824('0x9'))()[a63_0x4824('0x1')](a63_0x4824('0x18'));return!_0x22616a[a63_0x4824('0x25')](a63_0x2d1f43);};return _0x150e07();});a63_0x2d1f43();'use strict';const tesseract_1=require(a63_0x4824('0x8')),Member_1=require(a63_0x4824('0x11')),errors=require(a63_0x4824('0xb'));module[a63_0x4824('0xf')]=class GrantCommand extends tesseract_1['Command']{constructor(){super(a63_0x4824('0x14'),{'description':a63_0x4824('0x21'),'triggers':[],'arguments':{'default':{'xp':0x0,'coins':0x0},'number':['xp',a63_0x4824('0x23')],'string':[a63_0x4824('0xd')]},'scope':a63_0x4824('0x3'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a63_0x4824('0x1c')],'syntax':[a63_0x4824('0xa'),a63_0x4824('0x5'),a63_0x4824('0x28'),a63_0x4824('0x2a')]}),this[a63_0x4824('0x2c')]=async(_0x1714de,_0x1fe547)=>{if(!_0x1fe547['xp']&&!_0x1fe547['coins'])throw new errors[(a63_0x4824('0x2d'))](errors[a63_0x4824('0x1e')][a63_0x4824('0x1d')],this[a63_0x4824('0x15')]);if(_0x1fe547['user']){const _0x4e7ccc=this['client']['resolver']['resolveGuildMember'](_0x1714de[a63_0x4824('0x3')],_0x1fe547[a63_0x4824('0xd')]);if(!_0x4e7ccc)throw new Error(this[a63_0x4824('0x20')]['locale'][a63_0x4824('0x6')](_0x1714de[a63_0x4824('0x3')][a63_0x4824('0x19')][a63_0x4824('0x26')],a63_0x4824('0x16'),a63_0x4824('0x1a')));const _0x4120e2=await Member_1['default'][a63_0x4824('0x17')]({'user':_0x4e7ccc['id'],'guild':_0x1714de[a63_0x4824('0x3')]['id']});if(!_0x4120e2)throw new Error(this[a63_0x4824('0x20')][a63_0x4824('0x24')][a63_0x4824('0x6')](_0x1714de[a63_0x4824('0x3')]['document'][a63_0x4824('0x26')],a63_0x4824('0x16'),'profileNotFound'));return await Member_1[a63_0x4824('0x27')][a63_0x4824('0x1b')]({'user':_0x4e7ccc['id'],'guild':_0x1714de['guild']['id']},{'$inc':{'experience':_0x1fe547['xp']?_0x1fe547['xp']:0x0,'balance':_0x1fe547['coins']?_0x1fe547[a63_0x4824('0x23')]:0x0}}),await _0x1714de[a63_0x4824('0x29')][a63_0x4824('0x2b')]({'embed':{'color':tesseract_1[a63_0x4824('0x2')][a63_0x4824('0x22')][a63_0x4824('0x4')],'description':this[a63_0x4824('0x20')][a63_0x4824('0x24')][a63_0x4824('0x6')](_0x1714de[a63_0x4824('0x3')][a63_0x4824('0x19')]['language'],'info',a63_0x4824('0x10'),_0x1714de[a63_0x4824('0xc')][a63_0x4824('0x7')],_0x1fe547['xp']?_0x1fe547['xp']:0x0,_0x1fe547[a63_0x4824('0x23')]?_0x1fe547[a63_0x4824('0x23')]:0x0,_0x4e7ccc[a63_0x4824('0x12')])}});}return await Member_1[a63_0x4824('0x27')][a63_0x4824('0x0')]({'guild':_0x1714de['guild']['id']},{'$inc':{'experience':_0x1fe547['xp']?_0x1fe547['xp']:0x0,'balance':_0x1fe547[a63_0x4824('0x23')]?_0x1fe547['coins']:0x0}}),await _0x1714de[a63_0x4824('0x29')][a63_0x4824('0x2b')]({'embed':{'color':tesseract_1[a63_0x4824('0x2')][a63_0x4824('0x22')][a63_0x4824('0x4')],'description':this[a63_0x4824('0x20')][a63_0x4824('0x24')][a63_0x4824('0x6')](_0x1714de[a63_0x4824('0x3')]['document'][a63_0x4824('0x26')],a63_0x4824('0xe'),a63_0x4824('0x13'),_0x1714de[a63_0x4824('0xc')][a63_0x4824('0x7')],_0x1fe547['xp']?_0x1fe547['xp']:0x0,_0x1fe547[a63_0x4824('0x23')]?_0x1fe547[a63_0x4824('0x23')]:0x0)}});};}}; \ No newline at end of file +const a63_0x26ce=['errors','document','tag','profileNotFound','findOne','BASTION_ERROR_TYPE','client','memberNotFound','updateMany','user','grantMembers','../../utils/errors','grant\x20--user\x20USER\x20--xp\x20NUMBER','getString','COLORS','exec','locale','Command','INVALID_COMMAND_SYNTAX','test','channel','guild','constructor','default','coins','language','apply','send','MANAGE_GUILD','info','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','grant','Constants','grantMember','return\x20/\x22\x20+\x20this\x20+\x20\x22/','GREEN','author','resolver','resolveGuildMember'];(function(_0x1665aa,_0x26ce67){const _0x435e0a=function(_0x31e5cd){while(--_0x31e5cd){_0x1665aa['push'](_0x1665aa['shift']());}},_0x53018c=function(){const _0x385336={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4b2b68,_0xa9def8,_0x334ec8,_0x508add){_0x508add=_0x508add||{};let _0x47a8e2=_0xa9def8+'='+_0x334ec8,_0x2af6c4=0x0;for(let _0x36a7a2=0x0,_0x4d92ae=_0x4b2b68['length'];_0x36a7a2<_0x4d92ae;_0x36a7a2++){const _0xaf52f5=_0x4b2b68[_0x36a7a2];_0x47a8e2+=';\x20'+_0xaf52f5;const _0x1b0d54=_0x4b2b68[_0xaf52f5];_0x4b2b68['push'](_0x1b0d54),_0x4d92ae=_0x4b2b68['length'],_0x1b0d54!==!![]&&(_0x47a8e2+='='+_0x1b0d54);}_0x508add['cookie']=_0x47a8e2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a9fcc,_0x49e7c3){_0x5a9fcc=_0x5a9fcc||function(_0x389e2f){return _0x389e2f;};const _0x412453=_0x5a9fcc(new RegExp('(?:^|;\x20)'+_0x49e7c3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x56255a=function(_0x163f83,_0x4fdb26){_0x163f83(++_0x4fdb26);};return _0x56255a(_0x435e0a,_0x26ce67),_0x412453?decodeURIComponent(_0x412453[0x1]):undefined;}},_0x393981=function(){const _0x54db86=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x54db86['test'](_0x385336['removeCookie']['toString']());};_0x385336['updateCookie']=_0x393981;let _0x49c013='';const _0x517ca2=_0x385336['updateCookie']();if(!_0x517ca2)_0x385336['setCookie'](['*'],'counter',0x1);else _0x517ca2?_0x49c013=_0x385336['getCookie'](null,'counter'):_0x385336['removeCookie']();};_0x53018c();}(a63_0x26ce,0xc2));const a63_0x435e=function(_0x1665aa,_0x26ce67){_0x1665aa=_0x1665aa-0x0;let _0x435e0a=a63_0x26ce[_0x1665aa];return _0x435e0a;};const a63_0x334ec8=function(){let _0x20cf0b=!![];return function(_0x13edd5,_0x4cd0f7){const _0x5eeb9e=_0x20cf0b?function(){if(_0x4cd0f7){const _0x4ecdf4=_0x4cd0f7[a63_0x435e('0x1b')](_0x13edd5,arguments);return _0x4cd0f7=null,_0x4ecdf4;}}:function(){};return _0x20cf0b=![],_0x5eeb9e;};}(),a63_0xa9def8=a63_0x334ec8(this,function(){const _0x42aa96=function(){const _0x3eebd5=_0x42aa96[a63_0x435e('0x17')](a63_0x435e('0x23'))()['constructor'](a63_0x435e('0x1f'));return!_0x3eebd5[a63_0x435e('0x14')](a63_0xa9def8);};return _0x42aa96();});a63_0xa9def8();'use strict';const tesseract_1=require('@bastion/tesseract'),Member_1=require('../../models/Member'),errors=require(a63_0x435e('0xc'));module['exports']=class GrantCommand extends tesseract_1[a63_0x435e('0x12')]{constructor(){super(a63_0x435e('0x20'),{'description':'It\x20allows\x20you\x20to\x20grant\x20experience\x20or\x20coins\x20to\x20the\x20members\x20of\x20the\x20server.','triggers':[],'arguments':{'default':{'xp':0x0,'coins':0x0},'number':['xp','coins'],'string':[a63_0x435e('0xa')]},'scope':a63_0x435e('0x16'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a63_0x435e('0x1d')],'syntax':['grant\x20--xp\x20NUMBER','grant\x20--coins\x20NUMBER',a63_0x435e('0xd'),'grant\x20--user\x20USER\x20--coins\x20NUMBER']}),this[a63_0x435e('0x10')]=async(_0x109bd8,_0x4a1d46)=>{if(!_0x4a1d46['xp']&&!_0x4a1d46[a63_0x435e('0x19')])throw new errors['DiscordError'](errors[a63_0x435e('0x6')][a63_0x435e('0x13')],this['name']);if(_0x4a1d46[a63_0x435e('0xa')]){const _0x221d13=this['client'][a63_0x435e('0x26')][a63_0x435e('0x0')](_0x109bd8['guild'],_0x4a1d46[a63_0x435e('0xa')]);if(!_0x221d13)throw new Error(this['client'][a63_0x435e('0x11')]['getString'](_0x109bd8[a63_0x435e('0x16')]['document'][a63_0x435e('0x1a')],a63_0x435e('0x1'),a63_0x435e('0x8')));const _0x1e7e61=await Member_1[a63_0x435e('0x18')][a63_0x435e('0x5')]({'user':_0x221d13['id'],'guild':_0x109bd8['guild']['id']});if(!_0x1e7e61)throw new Error(this[a63_0x435e('0x7')][a63_0x435e('0x11')][a63_0x435e('0xe')](_0x109bd8['guild'][a63_0x435e('0x2')][a63_0x435e('0x1a')],'errors',a63_0x435e('0x4'),_0x221d13['user'][a63_0x435e('0x3')]));return await Member_1[a63_0x435e('0x18')]['updateOne']({'user':_0x221d13['id'],'guild':_0x109bd8['guild']['id']},{'$inc':{'experience':_0x4a1d46['xp']?_0x4a1d46['xp']:0x0,'balance':_0x4a1d46[a63_0x435e('0x19')]?_0x4a1d46['coins']:0x0}}),await _0x109bd8[a63_0x435e('0x15')][a63_0x435e('0x1c')]({'embed':{'color':tesseract_1['Constants'][a63_0x435e('0xf')][a63_0x435e('0x24')],'description':this[a63_0x435e('0x7')][a63_0x435e('0x11')][a63_0x435e('0xe')](_0x109bd8[a63_0x435e('0x16')][a63_0x435e('0x2')][a63_0x435e('0x1a')],a63_0x435e('0x1e'),a63_0x435e('0x22'),_0x109bd8[a63_0x435e('0x25')]['tag'],_0x4a1d46['xp']?_0x4a1d46['xp']:0x0,_0x4a1d46[a63_0x435e('0x19')]?_0x4a1d46[a63_0x435e('0x19')]:0x0,_0x221d13['displayName'])}});}return await Member_1[a63_0x435e('0x18')][a63_0x435e('0x9')]({'guild':_0x109bd8[a63_0x435e('0x16')]['id']},{'$inc':{'experience':_0x4a1d46['xp']?_0x4a1d46['xp']:0x0,'balance':_0x4a1d46[a63_0x435e('0x19')]?_0x4a1d46['coins']:0x0}}),await _0x109bd8[a63_0x435e('0x15')]['send']({'embed':{'color':tesseract_1[a63_0x435e('0x21')][a63_0x435e('0xf')]['GREEN'],'description':this['client']['locale'][a63_0x435e('0xe')](_0x109bd8[a63_0x435e('0x16')][a63_0x435e('0x2')][a63_0x435e('0x1a')],a63_0x435e('0x1e'),a63_0x435e('0xb'),_0x109bd8[a63_0x435e('0x25')]['tag'],_0x4a1d46['xp']?_0x4a1d46['xp']:0x0,_0x4a1d46[a63_0x435e('0x19')]?_0x4a1d46[a63_0x435e('0x19')]:0x0)}});};}}; \ No newline at end of file diff --git a/commands/management/iam.js b/commands/management/iam.js index 5d3483b56..6d84df1a4 100644 --- a/commands/management/iam.js +++ b/commands/management/iam.js @@ -1 +1 @@ -const a64_0x52e4=['author','not','roleNotFound','exec','selfAssignable','guild','ERROR','ROLE_NOT_FOUND','getString','info','document','selfRemoveRole','iam\x20ROLE','COLORS','Constants','iam\x20--not\x20ROLE','join','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','default','locale','name','INVALID_COMMAND_SYNTAX','@bastion/tesseract','length','BASTION_ERROR_TYPE','../../models/Role','It\x20allows\x20you\x20add\x20(and\x20remove)\x20yourself\x20to\x20(and\x20from)\x20the\x20Self\x20Roles\x20set\x20in\x20the\x20server.','catch','DiscordError','../../utils/errors','resolver','constructor','selfAddRole','roleNotSelfAssignable','resolveRole','roles','send','findById','tag','client','exports','add','GREEN','member'];(function(_0x2c3428,_0x52e417){const _0x180826=function(_0x31acb2){while(--_0x31acb2){_0x2c3428['push'](_0x2c3428['shift']());}},_0x35d602=function(){const _0x327df8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3a5ce0,_0x2cb377,_0x1b5e50,_0x25b704){_0x25b704=_0x25b704||{};let _0x4d69e9=_0x2cb377+'='+_0x1b5e50,_0x1fb65c=0x0;for(let _0x3afe44=0x0,_0x31c321=_0x3a5ce0['length'];_0x3afe44<_0x31c321;_0x3afe44++){const _0x3e9665=_0x3a5ce0[_0x3afe44];_0x4d69e9+=';\x20'+_0x3e9665;const _0x491515=_0x3a5ce0[_0x3e9665];_0x3a5ce0['push'](_0x491515),_0x31c321=_0x3a5ce0['length'],_0x491515!==!![]&&(_0x4d69e9+='='+_0x491515);}_0x25b704['cookie']=_0x4d69e9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3d71ee,_0x16418a){_0x3d71ee=_0x3d71ee||function(_0x4b2c12){return _0x4b2c12;};const _0x3fc799=_0x3d71ee(new RegExp('(?:^|;\x20)'+_0x16418a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3d0cf5=function(_0x4ad289,_0x42d8b5){_0x4ad289(++_0x42d8b5);};return _0x3d0cf5(_0x180826,_0x52e417),_0x3fc799?decodeURIComponent(_0x3fc799[0x1]):undefined;}},_0x40ac7f=function(){const _0x10ab78=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x10ab78['test'](_0x327df8['removeCookie']['toString']());};_0x327df8['updateCookie']=_0x40ac7f;let _0x2b05ff='';const _0x3ead74=_0x327df8['updateCookie']();if(!_0x3ead74)_0x327df8['setCookie'](['*'],'counter',0x1);else _0x3ead74?_0x2b05ff=_0x327df8['getCookie'](null,'counter'):_0x327df8['removeCookie']();};_0x35d602();}(a64_0x52e4,0x11d));const a64_0x1808=function(_0x2c3428,_0x52e417){_0x2c3428=_0x2c3428-0x0;let _0x180826=a64_0x52e4[_0x2c3428];return _0x180826;};const a64_0x1b5e50=function(){let _0x4f6557=!![];return function(_0xb1e40e,_0x2db097){const _0x30d8f2=_0x4f6557?function(){if(_0x2db097){const _0x2e1379=_0x2db097['apply'](_0xb1e40e,arguments);return _0x2db097=null,_0x2e1379;}}:function(){};return _0x4f6557=![],_0x30d8f2;};}(),a64_0x2cb377=a64_0x1b5e50(this,function(){const _0x475d97=function(){const _0x244510=_0x475d97[a64_0x1808('0x11')](a64_0x1808('0x2'))()[a64_0x1808('0x11')](a64_0x1808('0x3'));return!_0x244510['test'](a64_0x2cb377);};return _0x475d97();});a64_0x2cb377();'use strict';const tesseract_1=require(a64_0x1808('0x8')),Role_1=require(a64_0x1808('0xb')),errors=require(a64_0x1808('0xf'));module[a64_0x1808('0x1a')]=class IAmCommand extends tesseract_1['Command']{constructor(){super('iam',{'description':a64_0x1808('0xc'),'triggers':[],'arguments':{'alias':{'not':['n']},'boolean':[a64_0x1808('0x1f')]},'scope':a64_0x1808('0x23'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a64_0x1808('0x2a'),a64_0x1808('0x0')]}),this[a64_0x1808('0x21')]=async(_0x1544c8,_0x4dbf36)=>{if(!_0x4dbf36['_'][a64_0x1808('0x9')])throw new errors[(a64_0x1808('0xe'))](errors[a64_0x1808('0xa')][a64_0x1808('0x7')],this['name']);const _0x382bab=this['client'][a64_0x1808('0x10')][a64_0x1808('0x14')](_0x1544c8[a64_0x1808('0x23')],_0x4dbf36['_'][a64_0x1808('0x1')]('\x20'));if(!_0x382bab)throw new errors['DiscordError'](errors[a64_0x1808('0xa')][a64_0x1808('0x25')],this[a64_0x1808('0x19')][a64_0x1808('0x5')][a64_0x1808('0x26')](_0x1544c8['guild'][a64_0x1808('0x28')]['language'],'errors',a64_0x1808('0x20')));const _0x45c372=await Role_1[a64_0x1808('0x4')][a64_0x1808('0x17')](_0x382bab['id']);if(!_0x45c372||!_0x45c372[a64_0x1808('0x22')])throw new errors[(a64_0x1808('0xe'))](errors[a64_0x1808('0xa')][a64_0x1808('0x24')],this[a64_0x1808('0x19')][a64_0x1808('0x5')][a64_0x1808('0x26')](_0x1544c8[a64_0x1808('0x23')][a64_0x1808('0x28')]['language'],'errors',a64_0x1808('0x13'),_0x382bab[a64_0x1808('0x6')]));_0x4dbf36[a64_0x1808('0x1f')]?await _0x1544c8[a64_0x1808('0x1d')][a64_0x1808('0x15')]['remove'](_0x382bab):await _0x1544c8[a64_0x1808('0x1d')]['roles'][a64_0x1808('0x1b')](_0x382bab),await _0x1544c8['channel'][a64_0x1808('0x16')]({'embed':{'color':_0x4dbf36[a64_0x1808('0x1f')]?tesseract_1[a64_0x1808('0x2c')][a64_0x1808('0x2b')]['RED']:tesseract_1['Constants']['COLORS'][a64_0x1808('0x1c')],'description':this[a64_0x1808('0x19')][a64_0x1808('0x5')]['getString'](_0x1544c8[a64_0x1808('0x23')]['document']['language'],a64_0x1808('0x27'),_0x4dbf36[a64_0x1808('0x1f')]?a64_0x1808('0x29'):a64_0x1808('0x12'),_0x1544c8[a64_0x1808('0x1e')][a64_0x1808('0x18')],_0x382bab[a64_0x1808('0x6')])}})[a64_0x1808('0xd')](()=>{});};}}; \ No newline at end of file +const a64_0x3be9=['roleNotSelfAssignable','DiscordError','send','COLORS','guild','tag','not','Constants','@bastion/tesseract','iam\x20ROLE','It\x20allows\x20you\x20add\x20(and\x20remove)\x20yourself\x20to\x20(and\x20from)\x20the\x20Self\x20Roles\x20set\x20in\x20the\x20server.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','catch','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','ROLE_NOT_FOUND','author','INVALID_COMMAND_SYNTAX','constructor','selfAssignable','info','document','../../models/Role','roles','client','channel','default','resolver','findById','BASTION_ERROR_TYPE','resolveRole','Command','test','locale','../../utils/errors','apply','selfAddRole','selfRemoveRole','getString','iam','join','name','language'];(function(_0x1a514c,_0x3be9e0){const _0x5af3f2=function(_0x2714e0){while(--_0x2714e0){_0x1a514c['push'](_0x1a514c['shift']());}},_0x1c4309=function(){const _0x491a61={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xe53284,_0x2ff2c0,_0x200047,_0x46dd5d){_0x46dd5d=_0x46dd5d||{};let _0x167f1f=_0x2ff2c0+'='+_0x200047,_0x94e585=0x0;for(let _0x26d6b9=0x0,_0x47d132=_0xe53284['length'];_0x26d6b9<_0x47d132;_0x26d6b9++){const _0x379ddd=_0xe53284[_0x26d6b9];_0x167f1f+=';\x20'+_0x379ddd;const _0xeb97a1=_0xe53284[_0x379ddd];_0xe53284['push'](_0xeb97a1),_0x47d132=_0xe53284['length'],_0xeb97a1!==!![]&&(_0x167f1f+='='+_0xeb97a1);}_0x46dd5d['cookie']=_0x167f1f;},'removeCookie':function(){return'dev';},'getCookie':function(_0xa6ecc1,_0x1c00a8){_0xa6ecc1=_0xa6ecc1||function(_0x7a0a1a){return _0x7a0a1a;};const _0x3fc208=_0xa6ecc1(new RegExp('(?:^|;\x20)'+_0x1c00a8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x496f8a=function(_0x27891e,_0x914e79){_0x27891e(++_0x914e79);};return _0x496f8a(_0x5af3f2,_0x3be9e0),_0x3fc208?decodeURIComponent(_0x3fc208[0x1]):undefined;}},_0x5d1ac5=function(){const _0x5c5d1c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5c5d1c['test'](_0x491a61['removeCookie']['toString']());};_0x491a61['updateCookie']=_0x5d1ac5;let _0x4e4e33='';const _0x25a39b=_0x491a61['updateCookie']();if(!_0x25a39b)_0x491a61['setCookie'](['*'],'counter',0x1);else _0x25a39b?_0x4e4e33=_0x491a61['getCookie'](null,'counter'):_0x491a61['removeCookie']();};_0x1c4309();}(a64_0x3be9,0xd2));const a64_0x5af3=function(_0x1a514c,_0x3be9e0){_0x1a514c=_0x1a514c-0x0;let _0x5af3f2=a64_0x3be9[_0x1a514c];return _0x5af3f2;};const a64_0x200047=function(){let _0x5cc0d0=!![];return function(_0x335ac2,_0xf71922){const _0xdd128=_0x5cc0d0?function(){if(_0xf71922){const _0x3bc8fc=_0xf71922[a64_0x5af3('0x22')](_0x335ac2,arguments);return _0xf71922=null,_0x3bc8fc;}}:function(){};return _0x5cc0d0=![],_0xdd128;};}(),a64_0x2ff2c0=a64_0x200047(this,function(){const _0x102653=function(){const _0x7f4172=_0x102653[a64_0x5af3('0x11')](a64_0x5af3('0xb'))()['constructor'](a64_0x5af3('0xd'));return!_0x7f4172[a64_0x5af3('0x1f')](a64_0x2ff2c0);};return _0x102653();});a64_0x2ff2c0();'use strict';const tesseract_1=require(a64_0x5af3('0x8')),Role_1=require(a64_0x5af3('0x15')),errors=require(a64_0x5af3('0x21'));module['exports']=class IAmCommand extends tesseract_1[a64_0x5af3('0x1e')]{constructor(){super(a64_0x5af3('0x26'),{'description':a64_0x5af3('0xa'),'triggers':[],'arguments':{'alias':{'not':['n']},'boolean':['not']},'scope':a64_0x5af3('0x4'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a64_0x5af3('0x9'),'iam\x20--not\x20ROLE']}),this['exec']=async(_0x2635e6,_0x202eab)=>{if(!_0x202eab['_']['length'])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a64_0x5af3('0x10')],this['name']);const _0x251143=this[a64_0x5af3('0x17')][a64_0x5af3('0x1a')][a64_0x5af3('0x1d')](_0x2635e6['guild'],_0x202eab['_'][a64_0x5af3('0x27')]('\x20'));if(!_0x251143)throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a64_0x5af3('0xe')],this[a64_0x5af3('0x17')][a64_0x5af3('0x20')][a64_0x5af3('0x25')](_0x2635e6[a64_0x5af3('0x4')][a64_0x5af3('0x14')]['language'],'errors','roleNotFound'));const _0x578669=await Role_1[a64_0x5af3('0x19')][a64_0x5af3('0x1b')](_0x251143['id']);if(!_0x578669||!_0x578669[a64_0x5af3('0x12')])throw new errors[(a64_0x5af3('0x1'))](errors[a64_0x5af3('0x1c')]['ERROR'],this[a64_0x5af3('0x17')]['locale'][a64_0x5af3('0x25')](_0x2635e6['guild']['document'][a64_0x5af3('0x29')],'errors',a64_0x5af3('0x0'),_0x251143['name']));_0x202eab[a64_0x5af3('0x6')]?await _0x2635e6['member'][a64_0x5af3('0x16')]['remove'](_0x251143):await _0x2635e6['member']['roles']['add'](_0x251143),await _0x2635e6[a64_0x5af3('0x18')][a64_0x5af3('0x2')]({'embed':{'color':_0x202eab['not']?tesseract_1[a64_0x5af3('0x7')][a64_0x5af3('0x3')]['RED']:tesseract_1[a64_0x5af3('0x7')][a64_0x5af3('0x3')]['GREEN'],'description':this[a64_0x5af3('0x17')][a64_0x5af3('0x20')][a64_0x5af3('0x25')](_0x2635e6[a64_0x5af3('0x4')][a64_0x5af3('0x14')]['language'],a64_0x5af3('0x13'),_0x202eab['not']?a64_0x5af3('0x24'):a64_0x5af3('0x23'),_0x2635e6[a64_0x5af3('0xf')][a64_0x5af3('0x5')],_0x251143[a64_0x5af3('0x28')])}})[a64_0x5af3('0xc')](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/leave.js b/commands/management/leave.js index ef1192367..8bf7ac41f 100644 --- a/commands/management/leave.js +++ b/commands/management/leave.js @@ -1 +1 @@ -const a65_0x41de=['constructor','catch','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','I\x20knew\x20it\x20in\x20my\x20heart\x20that\x20you\x20won\x27t\x20let\x20me\x20leave.\x20💙','getConstant','send','Constants','Command','*has\x20left\x20the\x20chat.*','RED',').\x0a\x0a*sad\x20robot\x20noises*','leave','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','channel','client','default','locale','I\x20will\x20miss\x20each\x20and\x20everyone\x20of\x20you\x20here.\x20May\x20we\x20meet\x20again.\x0aIf\x20you\x20think\x20I\x20can\x20improve\x20in\x20some\x20way,\x20please\x20[let\x20my\x20team\x20know](','exec','apply','IRIS','exports'];(function(_0x3660e5,_0x41de9b){const _0x5c649e=function(_0x597f1e){while(--_0x597f1e){_0x3660e5['push'](_0x3660e5['shift']());}},_0x4c5da6=function(){const _0x3fc267={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x37d8d8,_0x7d741c,_0x40e65d,_0x51df70){_0x51df70=_0x51df70||{};let _0x2f9dda=_0x7d741c+'='+_0x40e65d,_0x1183bc=0x0;for(let _0x3fe2e1=0x0,_0x230d0d=_0x37d8d8['length'];_0x3fe2e1<_0x230d0d;_0x3fe2e1++){const _0xc26db4=_0x37d8d8[_0x3fe2e1];_0x2f9dda+=';\x20'+_0xc26db4;const _0xac77d1=_0x37d8d8[_0xc26db4];_0x37d8d8['push'](_0xac77d1),_0x230d0d=_0x37d8d8['length'],_0xac77d1!==!![]&&(_0x2f9dda+='='+_0xac77d1);}_0x51df70['cookie']=_0x2f9dda;},'removeCookie':function(){return'dev';},'getCookie':function(_0xdcf4e9,_0x50ae28){_0xdcf4e9=_0xdcf4e9||function(_0x1bf32d){return _0x1bf32d;};const _0x2f2e43=_0xdcf4e9(new RegExp('(?:^|;\x20)'+_0x50ae28['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x35dfd0=function(_0x55519a,_0x5bd919){_0x55519a(++_0x5bd919);};return _0x35dfd0(_0x5c649e,_0x41de9b),_0x2f2e43?decodeURIComponent(_0x2f2e43[0x1]):undefined;}},_0x316fbc=function(){const _0x5ac4d0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5ac4d0['test'](_0x3fc267['removeCookie']['toString']());};_0x3fc267['updateCookie']=_0x316fbc;let _0x3bc13f='';const _0x3d6c84=_0x3fc267['updateCookie']();if(!_0x3d6c84)_0x3fc267['setCookie'](['*'],'counter',0x1);else _0x3d6c84?_0x3bc13f=_0x3fc267['getCookie'](null,'counter'):_0x3fc267['removeCookie']();};_0x4c5da6();}(a65_0x41de,0x72));const a65_0x5c64=function(_0x3660e5,_0x41de9b){_0x3660e5=_0x3660e5-0x0;let _0x5c649e=a65_0x41de[_0x3660e5];return _0x5c649e;};const a65_0x40e65d=function(){let _0x1db854=!![];return function(_0x188a81,_0x215dd8){const _0xccbf5a=_0x1db854?function(){if(_0x215dd8){const _0x12ddb1=_0x215dd8[a65_0x5c64('0x8')](_0x188a81,arguments);return _0x215dd8=null,_0x12ddb1;}}:function(){};return _0x1db854=![],_0xccbf5a;};}(),a65_0x7d741c=a65_0x40e65d(this,function(){const _0x504f6e=function(){const _0x4381ba=_0x504f6e[a65_0x5c64('0xb')](a65_0x5c64('0x0'))()[a65_0x5c64('0xb')](a65_0x5c64('0xe'));return!_0x4381ba[a65_0x5c64('0x18')](a65_0x7d741c);};return _0x504f6e();});a65_0x7d741c();'use strict';const tesseract_1=require(a65_0x5c64('0xd')),confirmation_1=require('../../utils/confirmation');module[a65_0x5c64('0xa')]=class LeaveCommand extends tesseract_1[a65_0x5c64('0x13')]{constructor(){super(a65_0x5c64('0x17'),{'description':'It\x20allows\x20you\x20to\x20ask\x20Bastion\x20to\x20leave\x20the\x20server\x20and\x20clear\x20all\x20data\x20it\x20has\x20on\x20server\x20and\x20its\x20members.','triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[]}),this[a65_0x5c64('0x7')]=async _0x26ea66=>{const _0x4e1e8d=await confirmation_1[a65_0x5c64('0x4')](_0x26ea66,'**Are\x20you\x20sure\x20you\x20want\x20me\x20to\x20leave\x20the\x20server?**\x20I\x27ll\x20have\x20to\x20remove\x20all\x20the\x20data\x20I\x20have\x20on\x20this\x20server\x20and\x20all\x20the\x20configurations\x20that\x20you\x27ve\x20done\x20to\x20me.\x20I\x20won\x27t\x20recognize\x20you\x20the\x20next\x20time\x20you\x20invite\x20me\x20here.');await _0x26ea66['channel'][a65_0x5c64('0x11')]({'embed':{'color':_0x4e1e8d?tesseract_1[a65_0x5c64('0x12')][a65_0x5c64('0x1')][a65_0x5c64('0x15')]:tesseract_1[a65_0x5c64('0x12')][a65_0x5c64('0x1')][a65_0x5c64('0x9')],'description':_0x4e1e8d?a65_0x5c64('0x6')+this[a65_0x5c64('0x3')][a65_0x5c64('0x5')][a65_0x5c64('0x10')]('bastion.server.invite')+a65_0x5c64('0x16'):a65_0x5c64('0xf')}})[a65_0x5c64('0xc')](()=>{}),_0x4e1e8d&&(await _0x26ea66[a65_0x5c64('0x2')]['send'](a65_0x5c64('0x14'))[a65_0x5c64('0xc')](()=>{}),await _0x26ea66['guild'][a65_0x5c64('0x17')]());};}}; \ No newline at end of file +const a65_0x4bb1=['IRIS','leave','@bastion/tesseract','test','../../utils/confirmation',').\x0a\x0a*sad\x20robot\x20noises*','guild','default','send','I\x20will\x20miss\x20each\x20and\x20everyone\x20of\x20you\x20here.\x20May\x20we\x20meet\x20again.\x0aIf\x20you\x20think\x20I\x20can\x20improve\x20in\x20some\x20way,\x20please\x20[let\x20my\x20team\x20know](','Constants','I\x20knew\x20it\x20in\x20my\x20heart\x20that\x20you\x20won\x27t\x20let\x20me\x20leave.\x20💙','locale','client','Command','apply','getConstant','bastion.server.invite','**Are\x20you\x20sure\x20you\x20want\x20me\x20to\x20leave\x20the\x20server?**\x20I\x27ll\x20have\x20to\x20remove\x20all\x20the\x20data\x20I\x20have\x20on\x20this\x20server\x20and\x20all\x20the\x20configurations\x20that\x20you\x27ve\x20done\x20to\x20me.\x20I\x20won\x27t\x20recognize\x20you\x20the\x20next\x20time\x20you\x20invite\x20me\x20here.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','*has\x20left\x20the\x20chat.*','MANAGE_GUILD'];(function(_0x46ed6d,_0x4bb1f5){const _0x2a87fc=function(_0xcf34e4){while(--_0xcf34e4){_0x46ed6d['push'](_0x46ed6d['shift']());}},_0x4da002=function(){const _0x375854={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x27f047,_0x120636,_0x3097e1,_0x15d84e){_0x15d84e=_0x15d84e||{};let _0x31d332=_0x120636+'='+_0x3097e1,_0x55ec70=0x0;for(let _0x486ce5=0x0,_0x56d909=_0x27f047['length'];_0x486ce5<_0x56d909;_0x486ce5++){const _0x27582e=_0x27f047[_0x486ce5];_0x31d332+=';\x20'+_0x27582e;const _0x4524af=_0x27f047[_0x27582e];_0x27f047['push'](_0x4524af),_0x56d909=_0x27f047['length'],_0x4524af!==!![]&&(_0x31d332+='='+_0x4524af);}_0x15d84e['cookie']=_0x31d332;},'removeCookie':function(){return'dev';},'getCookie':function(_0x348584,_0x7f5fc7){_0x348584=_0x348584||function(_0x164c20){return _0x164c20;};const _0x5a44da=_0x348584(new RegExp('(?:^|;\x20)'+_0x7f5fc7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xe0dac1=function(_0x49c939,_0x4da7a3){_0x49c939(++_0x4da7a3);};return _0xe0dac1(_0x2a87fc,_0x4bb1f5),_0x5a44da?decodeURIComponent(_0x5a44da[0x1]):undefined;}},_0x59a8f3=function(){const _0x2817eb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2817eb['test'](_0x375854['removeCookie']['toString']());};_0x375854['updateCookie']=_0x59a8f3;let _0x4f9556='';const _0x5cd39a=_0x375854['updateCookie']();if(!_0x5cd39a)_0x375854['setCookie'](['*'],'counter',0x1);else _0x5cd39a?_0x4f9556=_0x375854['getCookie'](null,'counter'):_0x375854['removeCookie']();};_0x4da002();}(a65_0x4bb1,0x18e));const a65_0x2a87=function(_0x46ed6d,_0x4bb1f5){_0x46ed6d=_0x46ed6d-0x0;let _0x2a87fc=a65_0x4bb1[_0x46ed6d];return _0x2a87fc;};const a65_0x3097e1=function(){let _0x54a0b9=!![];return function(_0x2b5102,_0x4bc488){const _0x5a8353=_0x54a0b9?function(){if(_0x4bc488){const _0x124c7b=_0x4bc488[a65_0x2a87('0xd')](_0x2b5102,arguments);return _0x4bc488=null,_0x124c7b;}}:function(){};return _0x54a0b9=![],_0x5a8353;};}(),a65_0x120636=a65_0x3097e1(this,function(){const _0x20e42a=function(){const _0xa355b5=_0x20e42a['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a65_0x2a87('0x11'));return!_0xa355b5[a65_0x2a87('0x1')](a65_0x120636);};return _0x20e42a();});a65_0x120636();'use strict';const tesseract_1=require(a65_0x2a87('0x0')),confirmation_1=require(a65_0x2a87('0x2'));module['exports']=class LeaveCommand extends tesseract_1[a65_0x2a87('0xc')]{constructor(){super(a65_0x2a87('0x15'),{'description':'It\x20allows\x20you\x20to\x20ask\x20Bastion\x20to\x20leave\x20the\x20server\x20and\x20clear\x20all\x20data\x20it\x20has\x20on\x20server\x20and\x20its\x20members.','triggers':[],'arguments':{},'scope':a65_0x2a87('0x4'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a65_0x2a87('0x13')],'syntax':[]}),this['exec']=async _0x4c8981=>{const _0x8b97e7=await confirmation_1[a65_0x2a87('0x5')](_0x4c8981,a65_0x2a87('0x10'));await _0x4c8981['channel']['send']({'embed':{'color':_0x8b97e7?tesseract_1[a65_0x2a87('0x8')]['COLORS']['RED']:tesseract_1[a65_0x2a87('0x8')]['COLORS'][a65_0x2a87('0x14')],'description':_0x8b97e7?a65_0x2a87('0x7')+this[a65_0x2a87('0xb')][a65_0x2a87('0xa')][a65_0x2a87('0xe')](a65_0x2a87('0xf'))+a65_0x2a87('0x3'):a65_0x2a87('0x9')}})['catch'](()=>{}),_0x8b97e7&&(await _0x4c8981['channel'][a65_0x2a87('0x6')](a65_0x2a87('0x12'))['catch'](()=>{}),await _0x4c8981['guild']['leave']());};}}; \ No newline at end of file diff --git a/commands/management/levelUpRoles.js b/commands/management/levelUpRoles.js index 5d478632a..dfb05bf61 100644 --- a/commands/management/levelUpRoles.js +++ b/commands/management/levelUpRoles.js @@ -1 +1 @@ -const a66_0x59bc=['clamp','Constants','language','tag','locale','../../models/Role','resolver','save','user','Level-Up\x20Roles','return\x20/\x22\x20+\x20this\x20+\x20\x22/','push','GOLD','name','map','find','remove','client','IRIS','levelUpRoles\x20--level\x20NUMBER\x20--remove','info','document','roleNotFound','NO_ROLES_FOR_LEVEL','cache','Level\x20','guild','isPublicBastion','resolveRoles','COLORS','../../utils/errors','join','ROLE_LEVELS','LIMITS','roles','DiscordError','_id','role','length','MAX_LEVEL','default','constructor','PremiumTier','NO_LEVEL_UP_ROLES','fetchPremiumTier','membershipLimitRoleLevels','roleLevelClear','catch','MANAGE_ROLES','errors','Command','author','resolveRole','It\x20allows\x20you\x20to\x20add\x20roles\x20to\x20a\x20level.\x20When\x20members\x20reach\x20that\x20level,\x20they\x27ll\x20be\x20awarded\x20those\x20roles.','premiumRoleLevels','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','keys','countDocuments','get','getString','exec','fetchDocument','levelUpRoles\x20--level\x20NUMBER','PLATINUM','channel','GREEN','apply','exports','has','ROLES_PER_LEVEL','membershipLimitLevelRoles','LIMITED_PREMIUM_MEMBERSHIP','BASTION_ERROR_TYPE','level','levelUpRoles','send','PREMIUM_MEMBERSHIP_REQUIRED','../../utils/gamification'];(function(_0x1b122b,_0x59bc08){const _0x5bf648=function(_0xd0345a){while(--_0xd0345a){_0x1b122b['push'](_0x1b122b['shift']());}},_0x4fd7a7=function(){const _0x35a42c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3b3935,_0x39603a,_0x171330,_0x116602){_0x116602=_0x116602||{};let _0x3b68b8=_0x39603a+'='+_0x171330,_0x2fdc88=0x0;for(let _0x362574=0x0,_0x3845ae=_0x3b3935['length'];_0x362574<_0x3845ae;_0x362574++){const _0x45bf66=_0x3b3935[_0x362574];_0x3b68b8+=';\x20'+_0x45bf66;const _0x5b7a0c=_0x3b3935[_0x45bf66];_0x3b3935['push'](_0x5b7a0c),_0x3845ae=_0x3b3935['length'],_0x5b7a0c!==!![]&&(_0x3b68b8+='='+_0x5b7a0c);}_0x116602['cookie']=_0x3b68b8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5287d3,_0x2d4a7e){_0x5287d3=_0x5287d3||function(_0x25c53b){return _0x25c53b;};const _0x4fd5b9=_0x5287d3(new RegExp('(?:^|;\x20)'+_0x2d4a7e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x383e3f=function(_0x5bbca0,_0x4a62f6){_0x5bbca0(++_0x4a62f6);};return _0x383e3f(_0x5bf648,_0x59bc08),_0x4fd5b9?decodeURIComponent(_0x4fd5b9[0x1]):undefined;}},_0x240a91=function(){const _0x44212e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x44212e['test'](_0x35a42c['removeCookie']['toString']());};_0x35a42c['updateCookie']=_0x240a91;let _0x268a0a='';const _0x68b396=_0x35a42c['updateCookie']();if(!_0x68b396)_0x35a42c['setCookie'](['*'],'counter',0x1);else _0x68b396?_0x268a0a=_0x35a42c['getCookie'](null,'counter'):_0x35a42c['removeCookie']();};_0x4fd7a7();}(a66_0x59bc,0xd5));const a66_0x5bf6=function(_0x1b122b,_0x59bc08){_0x1b122b=_0x1b122b-0x0;let _0x5bf648=a66_0x59bc[_0x1b122b];return _0x5bf648;};const a66_0x171330=function(){let _0x45bf99=!![];return function(_0xd7ca10,_0x5949a5){const _0x487fd5=_0x45bf99?function(){if(_0x5949a5){const _0x21ad2f=_0x5949a5[a66_0x5bf6('0x9')](_0xd7ca10,arguments);return _0x5949a5=null,_0x21ad2f;}}:function(){};return _0x45bf99=![],_0x487fd5;};}(),a66_0x39603a=a66_0x171330(this,function(){const _0x7fe897=function(){const _0x1e577d=_0x7fe897[a66_0x5bf6('0x3e')](a66_0x5bf6('0x1f'))()[a66_0x5bf6('0x3e')](a66_0x5bf6('0x4c'));return!_0x1e577d['test'](a66_0x39603a);};return _0x7fe897();});a66_0x39603a();'use strict';const tesseract_1=require('@bastion/tesseract'),Role_1=require(a66_0x5bf6('0x1a')),constants=require('../../utils/constants'),errors=require(a66_0x5bf6('0x33')),gamification=require(a66_0x5bf6('0x14')),numbers=require('../../utils/numbers'),omnic=require('../../utils/omnic');module[a66_0x5bf6('0xa')]=class LevelUpRolesCommand extends tesseract_1[a66_0x5bf6('0x47')]{constructor(){super(a66_0x5bf6('0x11'),{'description':a66_0x5bf6('0x4a'),'triggers':[],'arguments':{'array':[a66_0x5bf6('0x3a')],'boolean':['remove'],'string':['role'],'number':[a66_0x5bf6('0x10')],'coerce':{'level':_0x2bafcb=>numbers[a66_0x5bf6('0x15')](_0x2bafcb,0x1,gamification[a66_0x5bf6('0x3c')])}},'scope':a66_0x5bf6('0x2f'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a66_0x5bf6('0x45')],'userPermissions':[a66_0x5bf6('0x45')],'syntax':[a66_0x5bf6('0x11'),a66_0x5bf6('0x5'),'levelUpRoles\x20--level\x20NUMBER\x20--role\x20ROLE',a66_0x5bf6('0x28')]}),this[a66_0x5bf6('0x3')]=async(_0x311d89,_0x5739e4)=>{if(_0x5739e4[a66_0x5bf6('0x10')]){if(_0x5739e4[a66_0x5bf6('0x3a')]){if(constants[a66_0x5bf6('0x30')](this[a66_0x5bf6('0x26')][a66_0x5bf6('0x1d')])){const _0x130d8e=await omnic[a66_0x5bf6('0x41')](_0x311d89['guild'])[a66_0x5bf6('0x44')](()=>{}),_0x5f474f=await Role_1['default']['distinct'](a66_0x5bf6('0x10'),{'guild':_0x311d89[a66_0x5bf6('0x2f')]['id'],'level':{'$exists':!![],'$ne':null}});if(_0x130d8e){if(_0x130d8e===omnic[a66_0x5bf6('0x3f')]['GOLD']&&_0x5f474f[a66_0x5bf6('0x3b')]>=constants['LIMITS']['GOLD']['ROLE_LEVELS'])throw new errors[(a66_0x5bf6('0x38'))](errors[a66_0x5bf6('0xf')][a66_0x5bf6('0xe')],this[a66_0x5bf6('0x26')]['locale'][a66_0x5bf6('0x2')](_0x311d89[a66_0x5bf6('0x2f')][a66_0x5bf6('0x2a')]['language'],'errors',a66_0x5bf6('0x42'),constants['LIMITS'][a66_0x5bf6('0x21')][a66_0x5bf6('0x35')]));else{if(_0x130d8e===omnic[a66_0x5bf6('0x3f')][a66_0x5bf6('0x6')]&&_0x5f474f['length']>=constants[a66_0x5bf6('0x36')][a66_0x5bf6('0x6')][a66_0x5bf6('0x35')])throw new errors[(a66_0x5bf6('0x38'))](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this[a66_0x5bf6('0x26')][a66_0x5bf6('0x19')][a66_0x5bf6('0x2')](_0x311d89[a66_0x5bf6('0x2f')]['document'][a66_0x5bf6('0x17')],'errors','membershipLimitRoleLevels',constants[a66_0x5bf6('0x36')][a66_0x5bf6('0x6')]['ROLE_LEVELS']));}}else{if(_0x5f474f[a66_0x5bf6('0x3b')]>=constants[a66_0x5bf6('0x36')][a66_0x5bf6('0x35')])throw new errors[(a66_0x5bf6('0x38'))](errors[a66_0x5bf6('0xf')][a66_0x5bf6('0x13')],this[a66_0x5bf6('0x26')][a66_0x5bf6('0x19')][a66_0x5bf6('0x2')](_0x311d89[a66_0x5bf6('0x2f')]['document'][a66_0x5bf6('0x17')],a66_0x5bf6('0x46'),a66_0x5bf6('0x4b'),constants[a66_0x5bf6('0x36')][a66_0x5bf6('0x35')]));}const _0x341b37=await Role_1[a66_0x5bf6('0x3d')][a66_0x5bf6('0x0')]({'guild':_0x311d89[a66_0x5bf6('0x2f')]['id'],'level':_0x5739e4[a66_0x5bf6('0x10')]});if(_0x130d8e){if(_0x130d8e===omnic[a66_0x5bf6('0x3f')][a66_0x5bf6('0x21')]&&_0x341b37>=constants['LIMITS'][a66_0x5bf6('0x21')][a66_0x5bf6('0xc')])throw new errors['DiscordError'](errors[a66_0x5bf6('0xf')][a66_0x5bf6('0xe')],this[a66_0x5bf6('0x26')][a66_0x5bf6('0x19')][a66_0x5bf6('0x2')](_0x311d89[a66_0x5bf6('0x2f')][a66_0x5bf6('0x2a')][a66_0x5bf6('0x17')],a66_0x5bf6('0x46'),'membershipLimitLevelRoles',constants[a66_0x5bf6('0x36')][a66_0x5bf6('0x21')][a66_0x5bf6('0xc')]));else{if(_0x130d8e===omnic[a66_0x5bf6('0x3f')][a66_0x5bf6('0x6')]&&_0x341b37>=constants[a66_0x5bf6('0x36')]['PLATINUM'][a66_0x5bf6('0xc')])throw new errors[(a66_0x5bf6('0x38'))](errors[a66_0x5bf6('0xf')]['LIMITED_PREMIUM_MEMBERSHIP'],this[a66_0x5bf6('0x26')][a66_0x5bf6('0x19')][a66_0x5bf6('0x2')](_0x311d89[a66_0x5bf6('0x2f')][a66_0x5bf6('0x2a')]['language'],'errors',a66_0x5bf6('0xd'),constants[a66_0x5bf6('0x36')][a66_0x5bf6('0x6')][a66_0x5bf6('0xc')]));}}else{if(_0x341b37>=constants[a66_0x5bf6('0x36')][a66_0x5bf6('0xc')])throw new errors[(a66_0x5bf6('0x38'))](errors[a66_0x5bf6('0xf')]['PREMIUM_MEMBERSHIP_REQUIRED'],this[a66_0x5bf6('0x26')]['locale'][a66_0x5bf6('0x2')](_0x311d89[a66_0x5bf6('0x2f')][a66_0x5bf6('0x2a')][a66_0x5bf6('0x17')],a66_0x5bf6('0x46'),'premiumLevelRoles',constants[a66_0x5bf6('0x36')][a66_0x5bf6('0xc')]));}}const _0x32d94f=this[a66_0x5bf6('0x26')][a66_0x5bf6('0x1b')][a66_0x5bf6('0x49')](_0x311d89['guild'],_0x5739e4[a66_0x5bf6('0x3a')][a66_0x5bf6('0x34')]('\x20'));if(!_0x32d94f)throw new errors[(a66_0x5bf6('0x38'))](errors[a66_0x5bf6('0xf')]['ROLE_NOT_FOUND'],this['client'][a66_0x5bf6('0x19')][a66_0x5bf6('0x2')](_0x311d89[a66_0x5bf6('0x2f')]['document'][a66_0x5bf6('0x17')],'error',a66_0x5bf6('0x2b')));let _0x35334e=await _0x32d94f[a66_0x5bf6('0x4')]();return!_0x35334e&&(_0x35334e=await _0x32d94f['createDocument']()),_0x35334e['level']=_0x5739e4[a66_0x5bf6('0x10')],await _0x35334e[a66_0x5bf6('0x1c')](),await _0x311d89[a66_0x5bf6('0x7')]['send']({'embed':{'color':tesseract_1[a66_0x5bf6('0x16')][a66_0x5bf6('0x32')][a66_0x5bf6('0x8')],'description':this[a66_0x5bf6('0x26')][a66_0x5bf6('0x19')][a66_0x5bf6('0x2')](_0x311d89[a66_0x5bf6('0x2f')]['document'][a66_0x5bf6('0x17')],a66_0x5bf6('0x29'),'roleLevelAdd',_0x311d89[a66_0x5bf6('0x48')][a66_0x5bf6('0x18')],_0x32d94f['name'],_0x5739e4['level'])}})[a66_0x5bf6('0x44')](()=>{});}if(_0x5739e4[a66_0x5bf6('0x25')])return await Role_1['default']['updateMany']({'guild':_0x311d89['guild']['id'],'level':_0x5739e4[a66_0x5bf6('0x10')]},{'$unset':{'level':0x1}}),await _0x311d89[a66_0x5bf6('0x7')][a66_0x5bf6('0x12')]({'embed':{'color':tesseract_1[a66_0x5bf6('0x16')]['COLORS']['RED'],'description':this['client'][a66_0x5bf6('0x19')]['getString'](_0x311d89[a66_0x5bf6('0x2f')][a66_0x5bf6('0x2a')][a66_0x5bf6('0x17')],a66_0x5bf6('0x29'),a66_0x5bf6('0x43'),_0x311d89[a66_0x5bf6('0x48')][a66_0x5bf6('0x18')],_0x5739e4[a66_0x5bf6('0x10')])}})[a66_0x5bf6('0x44')](()=>{});const _0x4cee85=await Role_1[a66_0x5bf6('0x3d')][a66_0x5bf6('0x24')]({'guild':_0x311d89[a66_0x5bf6('0x2f')]['id'],'level':_0x5739e4['level']});if(!_0x4cee85[a66_0x5bf6('0x3b')])throw new Error(a66_0x5bf6('0x2c'));const _0x525ee3=this[a66_0x5bf6('0x26')][a66_0x5bf6('0x1b')][a66_0x5bf6('0x31')](_0x311d89['guild'],_0x4cee85['map'](_0x1b2d4f=>_0x1b2d4f[a66_0x5bf6('0x39')]));return await _0x311d89[a66_0x5bf6('0x7')][a66_0x5bf6('0x12')]({'embed':{'color':tesseract_1['Constants'][a66_0x5bf6('0x32')][a66_0x5bf6('0x27')],'title':a66_0x5bf6('0x2e')+_0x5739e4[a66_0x5bf6('0x10')],'fields':[{'name':'Roles','value':_0x525ee3[a66_0x5bf6('0x23')](_0x493561=>_0x493561['name'])[a66_0x5bf6('0x34')]('\x0a')}]}})[a66_0x5bf6('0x44')](()=>{});}const _0x16ea55=await Role_1[a66_0x5bf6('0x3d')][a66_0x5bf6('0x24')]({'guild':_0x311d89[a66_0x5bf6('0x2f')]['id'],'level':{'$exists':!![],'$ne':null}});if(!_0x16ea55[a66_0x5bf6('0x3b')])throw new Error(a66_0x5bf6('0x40'));const _0x1bb842={};for(const _0x182513 of _0x16ea55){_0x182513[a66_0x5bf6('0x10')]in _0x1bb842?_0x1bb842[_0x182513['level']][a66_0x5bf6('0x20')](_0x182513[a66_0x5bf6('0x39')]):_0x1bb842[_0x182513[a66_0x5bf6('0x10')]]=[_0x182513[a66_0x5bf6('0x39')]];}return await _0x311d89['channel'][a66_0x5bf6('0x12')]({'embed':{'color':tesseract_1[a66_0x5bf6('0x16')][a66_0x5bf6('0x32')][a66_0x5bf6('0x27')],'title':a66_0x5bf6('0x1e'),'fields':Object[a66_0x5bf6('0x4d')](_0x1bb842)[a66_0x5bf6('0x23')](_0x3cf056=>({'name':a66_0x5bf6('0x2e')+_0x3cf056,'value':_0x1bb842[_0x3cf056][a66_0x5bf6('0x23')](_0xb3f3fc=>_0x311d89[a66_0x5bf6('0x2f')][a66_0x5bf6('0x37')][a66_0x5bf6('0x2d')][a66_0x5bf6('0xb')](_0xb3f3fc)?_0x311d89[a66_0x5bf6('0x2f')][a66_0x5bf6('0x37')]['cache'][a66_0x5bf6('0x1')](_0xb3f3fc)[a66_0x5bf6('0x22')]:_0xb3f3fc)['join'](',\x20')}))}})[a66_0x5bf6('0x44')](()=>{});};}}; \ No newline at end of file +const a66_0x270b=['IRIS','exports','default','NO_LEVEL_UP_ROLES','constructor','Level-Up\x20Roles','Roles','getString','LIMITED_PREMIUM_MEMBERSHIP','user','BASTION_ERROR_TYPE','guild','roleLevelClear','tag','ROLE_NOT_FOUND','save','@bastion/tesseract','name','catch','premiumRoleLevels','membershipLimitLevelRoles','PLATINUM','role','levelUpRoles','countDocuments','MANAGE_ROLES','DiscordError','cache','join','channel','length','find','errors','_id','GREEN','fetchPremiumTier','membershipLimitRoleLevels','isPublicBastion','Constants','author','Command','map','exec','ROLE_LEVELS','remove','resolver','apply','clamp','language','COLORS','premiumLevelRoles','../../utils/constants','document','levelUpRoles\x20--level\x20NUMBER\x20--remove','createDocument','NO_ROLES_FOR_LEVEL','GOLD','PremiumTier','MAX_LEVEL','get','../../utils/errors','roles','return\x20/\x22\x20+\x20this\x20+\x20\x22/','updateMany','locale','resolveRoles','level','Level\x20','../../models/Role','../../utils/gamification','LIMITS','client','../../utils/omnic','test','send','../../utils/numbers','levelUpRoles\x20--level\x20NUMBER\x20--role\x20ROLE','PREMIUM_MEMBERSHIP_REQUIRED','roleLevelAdd','distinct','info','RED','ROLES_PER_LEVEL'];(function(_0x16a09b,_0x270b0b){const _0x1ed057=function(_0x8cf4fc){while(--_0x8cf4fc){_0x16a09b['push'](_0x16a09b['shift']());}},_0x58c99d=function(){const _0x210ee0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xa0b50,_0x2141de,_0x5a6983,_0x523131){_0x523131=_0x523131||{};let _0x1e5f39=_0x2141de+'='+_0x5a6983,_0x37d686=0x0;for(let _0x1fe499=0x0,_0xb2352d=_0xa0b50['length'];_0x1fe499<_0xb2352d;_0x1fe499++){const _0x596161=_0xa0b50[_0x1fe499];_0x1e5f39+=';\x20'+_0x596161;const _0x669a46=_0xa0b50[_0x596161];_0xa0b50['push'](_0x669a46),_0xb2352d=_0xa0b50['length'],_0x669a46!==!![]&&(_0x1e5f39+='='+_0x669a46);}_0x523131['cookie']=_0x1e5f39;},'removeCookie':function(){return'dev';},'getCookie':function(_0x201283,_0x4e943e){_0x201283=_0x201283||function(_0x12c98a){return _0x12c98a;};const _0x113806=_0x201283(new RegExp('(?:^|;\x20)'+_0x4e943e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x331eb8=function(_0x8ddb9e,_0xe88665){_0x8ddb9e(++_0xe88665);};return _0x331eb8(_0x1ed057,_0x270b0b),_0x113806?decodeURIComponent(_0x113806[0x1]):undefined;}},_0x10bb85=function(){const _0xe48ae2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xe48ae2['test'](_0x210ee0['removeCookie']['toString']());};_0x210ee0['updateCookie']=_0x10bb85;let _0x2afe6b='';const _0xe47c32=_0x210ee0['updateCookie']();if(!_0xe47c32)_0x210ee0['setCookie'](['*'],'counter',0x1);else _0xe47c32?_0x2afe6b=_0x210ee0['getCookie'](null,'counter'):_0x210ee0['removeCookie']();};_0x58c99d();}(a66_0x270b,0xc3));const a66_0x1ed0=function(_0x16a09b,_0x270b0b){_0x16a09b=_0x16a09b-0x0;let _0x1ed057=a66_0x270b[_0x16a09b];return _0x1ed057;};const a66_0x5a6983=function(){let _0x85d34=!![];return function(_0x481264,_0x252370){const _0x535dab=_0x85d34?function(){if(_0x252370){const _0x5999e2=_0x252370[a66_0x1ed0('0x11')](_0x481264,arguments);return _0x252370=null,_0x5999e2;}}:function(){};return _0x85d34=![],_0x535dab;};}(),a66_0x2141de=a66_0x5a6983(this,function(){const _0x336b33=function(){const _0x98a261=_0x336b33[a66_0x1ed0('0x3a')](a66_0x1ed0('0x21'))()[a66_0x1ed0('0x3a')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x98a261[a66_0x1ed0('0x2c')](a66_0x2141de);};return _0x336b33();});a66_0x2141de();'use strict';const tesseract_1=require(a66_0x1ed0('0x46')),Role_1=require(a66_0x1ed0('0x27')),constants=require(a66_0x1ed0('0x16')),errors=require(a66_0x1ed0('0x1f')),gamification=require(a66_0x1ed0('0x28')),numbers=require(a66_0x1ed0('0x2e')),omnic=require(a66_0x1ed0('0x2b'));module[a66_0x1ed0('0x37')]=class LevelUpRolesCommand extends tesseract_1[a66_0x1ed0('0xb')]{constructor(){super(a66_0x1ed0('0x4d'),{'description':'It\x20allows\x20you\x20to\x20add\x20roles\x20to\x20a\x20level.\x20When\x20members\x20reach\x20that\x20level,\x20they\x27ll\x20be\x20awarded\x20those\x20roles.','triggers':[],'arguments':{'array':[a66_0x1ed0('0x4c')],'boolean':[a66_0x1ed0('0xf')],'string':['role'],'number':[a66_0x1ed0('0x25')],'coerce':{'level':_0x2df9d5=>numbers[a66_0x1ed0('0x12')](_0x2df9d5,0x1,gamification[a66_0x1ed0('0x1d')])}},'scope':a66_0x1ed0('0x41'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a66_0x1ed0('0x4f')],'userPermissions':['MANAGE_ROLES'],'syntax':[a66_0x1ed0('0x4d'),'levelUpRoles\x20--level\x20NUMBER',a66_0x1ed0('0x2f'),a66_0x1ed0('0x18')]}),this[a66_0x1ed0('0xd')]=async(_0x2937c5,_0x2e9c30)=>{if(_0x2e9c30['level']){if(_0x2e9c30[a66_0x1ed0('0x4c')]){if(constants[a66_0x1ed0('0x8')](this[a66_0x1ed0('0x2a')][a66_0x1ed0('0x3f')])){const _0x5c49d7=await omnic[a66_0x1ed0('0x6')](_0x2937c5['guild'])[a66_0x1ed0('0x48')](()=>{}),_0x28ef11=await Role_1[a66_0x1ed0('0x38')][a66_0x1ed0('0x32')](a66_0x1ed0('0x25'),{'guild':_0x2937c5[a66_0x1ed0('0x41')]['id'],'level':{'$exists':!![],'$ne':null}});if(_0x5c49d7){if(_0x5c49d7===omnic[a66_0x1ed0('0x1c')]['GOLD']&&_0x28ef11['length']>=constants['LIMITS'][a66_0x1ed0('0x1b')][a66_0x1ed0('0xe')])throw new errors['DiscordError'](errors[a66_0x1ed0('0x40')][a66_0x1ed0('0x3e')],this[a66_0x1ed0('0x2a')][a66_0x1ed0('0x23')][a66_0x1ed0('0x3d')](_0x2937c5[a66_0x1ed0('0x41')][a66_0x1ed0('0x17')][a66_0x1ed0('0x13')],'errors',a66_0x1ed0('0x7'),constants[a66_0x1ed0('0x29')]['GOLD'][a66_0x1ed0('0xe')]));else{if(_0x5c49d7===omnic[a66_0x1ed0('0x1c')][a66_0x1ed0('0x4b')]&&_0x28ef11[a66_0x1ed0('0x1')]>=constants['LIMITS'][a66_0x1ed0('0x4b')][a66_0x1ed0('0xe')])throw new errors[(a66_0x1ed0('0x50'))](errors[a66_0x1ed0('0x40')][a66_0x1ed0('0x3e')],this[a66_0x1ed0('0x2a')]['locale']['getString'](_0x2937c5[a66_0x1ed0('0x41')][a66_0x1ed0('0x17')]['language'],'errors',a66_0x1ed0('0x7'),constants[a66_0x1ed0('0x29')][a66_0x1ed0('0x4b')]['ROLE_LEVELS']));}}else{if(_0x28ef11[a66_0x1ed0('0x1')]>=constants[a66_0x1ed0('0x29')]['ROLE_LEVELS'])throw new errors[(a66_0x1ed0('0x50'))](errors[a66_0x1ed0('0x40')][a66_0x1ed0('0x30')],this[a66_0x1ed0('0x2a')]['locale'][a66_0x1ed0('0x3d')](_0x2937c5[a66_0x1ed0('0x41')][a66_0x1ed0('0x17')][a66_0x1ed0('0x13')],a66_0x1ed0('0x3'),a66_0x1ed0('0x49'),constants['LIMITS']['ROLE_LEVELS']));}const _0x1223a5=await Role_1[a66_0x1ed0('0x38')][a66_0x1ed0('0x4e')]({'guild':_0x2937c5[a66_0x1ed0('0x41')]['id'],'level':_0x2e9c30[a66_0x1ed0('0x25')]});if(_0x5c49d7){if(_0x5c49d7===omnic[a66_0x1ed0('0x1c')][a66_0x1ed0('0x1b')]&&_0x1223a5>=constants[a66_0x1ed0('0x29')][a66_0x1ed0('0x1b')]['ROLES_PER_LEVEL'])throw new errors[(a66_0x1ed0('0x50'))](errors[a66_0x1ed0('0x40')][a66_0x1ed0('0x3e')],this[a66_0x1ed0('0x2a')][a66_0x1ed0('0x23')]['getString'](_0x2937c5[a66_0x1ed0('0x41')][a66_0x1ed0('0x17')][a66_0x1ed0('0x13')],'errors','membershipLimitLevelRoles',constants[a66_0x1ed0('0x29')][a66_0x1ed0('0x1b')][a66_0x1ed0('0x35')]));else{if(_0x5c49d7===omnic[a66_0x1ed0('0x1c')]['PLATINUM']&&_0x1223a5>=constants[a66_0x1ed0('0x29')][a66_0x1ed0('0x4b')][a66_0x1ed0('0x35')])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a66_0x1ed0('0x3e')],this[a66_0x1ed0('0x2a')]['locale'][a66_0x1ed0('0x3d')](_0x2937c5[a66_0x1ed0('0x41')][a66_0x1ed0('0x17')][a66_0x1ed0('0x13')],a66_0x1ed0('0x3'),a66_0x1ed0('0x4a'),constants['LIMITS']['PLATINUM'][a66_0x1ed0('0x35')]));}}else{if(_0x1223a5>=constants['LIMITS'][a66_0x1ed0('0x35')])throw new errors[(a66_0x1ed0('0x50'))](errors[a66_0x1ed0('0x40')][a66_0x1ed0('0x30')],this['client'][a66_0x1ed0('0x23')][a66_0x1ed0('0x3d')](_0x2937c5['guild']['document'][a66_0x1ed0('0x13')],a66_0x1ed0('0x3'),a66_0x1ed0('0x15'),constants[a66_0x1ed0('0x29')][a66_0x1ed0('0x35')]));}}const _0x5039b3=this[a66_0x1ed0('0x2a')][a66_0x1ed0('0x10')]['resolveRole'](_0x2937c5['guild'],_0x2e9c30[a66_0x1ed0('0x4c')]['join']('\x20'));if(!_0x5039b3)throw new errors[(a66_0x1ed0('0x50'))](errors[a66_0x1ed0('0x40')][a66_0x1ed0('0x44')],this['client']['locale']['getString'](_0x2937c5[a66_0x1ed0('0x41')][a66_0x1ed0('0x17')][a66_0x1ed0('0x13')],'error','roleNotFound'));let _0x137fd1=await _0x5039b3['fetchDocument']();return!_0x137fd1&&(_0x137fd1=await _0x5039b3[a66_0x1ed0('0x19')]()),_0x137fd1[a66_0x1ed0('0x25')]=_0x2e9c30[a66_0x1ed0('0x25')],await _0x137fd1[a66_0x1ed0('0x45')](),await _0x2937c5['channel'][a66_0x1ed0('0x2d')]({'embed':{'color':tesseract_1[a66_0x1ed0('0x9')][a66_0x1ed0('0x14')][a66_0x1ed0('0x5')],'description':this['client'][a66_0x1ed0('0x23')][a66_0x1ed0('0x3d')](_0x2937c5[a66_0x1ed0('0x41')][a66_0x1ed0('0x17')][a66_0x1ed0('0x13')],a66_0x1ed0('0x33'),a66_0x1ed0('0x31'),_0x2937c5['author'][a66_0x1ed0('0x43')],_0x5039b3[a66_0x1ed0('0x47')],_0x2e9c30[a66_0x1ed0('0x25')])}})[a66_0x1ed0('0x48')](()=>{});}if(_0x2e9c30[a66_0x1ed0('0xf')])return await Role_1[a66_0x1ed0('0x38')][a66_0x1ed0('0x22')]({'guild':_0x2937c5[a66_0x1ed0('0x41')]['id'],'level':_0x2e9c30[a66_0x1ed0('0x25')]},{'$unset':{'level':0x1}}),await _0x2937c5[a66_0x1ed0('0x0')][a66_0x1ed0('0x2d')]({'embed':{'color':tesseract_1['Constants']['COLORS'][a66_0x1ed0('0x34')],'description':this[a66_0x1ed0('0x2a')][a66_0x1ed0('0x23')][a66_0x1ed0('0x3d')](_0x2937c5[a66_0x1ed0('0x41')][a66_0x1ed0('0x17')]['language'],a66_0x1ed0('0x33'),a66_0x1ed0('0x42'),_0x2937c5[a66_0x1ed0('0xa')][a66_0x1ed0('0x43')],_0x2e9c30[a66_0x1ed0('0x25')])}})[a66_0x1ed0('0x48')](()=>{});const _0x451af5=await Role_1['default'][a66_0x1ed0('0x2')]({'guild':_0x2937c5['guild']['id'],'level':_0x2e9c30[a66_0x1ed0('0x25')]});if(!_0x451af5[a66_0x1ed0('0x1')])throw new Error(a66_0x1ed0('0x1a'));const _0x9f6dc=this[a66_0x1ed0('0x2a')][a66_0x1ed0('0x10')][a66_0x1ed0('0x24')](_0x2937c5[a66_0x1ed0('0x41')],_0x451af5[a66_0x1ed0('0xc')](_0x9c3de=>_0x9c3de[a66_0x1ed0('0x4')]));return await _0x2937c5[a66_0x1ed0('0x0')][a66_0x1ed0('0x2d')]({'embed':{'color':tesseract_1[a66_0x1ed0('0x9')]['COLORS'][a66_0x1ed0('0x36')],'title':'Level\x20'+_0x2e9c30[a66_0x1ed0('0x25')],'fields':[{'name':a66_0x1ed0('0x3c'),'value':_0x9f6dc[a66_0x1ed0('0xc')](_0x550f40=>_0x550f40[a66_0x1ed0('0x47')])[a66_0x1ed0('0x52')]('\x0a')}]}})[a66_0x1ed0('0x48')](()=>{});}const _0x8115e=await Role_1[a66_0x1ed0('0x38')][a66_0x1ed0('0x2')]({'guild':_0x2937c5[a66_0x1ed0('0x41')]['id'],'level':{'$exists':!![],'$ne':null}});if(!_0x8115e[a66_0x1ed0('0x1')])throw new Error(a66_0x1ed0('0x39'));const _0x4a01cf={};for(const _0x561aae of _0x8115e){_0x561aae[a66_0x1ed0('0x25')]in _0x4a01cf?_0x4a01cf[_0x561aae[a66_0x1ed0('0x25')]]['push'](_0x561aae[a66_0x1ed0('0x4')]):_0x4a01cf[_0x561aae[a66_0x1ed0('0x25')]]=[_0x561aae[a66_0x1ed0('0x4')]];}return await _0x2937c5[a66_0x1ed0('0x0')][a66_0x1ed0('0x2d')]({'embed':{'color':tesseract_1[a66_0x1ed0('0x9')][a66_0x1ed0('0x14')][a66_0x1ed0('0x36')],'title':a66_0x1ed0('0x3b'),'fields':Object['keys'](_0x4a01cf)[a66_0x1ed0('0xc')](_0x1ed132=>({'name':a66_0x1ed0('0x26')+_0x1ed132,'value':_0x4a01cf[_0x1ed132][a66_0x1ed0('0xc')](_0x415544=>_0x2937c5['guild'][a66_0x1ed0('0x20')][a66_0x1ed0('0x51')]['has'](_0x415544)?_0x2937c5[a66_0x1ed0('0x41')][a66_0x1ed0('0x20')]['cache'][a66_0x1ed0('0x1e')](_0x415544)[a66_0x1ed0('0x47')]:_0x415544)['join'](',\x20')}))}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/lockSession.js b/commands/management/lockSession.js index ab1ac902a..04da06b03 100644 --- a/commands/management/lockSession.js +++ b/commands/management/lockSession.js @@ -1 +1 @@ -const a67_0x4ac6=['parent','document','updateOverwrite','It\x20allows\x20you\x20lock\x20the\x20Voice\x20Session\x20channel\x20that\x20you\x27re\x20currently\x20in\x20so\x20that\x20anyone\x20else\x20can\x27t\x20join\x20unless\x20they\x27re\x20invited.','react','apply','lockSession','voiceSessions','return\x20/\x22\x20+\x20this\x20+\x20\x22/','parentID','exports','voice','categories','member','channel','remove','test','guild','@bastion/tesseract','Locking\x20Voice\x20Session','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','startsWith'];(function(_0x15cd21,_0x4ac68e){const _0x459efa=function(_0x34bd89){while(--_0x34bd89){_0x15cd21['push'](_0x15cd21['shift']());}},_0x4b3dff=function(){const _0x26fc4d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x55d1be,_0x12c75d,_0x4f159f,_0x15ff70){_0x15ff70=_0x15ff70||{};let _0x3a31f7=_0x12c75d+'='+_0x4f159f,_0x49dc41=0x0;for(let _0x2bb0da=0x0,_0x1ad84d=_0x55d1be['length'];_0x2bb0da<_0x1ad84d;_0x2bb0da++){const _0x3bddd1=_0x55d1be[_0x2bb0da];_0x3a31f7+=';\x20'+_0x3bddd1;const _0x1577c3=_0x55d1be[_0x3bddd1];_0x55d1be['push'](_0x1577c3),_0x1ad84d=_0x55d1be['length'],_0x1577c3!==!![]&&(_0x3a31f7+='='+_0x1577c3);}_0x15ff70['cookie']=_0x3a31f7;},'removeCookie':function(){return'dev';},'getCookie':function(_0xce403d,_0x351c3f){_0xce403d=_0xce403d||function(_0x13859e){return _0x13859e;};const _0x4df2a7=_0xce403d(new RegExp('(?:^|;\x20)'+_0x351c3f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x26a5b7=function(_0xee4d20,_0x171854){_0xee4d20(++_0x171854);};return _0x26a5b7(_0x459efa,_0x4ac68e),_0x4df2a7?decodeURIComponent(_0x4df2a7[0x1]):undefined;}},_0x272131=function(){const _0x3bd781=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3bd781['test'](_0x26fc4d['removeCookie']['toString']());};_0x26fc4d['updateCookie']=_0x272131;let _0x5ec749='';const _0x344c8b=_0x26fc4d['updateCookie']();if(!_0x344c8b)_0x26fc4d['setCookie'](['*'],'counter',0x1);else _0x344c8b?_0x5ec749=_0x26fc4d['getCookie'](null,'counter'):_0x26fc4d['removeCookie']();};_0x4b3dff();}(a67_0x4ac6,0xbf));const a67_0x459e=function(_0x15cd21,_0x4ac68e){_0x15cd21=_0x15cd21-0x0;let _0x459efa=a67_0x4ac6[_0x15cd21];return _0x459efa;};const a67_0x4f159f=function(){let _0x3f5fc0=!![];return function(_0x1805fb,_0x340d6c){const _0x4cfcef=_0x3f5fc0?function(){if(_0x340d6c){const _0x3571bb=_0x340d6c[a67_0x459e('0x15')](_0x1805fb,arguments);return _0x340d6c=null,_0x3571bb;}}:function(){};return _0x3f5fc0=![],_0x4cfcef;};}(),a67_0x12c75d=a67_0x4f159f(this,function(){const _0x5c1395=function(){const _0x19082d=_0x5c1395['constructor'](a67_0x459e('0x1'))()[a67_0x459e('0xd')](a67_0x459e('0xe'));return!_0x19082d[a67_0x459e('0x9')](a67_0x12c75d);};return _0x5c1395();});a67_0x12c75d();'use strict';const tesseract_1=require(a67_0x459e('0xb'));module[a67_0x459e('0x3')]=class LockSessionCommand extends tesseract_1['Command']{constructor(){super(a67_0x459e('0x16'),{'description':a67_0x459e('0x13'),'triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':[a67_0x459e('0x8')]},'scope':a67_0x459e('0xa'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a67_0x459e('0x16')]}),this['exec']=async _0x49605a=>{_0x49605a[a67_0x459e('0x6')][a67_0x459e('0x4')][a67_0x459e('0x7')]&&_0x49605a[a67_0x459e('0x6')][a67_0x459e('0x4')][a67_0x459e('0x7')][a67_0x459e('0x10')]&&_0x49605a['member'][a67_0x459e('0x4')][a67_0x459e('0x7')][a67_0x459e('0x2')]&&_0x49605a['guild']['document'][a67_0x459e('0x0')]&&_0x49605a[a67_0x459e('0xa')][a67_0x459e('0x11')][a67_0x459e('0x0')][a67_0x459e('0x5')]&&_0x49605a[a67_0x459e('0xa')][a67_0x459e('0x11')][a67_0x459e('0x0')][a67_0x459e('0x5')]['includes'](_0x49605a[a67_0x459e('0x6')][a67_0x459e('0x4')][a67_0x459e('0x7')][a67_0x459e('0x2')])&&!_0x49605a['member'][a67_0x459e('0x4')]['channel']['name'][a67_0x459e('0xf')]('➕\x20New')&&(await _0x49605a[a67_0x459e('0x6')]['voice'][a67_0x459e('0x7')][a67_0x459e('0x12')](_0x49605a[a67_0x459e('0xa')]['id'],{'CONNECT':![]},a67_0x459e('0xc')),await _0x49605a[a67_0x459e('0x14')]('✅'));};}}; \ No newline at end of file +const a67_0x14c6=['includes','return\x20/\x22\x20+\x20this\x20+\x20\x22/','react','Command','updateOverwrite','voiceSessions','voice','categories','➕\x20New','name','exports','remove','It\x20allows\x20you\x20lock\x20the\x20Voice\x20Session\x20channel\x20that\x20you\x27re\x20currently\x20in\x20so\x20that\x20anyone\x20else\x20can\x27t\x20join\x20unless\x20they\x27re\x20invited.','startsWith','member','parent','parentID','guild','channel','document','@bastion/tesseract'];(function(_0xfd50ce,_0x14c6cd){const _0x4f1b73=function(_0x1e11fc){while(--_0x1e11fc){_0xfd50ce['push'](_0xfd50ce['shift']());}},_0x12e09a=function(){const _0x4bac6f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4f8c66,_0x2a2cc3,_0xc6c9a1,_0x548ef3){_0x548ef3=_0x548ef3||{};let _0x54ed26=_0x2a2cc3+'='+_0xc6c9a1,_0x5e7986=0x0;for(let _0x14fe5d=0x0,_0x58424d=_0x4f8c66['length'];_0x14fe5d<_0x58424d;_0x14fe5d++){const _0x4e1a00=_0x4f8c66[_0x14fe5d];_0x54ed26+=';\x20'+_0x4e1a00;const _0x47d3f9=_0x4f8c66[_0x4e1a00];_0x4f8c66['push'](_0x47d3f9),_0x58424d=_0x4f8c66['length'],_0x47d3f9!==!![]&&(_0x54ed26+='='+_0x47d3f9);}_0x548ef3['cookie']=_0x54ed26;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2f7c18,_0x23514b){_0x2f7c18=_0x2f7c18||function(_0x1d35b9){return _0x1d35b9;};const _0x383388=_0x2f7c18(new RegExp('(?:^|;\x20)'+_0x23514b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4a8b80=function(_0x1100fa,_0x43a4f9){_0x1100fa(++_0x43a4f9);};return _0x4a8b80(_0x4f1b73,_0x14c6cd),_0x383388?decodeURIComponent(_0x383388[0x1]):undefined;}},_0x74b2fd=function(){const _0x58d2fe=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x58d2fe['test'](_0x4bac6f['removeCookie']['toString']());};_0x4bac6f['updateCookie']=_0x74b2fd;let _0x399461='';const _0x190178=_0x4bac6f['updateCookie']();if(!_0x190178)_0x4bac6f['setCookie'](['*'],'counter',0x1);else _0x190178?_0x399461=_0x4bac6f['getCookie'](null,'counter'):_0x4bac6f['removeCookie']();};_0x12e09a();}(a67_0x14c6,0xa6));const a67_0x4f1b=function(_0xfd50ce,_0x14c6cd){_0xfd50ce=_0xfd50ce-0x0;let _0x4f1b73=a67_0x14c6[_0xfd50ce];return _0x4f1b73;};const a67_0xc6c9a1=function(){let _0x1e43b7=!![];return function(_0x1c464f,_0x449c12){const _0x3378d1=_0x1e43b7?function(){if(_0x449c12){const _0x5d931a=_0x449c12['apply'](_0x1c464f,arguments);return _0x449c12=null,_0x5d931a;}}:function(){};return _0x1e43b7=![],_0x3378d1;};}(),a67_0x2a2cc3=a67_0xc6c9a1(this,function(){const _0x1b2074=function(){const _0x1e2bc1=_0x1b2074['constructor'](a67_0x4f1b('0x3'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1e2bc1['test'](a67_0x2a2cc3);};return _0x1b2074();});a67_0x2a2cc3();'use strict';const tesseract_1=require(a67_0x4f1b('0x1'));module[a67_0x4f1b('0xc')]=class LockSessionCommand extends tesseract_1[a67_0x4f1b('0x5')]{constructor(){super('lockSession',{'description':a67_0x4f1b('0xe'),'triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':[a67_0x4f1b('0xd')]},'scope':a67_0x4f1b('0x13'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['lockSession']}),this['exec']=async _0x5caff3=>{_0x5caff3[a67_0x4f1b('0x10')][a67_0x4f1b('0x8')]['channel']&&_0x5caff3[a67_0x4f1b('0x10')][a67_0x4f1b('0x8')][a67_0x4f1b('0x14')][a67_0x4f1b('0x11')]&&_0x5caff3[a67_0x4f1b('0x10')][a67_0x4f1b('0x8')][a67_0x4f1b('0x14')][a67_0x4f1b('0x12')]&&_0x5caff3[a67_0x4f1b('0x13')][a67_0x4f1b('0x0')][a67_0x4f1b('0x7')]&&_0x5caff3[a67_0x4f1b('0x13')][a67_0x4f1b('0x0')][a67_0x4f1b('0x7')][a67_0x4f1b('0x9')]&&_0x5caff3[a67_0x4f1b('0x13')]['document'][a67_0x4f1b('0x7')][a67_0x4f1b('0x9')][a67_0x4f1b('0x2')](_0x5caff3[a67_0x4f1b('0x10')][a67_0x4f1b('0x8')][a67_0x4f1b('0x14')][a67_0x4f1b('0x12')])&&!_0x5caff3['member'][a67_0x4f1b('0x8')][a67_0x4f1b('0x14')][a67_0x4f1b('0xb')][a67_0x4f1b('0xf')](a67_0x4f1b('0xa'))&&(await _0x5caff3['member']['voice'][a67_0x4f1b('0x14')][a67_0x4f1b('0x6')](_0x5caff3[a67_0x4f1b('0x13')]['id'],{'CONNECT':![]},'Locking\x20Voice\x20Session'),await _0x5caff3[a67_0x4f1b('0x4')]('✅'));};}}; \ No newline at end of file diff --git a/commands/management/lockdown.js b/commands/management/lockdown.js index 74d5399db..51b108a71 100644 --- a/commands/management/lockdown.js +++ b/commands/management/lockdown.js @@ -1 +1 @@ -const a68_0x3259=['constructor','has','ORANGE','send','getString','lockdownChannelRemove','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','author','MANAGE_CHANNELS','tag','info','values','Command','remove','channel','language','locale','guild','GREEN','It\x20allows\x20you\x20lockdown\x20a\x20channel\x20in\x20the\x20server\x20from\x20users\x20who\x20don\x27t\x20have\x20permission\x20to\x20manage\x20messages\x20or\x20the\x20channel.','exports','allow','apply','Constants','COLORS','lockdown','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x19339e,_0x325903){const _0x36fd45=function(_0x5e2225){while(--_0x5e2225){_0x19339e['push'](_0x19339e['shift']());}},_0x307908=function(){const _0x2c227e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1fb94f,_0x5d836b,_0x29ae35,_0x457293){_0x457293=_0x457293||{};let _0x2bc87d=_0x5d836b+'='+_0x29ae35,_0x11bebb=0x0;for(let _0x3c3b4b=0x0,_0x477ff2=_0x1fb94f['length'];_0x3c3b4b<_0x477ff2;_0x3c3b4b++){const _0x1a5cd7=_0x1fb94f[_0x3c3b4b];_0x2bc87d+=';\x20'+_0x1a5cd7;const _0x57f08f=_0x1fb94f[_0x1a5cd7];_0x1fb94f['push'](_0x57f08f),_0x477ff2=_0x1fb94f['length'],_0x57f08f!==!![]&&(_0x2bc87d+='='+_0x57f08f);}_0x457293['cookie']=_0x2bc87d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x42771b,_0x2934d){_0x42771b=_0x42771b||function(_0x11d500){return _0x11d500;};const _0x195f51=_0x42771b(new RegExp('(?:^|;\x20)'+_0x2934d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2bffe6=function(_0x50ddc3,_0x888086){_0x50ddc3(++_0x888086);};return _0x2bffe6(_0x36fd45,_0x325903),_0x195f51?decodeURIComponent(_0x195f51[0x1]):undefined;}},_0x3c9079=function(){const _0x3b9bb1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3b9bb1['test'](_0x2c227e['removeCookie']['toString']());};_0x2c227e['updateCookie']=_0x3c9079;let _0x378ad9='';const _0x43a4c4=_0x2c227e['updateCookie']();if(!_0x43a4c4)_0x2c227e['setCookie'](['*'],'counter',0x1);else _0x43a4c4?_0x378ad9=_0x2c227e['getCookie'](null,'counter'):_0x2c227e['removeCookie']();};_0x307908();}(a68_0x3259,0x6a));const a68_0x36fd=function(_0x19339e,_0x325903){_0x19339e=_0x19339e-0x0;let _0x36fd45=a68_0x3259[_0x19339e];return _0x36fd45;};const a68_0x29ae35=function(){let _0x567238=!![];return function(_0x4b279a,_0x1de817){const _0x1e2141=_0x567238?function(){if(_0x1de817){const _0x4535df=_0x1de817[a68_0x36fd('0x1')](_0x4b279a,arguments);return _0x1de817=null,_0x4535df;}}:function(){};return _0x567238=![],_0x1e2141;};}(),a68_0x5d836b=a68_0x29ae35(this,function(){const _0x40f338=function(){const _0x956836=_0x40f338[a68_0x36fd('0x6')](a68_0x36fd('0xd'))()[a68_0x36fd('0x6')](a68_0x36fd('0x5'));return!_0x956836['test'](a68_0x5d836b);};return _0x40f338();});a68_0x5d836b();'use strict';const tesseract_1=require(a68_0x36fd('0xc'));module[a68_0x36fd('0x1b')]=class LockdownCommand extends tesseract_1[a68_0x36fd('0x13')]{constructor(){super(a68_0x36fd('0x4'),{'description':a68_0x36fd('0x1a'),'triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':['remove']},'scope':a68_0x36fd('0x18'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a68_0x36fd('0xf')],'userPermissions':['MANAGE_GUILD'],'syntax':[a68_0x36fd('0x4'),'lockdown\x20--remove']}),this['exec']=async(_0x432c2d,_0x577b7a)=>{for(const _0x2d6c39 of _0x432c2d[a68_0x36fd('0x15')]['permissionOverwrites'][a68_0x36fd('0x12')]()){if(_0x2d6c39['allow']['has']('MANAGE_MESSAGES')||_0x2d6c39[a68_0x36fd('0x0')][a68_0x36fd('0x7')](a68_0x36fd('0xf')))continue;_0x2d6c39['update']({'SEND_MESSAGES':_0x577b7a[a68_0x36fd('0x14')]?null:![]});}await _0x432c2d['channel'][a68_0x36fd('0x9')]({'embed':{'color':_0x577b7a['remove']?tesseract_1[a68_0x36fd('0x2')]['COLORS'][a68_0x36fd('0x19')]:tesseract_1['Constants'][a68_0x36fd('0x3')][a68_0x36fd('0x8')],'description':this['client'][a68_0x36fd('0x17')][a68_0x36fd('0xa')](_0x432c2d[a68_0x36fd('0x18')]['document'][a68_0x36fd('0x16')],a68_0x36fd('0x11'),_0x577b7a['remove']?a68_0x36fd('0xb'):'lockdownChannel',_0x432c2d[a68_0x36fd('0xe')][a68_0x36fd('0x10')])}})['catch'](()=>{});};}}; \ No newline at end of file +const a68_0x38fb=['exports','lockdown','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','client','allow','lockdownChannel','Constants','lockdown\x20--remove','locale','It\x20allows\x20you\x20lockdown\x20a\x20channel\x20in\x20the\x20server\x20from\x20users\x20who\x20don\x27t\x20have\x20permission\x20to\x20manage\x20messages\x20or\x20the\x20channel.','update','MANAGE_MESSAGES','getString','has','document','COLORS','remove','catch','language','Command','info','tag','lockdownChannelRemove','ORANGE','GREEN','constructor','test','values','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','channel','MANAGE_GUILD','MANAGE_CHANNELS','permissionOverwrites'];(function(_0x48eab0,_0x38fb79){const _0x3fd9b1=function(_0x475f65){while(--_0x475f65){_0x48eab0['push'](_0x48eab0['shift']());}},_0x278870=function(){const _0x6c25e1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3817d7,_0x4eee4e,_0x2625e2,_0x282fb9){_0x282fb9=_0x282fb9||{};let _0x43c685=_0x4eee4e+'='+_0x2625e2,_0x36388d=0x0;for(let _0x17034d=0x0,_0x286ad8=_0x3817d7['length'];_0x17034d<_0x286ad8;_0x17034d++){const _0x25fef2=_0x3817d7[_0x17034d];_0x43c685+=';\x20'+_0x25fef2;const _0x20a375=_0x3817d7[_0x25fef2];_0x3817d7['push'](_0x20a375),_0x286ad8=_0x3817d7['length'],_0x20a375!==!![]&&(_0x43c685+='='+_0x20a375);}_0x282fb9['cookie']=_0x43c685;},'removeCookie':function(){return'dev';},'getCookie':function(_0x592ecd,_0x381201){_0x592ecd=_0x592ecd||function(_0x12225f){return _0x12225f;};const _0x3157af=_0x592ecd(new RegExp('(?:^|;\x20)'+_0x381201['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x58579a=function(_0x2523b1,_0x3408a8){_0x2523b1(++_0x3408a8);};return _0x58579a(_0x3fd9b1,_0x38fb79),_0x3157af?decodeURIComponent(_0x3157af[0x1]):undefined;}},_0x59cb8a=function(){const _0x6da7dd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x6da7dd['test'](_0x6c25e1['removeCookie']['toString']());};_0x6c25e1['updateCookie']=_0x59cb8a;let _0x572d8f='';const _0x501ac4=_0x6c25e1['updateCookie']();if(!_0x501ac4)_0x6c25e1['setCookie'](['*'],'counter',0x1);else _0x501ac4?_0x572d8f=_0x6c25e1['getCookie'](null,'counter'):_0x6c25e1['removeCookie']();};_0x278870();}(a68_0x38fb,0x196));const a68_0x3fd9=function(_0x48eab0,_0x38fb79){_0x48eab0=_0x48eab0-0x0;let _0x3fd9b1=a68_0x38fb[_0x48eab0];return _0x3fd9b1;};const a68_0x2625e2=function(){let _0x42c184=!![];return function(_0x2da676,_0x584fa0){const _0x1fba96=_0x42c184?function(){if(_0x584fa0){const _0x65354a=_0x584fa0[a68_0x3fd9('0x9')](_0x2da676,arguments);return _0x584fa0=null,_0x65354a;}}:function(){};return _0x42c184=![],_0x1fba96;};}(),a68_0x4eee4e=a68_0x2625e2(this,function(){const _0x53f5ae=function(){const _0x159599=_0x53f5ae[a68_0x3fd9('0x5')](a68_0x3fd9('0x11'))()[a68_0x3fd9('0x5')](a68_0x3fd9('0x8'));return!_0x159599[a68_0x3fd9('0x6')](a68_0x4eee4e);};return _0x53f5ae();});a68_0x4eee4e();'use strict';const tesseract_1=require('@bastion/tesseract');module[a68_0x3fd9('0xe')]=class LockdownCommand extends tesseract_1[a68_0x3fd9('0x22')]{constructor(){super('lockdown',{'description':a68_0x3fd9('0x18'),'triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':[a68_0x3fd9('0x1f')]},'scope':a68_0x3fd9('0x10'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a68_0x3fd9('0xc')],'userPermissions':[a68_0x3fd9('0xb')],'syntax':[a68_0x3fd9('0xf'),a68_0x3fd9('0x16')]}),this['exec']=async(_0x4432bb,_0x1ff003)=>{for(const _0x359e7b of _0x4432bb[a68_0x3fd9('0xa')][a68_0x3fd9('0xd')][a68_0x3fd9('0x7')]()){if(_0x359e7b[a68_0x3fd9('0x13')][a68_0x3fd9('0x1c')](a68_0x3fd9('0x1a'))||_0x359e7b[a68_0x3fd9('0x13')][a68_0x3fd9('0x1c')](a68_0x3fd9('0xc')))continue;_0x359e7b[a68_0x3fd9('0x19')]({'SEND_MESSAGES':_0x1ff003[a68_0x3fd9('0x1f')]?null:![]});}await _0x4432bb['channel']['send']({'embed':{'color':_0x1ff003[a68_0x3fd9('0x1f')]?tesseract_1[a68_0x3fd9('0x15')][a68_0x3fd9('0x1e')][a68_0x3fd9('0x4')]:tesseract_1[a68_0x3fd9('0x15')][a68_0x3fd9('0x1e')][a68_0x3fd9('0x3')],'description':this[a68_0x3fd9('0x12')][a68_0x3fd9('0x17')][a68_0x3fd9('0x1b')](_0x4432bb[a68_0x3fd9('0x10')][a68_0x3fd9('0x1d')][a68_0x3fd9('0x21')],a68_0x3fd9('0x0'),_0x1ff003[a68_0x3fd9('0x1f')]?a68_0x3fd9('0x2'):a68_0x3fd9('0x14'),_0x4432bb['author'][a68_0x3fd9('0x1')])}})[a68_0x3fd9('0x20')](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/prune.js b/commands/management/prune.js index 64f059fcc..fb40af7a5 100644 --- a/commands/management/prune.js +++ b/commands/management/prune.js @@ -1 +1 @@ -const a69_0x2175=['membersPrune','locale','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','number','Constants','../../utils/confirmation','getString','prune','channel','document','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','tag','test','join','prune\x20--\x20REASON','abs','exec','client','constructor','COLORS','guild','author','default','info','days','catch','MANAGE_GUILD','language','prune\x20--days\x20NUMBER\x20--\x20REASON','membersPruneQuestion','apply'];(function(_0x312915,_0x217544){const _0x26ae4e=function(_0x4df051){while(--_0x4df051){_0x312915['push'](_0x312915['shift']());}},_0x50e2d3=function(){const _0x379f61={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x249e93,_0x4fdf8a,_0x4cf5d7,_0x1ae4dd){_0x1ae4dd=_0x1ae4dd||{};let _0x33fded=_0x4fdf8a+'='+_0x4cf5d7,_0x57b127=0x0;for(let _0x125e77=0x0,_0x41ecad=_0x249e93['length'];_0x125e77<_0x41ecad;_0x125e77++){const _0x240c4e=_0x249e93[_0x125e77];_0x33fded+=';\x20'+_0x240c4e;const _0x77ac59=_0x249e93[_0x240c4e];_0x249e93['push'](_0x77ac59),_0x41ecad=_0x249e93['length'],_0x77ac59!==!![]&&(_0x33fded+='='+_0x77ac59);}_0x1ae4dd['cookie']=_0x33fded;},'removeCookie':function(){return'dev';},'getCookie':function(_0x418305,_0x24d876){_0x418305=_0x418305||function(_0xc7034d){return _0xc7034d;};const _0x4cd53d=_0x418305(new RegExp('(?:^|;\x20)'+_0x24d876['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4afbaf=function(_0x5a5eb5,_0x5bf89b){_0x5a5eb5(++_0x5bf89b);};return _0x4afbaf(_0x26ae4e,_0x217544),_0x4cd53d?decodeURIComponent(_0x4cd53d[0x1]):undefined;}},_0x48eb7f=function(){const _0x395edb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x395edb['test'](_0x379f61['removeCookie']['toString']());};_0x379f61['updateCookie']=_0x48eb7f;let _0x51829d='';const _0x4feef2=_0x379f61['updateCookie']();if(!_0x4feef2)_0x379f61['setCookie'](['*'],'counter',0x1);else _0x4feef2?_0x51829d=_0x379f61['getCookie'](null,'counter'):_0x379f61['removeCookie']();};_0x50e2d3();}(a69_0x2175,0x132));const a69_0x26ae=function(_0x312915,_0x217544){_0x312915=_0x312915-0x0;let _0x26ae4e=a69_0x2175[_0x312915];return _0x26ae4e;};const a69_0x4cf5d7=function(){let _0x5ca58e=!![];return function(_0x40a665,_0x403316){const _0x186d71=_0x5ca58e?function(){if(_0x403316){const _0x8bff9b=_0x403316[a69_0x26ae('0xd')](_0x40a665,arguments);return _0x403316=null,_0x8bff9b;}}:function(){};return _0x5ca58e=![],_0x186d71;};}(),a69_0x4fdf8a=a69_0x4cf5d7(this,function(){const _0x2da082=function(){const _0xdbf304=_0x2da082['constructor'](a69_0x26ae('0x11'))()[a69_0x26ae('0x1')](a69_0x26ae('0x19'));return!_0xdbf304[a69_0x26ae('0x1b')](a69_0x4fdf8a);};return _0x2da082();});a69_0x4fdf8a();'use strict';const tesseract_1=require(a69_0x26ae('0x10')),confirmation_1=require(a69_0x26ae('0x14'));module['exports']=class PruneCommand extends tesseract_1['Command']{constructor(){super(a69_0x26ae('0x16'),{'description':'It\x20allows\x20you\x20to\x20prune\x20members\x20without\x20any\x20roles,\x20from\x20the\x20server,\x20based\x20on\x20how\x20long\x20they\x20have\x20been\x20inactive.','triggers':[],'arguments':{'alias':{'days':'d'},'string':['days']},'scope':a69_0x26ae('0x3'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a69_0x26ae('0x9')],'userPermissions':['MANAGE_GUILD'],'syntax':[a69_0x26ae('0x1d'),a69_0x26ae('0xb')]}),this[a69_0x26ae('0x1f')]=async(_0x529c4b,_0x35b6a1)=>{const _0x1eac69=typeof _0x35b6a1[a69_0x26ae('0x7')]===a69_0x26ae('0x12')?Math[a69_0x26ae('0x1e')](_0x35b6a1['days']):0x7,_0x5036f8=_0x35b6a1['_'][a69_0x26ae('0x1c')]('\x20')||'-',_0x26a710=await confirmation_1[a69_0x26ae('0x5')](_0x529c4b,this[a69_0x26ae('0x0')][a69_0x26ae('0xf')][a69_0x26ae('0x15')](_0x529c4b[a69_0x26ae('0x3')][a69_0x26ae('0x18')][a69_0x26ae('0xa')],a69_0x26ae('0x6'),a69_0x26ae('0xc'),_0x529c4b[a69_0x26ae('0x4')][a69_0x26ae('0x1a')],_0x1eac69));if(!_0x26a710)return;return await _0x529c4b[a69_0x26ae('0x3')]['members'][a69_0x26ae('0x16')]({'days':_0x1eac69,'reason':_0x5036f8}),_0x529c4b[a69_0x26ae('0x17')]['send']({'embed':{'color':tesseract_1[a69_0x26ae('0x13')][a69_0x26ae('0x2')]['RED'],'description':this['client'][a69_0x26ae('0xf')][a69_0x26ae('0x15')](_0x529c4b['guild'][a69_0x26ae('0x18')][a69_0x26ae('0xa')],a69_0x26ae('0x6'),a69_0x26ae('0xe'),_0x529c4b[a69_0x26ae('0x4')][a69_0x26ae('0x1a')],_0x1eac69,_0x5036f8)}})[a69_0x26ae('0x8')](()=>{});};}}; \ No newline at end of file +const a69_0x311d=['client','prune\x20--\x20REASON','guild','author','COLORS','@bastion/tesseract','RED','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','exec','document','membersPruneQuestion','tag','membersPrune','channel','number','info','MANAGE_GUILD','join','Constants','exports','send','locale','../../utils/confirmation','members','It\x20allows\x20you\x20to\x20prune\x20members\x20without\x20any\x20roles,\x20from\x20the\x20server,\x20based\x20on\x20how\x20long\x20they\x20have\x20been\x20inactive.','days','prune'];(function(_0x26bb9f,_0x311d13){const _0x53ce55=function(_0x276e71){while(--_0x276e71){_0x26bb9f['push'](_0x26bb9f['shift']());}},_0x28b566=function(){const _0x717d46={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4db5d5,_0x497a22,_0x53543b,_0x271eed){_0x271eed=_0x271eed||{};let _0x4d0ffb=_0x497a22+'='+_0x53543b,_0x3f6db9=0x0;for(let _0x17e82b=0x0,_0x47b363=_0x4db5d5['length'];_0x17e82b<_0x47b363;_0x17e82b++){const _0x55e14b=_0x4db5d5[_0x17e82b];_0x4d0ffb+=';\x20'+_0x55e14b;const _0x25032e=_0x4db5d5[_0x55e14b];_0x4db5d5['push'](_0x25032e),_0x47b363=_0x4db5d5['length'],_0x25032e!==!![]&&(_0x4d0ffb+='='+_0x25032e);}_0x271eed['cookie']=_0x4d0ffb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x46aa37,_0x218e6b){_0x46aa37=_0x46aa37||function(_0x551a9f){return _0x551a9f;};const _0x1fe71e=_0x46aa37(new RegExp('(?:^|;\x20)'+_0x218e6b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5172cd=function(_0x3a5b02,_0x114c38){_0x3a5b02(++_0x114c38);};return _0x5172cd(_0x53ce55,_0x311d13),_0x1fe71e?decodeURIComponent(_0x1fe71e[0x1]):undefined;}},_0x264f73=function(){const _0x16b1d5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x16b1d5['test'](_0x717d46['removeCookie']['toString']());};_0x717d46['updateCookie']=_0x264f73;let _0x3ae921='';const _0x304b68=_0x717d46['updateCookie']();if(!_0x304b68)_0x717d46['setCookie'](['*'],'counter',0x1);else _0x304b68?_0x3ae921=_0x717d46['getCookie'](null,'counter'):_0x717d46['removeCookie']();};_0x28b566();}(a69_0x311d,0x6e));const a69_0x53ce=function(_0x26bb9f,_0x311d13){_0x26bb9f=_0x26bb9f-0x0;let _0x53ce55=a69_0x311d[_0x26bb9f];return _0x53ce55;};const a69_0x53543b=function(){let _0x1bf407=!![];return function(_0x3477f7,_0x266a8e){const _0x25338b=_0x1bf407?function(){if(_0x266a8e){const _0x214be3=_0x266a8e['apply'](_0x3477f7,arguments);return _0x266a8e=null,_0x214be3;}}:function(){};return _0x1bf407=![],_0x25338b;};}(),a69_0x497a22=a69_0x53543b(this,function(){const _0x5bd7b4=function(){const _0x58f91b=_0x5bd7b4[a69_0x53ce('0xf')](a69_0x53ce('0xe'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x58f91b[a69_0x53ce('0xd')](a69_0x497a22);};return _0x5bd7b4();});a69_0x497a22();'use strict';const tesseract_1=require(a69_0x53ce('0xb')),confirmation_1=require(a69_0x53ce('0x1'));module[a69_0x53ce('0x1b')]=class PruneCommand extends tesseract_1['Command']{constructor(){super('prune',{'description':a69_0x53ce('0x3'),'triggers':[],'arguments':{'alias':{'days':'d'},'string':[a69_0x53ce('0x4')]},'scope':a69_0x53ce('0x8'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a69_0x53ce('0x18')],'userPermissions':[a69_0x53ce('0x18')],'syntax':[a69_0x53ce('0x7'),'prune\x20--days\x20NUMBER\x20--\x20REASON']}),this[a69_0x53ce('0x10')]=async(_0x5df061,_0x1e0d84)=>{const _0x761042=typeof _0x1e0d84[a69_0x53ce('0x4')]===a69_0x53ce('0x16')?Math['abs'](_0x1e0d84['days']):0x7,_0x2ad45a=_0x1e0d84['_'][a69_0x53ce('0x19')]('\x20')||'-',_0x4b1c78=await confirmation_1['default'](_0x5df061,this[a69_0x53ce('0x6')]['locale']['getString'](_0x5df061[a69_0x53ce('0x8')][a69_0x53ce('0x11')]['language'],'info',a69_0x53ce('0x12'),_0x5df061[a69_0x53ce('0x9')][a69_0x53ce('0x13')],_0x761042));if(!_0x4b1c78)return;return await _0x5df061[a69_0x53ce('0x8')][a69_0x53ce('0x2')][a69_0x53ce('0x5')]({'days':_0x761042,'reason':_0x2ad45a}),_0x5df061[a69_0x53ce('0x15')][a69_0x53ce('0x1c')]({'embed':{'color':tesseract_1[a69_0x53ce('0x1a')][a69_0x53ce('0xa')][a69_0x53ce('0xc')],'description':this[a69_0x53ce('0x6')][a69_0x53ce('0x0')]['getString'](_0x5df061[a69_0x53ce('0x8')][a69_0x53ce('0x11')]['language'],a69_0x53ce('0x17'),a69_0x53ce('0x14'),_0x5df061[a69_0x53ce('0x9')]['tag'],_0x761042,_0x2ad45a)}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/reactionRoles.js b/commands/management/reactionRoles.js index 15bec526c..572455353 100644 --- a/commands/management/reactionRoles.js +++ b/commands/management/reactionRoles.js @@ -1 +1 @@ -const a70_0x3f26=['countDocuments','value','resolver','DiscordError','NO_REACTION_ROLES','tag','length','../../models/Role','Command','MANAGE_ROLES','cache','fetchPremiumTier','url','role','COLORS','IRIS','catch','save','ROLE_NOT_FOUND','\x20Roles','default','REACTION_ROLES_PER_GROUP','errors','_id','Role\x20Emoji\x20Added','\x20/\x20[Jump\x20to\x20Reaction\x20Message](https://discord.com/channels/','send','join','Emoji','membershipLimitReactionRoleGroups','fetch','emoji','BASTION_ERROR_TYPE','emojis','channel','GOLD','client','constructor','resolveRoles','message','findByIdAndUpdate','LIMITED_PREMIUM_MEMBERSHIP','@bastion/tesseract','../../models/ReactionRoleGroup','PREMIUM_MEMBERSHIP_REQUIRED','Constants','GREEN','premiumReactionRoleGroups','get','exclusive','LIMITS','../../utils/constants','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','deleteOne','reactionRolesGroupAdd','reactionRoles\x20--role\x20ROLE\x20--no-emoji','test','membershipLimitReactionRoleGroupRoles','messages','RED','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../../utils/emojis','Role\x20Emoji','isPublicBastion','document','info','PLATINUM','reactionRoles\x20--message\x20ID\x20--role\x20ROLES...','locale','name','roleNotFound','../../utils/errors','premiumReactionRoleGroupRoles','exports','reactionRolesGroupRemove','PremiumTier','parseEmoji','REACTION_ROLE_GROUPS','reactionRoles','map','resolveRole','reaction','../../utils/omnic','react','reactionRoles\x20--message\x20ID\x20--delete','guild','delete','find','Reaction\x20Role\x20Groups','Role\x20Emoji\x20Removed','getString','\x20/\x20Exclusive','user','It\x20allows\x20you\x20to\x20create\x20(and\x20delete)\x20Reaction\x20Role\x20Groups.\x20A\x20Reaction\x20Role\x20Group\x20is\x20a\x20group\x20of\x20reactions\x20emojis\x20that\x20can\x20be\x20used\x20by\x20a\x20member\x20on\x20the\x20Reaction\x20Role\x20Message\x20to\x20add\x20(or\x20remove)\x20roles\x20to\x20themselves.\x20Reaction\x20Roles\x20in\x20a\x20single\x20group\x20can\x20also\x20be\x20set\x20as\x20mutually\x20exclusive.\x20It\x20also\x20allows\x20you\x20to\x20assign\x20emojis\x20to\x20roles,\x20that\x20can\x20be\x20used\x20in\x20reacting\x20to\x20the\x20Reaction\x20Role\x20Message.','language','apply'];(function(_0xed899d,_0x3f26b7){const _0x51d6b9=function(_0xd895d){while(--_0xd895d){_0xed899d['push'](_0xed899d['shift']());}},_0x93e8f4=function(){const _0x1715e6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x52a76c,_0x339569,_0x13ebc2,_0x1941cb){_0x1941cb=_0x1941cb||{};let _0x1ef460=_0x339569+'='+_0x13ebc2,_0x16a23c=0x0;for(let _0x3095eb=0x0,_0xc53c81=_0x52a76c['length'];_0x3095eb<_0xc53c81;_0x3095eb++){const _0xde4417=_0x52a76c[_0x3095eb];_0x1ef460+=';\x20'+_0xde4417;const _0x1aeced=_0x52a76c[_0xde4417];_0x52a76c['push'](_0x1aeced),_0xc53c81=_0x52a76c['length'],_0x1aeced!==!![]&&(_0x1ef460+='='+_0x1aeced);}_0x1941cb['cookie']=_0x1ef460;},'removeCookie':function(){return'dev';},'getCookie':function(_0x63cd0b,_0x3aec22){_0x63cd0b=_0x63cd0b||function(_0x432c05){return _0x432c05;};const _0x4737b4=_0x63cd0b(new RegExp('(?:^|;\x20)'+_0x3aec22['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2ecfc3=function(_0x35dc52,_0x3ee67f){_0x35dc52(++_0x3ee67f);};return _0x2ecfc3(_0x51d6b9,_0x3f26b7),_0x4737b4?decodeURIComponent(_0x4737b4[0x1]):undefined;}},_0x4ec7ff=function(){const _0x1b728f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1b728f['test'](_0x1715e6['removeCookie']['toString']());};_0x1715e6['updateCookie']=_0x4ec7ff;let _0x1b32a4='';const _0x4399b9=_0x1715e6['updateCookie']();if(!_0x4399b9)_0x1715e6['setCookie'](['*'],'counter',0x1);else _0x4399b9?_0x1b32a4=_0x1715e6['getCookie'](null,'counter'):_0x1715e6['removeCookie']();};_0x93e8f4();}(a70_0x3f26,0xa2));const a70_0x51d6=function(_0xed899d,_0x3f26b7){_0xed899d=_0xed899d-0x0;let _0x51d6b9=a70_0x3f26[_0xed899d];return _0x51d6b9;};const a70_0x13ebc2=function(){let _0x5a5fa7=!![];return function(_0xa68d64,_0x59765c){const _0x515844=_0x5a5fa7?function(){if(_0x59765c){const _0x252a14=_0x59765c[a70_0x51d6('0x1f')](_0xa68d64,arguments);return _0x59765c=null,_0x252a14;}}:function(){};return _0x5a5fa7=![],_0x515844;};}(),a70_0x339569=a70_0x13ebc2(this,function(){const _0x4e0369=function(){const _0x58f42e=_0x4e0369[a70_0x51d6('0x45')](a70_0x51d6('0x5d'))()[a70_0x51d6('0x45')](a70_0x51d6('0x55'));return!_0x58f42e[a70_0x51d6('0x59')](a70_0x339569);};return _0x4e0369();});a70_0x339569();'use strict';const tesseract_1=require(a70_0x51d6('0x4a')),Role_1=require(a70_0x51d6('0x27')),ReactionRoleGroup_1=require(a70_0x51d6('0x4b')),constants=require(a70_0x51d6('0x53')),emojis=require(a70_0x51d6('0x5e')),errors=require(a70_0x51d6('0x7')),omnic=require(a70_0x51d6('0x12'));module[a70_0x51d6('0x9')]=class ReactionRolesCommand extends tesseract_1[a70_0x51d6('0x28')]{constructor(){super(a70_0x51d6('0xe'),{'description':a70_0x51d6('0x1d'),'triggers':[],'arguments':{'array':[a70_0x51d6('0x2d')],'boolean':[a70_0x51d6('0x16'),a70_0x51d6('0x51')],'string':[a70_0x51d6('0x47'),'role',a70_0x51d6('0x3f')]},'scope':a70_0x51d6('0x15'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a70_0x51d6('0x29')],'userPermissions':[a70_0x51d6('0x29')],'syntax':[a70_0x51d6('0xe'),'reactionRoles\x20--role\x20ROLE\x20--emoji\x20EMOJI',a70_0x51d6('0x58'),a70_0x51d6('0x3'),'reactionRoles\x20--message\x20ID\x20--role\x20ROLES...\x20--exclusive',a70_0x51d6('0x14')]}),this[a70_0x51d6('0x54')]=async(_0x35760b,_0x144a2b)=>{if(_0x144a2b[a70_0x51d6('0x47')]&&_0x144a2b['delete'])return await ReactionRoleGroup_1[a70_0x51d6('0x34')][a70_0x51d6('0x56')]({'_id':_0x144a2b[a70_0x51d6('0x47')]}),await _0x35760b[a70_0x51d6('0x42')]['send']({'embed':{'color':tesseract_1['Constants'][a70_0x51d6('0x2e')]['RED'],'description':this[a70_0x51d6('0x44')]['locale'][a70_0x51d6('0x1a')](_0x35760b['guild']['document'][a70_0x51d6('0x1e')],'info',a70_0x51d6('0xa'),_0x35760b['author'][a70_0x51d6('0x25')],_0x144a2b[a70_0x51d6('0x47')])}})[a70_0x51d6('0x30')](()=>{});if(_0x144a2b['message']&&_0x144a2b[a70_0x51d6('0x2d')]&&_0x144a2b[a70_0x51d6('0x2d')][a70_0x51d6('0x26')]){if(constants[a70_0x51d6('0x60')](this[a70_0x51d6('0x44')][a70_0x51d6('0x1c')])){const _0x29cd49=await omnic[a70_0x51d6('0x2b')](_0x35760b[a70_0x51d6('0x15')])[a70_0x51d6('0x30')](()=>{});if(_0x29cd49){if(_0x29cd49===omnic[a70_0x51d6('0xb')][a70_0x51d6('0x43')]&&_0x144a2b[a70_0x51d6('0x2d')][a70_0x51d6('0x26')]>constants['LIMITS'][a70_0x51d6('0x43')][a70_0x51d6('0x35')])throw new errors['DiscordError'](errors[a70_0x51d6('0x40')][a70_0x51d6('0x49')],this[a70_0x51d6('0x44')][a70_0x51d6('0x4')][a70_0x51d6('0x1a')](_0x35760b[a70_0x51d6('0x15')][a70_0x51d6('0x0')][a70_0x51d6('0x1e')],'errors',a70_0x51d6('0x5a'),constants['LIMITS']['GOLD'][a70_0x51d6('0x35')]));else{if(_0x29cd49===omnic[a70_0x51d6('0xb')][a70_0x51d6('0x2')]&&_0x144a2b[a70_0x51d6('0x2d')]['length']>constants[a70_0x51d6('0x52')]['PLATINUM'][a70_0x51d6('0x35')])throw new errors[(a70_0x51d6('0x23'))](errors[a70_0x51d6('0x40')][a70_0x51d6('0x49')],this['client'][a70_0x51d6('0x4')][a70_0x51d6('0x1a')](_0x35760b[a70_0x51d6('0x15')]['document']['language'],a70_0x51d6('0x36'),a70_0x51d6('0x5a'),constants[a70_0x51d6('0x52')][a70_0x51d6('0x2')][a70_0x51d6('0x35')]));}}else{if(_0x144a2b['role']['length']>constants[a70_0x51d6('0x52')][a70_0x51d6('0x35')])throw new errors[(a70_0x51d6('0x23'))](errors[a70_0x51d6('0x40')][a70_0x51d6('0x4c')],this['client']['locale']['getString'](_0x35760b[a70_0x51d6('0x15')][a70_0x51d6('0x0')][a70_0x51d6('0x1e')],a70_0x51d6('0x36'),a70_0x51d6('0x8'),constants['LIMITS'][a70_0x51d6('0x35')]));}const _0x259af3=await ReactionRoleGroup_1[a70_0x51d6('0x34')][a70_0x51d6('0x20')]({'guild':_0x35760b[a70_0x51d6('0x15')]['id']});if(_0x29cd49){if(_0x29cd49===omnic[a70_0x51d6('0xb')][a70_0x51d6('0x43')]&&_0x259af3>=constants[a70_0x51d6('0x52')]['GOLD'][a70_0x51d6('0xd')])throw new errors[(a70_0x51d6('0x23'))](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this[a70_0x51d6('0x44')][a70_0x51d6('0x4')][a70_0x51d6('0x1a')](_0x35760b[a70_0x51d6('0x15')][a70_0x51d6('0x0')][a70_0x51d6('0x1e')],a70_0x51d6('0x36'),a70_0x51d6('0x3d'),constants['LIMITS'][a70_0x51d6('0x43')][a70_0x51d6('0xd')]));else{if(_0x29cd49===omnic[a70_0x51d6('0xb')][a70_0x51d6('0x2')]&&_0x259af3>=constants[a70_0x51d6('0x52')][a70_0x51d6('0x2')][a70_0x51d6('0xd')])throw new errors[(a70_0x51d6('0x23'))](errors[a70_0x51d6('0x40')][a70_0x51d6('0x49')],this['client'][a70_0x51d6('0x4')]['getString'](_0x35760b[a70_0x51d6('0x15')][a70_0x51d6('0x0')][a70_0x51d6('0x1e')],a70_0x51d6('0x36'),a70_0x51d6('0x3d'),constants['LIMITS'][a70_0x51d6('0x2')][a70_0x51d6('0xd')]));}}else{if(_0x259af3>=constants['LIMITS'][a70_0x51d6('0xd')])throw new errors[(a70_0x51d6('0x23'))](errors[a70_0x51d6('0x40')][a70_0x51d6('0x4c')],this[a70_0x51d6('0x44')]['locale'][a70_0x51d6('0x1a')](_0x35760b[a70_0x51d6('0x15')][a70_0x51d6('0x0')][a70_0x51d6('0x1e')],a70_0x51d6('0x36'),a70_0x51d6('0x4f'),constants['LIMITS'][a70_0x51d6('0xd')]));}}const _0x5ce04c=await _0x35760b[a70_0x51d6('0x42')][a70_0x51d6('0x5b')][a70_0x51d6('0x3e')](_0x144a2b[a70_0x51d6('0x47')],![])['catch'](()=>{});if(!_0x5ce04c)throw new Error('MESSAGE_NOT_FOUND');const _0x2b5baf=this[a70_0x51d6('0x44')][a70_0x51d6('0x22')][a70_0x51d6('0x46')](_0x35760b[a70_0x51d6('0x15')],_0x144a2b['role']);if(!_0x2b5baf[a70_0x51d6('0x26')])throw new errors[(a70_0x51d6('0x23'))](errors['BASTION_ERROR_TYPE'][a70_0x51d6('0x32')],this[a70_0x51d6('0x44')][a70_0x51d6('0x4')]['getString'](_0x35760b[a70_0x51d6('0x15')]['document'][a70_0x51d6('0x1e')],a70_0x51d6('0x36'),a70_0x51d6('0x6')));await ReactionRoleGroup_1[a70_0x51d6('0x34')][a70_0x51d6('0x48')](_0x5ce04c['id'],{'_id':_0x5ce04c['id'],'channel':_0x35760b[a70_0x51d6('0x42')]['id'],'guild':_0x35760b[a70_0x51d6('0x15')]['id'],'roles':_0x2b5baf[a70_0x51d6('0xf')](_0x451589=>_0x451589['id']),'exclusive':_0x144a2b[a70_0x51d6('0x51')]?_0x144a2b[a70_0x51d6('0x51')]:undefined},{'upsert':!![]}),await _0x35760b[a70_0x51d6('0x42')][a70_0x51d6('0x3a')]({'embed':{'color':tesseract_1['Constants'][a70_0x51d6('0x2e')][a70_0x51d6('0x4e')],'description':this[a70_0x51d6('0x44')][a70_0x51d6('0x4')][a70_0x51d6('0x1a')](_0x35760b[a70_0x51d6('0x15')]['document'][a70_0x51d6('0x1e')],a70_0x51d6('0x1'),a70_0x51d6('0x57'),_0x35760b['author'][a70_0x51d6('0x25')],_0x5ce04c[a70_0x51d6('0x2c')])}})['catch'](()=>{});const _0xbfc5d3=await Role_1['default'][a70_0x51d6('0x17')]({'$or':_0x2b5baf[a70_0x51d6('0xf')](_0x24bd9d=>({'_id':_0x24bd9d['id']})),'guild':_0x35760b['guild']['id'],'emoji':{'$exists':!![]}});if(_0xbfc5d3&&_0xbfc5d3[a70_0x51d6('0x26')])for(const _0x14a2f8 of _0xbfc5d3){const _0x2808b2=emojis[a70_0x51d6('0xc')](_0x14a2f8['emoji']);await _0x5ce04c[a70_0x51d6('0x13')](_0x2808b2['reaction']);}return;}if(_0x144a2b[a70_0x51d6('0x2d')]){const _0x5ef26b=_0x144a2b[a70_0x51d6('0x2d')]?_0x144a2b['role'][a70_0x51d6('0x3b')]('\x20'):'',_0x32e42b=this['client'][a70_0x51d6('0x22')][a70_0x51d6('0x10')](_0x35760b[a70_0x51d6('0x15')],_0x5ef26b);if(!_0x32e42b)throw new errors[(a70_0x51d6('0x23'))](errors[a70_0x51d6('0x40')][a70_0x51d6('0x32')],this[a70_0x51d6('0x44')][a70_0x51d6('0x4')][a70_0x51d6('0x1a')](_0x35760b[a70_0x51d6('0x15')]['document'][a70_0x51d6('0x1e')],'errors',a70_0x51d6('0x6')));let _0x3cb2da=await _0x32e42b['fetchDocument']();!_0x3cb2da&&_0x144a2b[a70_0x51d6('0x3f')]&&(_0x3cb2da=await _0x32e42b['createDocument']());if(_0x144a2b[a70_0x51d6('0x3f')]){const _0x5f02c9=emojis['parseEmoji'](_0x144a2b[a70_0x51d6('0x3f')]);_0x3cb2da['emoji']=_0x5f02c9[a70_0x51d6('0x21')],await _0x3cb2da[a70_0x51d6('0x31')]();}else _0x3cb2da&&_0x144a2b[a70_0x51d6('0x3f')]===![]&&(_0x3cb2da[a70_0x51d6('0x3f')]=undefined,await _0x3cb2da[a70_0x51d6('0x31')]());const _0x68ea=_0x3cb2da?emojis[a70_0x51d6('0xc')](_0x3cb2da[a70_0x51d6('0x3f')]):undefined;return await _0x35760b['channel'][a70_0x51d6('0x3a')]({'embed':{'color':_0x144a2b['emoji']?tesseract_1[a70_0x51d6('0x4d')][a70_0x51d6('0x2e')][a70_0x51d6('0x4e')]:_0x144a2b[a70_0x51d6('0x3f')]===![]?tesseract_1['Constants']['COLORS'][a70_0x51d6('0x5c')]:tesseract_1[a70_0x51d6('0x4d')][a70_0x51d6('0x2e')][a70_0x51d6('0x2f')],'title':_0x144a2b[a70_0x51d6('0x3f')]?a70_0x51d6('0x38'):_0x144a2b[a70_0x51d6('0x3f')]===![]?a70_0x51d6('0x19'):a70_0x51d6('0x5f'),'fields':[{'name':'Role','value':_0x32e42b[a70_0x51d6('0x5')]||'-','inline':!![]},{'name':a70_0x51d6('0x3c'),'value':_0x68ea?_0x68ea[a70_0x51d6('0x11')]===_0x68ea[a70_0x51d6('0x21')]?_0x35760b[a70_0x51d6('0x15')][a70_0x51d6('0x41')][a70_0x51d6('0x2a')][a70_0x51d6('0x50')](_0x68ea['reaction'])||_0x68ea[a70_0x51d6('0x21')]:_0x68ea[a70_0x51d6('0x11')]:'-','inline':!![]}]}})[a70_0x51d6('0x30')](()=>{});}const _0x1e312a=await ReactionRoleGroup_1['default'][a70_0x51d6('0x17')]({});if(!_0x1e312a)throw new Error(a70_0x51d6('0x24'));await _0x35760b['channel'][a70_0x51d6('0x3a')]({'embed':{'title':a70_0x51d6('0x18'),'fields':_0x1e312a[a70_0x51d6('0xf')](_0x597b1f=>({'name':_0x597b1f['_id'],'value':_0x597b1f['roles'][a70_0x51d6('0x26')]+a70_0x51d6('0x33')+(_0x597b1f[a70_0x51d6('0x51')]?a70_0x51d6('0x1b'):'')+a70_0x51d6('0x39')+_0x597b1f['guild']+'/'+_0x597b1f[a70_0x51d6('0x42')]+'/'+_0x597b1f[a70_0x51d6('0x37')]+')'}))}})[a70_0x51d6('0x30')](()=>{});};}}; \ No newline at end of file +const a70_0x13cb=['RED','errors','ROLE_NOT_FOUND','client','reactionRoles\x20--role\x20ROLE\x20--no-emoji','membershipLimitReactionRoleGroups','language','BASTION_ERROR_TYPE','join','\x20/\x20Exclusive','Command','GREEN','premiumReactionRoleGroupRoles','value','REACTION_ROLES_PER_GROUP','messages','\x20Roles','delete','send','countDocuments','guild','PLATINUM','reactionRoles','Reaction\x20Role\x20Groups','reaction','message','reactionRolesGroupRemove','roleNotFound','membershipLimitReactionRoleGroupRoles','MANAGE_ROLES','map','constructor','REACTION_ROLE_GROUPS','roles','author','catch','exports','test','reactionRoles\x20--message\x20ID\x20--role\x20ROLES...\x20--exclusive','createDocument','premiumReactionRoleGroups','../../models/Role','react','_id','fetch','GOLD','name','exclusive','reactionRoles\x20--message\x20ID\x20--role\x20ROLES...','save','parseEmoji','fetchPremiumTier','info','DiscordError','getString','LIMITS','locale','channel','role','apply','It\x20allows\x20you\x20to\x20create\x20(and\x20delete)\x20Reaction\x20Role\x20Groups.\x20A\x20Reaction\x20Role\x20Group\x20is\x20a\x20group\x20of\x20reactions\x20emojis\x20that\x20can\x20be\x20used\x20by\x20a\x20member\x20on\x20the\x20Reaction\x20Role\x20Message\x20to\x20add\x20(or\x20remove)\x20roles\x20to\x20themselves.\x20Reaction\x20Roles\x20in\x20a\x20single\x20group\x20can\x20also\x20be\x20set\x20as\x20mutually\x20exclusive.\x20It\x20also\x20allows\x20you\x20to\x20assign\x20emojis\x20to\x20roles,\x20that\x20can\x20be\x20used\x20in\x20reacting\x20to\x20the\x20Reaction\x20Role\x20Message.','document','get','resolver','COLORS','cache','find','reactionRoles\x20--role\x20ROLE\x20--emoji\x20EMOJI','\x20/\x20[Jump\x20to\x20Reaction\x20Message](https://discord.com/channels/','PremiumTier','PREMIUM_MEMBERSHIP_REQUIRED','default','emojis','Role\x20Emoji\x20Removed','LIMITED_PREMIUM_MEMBERSHIP','Emoji','Role','Constants','NO_REACTION_ROLES','deleteOne','length','return\x20/\x22\x20+\x20this\x20+\x20\x22/','IRIS','isPublicBastion','reactionRolesGroupAdd','resolveRole','user','Role\x20Emoji','emoji','findByIdAndUpdate','../../utils/omnic'];(function(_0xd3fdc6,_0x13cbb8){const _0x116787=function(_0x450595){while(--_0x450595){_0xd3fdc6['push'](_0xd3fdc6['shift']());}},_0x3fe79c=function(){const _0x503512={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x299622,_0x39441c,_0x183734,_0x8cc516){_0x8cc516=_0x8cc516||{};let _0x20e8d1=_0x39441c+'='+_0x183734,_0x39372b=0x0;for(let _0x10671b=0x0,_0xfeefcc=_0x299622['length'];_0x10671b<_0xfeefcc;_0x10671b++){const _0x5a9e89=_0x299622[_0x10671b];_0x20e8d1+=';\x20'+_0x5a9e89;const _0x390d7b=_0x299622[_0x5a9e89];_0x299622['push'](_0x390d7b),_0xfeefcc=_0x299622['length'],_0x390d7b!==!![]&&(_0x20e8d1+='='+_0x390d7b);}_0x8cc516['cookie']=_0x20e8d1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5b0d46,_0x438f3b){_0x5b0d46=_0x5b0d46||function(_0x5a6c9e){return _0x5a6c9e;};const _0x482e8b=_0x5b0d46(new RegExp('(?:^|;\x20)'+_0x438f3b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5e3e51=function(_0x5aea1a,_0x3ed25a){_0x5aea1a(++_0x3ed25a);};return _0x5e3e51(_0x116787,_0x13cbb8),_0x482e8b?decodeURIComponent(_0x482e8b[0x1]):undefined;}},_0x1f3a34=function(){const _0x68b1bf=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x68b1bf['test'](_0x503512['removeCookie']['toString']());};_0x503512['updateCookie']=_0x1f3a34;let _0x4a9cfd='';const _0x4ccd53=_0x503512['updateCookie']();if(!_0x4ccd53)_0x503512['setCookie'](['*'],'counter',0x1);else _0x4ccd53?_0x4a9cfd=_0x503512['getCookie'](null,'counter'):_0x503512['removeCookie']();};_0x3fe79c();}(a70_0x13cb,0x9b));const a70_0x1167=function(_0xd3fdc6,_0x13cbb8){_0xd3fdc6=_0xd3fdc6-0x0;let _0x116787=a70_0x13cb[_0xd3fdc6];return _0x116787;};const a70_0x183734=function(){let _0x51bfc1=!![];return function(_0x1348e0,_0x3b9a6f){const _0x2e387a=_0x51bfc1?function(){if(_0x3b9a6f){const _0x65ebde=_0x3b9a6f[a70_0x1167('0x56')](_0x1348e0,arguments);return _0x3b9a6f=null,_0x65ebde;}}:function(){};return _0x51bfc1=![],_0x2e387a;};}(),a70_0x39441c=a70_0x183734(this,function(){const _0x5d3eb3=function(){const _0x60a762=_0x5d3eb3[a70_0x1167('0x3a')](a70_0x1167('0x11'))()[a70_0x1167('0x3a')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x60a762[a70_0x1167('0x40')](a70_0x39441c);};return _0x5d3eb3();});a70_0x39441c();'use strict';const tesseract_1=require('@bastion/tesseract'),Role_1=require(a70_0x1167('0x44')),ReactionRoleGroup_1=require('../../models/ReactionRoleGroup'),constants=require('../../utils/constants'),emojis=require('../../utils/emojis'),errors=require('../../utils/errors'),omnic=require(a70_0x1167('0x1a'));module[a70_0x1167('0x3f')]=class ReactionRolesCommand extends tesseract_1[a70_0x1167('0x25')]{constructor(){super(a70_0x1167('0x31'),{'description':a70_0x1167('0x57'),'triggers':[],'arguments':{'array':[a70_0x1167('0x55')],'boolean':['delete',a70_0x1167('0x4a')],'string':[a70_0x1167('0x34'),a70_0x1167('0x55'),a70_0x1167('0x18')]},'scope':a70_0x1167('0x2f'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_ROLES'],'userPermissions':[a70_0x1167('0x38')],'syntax':['reactionRoles',a70_0x1167('0x3'),a70_0x1167('0x1f'),a70_0x1167('0x4b'),a70_0x1167('0x41'),'reactionRoles\x20--message\x20ID\x20--delete']}),this['exec']=async(_0x20614b,_0x45b757)=>{if(_0x45b757['message']&&_0x45b757[a70_0x1167('0x2c')])return await ReactionRoleGroup_1[a70_0x1167('0x7')][a70_0x1167('0xf')]({'_id':_0x45b757['message']}),await _0x20614b[a70_0x1167('0x54')][a70_0x1167('0x2d')]({'embed':{'color':tesseract_1[a70_0x1167('0xd')][a70_0x1167('0x0')][a70_0x1167('0x1b')],'description':this[a70_0x1167('0x1e')][a70_0x1167('0x53')][a70_0x1167('0x51')](_0x20614b[a70_0x1167('0x2f')][a70_0x1167('0x58')][a70_0x1167('0x21')],a70_0x1167('0x4f'),a70_0x1167('0x35'),_0x20614b['author']['tag'],_0x45b757[a70_0x1167('0x34')])}})['catch'](()=>{});if(_0x45b757['message']&&_0x45b757[a70_0x1167('0x55')]&&_0x45b757[a70_0x1167('0x55')][a70_0x1167('0x10')]){if(constants[a70_0x1167('0x13')](this[a70_0x1167('0x1e')][a70_0x1167('0x16')])){const _0x398283=await omnic[a70_0x1167('0x4e')](_0x20614b[a70_0x1167('0x2f')])['catch'](()=>{});if(_0x398283){if(_0x398283===omnic[a70_0x1167('0x5')][a70_0x1167('0x48')]&&_0x45b757[a70_0x1167('0x55')][a70_0x1167('0x10')]>constants['LIMITS'][a70_0x1167('0x48')][a70_0x1167('0x29')])throw new errors[(a70_0x1167('0x50'))](errors[a70_0x1167('0x22')][a70_0x1167('0xa')],this['client'][a70_0x1167('0x53')][a70_0x1167('0x51')](_0x20614b[a70_0x1167('0x2f')][a70_0x1167('0x58')][a70_0x1167('0x21')],a70_0x1167('0x1c'),a70_0x1167('0x37'),constants[a70_0x1167('0x52')][a70_0x1167('0x48')][a70_0x1167('0x29')]));else{if(_0x398283===omnic[a70_0x1167('0x5')][a70_0x1167('0x30')]&&_0x45b757[a70_0x1167('0x55')][a70_0x1167('0x10')]>constants['LIMITS'][a70_0x1167('0x30')][a70_0x1167('0x29')])throw new errors[(a70_0x1167('0x50'))](errors[a70_0x1167('0x22')][a70_0x1167('0xa')],this[a70_0x1167('0x1e')][a70_0x1167('0x53')][a70_0x1167('0x51')](_0x20614b[a70_0x1167('0x2f')][a70_0x1167('0x58')]['language'],a70_0x1167('0x1c'),a70_0x1167('0x37'),constants[a70_0x1167('0x52')][a70_0x1167('0x30')][a70_0x1167('0x29')]));}}else{if(_0x45b757[a70_0x1167('0x55')][a70_0x1167('0x10')]>constants[a70_0x1167('0x52')][a70_0x1167('0x29')])throw new errors[(a70_0x1167('0x50'))](errors['BASTION_ERROR_TYPE'][a70_0x1167('0x6')],this[a70_0x1167('0x1e')][a70_0x1167('0x53')]['getString'](_0x20614b['guild'][a70_0x1167('0x58')][a70_0x1167('0x21')],a70_0x1167('0x1c'),a70_0x1167('0x27'),constants[a70_0x1167('0x52')][a70_0x1167('0x29')]));}const _0x26788f=await ReactionRoleGroup_1[a70_0x1167('0x7')][a70_0x1167('0x2e')]({'guild':_0x20614b[a70_0x1167('0x2f')]['id']});if(_0x398283){if(_0x398283===omnic[a70_0x1167('0x5')][a70_0x1167('0x48')]&&_0x26788f>=constants[a70_0x1167('0x52')][a70_0x1167('0x48')][a70_0x1167('0x3b')])throw new errors[(a70_0x1167('0x50'))](errors[a70_0x1167('0x22')]['LIMITED_PREMIUM_MEMBERSHIP'],this[a70_0x1167('0x1e')][a70_0x1167('0x53')][a70_0x1167('0x51')](_0x20614b['guild'][a70_0x1167('0x58')][a70_0x1167('0x21')],a70_0x1167('0x1c'),a70_0x1167('0x20'),constants[a70_0x1167('0x52')][a70_0x1167('0x48')][a70_0x1167('0x3b')]));else{if(_0x398283===omnic[a70_0x1167('0x5')][a70_0x1167('0x30')]&&_0x26788f>=constants['LIMITS'][a70_0x1167('0x30')][a70_0x1167('0x3b')])throw new errors['DiscordError'](errors[a70_0x1167('0x22')][a70_0x1167('0xa')],this[a70_0x1167('0x1e')][a70_0x1167('0x53')][a70_0x1167('0x51')](_0x20614b[a70_0x1167('0x2f')][a70_0x1167('0x58')][a70_0x1167('0x21')],'errors',a70_0x1167('0x20'),constants[a70_0x1167('0x52')]['PLATINUM']['REACTION_ROLE_GROUPS']));}}else{if(_0x26788f>=constants[a70_0x1167('0x52')][a70_0x1167('0x3b')])throw new errors['DiscordError'](errors[a70_0x1167('0x22')][a70_0x1167('0x6')],this[a70_0x1167('0x1e')][a70_0x1167('0x53')][a70_0x1167('0x51')](_0x20614b['guild'][a70_0x1167('0x58')]['language'],a70_0x1167('0x1c'),a70_0x1167('0x43'),constants[a70_0x1167('0x52')]['REACTION_ROLE_GROUPS']));}}const _0x26a3c9=await _0x20614b[a70_0x1167('0x54')][a70_0x1167('0x2a')][a70_0x1167('0x47')](_0x45b757[a70_0x1167('0x34')],![])[a70_0x1167('0x3e')](()=>{});if(!_0x26a3c9)throw new Error('MESSAGE_NOT_FOUND');const _0x3e471d=this[a70_0x1167('0x1e')][a70_0x1167('0x5a')]['resolveRoles'](_0x20614b[a70_0x1167('0x2f')],_0x45b757[a70_0x1167('0x55')]);if(!_0x3e471d[a70_0x1167('0x10')])throw new errors[(a70_0x1167('0x50'))](errors[a70_0x1167('0x22')][a70_0x1167('0x1d')],this[a70_0x1167('0x1e')]['locale'][a70_0x1167('0x51')](_0x20614b['guild'][a70_0x1167('0x58')][a70_0x1167('0x21')],a70_0x1167('0x1c'),a70_0x1167('0x36')));await ReactionRoleGroup_1[a70_0x1167('0x7')][a70_0x1167('0x19')](_0x26a3c9['id'],{'_id':_0x26a3c9['id'],'channel':_0x20614b[a70_0x1167('0x54')]['id'],'guild':_0x20614b['guild']['id'],'roles':_0x3e471d[a70_0x1167('0x39')](_0x4b6510=>_0x4b6510['id']),'exclusive':_0x45b757['exclusive']?_0x45b757[a70_0x1167('0x4a')]:undefined},{'upsert':!![]}),await _0x20614b['channel'][a70_0x1167('0x2d')]({'embed':{'color':tesseract_1[a70_0x1167('0xd')][a70_0x1167('0x0')][a70_0x1167('0x26')],'description':this[a70_0x1167('0x1e')][a70_0x1167('0x53')][a70_0x1167('0x51')](_0x20614b[a70_0x1167('0x2f')][a70_0x1167('0x58')][a70_0x1167('0x21')],a70_0x1167('0x4f'),a70_0x1167('0x14'),_0x20614b[a70_0x1167('0x3d')]['tag'],_0x26a3c9['url'])}})['catch'](()=>{});const _0x4d4ee6=await Role_1[a70_0x1167('0x7')][a70_0x1167('0x2')]({'$or':_0x3e471d[a70_0x1167('0x39')](_0x537dd8=>({'_id':_0x537dd8['id']})),'guild':_0x20614b[a70_0x1167('0x2f')]['id'],'emoji':{'$exists':!![]}});if(_0x4d4ee6&&_0x4d4ee6[a70_0x1167('0x10')])for(const _0x256bd2 of _0x4d4ee6){const _0x4e30cb=emojis[a70_0x1167('0x4d')](_0x256bd2[a70_0x1167('0x18')]);await _0x26a3c9[a70_0x1167('0x45')](_0x4e30cb[a70_0x1167('0x33')]);}return;}if(_0x45b757['role']){const _0xe2880c=_0x45b757[a70_0x1167('0x55')]?_0x45b757['role'][a70_0x1167('0x23')]('\x20'):'',_0x41ee3c=this['client'][a70_0x1167('0x5a')][a70_0x1167('0x15')](_0x20614b[a70_0x1167('0x2f')],_0xe2880c);if(!_0x41ee3c)throw new errors['DiscordError'](errors[a70_0x1167('0x22')][a70_0x1167('0x1d')],this[a70_0x1167('0x1e')][a70_0x1167('0x53')][a70_0x1167('0x51')](_0x20614b[a70_0x1167('0x2f')][a70_0x1167('0x58')]['language'],a70_0x1167('0x1c'),a70_0x1167('0x36')));let _0x2d0b2d=await _0x41ee3c['fetchDocument']();!_0x2d0b2d&&_0x45b757['emoji']&&(_0x2d0b2d=await _0x41ee3c[a70_0x1167('0x42')]());if(_0x45b757[a70_0x1167('0x18')]){const _0x10b8a4=emojis[a70_0x1167('0x4d')](_0x45b757[a70_0x1167('0x18')]);_0x2d0b2d['emoji']=_0x10b8a4[a70_0x1167('0x28')],await _0x2d0b2d[a70_0x1167('0x4c')]();}else _0x2d0b2d&&_0x45b757[a70_0x1167('0x18')]===![]&&(_0x2d0b2d[a70_0x1167('0x18')]=undefined,await _0x2d0b2d[a70_0x1167('0x4c')]());const _0x5140f5=_0x2d0b2d?emojis[a70_0x1167('0x4d')](_0x2d0b2d[a70_0x1167('0x18')]):undefined;return await _0x20614b[a70_0x1167('0x54')][a70_0x1167('0x2d')]({'embed':{'color':_0x45b757[a70_0x1167('0x18')]?tesseract_1['Constants'][a70_0x1167('0x0')]['GREEN']:_0x45b757[a70_0x1167('0x18')]===![]?tesseract_1[a70_0x1167('0xd')][a70_0x1167('0x0')]['RED']:tesseract_1[a70_0x1167('0xd')][a70_0x1167('0x0')][a70_0x1167('0x12')],'title':_0x45b757[a70_0x1167('0x18')]?'Role\x20Emoji\x20Added':_0x45b757[a70_0x1167('0x18')]===![]?a70_0x1167('0x9'):a70_0x1167('0x17'),'fields':[{'name':a70_0x1167('0xc'),'value':_0x41ee3c[a70_0x1167('0x49')]||'-','inline':!![]},{'name':a70_0x1167('0xb'),'value':_0x5140f5?_0x5140f5[a70_0x1167('0x33')]===_0x5140f5[a70_0x1167('0x28')]?_0x20614b[a70_0x1167('0x2f')][a70_0x1167('0x8')][a70_0x1167('0x1')][a70_0x1167('0x59')](_0x5140f5[a70_0x1167('0x33')])||_0x5140f5[a70_0x1167('0x28')]:_0x5140f5[a70_0x1167('0x33')]:'-','inline':!![]}]}})[a70_0x1167('0x3e')](()=>{});}const _0x20d4d3=await ReactionRoleGroup_1[a70_0x1167('0x7')]['find']({});if(!_0x20d4d3)throw new Error(a70_0x1167('0xe'));await _0x20614b[a70_0x1167('0x54')]['send']({'embed':{'title':a70_0x1167('0x32'),'fields':_0x20d4d3[a70_0x1167('0x39')](_0x2ddaac=>({'name':_0x2ddaac[a70_0x1167('0x46')],'value':_0x2ddaac[a70_0x1167('0x3c')][a70_0x1167('0x10')]+a70_0x1167('0x2b')+(_0x2ddaac[a70_0x1167('0x4a')]?a70_0x1167('0x24'):'')+a70_0x1167('0x4')+_0x2ddaac[a70_0x1167('0x2f')]+'/'+_0x2ddaac[a70_0x1167('0x54')]+'/'+_0x2ddaac[a70_0x1167('0x46')]+')'}))}})[a70_0x1167('0x3e')](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/roleStore.js b/commands/management/roleStore.js index 46d0adf30..1eace88ef 100644 --- a/commands/management/roleStore.js +++ b/commands/management/roleStore.js @@ -1 +1 @@ -const a71_0x5790=['length','It\x20allows\x20you\x20to\x20set\x20up\x20a\x20Role\x20Store\x20in\x20the\x20server.\x20Server\x20managers\x20can\x20sell\x20roles\x20in\x20the\x20server\x20and\x20members\x20can\x20buy\x20them\x20with\x20Bastion\x20Coins.','LIMITS','GOLD','PREMIUM_MEMBERSHIP_REQUIRED','return\x20/\x22\x20+\x20this\x20+\x20\x22/','membershipLimitPaidRoles','document','info','error','findOneAndUpdate','../../utils/errors','has','ROLE_NOT_FOR_SALE','LIMITED_PREMIUM_MEMBERSHIP','tag','member','premiumPaidRoles','countDocuments','errors','Command','locale','../../models/Role','PLATINUM','Constants','IRIS','add','RED','PremiumTier','default','MAX_SAFE_INTEGER','constructor','roleStore','sell','Roles\x20Store','user','roles','price','isPublicBastion','save','resolver','unlist','GREEN','buy','../../utils/omnic','debit','@bastion/tesseract','roleStore\x20ROLE\x20--unlist','find','get','language','../../utils/numbers','permissions','ROLE_NOT_FOUND','client','MANAGE_ROLES','send','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','channel','NO_PERMISSION','DiscordError','fetchPremiumTier','roleStore\x20ROLE\x20--sell\x20AMOUNT','exports','INSUFFICIENT_BALANCE','apply','findOne','../../utils/constants','roleNotFound','Paid\x20Role','\x20Bastion\x20Coins','ROLE_ALREADY_ASSIGNED','roleStore\x20ROLE\x20--buy','guild','join','cache','_id','resolveRole','catch','name','getString','PAID_ROLES','author','exec','clamp','map'];(function(_0x18aebf,_0x57908c){const _0x5ea8f7=function(_0x522d92){while(--_0x522d92){_0x18aebf['push'](_0x18aebf['shift']());}},_0x315f5a=function(){const _0x3d8623={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4f5c25,_0x561a9a,_0x18ad52,_0x24dc7a){_0x24dc7a=_0x24dc7a||{};let _0x83f138=_0x561a9a+'='+_0x18ad52,_0x2434f8=0x0;for(let _0x153e31=0x0,_0x31c791=_0x4f5c25['length'];_0x153e31<_0x31c791;_0x153e31++){const _0x1f7e2c=_0x4f5c25[_0x153e31];_0x83f138+=';\x20'+_0x1f7e2c;const _0x4f6492=_0x4f5c25[_0x1f7e2c];_0x4f5c25['push'](_0x4f6492),_0x31c791=_0x4f5c25['length'],_0x4f6492!==!![]&&(_0x83f138+='='+_0x4f6492);}_0x24dc7a['cookie']=_0x83f138;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3eef9a,_0x7ff1ac){_0x3eef9a=_0x3eef9a||function(_0x26bb6f){return _0x26bb6f;};const _0x2e356b=_0x3eef9a(new RegExp('(?:^|;\x20)'+_0x7ff1ac['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2f9dd1=function(_0x2a56ab,_0x114645){_0x2a56ab(++_0x114645);};return _0x2f9dd1(_0x5ea8f7,_0x57908c),_0x2e356b?decodeURIComponent(_0x2e356b[0x1]):undefined;}},_0x1c0352=function(){const _0x131cce=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x131cce['test'](_0x3d8623['removeCookie']['toString']());};_0x3d8623['updateCookie']=_0x1c0352;let _0x1c1319='';const _0xad49ff=_0x3d8623['updateCookie']();if(!_0xad49ff)_0x3d8623['setCookie'](['*'],'counter',0x1);else _0xad49ff?_0x1c1319=_0x3d8623['getCookie'](null,'counter'):_0x3d8623['removeCookie']();};_0x315f5a();}(a71_0x5790,0xcb));const a71_0x5ea8=function(_0x18aebf,_0x57908c){_0x18aebf=_0x18aebf-0x0;let _0x5ea8f7=a71_0x5790[_0x18aebf];return _0x5ea8f7;};const a71_0x18ad52=function(){let _0x21875e=!![];return function(_0x3d345e,_0x2dc36d){const _0x41250b=_0x21875e?function(){if(_0x2dc36d){const _0x3a68c5=_0x2dc36d[a71_0x5ea8('0x25')](_0x3d345e,arguments);return _0x2dc36d=null,_0x3a68c5;}}:function(){};return _0x21875e=![],_0x41250b;};}(),a71_0x561a9a=a71_0x18ad52(this,function(){const _0x3bf009=function(){const _0x4a8ade=_0x3bf009[a71_0x5ea8('0x2')](a71_0x5ea8('0x3f'))()[a71_0x5ea8('0x2')](a71_0x5ea8('0x1c'));return!_0x4a8ade['test'](a71_0x561a9a);};return _0x3bf009();});a71_0x561a9a();'use strict';const tesseract_1=require(a71_0x5ea8('0x11')),Role_1=require(a71_0x5ea8('0x50')),constants=require(a71_0x5ea8('0x27')),errors=require(a71_0x5ea8('0x45')),numbers=require(a71_0x5ea8('0x16')),omnic=require(a71_0x5ea8('0xf'));module[a71_0x5ea8('0x23')]=class RoleStoreCommand extends tesseract_1[a71_0x5ea8('0x4e')]{constructor(){super(a71_0x5ea8('0x3'),{'description':a71_0x5ea8('0x3b'),'triggers':[],'arguments':{'boolean':[a71_0x5ea8('0xe'),'unlist'],'number':[a71_0x5ea8('0x4')],'coerce':{'sell':_0x2f557d=>numbers[a71_0x5ea8('0x38')](_0x2f557d,0x1,Number[a71_0x5ea8('0x1')])}},'scope':a71_0x5ea8('0x2d'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a71_0x5ea8('0x1a')],'userPermissions':[],'syntax':[a71_0x5ea8('0x3'),a71_0x5ea8('0x22'),a71_0x5ea8('0x2c'),a71_0x5ea8('0x12')]}),this[a71_0x5ea8('0x37')]=async(_0x2435f1,_0x1b6246)=>{if(_0x1b6246['_'][a71_0x5ea8('0x3a')]){const _0x2110d3=this['client'][a71_0x5ea8('0xb')][a71_0x5ea8('0x31')](_0x2435f1[a71_0x5ea8('0x2d')],_0x1b6246['_'][a71_0x5ea8('0x2e')]('\x20'));if(!_0x2110d3)throw new errors[(a71_0x5ea8('0x20'))](errors['BASTION_ERROR_TYPE'][a71_0x5ea8('0x18')],this['client'][a71_0x5ea8('0x4f')][a71_0x5ea8('0x34')](_0x2435f1['guild'][a71_0x5ea8('0x41')][a71_0x5ea8('0x15')],a71_0x5ea8('0x43'),a71_0x5ea8('0x28')));if(_0x1b6246[a71_0x5ea8('0x4')]>0x0){if(constants[a71_0x5ea8('0x9')](this[a71_0x5ea8('0x19')][a71_0x5ea8('0x6')])){const _0x42c594=await Role_1[a71_0x5ea8('0x0')][a71_0x5ea8('0x4c')]({'guild':_0x2435f1['guild']['id'],'price':{'$exists':!![],'$ne':null}});if(_0x42c594>=constants[a71_0x5ea8('0x3c')][a71_0x5ea8('0x35')]){const _0x4bd280=await omnic[a71_0x5ea8('0x21')](_0x2435f1[a71_0x5ea8('0x2d')])[a71_0x5ea8('0x32')](()=>{});if(_0x4bd280){if(_0x4bd280===omnic[a71_0x5ea8('0x56')][a71_0x5ea8('0x3d')]&&_0x42c594>=constants['LIMITS']['GOLD'][a71_0x5ea8('0x35')])throw new errors[(a71_0x5ea8('0x20'))](errors['BASTION_ERROR_TYPE'][a71_0x5ea8('0x48')],this['client'][a71_0x5ea8('0x4f')][a71_0x5ea8('0x34')](_0x2435f1[a71_0x5ea8('0x2d')][a71_0x5ea8('0x41')][a71_0x5ea8('0x15')],a71_0x5ea8('0x4d'),a71_0x5ea8('0x40'),constants[a71_0x5ea8('0x3c')][a71_0x5ea8('0x3d')][a71_0x5ea8('0x35')]));else{if(_0x4bd280===omnic[a71_0x5ea8('0x56')][a71_0x5ea8('0x51')]&&_0x42c594>=constants[a71_0x5ea8('0x3c')]['PLATINUM'][a71_0x5ea8('0x35')])throw new errors[(a71_0x5ea8('0x20'))](errors['BASTION_ERROR_TYPE'][a71_0x5ea8('0x48')],this[a71_0x5ea8('0x19')][a71_0x5ea8('0x4f')][a71_0x5ea8('0x34')](_0x2435f1['guild'][a71_0x5ea8('0x41')][a71_0x5ea8('0x15')],a71_0x5ea8('0x4d'),a71_0x5ea8('0x40'),constants[a71_0x5ea8('0x3c')][a71_0x5ea8('0x51')]['PAID_ROLES']));}}else throw new errors[(a71_0x5ea8('0x20'))](errors['BASTION_ERROR_TYPE'][a71_0x5ea8('0x3e')],this[a71_0x5ea8('0x19')][a71_0x5ea8('0x4f')]['getString'](_0x2435f1[a71_0x5ea8('0x2d')][a71_0x5ea8('0x41')][a71_0x5ea8('0x15')],'errors',a71_0x5ea8('0x4b'),constants[a71_0x5ea8('0x3c')]['PAID_ROLES']));}}if(!_0x2435f1[a71_0x5ea8('0x4a')][a71_0x5ea8('0x17')][a71_0x5ea8('0x46')](a71_0x5ea8('0x1a')))throw new Error(a71_0x5ea8('0x1f'));return await Role_1['default'][a71_0x5ea8('0x44')]({'_id':_0x2110d3['id'],'guild':_0x2435f1[a71_0x5ea8('0x2d')]['id']},{'_id':_0x2110d3['id'],'guild':_0x2435f1[a71_0x5ea8('0x2d')]['id'],'price':_0x1b6246[a71_0x5ea8('0x4')]},{'upsert':!![]}),await _0x2435f1['channel'][a71_0x5ea8('0x1b')]({'embed':{'color':tesseract_1['Constants'][a71_0x5ea8('0x1d')]['GREEN'],'description':this['client'][a71_0x5ea8('0x4f')][a71_0x5ea8('0x34')](_0x2435f1[a71_0x5ea8('0x2d')][a71_0x5ea8('0x41')][a71_0x5ea8('0x15')],'info','roleStoreAdd',_0x2435f1['author']['tag'],_0x2110d3[a71_0x5ea8('0x33')],_0x1b6246[a71_0x5ea8('0x4')])}})['catch'](()=>{});}if(_0x1b6246[a71_0x5ea8('0xe')]){if(_0x2435f1[a71_0x5ea8('0x4a')][a71_0x5ea8('0x7')][a71_0x5ea8('0x2f')][a71_0x5ea8('0x46')](_0x2110d3['id']))throw new Error(a71_0x5ea8('0x2b'));const _0x3e8ead=await Role_1['default'][a71_0x5ea8('0x26')]({'_id':_0x2110d3['id'],'guild':_0x2435f1['guild']['id'],'price':{'$exists':!![],'$ne':null}});if(!_0x3e8ead)throw new Error(a71_0x5ea8('0x47'));if(_0x2435f1[a71_0x5ea8('0x4a')][a71_0x5ea8('0x41')]['balance']<_0x3e8ead[a71_0x5ea8('0x8')])throw new Error(a71_0x5ea8('0x24'));return await _0x2435f1['member'][a71_0x5ea8('0x7')][a71_0x5ea8('0x54')](_0x2110d3),_0x2435f1[a71_0x5ea8('0x4a')][a71_0x5ea8('0x10')](_0x3e8ead[a71_0x5ea8('0x8')],a71_0x5ea8('0x29'),_0x2435f1[a71_0x5ea8('0x4a')]['document']),await _0x2435f1['member']['document'][a71_0x5ea8('0xa')](),await _0x2435f1[a71_0x5ea8('0x1e')]['send']({'embed':{'color':tesseract_1[a71_0x5ea8('0x52')][a71_0x5ea8('0x1d')][a71_0x5ea8('0xd')],'description':this[a71_0x5ea8('0x19')][a71_0x5ea8('0x4f')][a71_0x5ea8('0x34')](_0x2435f1[a71_0x5ea8('0x2d')][a71_0x5ea8('0x41')][a71_0x5ea8('0x15')],a71_0x5ea8('0x42'),'roleBought',_0x2435f1[a71_0x5ea8('0x36')][a71_0x5ea8('0x49')],_0x2110d3[a71_0x5ea8('0x33')],_0x3e8ead[a71_0x5ea8('0x8')])}})[a71_0x5ea8('0x32')](()=>{});}if(_0x1b6246[a71_0x5ea8('0xc')]){if(!_0x2435f1['member'][a71_0x5ea8('0x17')][a71_0x5ea8('0x46')](a71_0x5ea8('0x1a')))throw new Error(a71_0x5ea8('0x1f'));return await Role_1['default'][a71_0x5ea8('0x44')]({'_id':_0x2110d3['id'],'guild':_0x2435f1[a71_0x5ea8('0x2d')]['id'],'price':{'$exists':!![],'$ne':null}},{'_id':_0x2110d3['id'],'guild':_0x2435f1[a71_0x5ea8('0x2d')]['id'],'$unset':{'price':0x1}}),await _0x2435f1[a71_0x5ea8('0x1e')][a71_0x5ea8('0x1b')]({'embed':{'color':tesseract_1['Constants']['COLORS'][a71_0x5ea8('0x55')],'description':this['client']['locale'][a71_0x5ea8('0x34')](_0x2435f1[a71_0x5ea8('0x2d')][a71_0x5ea8('0x41')][a71_0x5ea8('0x15')],a71_0x5ea8('0x42'),'roleStoreRemove',_0x2435f1['author'][a71_0x5ea8('0x49')],_0x2110d3[a71_0x5ea8('0x33')])}})[a71_0x5ea8('0x32')](()=>{});}}const _0x31d9d3=await Role_1[a71_0x5ea8('0x0')][a71_0x5ea8('0x13')]({'guild':_0x2435f1[a71_0x5ea8('0x2d')]['id'],'price':{'$exists':!![],'$ne':null}});if(!_0x31d9d3[a71_0x5ea8('0x3a')])throw new Error('NO_ROLES_ON_SALE');return await _0x2435f1[a71_0x5ea8('0x1e')]['send']({'embed':{'color':tesseract_1[a71_0x5ea8('0x52')]['COLORS'][a71_0x5ea8('0x53')],'title':a71_0x5ea8('0x5'),'fields':_0x31d9d3[a71_0x5ea8('0x39')](_0x2c868a=>({'name':(_0x2435f1['guild'][a71_0x5ea8('0x7')]['cache'][a71_0x5ea8('0x46')](_0x2c868a[a71_0x5ea8('0x30')])?_0x2435f1[a71_0x5ea8('0x2d')][a71_0x5ea8('0x7')][a71_0x5ea8('0x2f')][a71_0x5ea8('0x14')](_0x2c868a[a71_0x5ea8('0x30')])[a71_0x5ea8('0x33')]+'\x20/\x20':'')+_0x2c868a[a71_0x5ea8('0x30')],'value':_0x2c868a[a71_0x5ea8('0x8')]+a71_0x5ea8('0x2a')}))}})[a71_0x5ea8('0x32')](()=>{});};}}; \ No newline at end of file +const a71_0x2b3b=['default','COLORS','buy','roleBought','It\x20allows\x20you\x20to\x20set\x20up\x20a\x20Role\x20Store\x20in\x20the\x20server.\x20Server\x20managers\x20can\x20sell\x20roles\x20in\x20the\x20server\x20and\x20members\x20can\x20buy\x20them\x20with\x20Bastion\x20Coins.','author','price','../../utils/omnic','catch','balance','PREMIUM_MEMBERSHIP_REQUIRED','get','../../utils/errors','find','_id','client','ROLE_ALREADY_ASSIGNED','length','roleStore\x20ROLE\x20--unlist','@bastion/tesseract','user','MAX_SAFE_INTEGER','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','roleStoreAdd','send','getString','RED','GREEN','language','test','error','apply','unlist','resolveRole','LIMITED_PREMIUM_MEMBERSHIP','constructor','findOne','roleStoreRemove','Constants','cache','exec','save','roleStore','PAID_ROLES','roleStore\x20ROLE\x20--sell\x20AMOUNT','NO_PERMISSION','info','has','exports','membershipLimitPaidRoles','map','MANAGE_ROLES','document','sell','LIMITS','tag','DiscordError','member','channel','name','errors','BASTION_ERROR_TYPE','roles','guild','../../utils/constants','GOLD','resolver','PremiumTier','permissions','PLATINUM','NO_ROLES_ON_SALE','locale','ROLE_NOT_FOUND'];(function(_0x24ed05,_0x2b3bc0){const _0x196e03=function(_0x748f46){while(--_0x748f46){_0x24ed05['push'](_0x24ed05['shift']());}},_0x3946e7=function(){const _0x5d37cd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2ddfca,_0x2b8edf,_0x455b28,_0x4088f7){_0x4088f7=_0x4088f7||{};let _0x45e2d5=_0x2b8edf+'='+_0x455b28,_0x1fb998=0x0;for(let _0x483b99=0x0,_0x23175c=_0x2ddfca['length'];_0x483b99<_0x23175c;_0x483b99++){const _0x46b341=_0x2ddfca[_0x483b99];_0x45e2d5+=';\x20'+_0x46b341;const _0x355974=_0x2ddfca[_0x46b341];_0x2ddfca['push'](_0x355974),_0x23175c=_0x2ddfca['length'],_0x355974!==!![]&&(_0x45e2d5+='='+_0x355974);}_0x4088f7['cookie']=_0x45e2d5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x37a40e,_0x57d232){_0x37a40e=_0x37a40e||function(_0x5468ce){return _0x5468ce;};const _0x136452=_0x37a40e(new RegExp('(?:^|;\x20)'+_0x57d232['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1c2837=function(_0x3c0fb7,_0x238c6a){_0x3c0fb7(++_0x238c6a);};return _0x1c2837(_0x196e03,_0x2b3bc0),_0x136452?decodeURIComponent(_0x136452[0x1]):undefined;}},_0x4799b8=function(){const _0x49455f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x49455f['test'](_0x5d37cd['removeCookie']['toString']());};_0x5d37cd['updateCookie']=_0x4799b8;let _0x48c589='';const _0x2e1626=_0x5d37cd['updateCookie']();if(!_0x2e1626)_0x5d37cd['setCookie'](['*'],'counter',0x1);else _0x2e1626?_0x48c589=_0x5d37cd['getCookie'](null,'counter'):_0x5d37cd['removeCookie']();};_0x3946e7();}(a71_0x2b3b,0xff));const a71_0x196e=function(_0x24ed05,_0x2b3bc0){_0x24ed05=_0x24ed05-0x0;let _0x196e03=a71_0x2b3b[_0x24ed05];return _0x196e03;};const a71_0x455b28=function(){let _0x53ecaa=!![];return function(_0x58c39b,_0x2c800e){const _0x5bf856=_0x53ecaa?function(){if(_0x2c800e){const _0x4ccfae=_0x2c800e[a71_0x196e('0x44')](_0x58c39b,arguments);return _0x2c800e=null,_0x4ccfae;}}:function(){};return _0x53ecaa=![],_0x5bf856;};}(),a71_0x2b8edf=a71_0x455b28(this,function(){const _0x35a45a=function(){const _0xd2969f=_0x35a45a[a71_0x196e('0x48')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a71_0x196e('0x48')](a71_0x196e('0x3b'));return!_0xd2969f[a71_0x196e('0x42')](a71_0x2b8edf);};return _0x35a45a();});a71_0x2b8edf();'use strict';const tesseract_1=require(a71_0x196e('0x38')),Role_1=require('../../models/Role'),constants=require(a71_0x196e('0x1c')),errors=require(a71_0x196e('0x31')),numbers=require('../../utils/numbers'),omnic=require(a71_0x196e('0x2c'));module[a71_0x196e('0xc')]=class RoleStoreCommand extends tesseract_1['Command']{constructor(){super('roleStore',{'description':a71_0x196e('0x29'),'triggers':[],'arguments':{'boolean':[a71_0x196e('0x27'),a71_0x196e('0x45')],'number':[a71_0x196e('0x11')],'coerce':{'sell':_0x1e1bdf=>numbers['clamp'](_0x1e1bdf,0x1,Number[a71_0x196e('0x3a')])}},'scope':a71_0x196e('0x1b'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_ROLES'],'userPermissions':[],'syntax':[a71_0x196e('0x6'),a71_0x196e('0x8'),'roleStore\x20ROLE\x20--buy',a71_0x196e('0x37')]}),this[a71_0x196e('0x4')]=async(_0xa5a9bf,_0x278055)=>{if(_0x278055['_']['length']){const _0x2ab2fe=this[a71_0x196e('0x34')][a71_0x196e('0x1e')][a71_0x196e('0x46')](_0xa5a9bf[a71_0x196e('0x1b')],_0x278055['_']['join']('\x20'));if(!_0x2ab2fe)throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a71_0x196e('0x24')],this[a71_0x196e('0x34')][a71_0x196e('0x23')]['getString'](_0xa5a9bf[a71_0x196e('0x1b')][a71_0x196e('0x10')][a71_0x196e('0x41')],a71_0x196e('0x43'),'roleNotFound'));if(_0x278055[a71_0x196e('0x11')]>0x0){if(constants['isPublicBastion'](this[a71_0x196e('0x34')][a71_0x196e('0x39')])){const _0x86cc2b=await Role_1[a71_0x196e('0x25')]['countDocuments']({'guild':_0xa5a9bf[a71_0x196e('0x1b')]['id'],'price':{'$exists':!![],'$ne':null}});if(_0x86cc2b>=constants[a71_0x196e('0x12')][a71_0x196e('0x7')]){const _0x2cd5be=await omnic['fetchPremiumTier'](_0xa5a9bf[a71_0x196e('0x1b')])['catch'](()=>{});if(_0x2cd5be){if(_0x2cd5be===omnic[a71_0x196e('0x1f')][a71_0x196e('0x1d')]&&_0x86cc2b>=constants[a71_0x196e('0x12')][a71_0x196e('0x1d')][a71_0x196e('0x7')])throw new errors[(a71_0x196e('0x14'))](errors[a71_0x196e('0x19')][a71_0x196e('0x47')],this[a71_0x196e('0x34')][a71_0x196e('0x23')][a71_0x196e('0x3e')](_0xa5a9bf[a71_0x196e('0x1b')][a71_0x196e('0x10')]['language'],a71_0x196e('0x18'),a71_0x196e('0xd'),constants[a71_0x196e('0x12')]['GOLD'][a71_0x196e('0x7')]));else{if(_0x2cd5be===omnic[a71_0x196e('0x1f')][a71_0x196e('0x21')]&&_0x86cc2b>=constants[a71_0x196e('0x12')][a71_0x196e('0x21')][a71_0x196e('0x7')])throw new errors[(a71_0x196e('0x14'))](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this[a71_0x196e('0x34')][a71_0x196e('0x23')][a71_0x196e('0x3e')](_0xa5a9bf[a71_0x196e('0x1b')]['document'][a71_0x196e('0x41')],a71_0x196e('0x18'),a71_0x196e('0xd'),constants[a71_0x196e('0x12')][a71_0x196e('0x21')][a71_0x196e('0x7')]));}}else throw new errors[(a71_0x196e('0x14'))](errors[a71_0x196e('0x19')][a71_0x196e('0x2f')],this['client'][a71_0x196e('0x23')][a71_0x196e('0x3e')](_0xa5a9bf[a71_0x196e('0x1b')][a71_0x196e('0x10')]['language'],a71_0x196e('0x18'),'premiumPaidRoles',constants[a71_0x196e('0x12')][a71_0x196e('0x7')]));}}if(!_0xa5a9bf[a71_0x196e('0x15')][a71_0x196e('0x20')]['has'](a71_0x196e('0xf')))throw new Error(a71_0x196e('0x9'));return await Role_1[a71_0x196e('0x25')]['findOneAndUpdate']({'_id':_0x2ab2fe['id'],'guild':_0xa5a9bf[a71_0x196e('0x1b')]['id']},{'_id':_0x2ab2fe['id'],'guild':_0xa5a9bf['guild']['id'],'price':_0x278055['sell']},{'upsert':!![]}),await _0xa5a9bf[a71_0x196e('0x16')][a71_0x196e('0x3d')]({'embed':{'color':tesseract_1[a71_0x196e('0x2')]['COLORS'][a71_0x196e('0x40')],'description':this[a71_0x196e('0x34')][a71_0x196e('0x23')][a71_0x196e('0x3e')](_0xa5a9bf[a71_0x196e('0x1b')]['document']['language'],a71_0x196e('0xa'),a71_0x196e('0x3c'),_0xa5a9bf[a71_0x196e('0x2a')][a71_0x196e('0x13')],_0x2ab2fe['name'],_0x278055[a71_0x196e('0x11')])}})[a71_0x196e('0x2d')](()=>{});}if(_0x278055['buy']){if(_0xa5a9bf[a71_0x196e('0x15')][a71_0x196e('0x1a')][a71_0x196e('0x3')][a71_0x196e('0xb')](_0x2ab2fe['id']))throw new Error(a71_0x196e('0x35'));const _0x6e710a=await Role_1[a71_0x196e('0x25')][a71_0x196e('0x0')]({'_id':_0x2ab2fe['id'],'guild':_0xa5a9bf[a71_0x196e('0x1b')]['id'],'price':{'$exists':!![],'$ne':null}});if(!_0x6e710a)throw new Error('ROLE_NOT_FOR_SALE');if(_0xa5a9bf[a71_0x196e('0x15')][a71_0x196e('0x10')][a71_0x196e('0x2e')]<_0x6e710a[a71_0x196e('0x2b')])throw new Error('INSUFFICIENT_BALANCE');return await _0xa5a9bf['member'][a71_0x196e('0x1a')]['add'](_0x2ab2fe),_0xa5a9bf['member']['debit'](_0x6e710a['price'],'Paid\x20Role',_0xa5a9bf[a71_0x196e('0x15')][a71_0x196e('0x10')]),await _0xa5a9bf['member'][a71_0x196e('0x10')][a71_0x196e('0x5')](),await _0xa5a9bf['channel'][a71_0x196e('0x3d')]({'embed':{'color':tesseract_1[a71_0x196e('0x2')][a71_0x196e('0x26')][a71_0x196e('0x40')],'description':this[a71_0x196e('0x34')]['locale']['getString'](_0xa5a9bf[a71_0x196e('0x1b')]['document'][a71_0x196e('0x41')],a71_0x196e('0xa'),a71_0x196e('0x28'),_0xa5a9bf[a71_0x196e('0x2a')][a71_0x196e('0x13')],_0x2ab2fe[a71_0x196e('0x17')],_0x6e710a[a71_0x196e('0x2b')])}})[a71_0x196e('0x2d')](()=>{});}if(_0x278055['unlist']){if(!_0xa5a9bf[a71_0x196e('0x15')]['permissions'][a71_0x196e('0xb')](a71_0x196e('0xf')))throw new Error(a71_0x196e('0x9'));return await Role_1[a71_0x196e('0x25')]['findOneAndUpdate']({'_id':_0x2ab2fe['id'],'guild':_0xa5a9bf[a71_0x196e('0x1b')]['id'],'price':{'$exists':!![],'$ne':null}},{'_id':_0x2ab2fe['id'],'guild':_0xa5a9bf[a71_0x196e('0x1b')]['id'],'$unset':{'price':0x1}}),await _0xa5a9bf['channel'][a71_0x196e('0x3d')]({'embed':{'color':tesseract_1[a71_0x196e('0x2')][a71_0x196e('0x26')][a71_0x196e('0x3f')],'description':this['client'][a71_0x196e('0x23')][a71_0x196e('0x3e')](_0xa5a9bf[a71_0x196e('0x1b')][a71_0x196e('0x10')][a71_0x196e('0x41')],a71_0x196e('0xa'),a71_0x196e('0x1'),_0xa5a9bf[a71_0x196e('0x2a')][a71_0x196e('0x13')],_0x2ab2fe['name'])}})[a71_0x196e('0x2d')](()=>{});}}const _0x208d0c=await Role_1[a71_0x196e('0x25')][a71_0x196e('0x32')]({'guild':_0xa5a9bf['guild']['id'],'price':{'$exists':!![],'$ne':null}});if(!_0x208d0c[a71_0x196e('0x36')])throw new Error(a71_0x196e('0x22'));return await _0xa5a9bf['channel'][a71_0x196e('0x3d')]({'embed':{'color':tesseract_1[a71_0x196e('0x2')][a71_0x196e('0x26')]['IRIS'],'title':'Roles\x20Store','fields':_0x208d0c[a71_0x196e('0xe')](_0x257dfc=>({'name':(_0xa5a9bf['guild'][a71_0x196e('0x1a')]['cache'][a71_0x196e('0xb')](_0x257dfc[a71_0x196e('0x33')])?_0xa5a9bf[a71_0x196e('0x1b')][a71_0x196e('0x1a')]['cache'][a71_0x196e('0x30')](_0x257dfc[a71_0x196e('0x33')])[a71_0x196e('0x17')]+'\x20/\x20':'')+_0x257dfc[a71_0x196e('0x33')],'value':_0x257dfc[a71_0x196e('0x2b')]+'\x20Bastion\x20Coins'}))}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/roles.js b/commands/management/roles.js index 97fa07228..6f06e9034 100644 --- a/commands/management/roles.js +++ b/commands/management/roles.js @@ -1 +1 @@ -const a72_0x2291=['send','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLOR','resolveRole','Command','default','delete','BASTION_ERROR_TYPE','author','join','GREEN','info','tag','color','name','rename','roles\x20--rename\x20ROLE\x20--name\x20NAME\x20--\x20REASON','locale','hoist','mentionable','length','resolver','client','@bastion/tesseract','create','roles\x20--delete\x20ROLE\x20--\x20REASON','document','DiscordError','COLORS','INVALID_COMMAND_SYNTAX','test','getString','exec','catch','../../utils/errors','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','MANAGE_ROLES','roles\x20--create\x20NAME\x20--mentionable\x20--\x20REASON','Constants','guild','roles\x20--create\x20NAME\x20--color\x20COLOR\x20--\x20REASON','channel','roles','constructor','roleRename','language'];(function(_0x10251d,_0x2291fd){const _0x230c21=function(_0x57c3e0){while(--_0x57c3e0){_0x10251d['push'](_0x10251d['shift']());}},_0x34fc78=function(){const _0x382635={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x23e4f9,_0x59e6e9,_0x514aac,_0x163a13){_0x163a13=_0x163a13||{};let _0x4d1ac2=_0x59e6e9+'='+_0x514aac,_0x1b5e37=0x0;for(let _0x1ddc79=0x0,_0x177140=_0x23e4f9['length'];_0x1ddc79<_0x177140;_0x1ddc79++){const _0x1426b2=_0x23e4f9[_0x1ddc79];_0x4d1ac2+=';\x20'+_0x1426b2;const _0xddfee6=_0x23e4f9[_0x1426b2];_0x23e4f9['push'](_0xddfee6),_0x177140=_0x23e4f9['length'],_0xddfee6!==!![]&&(_0x4d1ac2+='='+_0xddfee6);}_0x163a13['cookie']=_0x4d1ac2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3fd92e,_0x556a4c){_0x3fd92e=_0x3fd92e||function(_0x10275d){return _0x10275d;};const _0x2c6a3f=_0x3fd92e(new RegExp('(?:^|;\x20)'+_0x556a4c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x49fb8b=function(_0x3a2a27,_0x55002d){_0x3a2a27(++_0x55002d);};return _0x49fb8b(_0x230c21,_0x2291fd),_0x2c6a3f?decodeURIComponent(_0x2c6a3f[0x1]):undefined;}},_0x2be99e=function(){const _0x2a8db6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2a8db6['test'](_0x382635['removeCookie']['toString']());};_0x382635['updateCookie']=_0x2be99e;let _0x2e1377='';const _0x219007=_0x382635['updateCookie']();if(!_0x219007)_0x382635['setCookie'](['*'],'counter',0x1);else _0x219007?_0x2e1377=_0x382635['getCookie'](null,'counter'):_0x382635['removeCookie']();};_0x34fc78();}(a72_0x2291,0xa7));const a72_0x230c=function(_0x10251d,_0x2291fd){_0x10251d=_0x10251d-0x0;let _0x230c21=a72_0x2291[_0x10251d];return _0x230c21;};const a72_0x514aac=function(){let _0x1a7509=!![];return function(_0x5d8e95,_0x266118){const _0x1e1cd2=_0x1a7509?function(){if(_0x266118){const _0x341f28=_0x266118['apply'](_0x5d8e95,arguments);return _0x266118=null,_0x341f28;}}:function(){};return _0x1a7509=![],_0x1e1cd2;};}(),a72_0x59e6e9=a72_0x514aac(this,function(){const _0x19300a=function(){const _0x22cd02=_0x19300a[a72_0x230c('0xe')](a72_0x230c('0x12'))()[a72_0x230c('0xe')](a72_0x230c('0x6'));return!_0x22cd02[a72_0x230c('0x1')](a72_0x59e6e9);};return _0x19300a();});a72_0x59e6e9();'use strict';const tesseract_1=require(a72_0x230c('0x28')),confirmation_1=require('../../utils/confirmation'),errors=require(a72_0x230c('0x5'));module['exports']=class RolesCommand extends tesseract_1[a72_0x230c('0x15')]{constructor(){super(a72_0x230c('0xd'),{'description':'It\x20allows\x20you\x20create,\x20delete\x20and\x20update\x20roles\x20in\x20the\x20server.','triggers':[],'arguments':{'array':[a72_0x230c('0x29'),a72_0x230c('0x17'),a72_0x230c('0x1f'),a72_0x230c('0x20')],'boolean':[a72_0x230c('0x23'),a72_0x230c('0x24')],'string':[a72_0x230c('0x29'),a72_0x230c('0x17'),a72_0x230c('0x20')],'coerce':{'color':tesseract_1[a72_0x230c('0x9')]['ArgumentTypes'][a72_0x230c('0x13')]}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a72_0x230c('0x7')],'userPermissions':[a72_0x230c('0x7')],'syntax':['roles\x20--create\x20NAME\x20--\x20REASON',a72_0x230c('0xb'),'roles\x20--create\x20NAME\x20--hoist\x20--\x20REASON',a72_0x230c('0x8'),a72_0x230c('0x21'),a72_0x230c('0x2a')]}),this[a72_0x230c('0x3')]=async(_0x14f918,_0x1e9dca)=>{const _0x31313f=_0x1e9dca['_']['join']('\x20')||'-';if(_0x1e9dca[a72_0x230c('0x29')]&&_0x1e9dca[a72_0x230c('0x29')][a72_0x230c('0x25')]){const _0x502590=await _0x14f918[a72_0x230c('0xa')][a72_0x230c('0xd')][a72_0x230c('0x29')]({'data':{'name':_0x1e9dca[a72_0x230c('0x29')][a72_0x230c('0x1a')]('\x20'),'color':_0x1e9dca[a72_0x230c('0x1e')],'hoist':_0x1e9dca[a72_0x230c('0x23')],'mentionable':_0x1e9dca[a72_0x230c('0x24')]},'reason':_0x31313f});return await _0x14f918['channel'][a72_0x230c('0x11')]({'embed':{'color':tesseract_1['Constants'][a72_0x230c('0x2d')][a72_0x230c('0x1b')],'description':this['client'][a72_0x230c('0x22')][a72_0x230c('0x2')](_0x14f918['guild'][a72_0x230c('0x2b')]['language'],a72_0x230c('0x1c'),'roleCreate',_0x14f918[a72_0x230c('0x19')][a72_0x230c('0x1d')],_0x502590[a72_0x230c('0x1f')],_0x31313f)}})[a72_0x230c('0x4')](()=>{});}if(_0x1e9dca[a72_0x230c('0x17')]&&_0x1e9dca[a72_0x230c('0x17')]['length']){const _0x3bf142=this[a72_0x230c('0x27')][a72_0x230c('0x26')][a72_0x230c('0x14')](_0x14f918[a72_0x230c('0xa')],_0x1e9dca[a72_0x230c('0x17')]['join']('\x20')),_0x139a89=await confirmation_1[a72_0x230c('0x16')](_0x14f918,this[a72_0x230c('0x27')][a72_0x230c('0x22')][a72_0x230c('0x2')](_0x14f918[a72_0x230c('0xa')]['document'][a72_0x230c('0x10')],a72_0x230c('0x1c'),'roleDeleteQuestion',_0x14f918['author'][a72_0x230c('0x1d')],_0x3bf142[a72_0x230c('0x1f')]));if(_0x139a89)return await _0x3bf142[a72_0x230c('0x17')](_0x31313f),await _0x14f918[a72_0x230c('0xc')][a72_0x230c('0x11')]({'embed':{'color':tesseract_1[a72_0x230c('0x9')][a72_0x230c('0x2d')][a72_0x230c('0x1b')],'description':this[a72_0x230c('0x27')][a72_0x230c('0x22')]['getString'](_0x14f918[a72_0x230c('0xa')][a72_0x230c('0x2b')][a72_0x230c('0x10')],a72_0x230c('0x1c'),'roleDelete',_0x14f918[a72_0x230c('0x19')]['tag'],_0x3bf142['name'],_0x31313f)}})[a72_0x230c('0x4')](()=>{});return!![];}if(_0x1e9dca[a72_0x230c('0x20')]&&_0x1e9dca[a72_0x230c('0x20')][a72_0x230c('0x25')]&&_0x1e9dca[a72_0x230c('0x1f')]&&_0x1e9dca[a72_0x230c('0x1f')][a72_0x230c('0x25')]){let _0x51e352=this[a72_0x230c('0x27')][a72_0x230c('0x26')][a72_0x230c('0x14')](_0x14f918['guild'],_0x1e9dca[a72_0x230c('0x20')][a72_0x230c('0x1a')]('\x20'));return _0x51e352=await _0x51e352['edit']({'name':_0x1e9dca[a72_0x230c('0x1f')][a72_0x230c('0x1a')]('\x20')}),await _0x14f918[a72_0x230c('0xc')]['send']({'embed':{'color':tesseract_1[a72_0x230c('0x9')][a72_0x230c('0x2d')][a72_0x230c('0x1b')],'description':this['client']['locale'][a72_0x230c('0x2')](_0x14f918[a72_0x230c('0xa')]['document'][a72_0x230c('0x10')],a72_0x230c('0x1c'),a72_0x230c('0xf'),_0x14f918['author'][a72_0x230c('0x1d')],_0x51e352[a72_0x230c('0x1f')],_0x31313f)}})[a72_0x230c('0x4')](()=>{});}throw new errors[(a72_0x230c('0x2c'))](errors[a72_0x230c('0x18')][a72_0x230c('0x0')],this[a72_0x230c('0x1f')]);};}}; \ No newline at end of file +const a72_0x43ef=['name','send','exports','COLORS','guild','catch','BASTION_ERROR_TYPE','create','delete','../../utils/confirmation','roles\x20--rename\x20ROLE\x20--name\x20NAME\x20--\x20REASON','client','length','author','return\x20/\x22\x20+\x20this\x20+\x20\x22/','roles\x20--create\x20NAME\x20--hoist\x20--\x20REASON','tag','roles\x20--create\x20NAME\x20--color\x20COLOR\x20--\x20REASON','constructor','color','It\x20allows\x20you\x20create,\x20delete\x20and\x20update\x20roles\x20in\x20the\x20server.','roles\x20--create\x20NAME\x20--\x20REASON','rename','join','roles\x20--delete\x20ROLE\x20--\x20REASON','locale','info','default','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','language','resolver','Constants','DiscordError','document','COLOR','roleDelete','channel','resolveRole','INVALID_COMMAND_SYNTAX','MANAGE_ROLES','roles\x20--create\x20NAME\x20--mentionable\x20--\x20REASON','hoist','roleDeleteQuestion','roles','ArgumentTypes','apply','edit','../../utils/errors','test','getString','GREEN'];(function(_0x1a99d7,_0x43ef19){const _0x10eb60=function(_0x51f420){while(--_0x51f420){_0x1a99d7['push'](_0x1a99d7['shift']());}},_0x12b121=function(){const _0x75b7ee={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2ae678,_0x557512,_0x35feee,_0x7d75f7){_0x7d75f7=_0x7d75f7||{};let _0x1782e9=_0x557512+'='+_0x35feee,_0xf23b1=0x0;for(let _0x2d3c2a=0x0,_0x58ae9a=_0x2ae678['length'];_0x2d3c2a<_0x58ae9a;_0x2d3c2a++){const _0x1bc7a4=_0x2ae678[_0x2d3c2a];_0x1782e9+=';\x20'+_0x1bc7a4;const _0x59f525=_0x2ae678[_0x1bc7a4];_0x2ae678['push'](_0x59f525),_0x58ae9a=_0x2ae678['length'],_0x59f525!==!![]&&(_0x1782e9+='='+_0x59f525);}_0x7d75f7['cookie']=_0x1782e9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4f5b21,_0x1f96f2){_0x4f5b21=_0x4f5b21||function(_0x4f0474){return _0x4f0474;};const _0xef7f18=_0x4f5b21(new RegExp('(?:^|;\x20)'+_0x1f96f2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x443577=function(_0x3bed5a,_0x75eb30){_0x3bed5a(++_0x75eb30);};return _0x443577(_0x10eb60,_0x43ef19),_0xef7f18?decodeURIComponent(_0xef7f18[0x1]):undefined;}},_0x2a4bd5=function(){const _0x5ae93f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5ae93f['test'](_0x75b7ee['removeCookie']['toString']());};_0x75b7ee['updateCookie']=_0x2a4bd5;let _0x3ac75b='';const _0x567c44=_0x75b7ee['updateCookie']();if(!_0x567c44)_0x75b7ee['setCookie'](['*'],'counter',0x1);else _0x567c44?_0x3ac75b=_0x75b7ee['getCookie'](null,'counter'):_0x75b7ee['removeCookie']();};_0x12b121();}(a72_0x43ef,0xd3));const a72_0x10eb=function(_0x1a99d7,_0x43ef19){_0x1a99d7=_0x1a99d7-0x0;let _0x10eb60=a72_0x43ef[_0x1a99d7];return _0x10eb60;};const a72_0x35feee=function(){let _0x1e9a19=!![];return function(_0x5d552d,_0x1b18cc){const _0x58b8a3=_0x1e9a19?function(){if(_0x1b18cc){const _0x2f3493=_0x1b18cc[a72_0x10eb('0x26')](_0x5d552d,arguments);return _0x1b18cc=null,_0x2f3493;}}:function(){};return _0x1e9a19=![],_0x58b8a3;};}(),a72_0x557512=a72_0x35feee(this,function(){const _0x189443=function(){const _0x54494b=_0x189443[a72_0x10eb('0xb')](a72_0x10eb('0x7'))()['constructor'](a72_0x10eb('0x15'));return!_0x54494b[a72_0x10eb('0x29')](a72_0x557512);};return _0x189443();});a72_0x557512();'use strict';const tesseract_1=require('@bastion/tesseract'),confirmation_1=require(a72_0x10eb('0x2')),errors=require(a72_0x10eb('0x28'));module[a72_0x10eb('0x2e')]=class RolesCommand extends tesseract_1['Command']{constructor(){super(a72_0x10eb('0x24'),{'description':a72_0x10eb('0xd'),'triggers':[],'arguments':{'array':['create','delete','name',a72_0x10eb('0xf')],'boolean':[a72_0x10eb('0x22'),'mentionable'],'string':[a72_0x10eb('0x0'),'delete',a72_0x10eb('0xf')],'coerce':{'color':tesseract_1[a72_0x10eb('0x18')][a72_0x10eb('0x25')][a72_0x10eb('0x1b')]}},'scope':a72_0x10eb('0x30'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a72_0x10eb('0x20')],'userPermissions':[a72_0x10eb('0x20')],'syntax':[a72_0x10eb('0xe'),a72_0x10eb('0xa'),a72_0x10eb('0x8'),a72_0x10eb('0x21'),a72_0x10eb('0x3'),a72_0x10eb('0x11')]}),this['exec']=async(_0x2283f7,_0x53f30e)=>{const _0x199d6f=_0x53f30e['_'][a72_0x10eb('0x10')]('\x20')||'-';if(_0x53f30e[a72_0x10eb('0x0')]&&_0x53f30e[a72_0x10eb('0x0')]['length']){const _0x1a4d49=await _0x2283f7[a72_0x10eb('0x30')][a72_0x10eb('0x24')]['create']({'data':{'name':_0x53f30e[a72_0x10eb('0x0')]['join']('\x20'),'color':_0x53f30e[a72_0x10eb('0xc')],'hoist':_0x53f30e[a72_0x10eb('0x22')],'mentionable':_0x53f30e['mentionable']},'reason':_0x199d6f});return await _0x2283f7[a72_0x10eb('0x1d')][a72_0x10eb('0x2d')]({'embed':{'color':tesseract_1[a72_0x10eb('0x18')][a72_0x10eb('0x2f')][a72_0x10eb('0x2b')],'description':this[a72_0x10eb('0x4')][a72_0x10eb('0x12')][a72_0x10eb('0x2a')](_0x2283f7[a72_0x10eb('0x30')][a72_0x10eb('0x1a')][a72_0x10eb('0x16')],a72_0x10eb('0x13'),'roleCreate',_0x2283f7[a72_0x10eb('0x6')]['tag'],_0x1a4d49['name'],_0x199d6f)}})[a72_0x10eb('0x31')](()=>{});}if(_0x53f30e[a72_0x10eb('0x1')]&&_0x53f30e[a72_0x10eb('0x1')][a72_0x10eb('0x5')]){const _0xf5acd=this[a72_0x10eb('0x4')][a72_0x10eb('0x17')][a72_0x10eb('0x1e')](_0x2283f7[a72_0x10eb('0x30')],_0x53f30e[a72_0x10eb('0x1')][a72_0x10eb('0x10')]('\x20')),_0x3983d0=await confirmation_1[a72_0x10eb('0x14')](_0x2283f7,this[a72_0x10eb('0x4')]['locale'][a72_0x10eb('0x2a')](_0x2283f7[a72_0x10eb('0x30')]['document']['language'],a72_0x10eb('0x13'),a72_0x10eb('0x23'),_0x2283f7[a72_0x10eb('0x6')]['tag'],_0xf5acd[a72_0x10eb('0x2c')]));if(_0x3983d0)return await _0xf5acd[a72_0x10eb('0x1')](_0x199d6f),await _0x2283f7[a72_0x10eb('0x1d')][a72_0x10eb('0x2d')]({'embed':{'color':tesseract_1[a72_0x10eb('0x18')][a72_0x10eb('0x2f')][a72_0x10eb('0x2b')],'description':this[a72_0x10eb('0x4')][a72_0x10eb('0x12')][a72_0x10eb('0x2a')](_0x2283f7[a72_0x10eb('0x30')][a72_0x10eb('0x1a')][a72_0x10eb('0x16')],a72_0x10eb('0x13'),a72_0x10eb('0x1c'),_0x2283f7[a72_0x10eb('0x6')][a72_0x10eb('0x9')],_0xf5acd['name'],_0x199d6f)}})[a72_0x10eb('0x31')](()=>{});return!![];}if(_0x53f30e['rename']&&_0x53f30e['rename'][a72_0x10eb('0x5')]&&_0x53f30e[a72_0x10eb('0x2c')]&&_0x53f30e[a72_0x10eb('0x2c')]['length']){let _0x325539=this['client']['resolver'][a72_0x10eb('0x1e')](_0x2283f7[a72_0x10eb('0x30')],_0x53f30e['rename'][a72_0x10eb('0x10')]('\x20'));return _0x325539=await _0x325539[a72_0x10eb('0x27')]({'name':_0x53f30e['name'][a72_0x10eb('0x10')]('\x20')}),await _0x2283f7[a72_0x10eb('0x1d')][a72_0x10eb('0x2d')]({'embed':{'color':tesseract_1[a72_0x10eb('0x18')]['COLORS'][a72_0x10eb('0x2b')],'description':this[a72_0x10eb('0x4')][a72_0x10eb('0x12')][a72_0x10eb('0x2a')](_0x2283f7[a72_0x10eb('0x30')][a72_0x10eb('0x1a')]['language'],a72_0x10eb('0x13'),'roleRename',_0x2283f7[a72_0x10eb('0x6')][a72_0x10eb('0x9')],_0x325539[a72_0x10eb('0x2c')],_0x199d6f)}})[a72_0x10eb('0x31')](()=>{});}throw new errors[(a72_0x10eb('0x19'))](errors[a72_0x10eb('0x32')][a72_0x10eb('0x1f')],this[a72_0x10eb('0x2c')]);};}}; \ No newline at end of file diff --git a/commands/management/suggest.js b/commands/management/suggest.js index fe5802be8..d5e510812 100644 --- a/commands/management/suggest.js +++ b/commands/management/suggest.js @@ -1 +1 @@ -const a73_0x3976=['delete','ERROR','errors','IRIS','Constants','BASTION_ERROR_TYPE','length','@bastion/tesseract','suggest\x20SUGGESTION','author','channels','displayAvatarURL','name','cache','DiscordError','send','Suggestion','It\x20allows\x20you\x20send\x20a\x20suggestion\x20to\x20the\x20suggestion\x20staff,\x20provided\x20a\x20Suggestion\x20Channel\x20has\x20been\x20set\x20in\x20the\x20server.','Suggestion\x20Command','constructor','suggest','join','client','suggestionsChannelId','test','react','noSuggestionChannel','catch','exports','document','We\x27ve\x20received\x20your\x20suggestion.\x20We\x27ll\x20get\x20back\x20to\x20you\x20with\x20updates.','deletable','\x20/\x20','guild','apply','channel','INDIGO','locale','exec','COLORS'];(function(_0x4feffd,_0x39764e){const _0x42a256=function(_0x4fda41){while(--_0x4fda41){_0x4feffd['push'](_0x4feffd['shift']());}},_0x4ec04d=function(){const _0x3d3ee9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3a750a,_0x43b6fa,_0x2def6a,_0x2246f7){_0x2246f7=_0x2246f7||{};let _0x1bd554=_0x43b6fa+'='+_0x2def6a,_0x2f773f=0x0;for(let _0x565c0f=0x0,_0x4d3077=_0x3a750a['length'];_0x565c0f<_0x4d3077;_0x565c0f++){const _0x55979d=_0x3a750a[_0x565c0f];_0x1bd554+=';\x20'+_0x55979d;const _0x140f59=_0x3a750a[_0x55979d];_0x3a750a['push'](_0x140f59),_0x4d3077=_0x3a750a['length'],_0x140f59!==!![]&&(_0x1bd554+='='+_0x140f59);}_0x2246f7['cookie']=_0x1bd554;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3e67cf,_0x4963b7){_0x3e67cf=_0x3e67cf||function(_0x175ea5){return _0x175ea5;};const _0x4563ee=_0x3e67cf(new RegExp('(?:^|;\x20)'+_0x4963b7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x50a45d=function(_0x23cb29,_0x51909d){_0x23cb29(++_0x51909d);};return _0x50a45d(_0x42a256,_0x39764e),_0x4563ee?decodeURIComponent(_0x4563ee[0x1]):undefined;}},_0x251145=function(){const _0x2f0722=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2f0722['test'](_0x3d3ee9['removeCookie']['toString']());};_0x3d3ee9['updateCookie']=_0x251145;let _0x3f5cfe='';const _0x582a54=_0x3d3ee9['updateCookie']();if(!_0x582a54)_0x3d3ee9['setCookie'](['*'],'counter',0x1);else _0x582a54?_0x3f5cfe=_0x3d3ee9['getCookie'](null,'counter'):_0x3d3ee9['removeCookie']();};_0x4ec04d();}(a73_0x3976,0x1b4));const a73_0x42a2=function(_0x4feffd,_0x39764e){_0x4feffd=_0x4feffd-0x0;let _0x42a256=a73_0x3976[_0x4feffd];return _0x42a256;};const a73_0x2def6a=function(){let _0xa829c8=!![];return function(_0x4354f7,_0x1a3861){const _0x1996a6=_0xa829c8?function(){if(_0x1a3861){const _0x31a6df=_0x1a3861[a73_0x42a2('0x26')](_0x4354f7,arguments);return _0x1a3861=null,_0x31a6df;}}:function(){};return _0xa829c8=![],_0x1996a6;};}(),a73_0x43b6fa=a73_0x2def6a(this,function(){const _0x311c9a=function(){const _0x3fc0f8=_0x311c9a[a73_0x42a2('0x17')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3fc0f8[a73_0x42a2('0x1c')](a73_0x43b6fa);};return _0x311c9a();});a73_0x43b6fa();'use strict';const tesseract_1=require(a73_0x42a2('0xb')),errors=require('../../utils/errors');module[a73_0x42a2('0x20')]=class SuggestCommand extends tesseract_1['Command']{constructor(){super(a73_0x42a2('0x18'),{'description':a73_0x42a2('0x15'),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a73_0x42a2('0xc')]}),this[a73_0x42a2('0x2')]=async(_0x4a1cdb,_0x583feb)=>{if(!_0x583feb['_'][a73_0x42a2('0xa')])throw new errors[(a73_0x42a2('0x12'))](errors[a73_0x42a2('0x9')]['INVALID_COMMAND_SYNTAX'],this[a73_0x42a2('0x10')]);const _0x318ca1=_0x4a1cdb['guild'];if(!_0x318ca1[a73_0x42a2('0x21')][a73_0x42a2('0x1b')]||!_0x4a1cdb[a73_0x42a2('0x25')]['channels'][a73_0x42a2('0x11')]['has'](_0x318ca1[a73_0x42a2('0x21')][a73_0x42a2('0x1b')]))throw new errors['DiscordError'](errors[a73_0x42a2('0x9')][a73_0x42a2('0x5')],this[a73_0x42a2('0x1a')][a73_0x42a2('0x1')]['getString'](_0x4a1cdb[a73_0x42a2('0x25')][a73_0x42a2('0x21')]['language'],a73_0x42a2('0x6'),a73_0x42a2('0x1e'),_0x4a1cdb[a73_0x42a2('0xd')]['tag']));const _0x46c087=_0x4a1cdb[a73_0x42a2('0x25')][a73_0x42a2('0xe')]['cache']['get'](_0x318ca1[a73_0x42a2('0x21')][a73_0x42a2('0x1b')]),_0x399331=await _0x46c087['send']({'embed':{'color':tesseract_1['Constants'][a73_0x42a2('0x3')][a73_0x42a2('0x0')],'author':{'name':_0x4a1cdb[a73_0x42a2('0xd')]['tag']+a73_0x42a2('0x24')+_0x4a1cdb[a73_0x42a2('0xd')]['id'],'iconURL':_0x4a1cdb['author'][a73_0x42a2('0xf')]({'dynamic':!![],'size':0x40})},'title':a73_0x42a2('0x14'),'description':_0x583feb['_'][a73_0x42a2('0x19')]('\x20')}});_0x4a1cdb[a73_0x42a2('0x23')]&&_0x4a1cdb[a73_0x42a2('0x4')]({'reason':a73_0x42a2('0x16')})[a73_0x42a2('0x1f')](()=>{}),_0x399331[a73_0x42a2('0x1d')]('✅')[a73_0x42a2('0x1f')](()=>{}),_0x399331[a73_0x42a2('0x1d')]('❎')['catch'](()=>{}),await _0x4a1cdb[a73_0x42a2('0x27')][a73_0x42a2('0x13')]({'embed':{'color':tesseract_1[a73_0x42a2('0x8')]['COLORS'][a73_0x42a2('0x7')],'description':a73_0x42a2('0x22')}})[a73_0x42a2('0x1f')](()=>{});};}}; \ No newline at end of file +const a73_0x30e6=['\x20/\x20','DiscordError','author','document','suggest','We\x27ve\x20received\x20your\x20suggestion.\x20We\x27ll\x20get\x20back\x20to\x20you\x20with\x20updates.','Suggestion','guild','has','channel','apply','Constants','name','channels','client','../../utils/errors','exec','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','getString','delete','suggest\x20SUGGESTION','react','errors','join','locale','length','tag','get','BASTION_ERROR_TYPE','INDIGO','cache','ERROR','noSuggestionChannel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','send','COLORS','suggestionsChannelId','catch','Suggestion\x20Command'];(function(_0x243f40,_0x30e68f){const _0x2f5701=function(_0xca86b8){while(--_0xca86b8){_0x243f40['push'](_0x243f40['shift']());}},_0x86c5ec=function(){const _0x1e66f1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xc6a477,_0x303ad2,_0x34d1ea,_0x43b54e){_0x43b54e=_0x43b54e||{};let _0x422ce4=_0x303ad2+'='+_0x34d1ea,_0x4a67c9=0x0;for(let _0xed3b9c=0x0,_0x4f2aca=_0xc6a477['length'];_0xed3b9c<_0x4f2aca;_0xed3b9c++){const _0x435340=_0xc6a477[_0xed3b9c];_0x422ce4+=';\x20'+_0x435340;const _0x54c13a=_0xc6a477[_0x435340];_0xc6a477['push'](_0x54c13a),_0x4f2aca=_0xc6a477['length'],_0x54c13a!==!![]&&(_0x422ce4+='='+_0x54c13a);}_0x43b54e['cookie']=_0x422ce4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4b569b,_0x3d2776){_0x4b569b=_0x4b569b||function(_0x254302){return _0x254302;};const _0xb88491=_0x4b569b(new RegExp('(?:^|;\x20)'+_0x3d2776['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5b61a6=function(_0x4c24e8,_0x477e7b){_0x4c24e8(++_0x477e7b);};return _0x5b61a6(_0x2f5701,_0x30e68f),_0xb88491?decodeURIComponent(_0xb88491[0x1]):undefined;}},_0x577f95=function(){const _0x264499=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x264499['test'](_0x1e66f1['removeCookie']['toString']());};_0x1e66f1['updateCookie']=_0x577f95;let _0x56edeb='';const _0x38637b=_0x1e66f1['updateCookie']();if(!_0x38637b)_0x1e66f1['setCookie'](['*'],'counter',0x1);else _0x38637b?_0x56edeb=_0x1e66f1['getCookie'](null,'counter'):_0x1e66f1['removeCookie']();};_0x86c5ec();}(a73_0x30e6,0xfc));const a73_0x2f57=function(_0x243f40,_0x30e68f){_0x243f40=_0x243f40-0x0;let _0x2f5701=a73_0x30e6[_0x243f40];return _0x2f5701;};const a73_0x34d1ea=function(){let _0x3c026b=!![];return function(_0xcd531,_0x2706c8){const _0x5f43a5=_0x3c026b?function(){if(_0x2706c8){const _0x35172b=_0x2706c8[a73_0x2f57('0x26')](_0xcd531,arguments);return _0x2706c8=null,_0x35172b;}}:function(){};return _0x3c026b=![],_0x5f43a5;};}(),a73_0x303ad2=a73_0x34d1ea(this,function(){const _0x524e04=function(){const _0x144a2e=_0x524e04['constructor'](a73_0x2f57('0x5'))()['constructor'](a73_0x2f57('0x16'));return!_0x144a2e['test'](a73_0x303ad2);};return _0x524e04();});a73_0x303ad2();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a73_0x2f57('0x3'));module[a73_0x2f57('0x6')]=class SuggestCommand extends tesseract_1['Command']{constructor(){super(a73_0x2f57('0x20'),{'description':'It\x20allows\x20you\x20send\x20a\x20suggestion\x20to\x20the\x20suggestion\x20staff,\x20provided\x20a\x20Suggestion\x20Channel\x20has\x20been\x20set\x20in\x20the\x20server.','triggers':[],'arguments':{},'scope':a73_0x2f57('0x23'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a73_0x2f57('0x9')]}),this[a73_0x2f57('0x4')]=async(_0x36b8e9,_0x112139)=>{if(!_0x112139['_'][a73_0x2f57('0xe')])throw new errors['DiscordError'](errors[a73_0x2f57('0x11')]['INVALID_COMMAND_SYNTAX'],this[a73_0x2f57('0x0')]);const _0xabfb4b=_0x36b8e9[a73_0x2f57('0x23')];if(!_0xabfb4b[a73_0x2f57('0x1f')][a73_0x2f57('0x19')]||!_0x36b8e9[a73_0x2f57('0x23')]['channels'][a73_0x2f57('0x13')][a73_0x2f57('0x24')](_0xabfb4b['document'][a73_0x2f57('0x19')]))throw new errors[(a73_0x2f57('0x1d'))](errors[a73_0x2f57('0x11')][a73_0x2f57('0x14')],this[a73_0x2f57('0x2')][a73_0x2f57('0xd')][a73_0x2f57('0x7')](_0x36b8e9[a73_0x2f57('0x23')][a73_0x2f57('0x1f')]['language'],a73_0x2f57('0xb'),a73_0x2f57('0x15'),_0x36b8e9['author'][a73_0x2f57('0xf')]));const _0x5be5a=_0x36b8e9['guild'][a73_0x2f57('0x1')][a73_0x2f57('0x13')][a73_0x2f57('0x10')](_0xabfb4b['document'][a73_0x2f57('0x19')]),_0x3b7da1=await _0x5be5a[a73_0x2f57('0x17')]({'embed':{'color':tesseract_1['Constants'][a73_0x2f57('0x18')][a73_0x2f57('0x12')],'author':{'name':_0x36b8e9[a73_0x2f57('0x1e')][a73_0x2f57('0xf')]+a73_0x2f57('0x1c')+_0x36b8e9[a73_0x2f57('0x1e')]['id'],'iconURL':_0x36b8e9[a73_0x2f57('0x1e')]['displayAvatarURL']({'dynamic':!![],'size':0x40})},'title':a73_0x2f57('0x22'),'description':_0x112139['_'][a73_0x2f57('0xc')]('\x20')}});_0x36b8e9['deletable']&&_0x36b8e9[a73_0x2f57('0x8')]({'reason':a73_0x2f57('0x1b')})['catch'](()=>{}),_0x3b7da1[a73_0x2f57('0xa')]('✅')['catch'](()=>{}),_0x3b7da1[a73_0x2f57('0xa')]('❎')[a73_0x2f57('0x1a')](()=>{}),await _0x36b8e9[a73_0x2f57('0x25')]['send']({'embed':{'color':tesseract_1[a73_0x2f57('0x27')][a73_0x2f57('0x18')]['IRIS'],'description':a73_0x2f57('0x21')}})[a73_0x2f57('0x1a')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 7bb3f1d80..23243fdce 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -1 +1 @@ -const a74_0xb208=['test','user','days','catch','COLORS','canManage','Page\x20','Users\x20banned\x20in\x20','member','guildBanAdd','values','errors','constructor','name','DARK_BUT_NOT_BLACK','Constants','\x20of\x20','Command','soft','BAN_MEMBERS','ban','../../utils/errors','ban\x20--list','resolver','../../utils/pagination','RED','Reason','fetchBans','ban\x20--user\x20USER_ID\x20--soft\x20--\x20REASON','exec','memberSoftBan','Banned\x20Users','INVALID_COMMAND_SYNTAX','client','page','\x20/\x20','items','ban\x20--user\x20USER_ID\x20--\x20REASON','join','ban\x20--user\x20USER_ID\x20--days\x20NUMBER\x20--\x20REASON','get','info','exports','ORANGE','It\x20allows\x20you\x20to\x20ban\x20(or\x20soft\x20ban)\x20users\x20from\x20the\x20server,\x20and\x20optionally\x20clear\x20their\x20messages\x20from\x20the\x20specified\x20number\x20of\x20days.\x20It\x20also\x20allows\x20you\x20to\x20list\x20all\x20the\x20users\x20banned\x20in\x20the\x20server.','map','guild','locale','resolveUser','cache','language','author','send','reason','tag','list','members','ban\x20--list\x20--page\x203','channel','getString','document','return\x20/\x22\x20+\x20this\x20+\x20\x22/','DiscordError','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x464c3e,_0xb20878){const _0x4f6d39=function(_0x4d07e8){while(--_0x4d07e8){_0x464c3e['push'](_0x464c3e['shift']());}},_0x39dfd4=function(){const _0x541b8e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x325da1,_0x39332a,_0x37ccfc,_0x480d7b){_0x480d7b=_0x480d7b||{};let _0x52d18a=_0x39332a+'='+_0x37ccfc,_0x43b0eb=0x0;for(let _0x1ec68b=0x0,_0x5b6df2=_0x325da1['length'];_0x1ec68b<_0x5b6df2;_0x1ec68b++){const _0x24a6f4=_0x325da1[_0x1ec68b];_0x52d18a+=';\x20'+_0x24a6f4;const _0x4729e1=_0x325da1[_0x24a6f4];_0x325da1['push'](_0x4729e1),_0x5b6df2=_0x325da1['length'],_0x4729e1!==!![]&&(_0x52d18a+='='+_0x4729e1);}_0x480d7b['cookie']=_0x52d18a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4d8617,_0x3870f8){_0x4d8617=_0x4d8617||function(_0x3a49b1){return _0x3a49b1;};const _0x35e4bc=_0x4d8617(new RegExp('(?:^|;\x20)'+_0x3870f8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x12ddd2=function(_0x1910f3,_0x151bff){_0x1910f3(++_0x151bff);};return _0x12ddd2(_0x4f6d39,_0xb20878),_0x35e4bc?decodeURIComponent(_0x35e4bc[0x1]):undefined;}},_0x103d2c=function(){const _0x404e3d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x404e3d['test'](_0x541b8e['removeCookie']['toString']());};_0x541b8e['updateCookie']=_0x103d2c;let _0x355454='';const _0x11228e=_0x541b8e['updateCookie']();if(!_0x11228e)_0x541b8e['setCookie'](['*'],'counter',0x1);else _0x11228e?_0x355454=_0x541b8e['getCookie'](null,'counter'):_0x541b8e['removeCookie']();};_0x39dfd4();}(a74_0xb208,0x18b));const a74_0x4f6d=function(_0x464c3e,_0xb20878){_0x464c3e=_0x464c3e-0x0;let _0x4f6d39=a74_0xb208[_0x464c3e];return _0x4f6d39;};const a74_0x37ccfc=function(){let _0x597187=!![];return function(_0x1fdf1b,_0x368a99){const _0x5eb609=_0x597187?function(){if(_0x368a99){const _0x5428c4=_0x368a99['apply'](_0x1fdf1b,arguments);return _0x368a99=null,_0x5428c4;}}:function(){};return _0x597187=![],_0x5eb609;};}(),a74_0x39332a=a74_0x37ccfc(this,function(){const _0x57cfd0=function(){const _0x3d9f5b=_0x57cfd0[a74_0x4f6d('0x1')](a74_0x4f6d('0x32'))()['constructor'](a74_0x4f6d('0x34'));return!_0x3d9f5b[a74_0x4f6d('0x35')](a74_0x39332a);};return _0x57cfd0();});a74_0x39332a();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a74_0x4f6d('0xa')),pagination=require(a74_0x4f6d('0xd'));module[a74_0x4f6d('0x1f')]=class Ban extends tesseract_1[a74_0x4f6d('0x6')]{constructor(){super(a74_0x4f6d('0x9'),{'description':a74_0x4f6d('0x21'),'triggers':[],'arguments':{'alias':{'days':'d','list':'l','page':'p','soft':'s','user':'u'},'boolean':[a74_0x4f6d('0x2c'),a74_0x4f6d('0x7')],'default':{'days':0x0,'page':0x1},'number':[a74_0x4f6d('0x37'),'page'],'string':[a74_0x4f6d('0x36')]},'scope':a74_0x4f6d('0x23'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a74_0x4f6d('0x8')],'userPermissions':[a74_0x4f6d('0x8')],'syntax':[a74_0x4f6d('0xb'),a74_0x4f6d('0x2e'),a74_0x4f6d('0x1a'),a74_0x4f6d('0x11'),a74_0x4f6d('0x1c')]}),this[a74_0x4f6d('0x12')]=async(_0x14cf57,_0x4fa2fc)=>{if(_0x4fa2fc[a74_0x4f6d('0x2c')]){const _0x1e09ca=await _0x14cf57[a74_0x4f6d('0x23')][a74_0x4f6d('0x10')](),_0x398e8d=pagination['paginate']([..._0x1e09ca[a74_0x4f6d('0x3f')]()],_0x4fa2fc[a74_0x4f6d('0x17')]);return await _0x14cf57[a74_0x4f6d('0x2f')][a74_0x4f6d('0x29')]({'embed':{'color':tesseract_1['Constants'][a74_0x4f6d('0x39')][a74_0x4f6d('0x20')],'title':a74_0x4f6d('0x14'),'description':a74_0x4f6d('0x3c')+_0x14cf57[a74_0x4f6d('0x23')][a74_0x4f6d('0x2')],'fields':_0x398e8d[a74_0x4f6d('0x19')][a74_0x4f6d('0x22')](_0x2a0ec5=>({'name':_0x2a0ec5[a74_0x4f6d('0x36')][a74_0x4f6d('0x2b')]+a74_0x4f6d('0x18')+_0x2a0ec5[a74_0x4f6d('0x36')]['id'],'value':_0x2a0ec5[a74_0x4f6d('0x2a')]||'-'})),'footer':{'text':a74_0x4f6d('0x3b')+_0x398e8d[a74_0x4f6d('0x17')]+a74_0x4f6d('0x5')+_0x398e8d['pages']}}});}const _0x593554=this[a74_0x4f6d('0x16')][a74_0x4f6d('0xc')][a74_0x4f6d('0x25')](_0x4fa2fc[a74_0x4f6d('0x36')]);if(!_0x593554)throw new errors[(a74_0x4f6d('0x33'))](errors['BASTION_ERROR_TYPE'][a74_0x4f6d('0x15')],this[a74_0x4f6d('0x2')]);if(_0x14cf57[a74_0x4f6d('0x28')]['id']!==_0x14cf57[a74_0x4f6d('0x23')]['ownerID']&&_0x14cf57[a74_0x4f6d('0x23')]['members'][a74_0x4f6d('0x26')]['has'](_0x593554['id'])&&!_0x14cf57[a74_0x4f6d('0x3d')][a74_0x4f6d('0x3a')](_0x14cf57['guild'][a74_0x4f6d('0x2d')][a74_0x4f6d('0x26')][a74_0x4f6d('0x1d')](_0x593554['id'])))return await _0x14cf57[a74_0x4f6d('0x2f')][a74_0x4f6d('0x29')]({'embed':{'color':tesseract_1['Constants'][a74_0x4f6d('0x39')][a74_0x4f6d('0xe')],'title':this[a74_0x4f6d('0x16')]['locale'][a74_0x4f6d('0x30')](_0x14cf57['guild'][a74_0x4f6d('0x31')][a74_0x4f6d('0x27')],'errors','unauthorized'),'description':this[a74_0x4f6d('0x16')][a74_0x4f6d('0x24')][a74_0x4f6d('0x30')](_0x14cf57[a74_0x4f6d('0x23')][a74_0x4f6d('0x31')]['language'],a74_0x4f6d('0x0'),'rolePosition',_0x14cf57[a74_0x4f6d('0x28')][a74_0x4f6d('0x2b')],_0x593554[a74_0x4f6d('0x2b')])}})[a74_0x4f6d('0x38')](()=>{});const _0x5c397b=_0x4fa2fc['_'][a74_0x4f6d('0x1b')]('\x20')||'-';await _0x14cf57[a74_0x4f6d('0x23')][a74_0x4f6d('0x2d')][a74_0x4f6d('0x9')](_0x593554,{'days':_0x4fa2fc[a74_0x4f6d('0x37')],'reason':_0x5c397b}),_0x4fa2fc[a74_0x4f6d('0x7')]&&await _0x14cf57[a74_0x4f6d('0x23')]['members']['unban'](_0x593554,_0x5c397b),await _0x14cf57[a74_0x4f6d('0x2f')][a74_0x4f6d('0x29')]({'embed':{'color':tesseract_1[a74_0x4f6d('0x4')]['COLORS'][a74_0x4f6d('0x3')],'description':_0x4fa2fc[a74_0x4f6d('0x7')]?this[a74_0x4f6d('0x16')][a74_0x4f6d('0x24')]['getString'](_0x14cf57[a74_0x4f6d('0x23')][a74_0x4f6d('0x31')]['language'],a74_0x4f6d('0x1e'),a74_0x4f6d('0x13'),_0x14cf57[a74_0x4f6d('0x28')][a74_0x4f6d('0x2b')],_0x593554['tag']):this[a74_0x4f6d('0x16')][a74_0x4f6d('0x24')][a74_0x4f6d('0x30')](_0x14cf57[a74_0x4f6d('0x23')][a74_0x4f6d('0x31')][a74_0x4f6d('0x27')],a74_0x4f6d('0x1e'),a74_0x4f6d('0x3e'),_0x14cf57[a74_0x4f6d('0x28')][a74_0x4f6d('0x2b')],_0x593554['tag']),'fields':[{'name':a74_0x4f6d('0xf'),'value':_0x5c397b}],'footer':{'text':_0x593554['id']}}})[a74_0x4f6d('0x38')](()=>{});};}}; \ No newline at end of file +const a74_0x135c=['COLORS','unauthorized','Constants','unban','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guildBanAdd','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','channel','items','member','\x20/\x20','resolver','constructor','apply','client','resolveUser','map','author','soft','ban','info','user','../../utils/pagination','errors','days','Banned\x20Users','BASTION_ERROR_TYPE','test','reason','getString','Page\x20','page','ban\x20--user\x20USER_ID\x20--soft\x20--\x20REASON','DARK_BUT_NOT_BLACK','BAN_MEMBERS','members','INVALID_COMMAND_SYNTAX','ban\x20--user\x20USER_ID\x20--days\x20NUMBER\x20--\x20REASON','list','@bastion/tesseract','ownerID','name','\x20of\x20','language','It\x20allows\x20you\x20to\x20ban\x20(or\x20soft\x20ban)\x20users\x20from\x20the\x20server,\x20and\x20optionally\x20clear\x20their\x20messages\x20from\x20the\x20specified\x20number\x20of\x20days.\x20It\x20also\x20allows\x20you\x20to\x20list\x20all\x20the\x20users\x20banned\x20in\x20the\x20server.','ban\x20--list\x20--page\x203','fetchBans','exports','tag','has','rolePosition','catch','locale','send','values','canManage','get','guild','cache'];(function(_0x43aaf2,_0x135ce9){const _0x1e6207=function(_0x5077df){while(--_0x5077df){_0x43aaf2['push'](_0x43aaf2['shift']());}},_0x495279=function(){const _0x3e2097={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x309a8a,_0x51fd40,_0x19f287,_0x478a78){_0x478a78=_0x478a78||{};let _0x390840=_0x51fd40+'='+_0x19f287,_0x396a84=0x0;for(let _0x2928e9=0x0,_0x757030=_0x309a8a['length'];_0x2928e9<_0x757030;_0x2928e9++){const _0x1dcf82=_0x309a8a[_0x2928e9];_0x390840+=';\x20'+_0x1dcf82;const _0x353f8f=_0x309a8a[_0x1dcf82];_0x309a8a['push'](_0x353f8f),_0x757030=_0x309a8a['length'],_0x353f8f!==!![]&&(_0x390840+='='+_0x353f8f);}_0x478a78['cookie']=_0x390840;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3a4c7b,_0x509f37){_0x3a4c7b=_0x3a4c7b||function(_0x494fb3){return _0x494fb3;};const _0x3e7fab=_0x3a4c7b(new RegExp('(?:^|;\x20)'+_0x509f37['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1b3d51=function(_0x258d2e,_0x3d7359){_0x258d2e(++_0x3d7359);};return _0x1b3d51(_0x1e6207,_0x135ce9),_0x3e7fab?decodeURIComponent(_0x3e7fab[0x1]):undefined;}},_0x51061b=function(){const _0x3ffbcc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3ffbcc['test'](_0x3e2097['removeCookie']['toString']());};_0x3e2097['updateCookie']=_0x51061b;let _0xe6e9c1='';const _0x41ebef=_0x3e2097['updateCookie']();if(!_0x41ebef)_0x3e2097['setCookie'](['*'],'counter',0x1);else _0x41ebef?_0xe6e9c1=_0x3e2097['getCookie'](null,'counter'):_0x3e2097['removeCookie']();};_0x495279();}(a74_0x135c,0x180));const a74_0x1e62=function(_0x43aaf2,_0x135ce9){_0x43aaf2=_0x43aaf2-0x0;let _0x1e6207=a74_0x135c[_0x43aaf2];return _0x1e6207;};const a74_0x19f287=function(){let _0x5f3ce9=!![];return function(_0x4bc2ec,_0x2d026c){const _0x326f34=_0x5f3ce9?function(){if(_0x2d026c){const _0x2d90b4=_0x2d026c[a74_0x1e62('0x32')](_0x4bc2ec,arguments);return _0x2d026c=null,_0x2d90b4;}}:function(){};return _0x5f3ce9=![],_0x326f34;};}(),a74_0x51fd40=a74_0x19f287(this,function(){const _0x3ea5df=function(){const _0xd210e=_0x3ea5df[a74_0x1e62('0x31')](a74_0x1e62('0x28'))()[a74_0x1e62('0x31')](a74_0x1e62('0x2a'));return!_0xd210e[a74_0x1e62('0x4')](a74_0x51fd40);};return _0x3ea5df();});a74_0x51fd40();'use strict';const tesseract_1=require(a74_0x1e62('0x10')),errors=require('../../utils/errors'),pagination=require(a74_0x1e62('0x3b'));module[a74_0x1e62('0x18')]=class Ban extends tesseract_1['Command']{constructor(){super(a74_0x1e62('0x38'),{'description':a74_0x1e62('0x15'),'triggers':[],'arguments':{'alias':{'days':'d','list':'l','page':'p','soft':'s','user':'u'},'boolean':[a74_0x1e62('0xf'),a74_0x1e62('0x37')],'default':{'days':0x0,'page':0x1},'number':['days',a74_0x1e62('0x8')],'string':[a74_0x1e62('0x3a')]},'scope':a74_0x1e62('0x22'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a74_0x1e62('0xb')],'userPermissions':['BAN_MEMBERS'],'syntax':['ban\x20--list',a74_0x1e62('0x16'),'ban\x20--user\x20USER_ID\x20--\x20REASON',a74_0x1e62('0x9'),a74_0x1e62('0xe')]}),this['exec']=async(_0x556522,_0x2c3af4)=>{if(_0x2c3af4[a74_0x1e62('0xf')]){const _0x32ddcd=await _0x556522[a74_0x1e62('0x22')][a74_0x1e62('0x17')](),_0x4182da=pagination['paginate']([..._0x32ddcd[a74_0x1e62('0x1f')]()],_0x2c3af4['page']);return await _0x556522[a74_0x1e62('0x2c')][a74_0x1e62('0x1e')]({'embed':{'color':tesseract_1[a74_0x1e62('0x26')][a74_0x1e62('0x24')]['ORANGE'],'title':a74_0x1e62('0x2'),'description':'Users\x20banned\x20in\x20'+_0x556522[a74_0x1e62('0x22')][a74_0x1e62('0x12')],'fields':_0x4182da[a74_0x1e62('0x2d')][a74_0x1e62('0x35')](_0x45b3cc=>({'name':_0x45b3cc[a74_0x1e62('0x3a')][a74_0x1e62('0x19')]+a74_0x1e62('0x2f')+_0x45b3cc[a74_0x1e62('0x3a')]['id'],'value':_0x45b3cc[a74_0x1e62('0x5')]||'-'})),'footer':{'text':a74_0x1e62('0x7')+_0x4182da[a74_0x1e62('0x8')]+a74_0x1e62('0x13')+_0x4182da['pages']}}});}const _0x2797ca=this['client'][a74_0x1e62('0x30')][a74_0x1e62('0x34')](_0x2c3af4['user']);if(!_0x2797ca)throw new errors['DiscordError'](errors[a74_0x1e62('0x3')][a74_0x1e62('0xd')],this[a74_0x1e62('0x12')]);if(_0x556522[a74_0x1e62('0x36')]['id']!==_0x556522[a74_0x1e62('0x22')][a74_0x1e62('0x11')]&&_0x556522['guild'][a74_0x1e62('0xc')][a74_0x1e62('0x23')][a74_0x1e62('0x1a')](_0x2797ca['id'])&&!_0x556522[a74_0x1e62('0x2e')][a74_0x1e62('0x20')](_0x556522[a74_0x1e62('0x22')][a74_0x1e62('0xc')][a74_0x1e62('0x23')][a74_0x1e62('0x21')](_0x2797ca['id'])))return await _0x556522[a74_0x1e62('0x2c')][a74_0x1e62('0x1e')]({'embed':{'color':tesseract_1[a74_0x1e62('0x26')][a74_0x1e62('0x24')]['RED'],'title':this[a74_0x1e62('0x33')]['locale'][a74_0x1e62('0x6')](_0x556522[a74_0x1e62('0x22')][a74_0x1e62('0x2b')][a74_0x1e62('0x14')],a74_0x1e62('0x0'),a74_0x1e62('0x25')),'description':this[a74_0x1e62('0x33')]['locale']['getString'](_0x556522[a74_0x1e62('0x22')][a74_0x1e62('0x2b')][a74_0x1e62('0x14')],a74_0x1e62('0x0'),a74_0x1e62('0x1b'),_0x556522[a74_0x1e62('0x36')][a74_0x1e62('0x19')],_0x2797ca[a74_0x1e62('0x19')])}})[a74_0x1e62('0x1c')](()=>{});const _0x51c25f=_0x2c3af4['_']['join']('\x20')||'-';await _0x556522[a74_0x1e62('0x22')][a74_0x1e62('0xc')][a74_0x1e62('0x38')](_0x2797ca,{'days':_0x2c3af4[a74_0x1e62('0x1')],'reason':_0x51c25f}),_0x2c3af4['soft']&&await _0x556522[a74_0x1e62('0x22')][a74_0x1e62('0xc')][a74_0x1e62('0x27')](_0x2797ca,_0x51c25f),await _0x556522[a74_0x1e62('0x2c')][a74_0x1e62('0x1e')]({'embed':{'color':tesseract_1[a74_0x1e62('0x26')][a74_0x1e62('0x24')][a74_0x1e62('0xa')],'description':_0x2c3af4[a74_0x1e62('0x37')]?this[a74_0x1e62('0x33')][a74_0x1e62('0x1d')]['getString'](_0x556522[a74_0x1e62('0x22')]['document']['language'],a74_0x1e62('0x39'),'memberSoftBan',_0x556522['author'][a74_0x1e62('0x19')],_0x2797ca[a74_0x1e62('0x19')]):this[a74_0x1e62('0x33')][a74_0x1e62('0x1d')][a74_0x1e62('0x6')](_0x556522[a74_0x1e62('0x22')][a74_0x1e62('0x2b')][a74_0x1e62('0x14')],a74_0x1e62('0x39'),a74_0x1e62('0x29'),_0x556522[a74_0x1e62('0x36')]['tag'],_0x2797ca[a74_0x1e62('0x19')]),'fields':[{'name':'Reason','value':_0x51c25f}],'footer':{'text':_0x2797ca['id']}}})[a74_0x1e62('0x1c')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/case.js b/commands/moderation/case.js index 4a6e72321..47ba28465 100644 --- a/commands/moderation/case.js +++ b/commands/moderation/case.js @@ -1 +1 @@ -const a75_0x2355=['messages','MAX_SAFE_INTEGER','messageId','test','errors','has','exports','apply','case','getString','client','constructor','news','clamp','@bastion/tesseract','text','../../utils/numbers','send','cache','document','../../utils/errors','type','case\x20--number\x20NUMBER','moderationLogChannelId','get','NewsChannel','embeds','language','discord.js','findOne','guild','locale','exec','channel','filter','number','TextChannel','MANAGE_GUILD','DiscordError','fetch'];(function(_0x4b8c80,_0x23558d){const _0x5534a1=function(_0x42db0a){while(--_0x42db0a){_0x4b8c80['push'](_0x4b8c80['shift']());}},_0x46dde9=function(){const _0x1fa021={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2769b4,_0x1cf361,_0x546ba0,_0x3020d4){_0x3020d4=_0x3020d4||{};let _0x4c5a84=_0x1cf361+'='+_0x546ba0,_0x51388f=0x0;for(let _0x5558e4=0x0,_0x325c61=_0x2769b4['length'];_0x5558e4<_0x325c61;_0x5558e4++){const _0x527b93=_0x2769b4[_0x5558e4];_0x4c5a84+=';\x20'+_0x527b93;const _0x1de94d=_0x2769b4[_0x527b93];_0x2769b4['push'](_0x1de94d),_0x325c61=_0x2769b4['length'],_0x1de94d!==!![]&&(_0x4c5a84+='='+_0x1de94d);}_0x3020d4['cookie']=_0x4c5a84;},'removeCookie':function(){return'dev';},'getCookie':function(_0x651ad7,_0x4106f8){_0x651ad7=_0x651ad7||function(_0x5a6f8e){return _0x5a6f8e;};const _0x2fa08d=_0x651ad7(new RegExp('(?:^|;\x20)'+_0x4106f8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x34c221=function(_0x1f1461,_0x5c619b){_0x1f1461(++_0x5c619b);};return _0x34c221(_0x5534a1,_0x23558d),_0x2fa08d?decodeURIComponent(_0x2fa08d[0x1]):undefined;}},_0xb1fa7a=function(){const _0x422c23=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x422c23['test'](_0x1fa021['removeCookie']['toString']());};_0x1fa021['updateCookie']=_0xb1fa7a;let _0x28b44b='';const _0x21dc55=_0x1fa021['updateCookie']();if(!_0x21dc55)_0x1fa021['setCookie'](['*'],'counter',0x1);else _0x21dc55?_0x28b44b=_0x1fa021['getCookie'](null,'counter'):_0x1fa021['removeCookie']();};_0x46dde9();}(a75_0x2355,0x1a1));const a75_0x5534=function(_0x4b8c80,_0x23558d){_0x4b8c80=_0x4b8c80-0x0;let _0x5534a1=a75_0x2355[_0x4b8c80];return _0x5534a1;};const a75_0x546ba0=function(){let _0x4aeadf=!![];return function(_0x17e4f1,_0x4e2c61){const _0x4368e2=_0x4aeadf?function(){if(_0x4e2c61){const _0x175176=_0x4e2c61[a75_0x5534('0x1e')](_0x17e4f1,arguments);return _0x4e2c61=null,_0x175176;}}:function(){};return _0x4aeadf=![],_0x4368e2;};}(),a75_0x1cf361=a75_0x546ba0(this,function(){const _0x30876e=function(){const _0x336a4d=_0x30876e['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a75_0x5534('0x22')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x336a4d[a75_0x5534('0x1a')](a75_0x1cf361);};return _0x30876e();});a75_0x1cf361();'use strict';const tesseract_1=require(a75_0x5534('0x25')),discord_js_1=require(a75_0x5534('0xb')),errors=require(a75_0x5534('0x3')),numbers=require(a75_0x5534('0x27')),Case_1=require('../../models/Case');module[a75_0x5534('0x1d')]=class CaseCommand extends tesseract_1['Command']{constructor(){super(a75_0x5534('0x1f'),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20moderation\x20case\x20log\x20for\x20the\x20specified\x20case\x20number.','triggers':[],'arguments':{'alias':{'number':'n'},'number':['number'],'coerce':{'number':_0x18059d=>Math['floor'](numbers[a75_0x5534('0x24')](_0x18059d,0x1,Number[a75_0x5534('0x18')]))}},'scope':a75_0x5534('0xd'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a75_0x5534('0x14')],'syntax':[a75_0x5534('0x5')]}),this[a75_0x5534('0xf')]=async(_0x4b955e,_0x445b91)=>{if(!_0x445b91[a75_0x5534('0x12')])throw new errors[(a75_0x5534('0x15'))](errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX'],this['name']);const _0x32eefa=await Case_1['default'][a75_0x5534('0xc')]({'guild':_0x4b955e[a75_0x5534('0xd')]['id'],'number':_0x445b91[a75_0x5534('0x12')]});if(!_0x32eefa)throw new Error(this[a75_0x5534('0x21')][a75_0x5534('0xe')][a75_0x5534('0x20')](_0x4b955e['guild'][a75_0x5534('0x2')][a75_0x5534('0xa')],a75_0x5534('0x1b'),'caseNotFound'));const _0x502648=_0x4b955e['guild']['channels'][a75_0x5534('0x1')][a75_0x5534('0x11')](_0x3bd7d6=>_0x3bd7d6[a75_0x5534('0x4')]===a75_0x5534('0x26')||_0x3bd7d6['type']===a75_0x5534('0x23'));if(_0x4b955e[a75_0x5534('0xd')]['document'][a75_0x5534('0x6')]&&_0x502648[a75_0x5534('0x1c')](_0x4b955e[a75_0x5534('0xd')]['document'][a75_0x5534('0x6')])){const _0x5a87be=_0x502648[a75_0x5534('0x7')](_0x4b955e['guild'][a75_0x5534('0x2')]['moderationLogChannelId']);if(_0x5a87be instanceof discord_js_1[a75_0x5534('0x8')]||_0x5a87be instanceof discord_js_1[a75_0x5534('0x13')]){const _0x1654ef=await _0x5a87be[a75_0x5534('0x17')][a75_0x5534('0x16')](_0x32eefa[a75_0x5534('0x19')]);await _0x4b955e[a75_0x5534('0x10')][a75_0x5534('0x0')]({'embed':_0x1654ef[a75_0x5534('0x9')][0x0]});}}};}}; \ No newline at end of file +const a75_0x2894=['name','case','constructor','number','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channels','NewsChannel','INVALID_COMMAND_SYNTAX','guild','document','exports','exec','clamp','has','apply','../../utils/numbers','getString','locale','../../utils/errors','@bastion/tesseract','Command','It\x20allows\x20you\x20to\x20see\x20the\x20moderation\x20case\x20log\x20for\x20the\x20specified\x20case\x20number.','floor','embeds','news','filter','cache','text','BASTION_ERROR_TYPE','language','../../models/Case','errors','TextChannel','get','MANAGE_GUILD','client','send','default','MAX_SAFE_INTEGER','moderationLogChannelId','case\x20--number\x20NUMBER','test','messageId'];(function(_0x40d7bf,_0x2894d3){const _0x33332a=function(_0x43afec){while(--_0x43afec){_0x40d7bf['push'](_0x40d7bf['shift']());}},_0x493057=function(){const _0x14ab2f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4460d9,_0x26c74a,_0x39e223,_0x10230c){_0x10230c=_0x10230c||{};let _0x2de827=_0x26c74a+'='+_0x39e223,_0x8fcbe4=0x0;for(let _0x1f7fe2=0x0,_0x4d0eeb=_0x4460d9['length'];_0x1f7fe2<_0x4d0eeb;_0x1f7fe2++){const _0x4b2d79=_0x4460d9[_0x1f7fe2];_0x2de827+=';\x20'+_0x4b2d79;const _0x1cb268=_0x4460d9[_0x4b2d79];_0x4460d9['push'](_0x1cb268),_0x4d0eeb=_0x4460d9['length'],_0x1cb268!==!![]&&(_0x2de827+='='+_0x1cb268);}_0x10230c['cookie']=_0x2de827;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3c27d1,_0x5b31a6){_0x3c27d1=_0x3c27d1||function(_0x3f13e4){return _0x3f13e4;};const _0x32fd5e=_0x3c27d1(new RegExp('(?:^|;\x20)'+_0x5b31a6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x16c526=function(_0x3c9c8d,_0x2d391f){_0x3c9c8d(++_0x2d391f);};return _0x16c526(_0x33332a,_0x2894d3),_0x32fd5e?decodeURIComponent(_0x32fd5e[0x1]):undefined;}},_0x37047c=function(){const _0x24ab7a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x24ab7a['test'](_0x14ab2f['removeCookie']['toString']());};_0x14ab2f['updateCookie']=_0x37047c;let _0x3b3990='';const _0x5ab64c=_0x14ab2f['updateCookie']();if(!_0x5ab64c)_0x14ab2f['setCookie'](['*'],'counter',0x1);else _0x5ab64c?_0x3b3990=_0x14ab2f['getCookie'](null,'counter'):_0x14ab2f['removeCookie']();};_0x493057();}(a75_0x2894,0x174));const a75_0x3333=function(_0x40d7bf,_0x2894d3){_0x40d7bf=_0x40d7bf-0x0;let _0x33332a=a75_0x2894[_0x40d7bf];return _0x33332a;};const a75_0x39e223=function(){let _0x2915d6=!![];return function(_0x4e4b7e,_0x147273){const _0x28d2fb=_0x2915d6?function(){if(_0x147273){const _0x69ed19=_0x147273[a75_0x3333('0x1d')](_0x4e4b7e,arguments);return _0x147273=null,_0x69ed19;}}:function(){};return _0x2915d6=![],_0x28d2fb;};}(),a75_0x26c74a=a75_0x39e223(this,function(){const _0x406f49=function(){const _0x347924=_0x406f49[a75_0x3333('0x11')](a75_0x3333('0x13'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x347924[a75_0x3333('0xd')](a75_0x26c74a);};return _0x406f49();});a75_0x26c74a();'use strict';const tesseract_1=require(a75_0x3333('0x22')),discord_js_1=require('discord.js'),errors=require(a75_0x3333('0x21')),numbers=require(a75_0x3333('0x1e')),Case_1=require(a75_0x3333('0x2'));module[a75_0x3333('0x19')]=class CaseCommand extends tesseract_1[a75_0x3333('0x23')]{constructor(){super(a75_0x3333('0x10'),{'description':a75_0x3333('0x24'),'triggers':[],'arguments':{'alias':{'number':'n'},'number':['number'],'coerce':{'number':_0x160743=>Math[a75_0x3333('0x25')](numbers[a75_0x3333('0x1b')](_0x160743,0x1,Number[a75_0x3333('0xa')]))}},'scope':a75_0x3333('0x17'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a75_0x3333('0x6')],'syntax':[a75_0x3333('0xc')]}),this[a75_0x3333('0x1a')]=async(_0x16d592,_0x266519)=>{if(!_0x266519['number'])throw new errors['DiscordError'](errors[a75_0x3333('0x0')][a75_0x3333('0x16')],this[a75_0x3333('0xf')]);const _0x56819f=await Case_1[a75_0x3333('0x9')]['findOne']({'guild':_0x16d592[a75_0x3333('0x17')]['id'],'number':_0x266519[a75_0x3333('0x12')]});if(!_0x56819f)throw new Error(this[a75_0x3333('0x7')][a75_0x3333('0x20')][a75_0x3333('0x1f')](_0x16d592[a75_0x3333('0x17')][a75_0x3333('0x18')][a75_0x3333('0x1')],a75_0x3333('0x3'),'caseNotFound'));const _0x1dd746=_0x16d592[a75_0x3333('0x17')][a75_0x3333('0x14')][a75_0x3333('0x29')][a75_0x3333('0x28')](_0x14f555=>_0x14f555['type']===a75_0x3333('0x2a')||_0x14f555['type']===a75_0x3333('0x27'));if(_0x16d592['guild'][a75_0x3333('0x18')][a75_0x3333('0xb')]&&_0x1dd746[a75_0x3333('0x1c')](_0x16d592['guild'][a75_0x3333('0x18')]['moderationLogChannelId'])){const _0x118095=_0x1dd746[a75_0x3333('0x5')](_0x16d592['guild'][a75_0x3333('0x18')]['moderationLogChannelId']);if(_0x118095 instanceof discord_js_1[a75_0x3333('0x15')]||_0x118095 instanceof discord_js_1[a75_0x3333('0x4')]){const _0x5af886=await _0x118095['messages']['fetch'](_0x56819f[a75_0x3333('0xe')]);await _0x16d592['channel'][a75_0x3333('0x8')]({'embed':_0x5af886[a75_0x3333('0x26')][0x0]});}}};}}; \ No newline at end of file diff --git a/commands/moderation/clear.js b/commands/moderation/clear.js index 2541f4dc1..7cc3c5262 100644 --- a/commands/moderation/clear.js +++ b/commands/moderation/clear.js @@ -1 +1 @@ -const a76_0x1642=['It\x20allows\x20you\x20to\x20clear\x20a\x20specified\x20number\x20of\x20messages\x20in\x20a\x20channel.\x20You\x20can\x20optionally\x20filter\x20the\x20messages\x20that\x20should\x20be\x20cleard\x20based\x20on\x20the\x20message\x20author,\x20or\x20since\x20when\x20it\x20was\x20sent,\x20or\x20whether\x20it\x20is\x20pinned\x20or\x20system\x20message\x20or\x20a\x20bot\x20sent\x20it.','resolveUser','exports','tag','size','user','createdTimestamp','test','system','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','locale','limit','author','getString','Command','RED','pinned','ORANGE','channel','clear','exec','bots','Cleared\x20','resolver','then','errors','noDeletableMessages','constructor','send','Bulk\x20Delete\x20by\x20','Constants','clear\x20--limit\x2042\x20--\x20REASON','fetch','Reason','clear\x20--pinned\x20--\x20REASON','\x20messages','messageClear','bot','clean','filter','time','info','notFound','catch','clear\x20--user\x20USER_ID\x20--\x20REASON','document','MANAGE_MESSAGES','delete','client','clear\x20--bots\x20--\x20REASON','language','@bastion/tesseract','clear\x20--\x20REASON'];(function(_0x1ed585,_0x1642ef){const _0x336e43=function(_0xaa3dc1){while(--_0xaa3dc1){_0x1ed585['push'](_0x1ed585['shift']());}},_0x46b9b5=function(){const _0x33f839={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x121e32,_0x1a2db7,_0x40df8d,_0x282556){_0x282556=_0x282556||{};let _0x527cca=_0x1a2db7+'='+_0x40df8d,_0x3e5fdb=0x0;for(let _0x2cbb35=0x0,_0x1d1a0a=_0x121e32['length'];_0x2cbb35<_0x1d1a0a;_0x2cbb35++){const _0x5e411b=_0x121e32[_0x2cbb35];_0x527cca+=';\x20'+_0x5e411b;const _0x6437cb=_0x121e32[_0x5e411b];_0x121e32['push'](_0x6437cb),_0x1d1a0a=_0x121e32['length'],_0x6437cb!==!![]&&(_0x527cca+='='+_0x6437cb);}_0x282556['cookie']=_0x527cca;},'removeCookie':function(){return'dev';},'getCookie':function(_0x8687a,_0x3ec908){_0x8687a=_0x8687a||function(_0x1a176a){return _0x1a176a;};const _0x14f42e=_0x8687a(new RegExp('(?:^|;\x20)'+_0x3ec908['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1fe6ef=function(_0x33675d,_0x4b9f59){_0x33675d(++_0x4b9f59);};return _0x1fe6ef(_0x336e43,_0x1642ef),_0x14f42e?decodeURIComponent(_0x14f42e[0x1]):undefined;}},_0x48b563=function(){const _0x5c3878=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5c3878['test'](_0x33f839['removeCookie']['toString']());};_0x33f839['updateCookie']=_0x48b563;let _0x1d6588='';const _0x4ffaf4=_0x33f839['updateCookie']();if(!_0x4ffaf4)_0x33f839['setCookie'](['*'],'counter',0x1);else _0x4ffaf4?_0x1d6588=_0x33f839['getCookie'](null,'counter'):_0x33f839['removeCookie']();};_0x46b9b5();}(a76_0x1642,0xe5));const a76_0x336e=function(_0x1ed585,_0x1642ef){_0x1ed585=_0x1ed585-0x0;let _0x336e43=a76_0x1642[_0x1ed585];return _0x336e43;};const a76_0x40df8d=function(){let _0x3a1acc=!![];return function(_0x147711,_0x1e69ec){const _0x472588=_0x3a1acc?function(){if(_0x1e69ec){const _0xc28510=_0x1e69ec['apply'](_0x147711,arguments);return _0x1e69ec=null,_0xc28510;}}:function(){};return _0x3a1acc=![],_0x472588;};}(),a76_0x1a2db7=a76_0x40df8d(this,function(){const _0x41a2a1=function(){const _0x523a7a=_0x41a2a1[a76_0x336e('0xf')](a76_0x336e('0x32'))()[a76_0x336e('0xf')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x523a7a[a76_0x336e('0x30')](a76_0x1a2db7);};return _0x41a2a1();});a76_0x1a2db7();'use strict';const tesseract_1=require(a76_0x336e('0x27'));module[a76_0x336e('0x2b')]=class Clear extends tesseract_1[a76_0x336e('0x2')]{constructor(){super(a76_0x336e('0x7'),{'description':a76_0x336e('0x29'),'triggers':[a76_0x336e('0x1a'),'purge'],'arguments':{'alias':{'limit':'l','time':'t','user':'u'},'boolean':['bots','pinned',a76_0x336e('0x31')],'number':[a76_0x336e('0x35'),a76_0x336e('0x1c')],'string':[a76_0x336e('0x2e')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a76_0x336e('0x22')],'userPermissions':[a76_0x336e('0x22')],'syntax':[a76_0x336e('0x28'),a76_0x336e('0x13'),a76_0x336e('0x20'),a76_0x336e('0x25'),a76_0x336e('0x16'),'clear\x20--system\x20--\x20REASON','clear\x20--time\x201586478504946\x20--\x20REASON']}),this[a76_0x336e('0x8')]=async(_0x5a175c,_0x4dcdb8)=>{let _0x227cef=await _0x5a175c[a76_0x336e('0x6')]['messages'][a76_0x336e('0x14')]({'limit':_0x4dcdb8[a76_0x336e('0x35')]||0x64,'before':_0x5a175c['id']},![]);const _0x2356ba=this[a76_0x336e('0x24')][a76_0x336e('0xb')][a76_0x336e('0x2a')](_0x4dcdb8['user']);if(_0x2356ba)_0x227cef=_0x227cef[a76_0x336e('0x1b')](_0x3b32f9=>_0x3b32f9[a76_0x336e('0x0')]['id']===_0x2356ba['id']);else{if(_0x4dcdb8[a76_0x336e('0x2e')])_0x227cef=_0x227cef['filter'](_0x547135=>_0x547135[a76_0x336e('0x0')]['id']===_0x4dcdb8[a76_0x336e('0x2e')]);}if(_0x4dcdb8[a76_0x336e('0x9')])_0x227cef=_0x227cef[a76_0x336e('0x1b')](_0x3c8f71=>_0x3c8f71['author']['bot']);else{if(_0x4dcdb8[a76_0x336e('0x9')]===![])_0x227cef=_0x227cef[a76_0x336e('0x1b')](_0x49b038=>!_0x49b038[a76_0x336e('0x0')][a76_0x336e('0x19')]);}if(_0x4dcdb8[a76_0x336e('0x4')])_0x227cef=_0x227cef[a76_0x336e('0x1b')](_0x3a8f83=>_0x3a8f83['pinned']);else{if(_0x4dcdb8[a76_0x336e('0x4')]===![])_0x227cef=_0x227cef[a76_0x336e('0x1b')](_0x40b70d=>!_0x40b70d[a76_0x336e('0x4')]);}if(_0x4dcdb8[a76_0x336e('0x31')])_0x227cef=_0x227cef['filter'](_0x582cd9=>_0x582cd9[a76_0x336e('0x31')]);else{if(_0x4dcdb8[a76_0x336e('0x31')]===![])_0x227cef=_0x227cef[a76_0x336e('0x1b')](_0x552fd9=>!_0x552fd9[a76_0x336e('0x31')]);}_0x4dcdb8[a76_0x336e('0x1c')]&&(_0x227cef=_0x227cef[a76_0x336e('0x1b')](_0x419fd7=>_0x419fd7[a76_0x336e('0x2f')]>=_0x5a175c['createdTimestamp']-_0x4dcdb8[a76_0x336e('0x1c')]*0xea60));const _0x5d4080=_0x4dcdb8['_']['join']('\x20')||'-',_0x5813d7=await _0x5a175c[a76_0x336e('0x6')]['bulkDelete'](_0x227cef,!![]);if(!_0x5813d7[a76_0x336e('0x2d')])return await _0x5a175c[a76_0x336e('0x6')][a76_0x336e('0x10')]({'embed':{'color':tesseract_1[a76_0x336e('0x12')]['COLORS'][a76_0x336e('0x3')],'title':this[a76_0x336e('0x24')]['locale'][a76_0x336e('0x1')](_0x5a175c['guild'][a76_0x336e('0x21')][a76_0x336e('0x26')],a76_0x336e('0xd'),a76_0x336e('0x1e')),'description':this['client']['locale'][a76_0x336e('0x1')](_0x5a175c['guild'][a76_0x336e('0x21')]['language'],a76_0x336e('0xd'),a76_0x336e('0xe'))}})['catch'](()=>{});await _0x5a175c[a76_0x336e('0x6')]['send']({'embed':{'color':tesseract_1[a76_0x336e('0x12')][a76_0x336e('0x33')][a76_0x336e('0x5')],'description':this[a76_0x336e('0x24')][a76_0x336e('0x34')][a76_0x336e('0x1')](_0x5a175c['guild'][a76_0x336e('0x21')][a76_0x336e('0x26')],a76_0x336e('0x1d'),a76_0x336e('0x18'),_0x5a175c[a76_0x336e('0x0')]['tag'],_0x5813d7[a76_0x336e('0x2d')]),'fields':[{'name':a76_0x336e('0x15'),'value':_0x5d4080}]}})[a76_0x336e('0xc')](_0x38e586=>{if(_0x5a175c['deletable'])_0x5a175c[a76_0x336e('0x23')]({'reason':a76_0x336e('0x11')+_0x5a175c[a76_0x336e('0x0')][a76_0x336e('0x2c')]})[a76_0x336e('0x1f')](()=>{});_0x38e586['delete']({'timeout':0xea60,'reason':a76_0x336e('0xa')+_0x5813d7[a76_0x336e('0x2d')]+a76_0x336e('0x17')})[a76_0x336e('0x1f')](()=>{});})[a76_0x336e('0x1f')](()=>{});};}}; \ No newline at end of file +const a76_0x4cae=['Constants','clear\x20--user\x20USER_ID\x20--\x20REASON','clear\x20--pinned\x20--\x20REASON','user','Cleared\x20','author','clear','Bulk\x20Delete\x20by\x20','catch','MANAGE_MESSAGES','size','Reason','channel','client','clear\x20--\x20REASON','clear\x20--system\x20--\x20REASON','filter','messageClear','resolveUser','then','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','clear\x20--time\x201586478504946\x20--\x20REASON','clear\x20--bots\x20--\x20REASON','document','return\x20/\x22\x20+\x20this\x20+\x20\x22/','join','bots','pinned','createdTimestamp','constructor','ORANGE','RED','locale','apply','tag','getString','purge','language','time','system','errors','@bastion/tesseract','bot','delete','send','COLORS','guild','exec','limit'];(function(_0x16e54c,_0x4cae28){const _0x8175c5=function(_0x2c4773){while(--_0x2c4773){_0x16e54c['push'](_0x16e54c['shift']());}},_0x5e9e2c=function(){const _0x576244={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x21d737,_0x328f41,_0x1baaa3,_0x3156d3){_0x3156d3=_0x3156d3||{};let _0x3166ac=_0x328f41+'='+_0x1baaa3,_0xf3f393=0x0;for(let _0x12ee55=0x0,_0x14ed36=_0x21d737['length'];_0x12ee55<_0x14ed36;_0x12ee55++){const _0x5e3831=_0x21d737[_0x12ee55];_0x3166ac+=';\x20'+_0x5e3831;const _0x34eaa6=_0x21d737[_0x5e3831];_0x21d737['push'](_0x34eaa6),_0x14ed36=_0x21d737['length'],_0x34eaa6!==!![]&&(_0x3166ac+='='+_0x34eaa6);}_0x3156d3['cookie']=_0x3166ac;},'removeCookie':function(){return'dev';},'getCookie':function(_0xeaca60,_0x4eb6fb){_0xeaca60=_0xeaca60||function(_0x5a18e6){return _0x5a18e6;};const _0x49eec5=_0xeaca60(new RegExp('(?:^|;\x20)'+_0x4eb6fb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2d715f=function(_0x5a6f60,_0x490c39){_0x5a6f60(++_0x490c39);};return _0x2d715f(_0x8175c5,_0x4cae28),_0x49eec5?decodeURIComponent(_0x49eec5[0x1]):undefined;}},_0x1d7272=function(){const _0x119ac1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x119ac1['test'](_0x576244['removeCookie']['toString']());};_0x576244['updateCookie']=_0x1d7272;let _0x1cd6fe='';const _0x13fb36=_0x576244['updateCookie']();if(!_0x13fb36)_0x576244['setCookie'](['*'],'counter',0x1);else _0x13fb36?_0x1cd6fe=_0x576244['getCookie'](null,'counter'):_0x576244['removeCookie']();};_0x5e9e2c();}(a76_0x4cae,0xc4));const a76_0x8175=function(_0x16e54c,_0x4cae28){_0x16e54c=_0x16e54c-0x0;let _0x8175c5=a76_0x4cae[_0x16e54c];return _0x8175c5;};const a76_0x1baaa3=function(){let _0x414f48=!![];return function(_0x5b4775,_0x4d49ee){const _0x3ab812=_0x414f48?function(){if(_0x4d49ee){const _0x5a466d=_0x4d49ee[a76_0x8175('0x26')](_0x5b4775,arguments);return _0x4d49ee=null,_0x5a466d;}}:function(){};return _0x414f48=![],_0x3ab812;};}(),a76_0x328f41=a76_0x1baaa3(this,function(){const _0x3270fb=function(){const _0x429810=_0x3270fb[a76_0x8175('0x22')](a76_0x8175('0x1d'))()[a76_0x8175('0x22')](a76_0x8175('0x18'));return!_0x429810[a76_0x8175('0x19')](a76_0x328f41);};return _0x3270fb();});a76_0x328f41();'use strict';const tesseract_1=require(a76_0x8175('0x2e'));module['exports']=class Clear extends tesseract_1['Command']{constructor(){super(a76_0x8175('0xa'),{'description':'It\x20allows\x20you\x20to\x20clear\x20a\x20specified\x20number\x20of\x20messages\x20in\x20a\x20channel.\x20You\x20can\x20optionally\x20filter\x20the\x20messages\x20that\x20should\x20be\x20cleard\x20based\x20on\x20the\x20message\x20author,\x20or\x20since\x20when\x20it\x20was\x20sent,\x20or\x20whether\x20it\x20is\x20pinned\x20or\x20system\x20message\x20or\x20a\x20bot\x20sent\x20it.','triggers':['clean',a76_0x8175('0x29')],'arguments':{'alias':{'limit':'l','time':'t','user':'u'},'boolean':[a76_0x8175('0x1f'),a76_0x8175('0x20'),a76_0x8175('0x2c')],'number':[a76_0x8175('0x3'),a76_0x8175('0x2b')],'string':[a76_0x8175('0x7')]},'scope':a76_0x8175('0x1'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a76_0x8175('0xd')],'userPermissions':[a76_0x8175('0xd')],'syntax':[a76_0x8175('0x12'),'clear\x20--limit\x2042\x20--\x20REASON',a76_0x8175('0x5'),a76_0x8175('0x1b'),a76_0x8175('0x6'),a76_0x8175('0x13'),a76_0x8175('0x1a')]}),this[a76_0x8175('0x2')]=async(_0x527061,_0x528d4c)=>{let _0x5c1e14=await _0x527061[a76_0x8175('0x10')]['messages']['fetch']({'limit':_0x528d4c[a76_0x8175('0x3')]||0x64,'before':_0x527061['id']},![]);const _0x3279e3=this[a76_0x8175('0x11')]['resolver'][a76_0x8175('0x16')](_0x528d4c[a76_0x8175('0x7')]);if(_0x3279e3)_0x5c1e14=_0x5c1e14['filter'](_0x3e094b=>_0x3e094b['author']['id']===_0x3279e3['id']);else{if(_0x528d4c['user'])_0x5c1e14=_0x5c1e14[a76_0x8175('0x14')](_0x35fe0f=>_0x35fe0f[a76_0x8175('0x9')]['id']===_0x528d4c[a76_0x8175('0x7')]);}if(_0x528d4c['bots'])_0x5c1e14=_0x5c1e14[a76_0x8175('0x14')](_0x227173=>_0x227173['author'][a76_0x8175('0x2f')]);else{if(_0x528d4c[a76_0x8175('0x1f')]===![])_0x5c1e14=_0x5c1e14['filter'](_0x3be943=>!_0x3be943['author']['bot']);}if(_0x528d4c[a76_0x8175('0x20')])_0x5c1e14=_0x5c1e14['filter'](_0x591592=>_0x591592[a76_0x8175('0x20')]);else{if(_0x528d4c[a76_0x8175('0x20')]===![])_0x5c1e14=_0x5c1e14['filter'](_0x18f2d1=>!_0x18f2d1[a76_0x8175('0x20')]);}if(_0x528d4c[a76_0x8175('0x2c')])_0x5c1e14=_0x5c1e14[a76_0x8175('0x14')](_0x248648=>_0x248648['system']);else{if(_0x528d4c['system']===![])_0x5c1e14=_0x5c1e14[a76_0x8175('0x14')](_0xc4b84f=>!_0xc4b84f[a76_0x8175('0x2c')]);}_0x528d4c[a76_0x8175('0x2b')]&&(_0x5c1e14=_0x5c1e14[a76_0x8175('0x14')](_0x46ba08=>_0x46ba08[a76_0x8175('0x21')]>=_0x527061[a76_0x8175('0x21')]-_0x528d4c[a76_0x8175('0x2b')]*0xea60));const _0x89f6a4=_0x528d4c['_'][a76_0x8175('0x1e')]('\x20')||'-',_0x2d3788=await _0x527061[a76_0x8175('0x10')]['bulkDelete'](_0x5c1e14,!![]);if(!_0x2d3788['size'])return await _0x527061[a76_0x8175('0x10')]['send']({'embed':{'color':tesseract_1[a76_0x8175('0x4')][a76_0x8175('0x0')][a76_0x8175('0x24')],'title':this[a76_0x8175('0x11')]['locale']['getString'](_0x527061[a76_0x8175('0x1')][a76_0x8175('0x1c')][a76_0x8175('0x2a')],a76_0x8175('0x2d'),'notFound'),'description':this['client'][a76_0x8175('0x25')][a76_0x8175('0x28')](_0x527061['guild'][a76_0x8175('0x1c')][a76_0x8175('0x2a')],a76_0x8175('0x2d'),'noDeletableMessages')}})['catch'](()=>{});await _0x527061[a76_0x8175('0x10')][a76_0x8175('0x31')]({'embed':{'color':tesseract_1[a76_0x8175('0x4')][a76_0x8175('0x0')][a76_0x8175('0x23')],'description':this[a76_0x8175('0x11')]['locale'][a76_0x8175('0x28')](_0x527061[a76_0x8175('0x1')][a76_0x8175('0x1c')]['language'],'info',a76_0x8175('0x15'),_0x527061[a76_0x8175('0x9')][a76_0x8175('0x27')],_0x2d3788[a76_0x8175('0xe')]),'fields':[{'name':a76_0x8175('0xf'),'value':_0x89f6a4}]}})[a76_0x8175('0x17')](_0x2dde34=>{if(_0x527061['deletable'])_0x527061[a76_0x8175('0x30')]({'reason':a76_0x8175('0xb')+_0x527061[a76_0x8175('0x9')][a76_0x8175('0x27')]})['catch'](()=>{});_0x2dde34[a76_0x8175('0x30')]({'timeout':0xea60,'reason':a76_0x8175('0x8')+_0x2d3788[a76_0x8175('0xe')]+'\x20messages'})[a76_0x8175('0xc')](()=>{});})[a76_0x8175('0xc')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/deaf.js b/commands/moderation/deaf.js index 212846e69..bb480ac0a 100644 --- a/commands/moderation/deaf.js +++ b/commands/moderation/deaf.js @@ -1 +1 @@ -const a77_0x5413=['getString','unauthorized','ORANGE','document','constructor','DEAFEN_MEMBERS','apply','author','catch','errors','exec','user','Reason','exports','deaf\x20--user\x20USER_ID\x20--\x20REASON','RED','client','language','tag','locale','Constants','memberUnsetDeaf','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','deaf\x20--unset\x20--user\x20USER_ID\x20--\x20REASON','return\x20/\x22\x20+\x20this\x20+\x20\x22/','set','COLORS','info','voice','resolveGuildMember','BASTION_ERROR_TYPE','@bastion/tesseract','setDeaf','Command','ownerID','join','memberSetDeaf','guild','It\x20allows\x20you\x20to\x20deafen\x20(and\x20undeafen)\x20users\x20in\x20the\x20server.\x20Deafened\x20users\x20can\x27t\x20listen\x20anything\x20in\x20the\x20server\x27s\x20voice\x20channels.','deaf','../../utils/errors','send','canManage','channel','test'];(function(_0x22746f,_0x54133a){const _0x5903dc=function(_0x5d2040){while(--_0x5d2040){_0x22746f['push'](_0x22746f['shift']());}},_0x324ccc=function(){const _0x55dcec={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5e23f4,_0x5bf914,_0x1d40d4,_0x36938b){_0x36938b=_0x36938b||{};let _0x1d2c97=_0x5bf914+'='+_0x1d40d4,_0x10e99e=0x0;for(let _0x50e6e0=0x0,_0x1b7ca0=_0x5e23f4['length'];_0x50e6e0<_0x1b7ca0;_0x50e6e0++){const _0x3d7347=_0x5e23f4[_0x50e6e0];_0x1d2c97+=';\x20'+_0x3d7347;const _0x360550=_0x5e23f4[_0x3d7347];_0x5e23f4['push'](_0x360550),_0x1b7ca0=_0x5e23f4['length'],_0x360550!==!![]&&(_0x1d2c97+='='+_0x360550);}_0x36938b['cookie']=_0x1d2c97;},'removeCookie':function(){return'dev';},'getCookie':function(_0x33edd1,_0x102a23){_0x33edd1=_0x33edd1||function(_0x17a139){return _0x17a139;};const _0x1f13b4=_0x33edd1(new RegExp('(?:^|;\x20)'+_0x102a23['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x399bda=function(_0x2b68c6,_0x18878b){_0x2b68c6(++_0x18878b);};return _0x399bda(_0x5903dc,_0x54133a),_0x1f13b4?decodeURIComponent(_0x1f13b4[0x1]):undefined;}},_0x49fcce=function(){const _0x2d9d64=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2d9d64['test'](_0x55dcec['removeCookie']['toString']());};_0x55dcec['updateCookie']=_0x49fcce;let _0x163050='';const _0x2e27fc=_0x55dcec['updateCookie']();if(!_0x2e27fc)_0x55dcec['setCookie'](['*'],'counter',0x1);else _0x2e27fc?_0x163050=_0x55dcec['getCookie'](null,'counter'):_0x55dcec['removeCookie']();};_0x324ccc();}(a77_0x5413,0xf4));const a77_0x5903=function(_0x22746f,_0x54133a){_0x22746f=_0x22746f-0x0;let _0x5903dc=a77_0x5413[_0x22746f];return _0x5903dc;};const a77_0x1d40d4=function(){let _0x2ab190=!![];return function(_0x85e54c,_0x532fe0){const _0x48fc76=_0x2ab190?function(){if(_0x532fe0){const _0x42b66e=_0x532fe0[a77_0x5903('0x20')](_0x85e54c,arguments);return _0x532fe0=null,_0x42b66e;}}:function(){};return _0x2ab190=![],_0x48fc76;};}(),a77_0x5bf914=a77_0x1d40d4(this,function(){const _0x42a8af=function(){const _0x36b067=_0x42a8af[a77_0x5903('0x1e')](a77_0x5903('0x5'))()[a77_0x5903('0x1e')](a77_0x5903('0x3'));return!_0x36b067[a77_0x5903('0x19')](a77_0x5bf914);};return _0x42a8af();});a77_0x5bf914();'use strict';const tesseract_1=require(a77_0x5903('0xc')),errors=require(a77_0x5903('0x15'));module[a77_0x5903('0x27')]=class Deaf extends tesseract_1[a77_0x5903('0xe')]{constructor(){super(a77_0x5903('0x14'),{'description':a77_0x5903('0x13'),'triggers':[],'arguments':{'configuration':{'negation-prefix':'un'},'alias':{'user':'u'},'default':{'set':!![]},'boolean':[a77_0x5903('0x6')],'string':[a77_0x5903('0x25')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['DEAFEN_MEMBERS'],'userPermissions':[a77_0x5903('0x1f')],'syntax':[a77_0x5903('0x28'),a77_0x5903('0x4')]}),this[a77_0x5903('0x24')]=async(_0x507195,_0x1c600e)=>{const _0x3f57bd=this['client']['resolver'][a77_0x5903('0xa')](_0x507195[a77_0x5903('0x12')],_0x1c600e[a77_0x5903('0x25')]);if(!_0x3f57bd)throw new errors['DiscordError'](errors[a77_0x5903('0xb')]['INVALID_COMMAND_SYNTAX'],this['name']);if(_0x507195[a77_0x5903('0x21')]['id']!==_0x507195[a77_0x5903('0x12')][a77_0x5903('0xf')]&&!_0x507195['member'][a77_0x5903('0x17')](_0x3f57bd))return await _0x507195[a77_0x5903('0x18')][a77_0x5903('0x16')]({'embed':{'color':tesseract_1[a77_0x5903('0x1')]['COLORS'][a77_0x5903('0x29')],'title':this['client']['locale']['getString'](_0x507195[a77_0x5903('0x12')]['document'][a77_0x5903('0x2b')],'errors',a77_0x5903('0x1b')),'description':this[a77_0x5903('0x2a')]['locale'][a77_0x5903('0x1a')](_0x507195['guild'][a77_0x5903('0x1d')][a77_0x5903('0x2b')],a77_0x5903('0x23'),'rolePosition',_0x507195[a77_0x5903('0x21')][a77_0x5903('0x2c')],_0x3f57bd[a77_0x5903('0x25')]['tag'])}})[a77_0x5903('0x22')](()=>{});const _0x567daf=_0x1c600e['_'][a77_0x5903('0x10')]('\x20')||'-';await _0x3f57bd[a77_0x5903('0x9')][a77_0x5903('0xd')](!!_0x1c600e[a77_0x5903('0x6')],_0x567daf),await _0x507195[a77_0x5903('0x18')][a77_0x5903('0x16')]({'embed':{'color':tesseract_1['Constants'][a77_0x5903('0x7')][a77_0x5903('0x1c')],'description':_0x1c600e['set']?this[a77_0x5903('0x2a')][a77_0x5903('0x0')][a77_0x5903('0x1a')](_0x507195[a77_0x5903('0x12')][a77_0x5903('0x1d')][a77_0x5903('0x2b')],'info',a77_0x5903('0x11'),_0x507195[a77_0x5903('0x21')][a77_0x5903('0x2c')],_0x3f57bd[a77_0x5903('0x25')]['tag']):this[a77_0x5903('0x2a')][a77_0x5903('0x0')][a77_0x5903('0x1a')](_0x507195[a77_0x5903('0x12')][a77_0x5903('0x1d')][a77_0x5903('0x2b')],a77_0x5903('0x8'),a77_0x5903('0x2'),_0x507195[a77_0x5903('0x21')][a77_0x5903('0x2c')],_0x3f57bd[a77_0x5903('0x25')][a77_0x5903('0x2c')]),'fields':[{'name':a77_0x5903('0x26'),'value':_0x567daf}],'footer':{'text':_0x3f57bd['id']}}})[a77_0x5903('0x22')](()=>{});};}}; \ No newline at end of file +const a77_0x21e6=['exports','user','name','apply','COLORS','Reason','language','locale','join','getString','RED','voice','author','tag','exec','client','catch','constructor','resolver','guild','Command','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../../utils/errors','ownerID','deaf\x20--unset\x20--user\x20USER_ID\x20--\x20REASON','resolveGuildMember','info','errors','channel','DiscordError','@bastion/tesseract','INVALID_COMMAND_SYNTAX','document','ORANGE','set','memberSetDeaf','Constants','It\x20allows\x20you\x20to\x20deafen\x20(and\x20undeafen)\x20users\x20in\x20the\x20server.\x20Deafened\x20users\x20can\x27t\x20listen\x20anything\x20in\x20the\x20server\x27s\x20voice\x20channels.'];(function(_0x45da10,_0x21e66b){const _0x105b81=function(_0x709454){while(--_0x709454){_0x45da10['push'](_0x45da10['shift']());}},_0x4ec8c1=function(){const _0x479060={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5e9697,_0x102b19,_0x52b7b6,_0x153309){_0x153309=_0x153309||{};let _0x2548e7=_0x102b19+'='+_0x52b7b6,_0x1d9d11=0x0;for(let _0x3bd199=0x0,_0x1086f4=_0x5e9697['length'];_0x3bd199<_0x1086f4;_0x3bd199++){const _0x54a98e=_0x5e9697[_0x3bd199];_0x2548e7+=';\x20'+_0x54a98e;const _0x5d843a=_0x5e9697[_0x54a98e];_0x5e9697['push'](_0x5d843a),_0x1086f4=_0x5e9697['length'],_0x5d843a!==!![]&&(_0x2548e7+='='+_0x5d843a);}_0x153309['cookie']=_0x2548e7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x24b186,_0x1f7d57){_0x24b186=_0x24b186||function(_0x5cd46e){return _0x5cd46e;};const _0x1ef84d=_0x24b186(new RegExp('(?:^|;\x20)'+_0x1f7d57['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3de189=function(_0x3d18da,_0x194a2a){_0x3d18da(++_0x194a2a);};return _0x3de189(_0x105b81,_0x21e66b),_0x1ef84d?decodeURIComponent(_0x1ef84d[0x1]):undefined;}},_0x2e60e0=function(){const _0x1b47b9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1b47b9['test'](_0x479060['removeCookie']['toString']());};_0x479060['updateCookie']=_0x2e60e0;let _0x64a274='';const _0x3a3bdd=_0x479060['updateCookie']();if(!_0x3a3bdd)_0x479060['setCookie'](['*'],'counter',0x1);else _0x3a3bdd?_0x64a274=_0x479060['getCookie'](null,'counter'):_0x479060['removeCookie']();};_0x4ec8c1();}(a77_0x21e6,0x189));const a77_0x105b=function(_0x45da10,_0x21e66b){_0x45da10=_0x45da10-0x0;let _0x105b81=a77_0x21e6[_0x45da10];return _0x105b81;};const a77_0x52b7b6=function(){let _0x827bbc=!![];return function(_0x4d4073,_0x39d479){const _0x5b4562=_0x827bbc?function(){if(_0x39d479){const _0x391b51=_0x39d479[a77_0x105b('0x1c')](_0x4d4073,arguments);return _0x39d479=null,_0x391b51;}}:function(){};return _0x827bbc=![],_0x5b4562;};}(),a77_0x102b19=a77_0x52b7b6(this,function(){const _0x1f5545=function(){const _0x1adb65=_0x1f5545[a77_0x105b('0x4')](a77_0x105b('0x8'))()[a77_0x105b('0x4')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1adb65['test'](a77_0x102b19);};return _0x1f5545();});a77_0x102b19();'use strict';const tesseract_1=require(a77_0x105b('0x11')),errors=require(a77_0x105b('0x9'));module[a77_0x105b('0x19')]=class Deaf extends tesseract_1[a77_0x105b('0x7')]{constructor(){super('deaf',{'description':a77_0x105b('0x18'),'triggers':[],'arguments':{'configuration':{'negation-prefix':'un'},'alias':{'user':'u'},'default':{'set':!![]},'boolean':[a77_0x105b('0x15')],'string':[a77_0x105b('0x1a')]},'scope':a77_0x105b('0x6'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['DEAFEN_MEMBERS'],'userPermissions':['DEAFEN_MEMBERS'],'syntax':['deaf\x20--user\x20USER_ID\x20--\x20REASON',a77_0x105b('0xb')]}),this[a77_0x105b('0x1')]=async(_0x3d427a,_0x381bf9)=>{const _0x3ea588=this[a77_0x105b('0x2')][a77_0x105b('0x5')][a77_0x105b('0xc')](_0x3d427a[a77_0x105b('0x6')],_0x381bf9[a77_0x105b('0x1a')]);if(!_0x3ea588)throw new errors[(a77_0x105b('0x10'))](errors['BASTION_ERROR_TYPE'][a77_0x105b('0x12')],this[a77_0x105b('0x1b')]);if(_0x3d427a[a77_0x105b('0x25')]['id']!==_0x3d427a[a77_0x105b('0x6')][a77_0x105b('0xa')]&&!_0x3d427a['member']['canManage'](_0x3ea588))return await _0x3d427a[a77_0x105b('0xf')]['send']({'embed':{'color':tesseract_1['Constants'][a77_0x105b('0x1d')][a77_0x105b('0x23')],'title':this[a77_0x105b('0x2')][a77_0x105b('0x20')][a77_0x105b('0x22')](_0x3d427a[a77_0x105b('0x6')][a77_0x105b('0x13')][a77_0x105b('0x1f')],a77_0x105b('0xe'),'unauthorized'),'description':this[a77_0x105b('0x2')][a77_0x105b('0x20')][a77_0x105b('0x22')](_0x3d427a[a77_0x105b('0x6')]['document'][a77_0x105b('0x1f')],a77_0x105b('0xe'),'rolePosition',_0x3d427a[a77_0x105b('0x25')][a77_0x105b('0x0')],_0x3ea588[a77_0x105b('0x1a')][a77_0x105b('0x0')])}})['catch'](()=>{});const _0x97a8d0=_0x381bf9['_'][a77_0x105b('0x21')]('\x20')||'-';await _0x3ea588[a77_0x105b('0x24')]['setDeaf'](!!_0x381bf9['set'],_0x97a8d0),await _0x3d427a['channel']['send']({'embed':{'color':tesseract_1[a77_0x105b('0x17')][a77_0x105b('0x1d')][a77_0x105b('0x14')],'description':_0x381bf9['set']?this[a77_0x105b('0x2')][a77_0x105b('0x20')][a77_0x105b('0x22')](_0x3d427a[a77_0x105b('0x6')][a77_0x105b('0x13')]['language'],a77_0x105b('0xd'),a77_0x105b('0x16'),_0x3d427a[a77_0x105b('0x25')]['tag'],_0x3ea588[a77_0x105b('0x1a')][a77_0x105b('0x0')]):this[a77_0x105b('0x2')][a77_0x105b('0x20')][a77_0x105b('0x22')](_0x3d427a['guild']['document'][a77_0x105b('0x1f')],a77_0x105b('0xd'),'memberUnsetDeaf',_0x3d427a['author'][a77_0x105b('0x0')],_0x3ea588[a77_0x105b('0x1a')][a77_0x105b('0x0')]),'fields':[{'name':a77_0x105b('0x1e'),'value':_0x97a8d0}],'footer':{'text':_0x3ea588['id']}}})[a77_0x105b('0x3')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/infractions.js b/commands/moderation/infractions.js index ef903a55b..ae73c0c26 100644 --- a/commands/moderation/infractions.js +++ b/commands/moderation/infractions.js @@ -1 +1 @@ -const a78_0x3e75=['getString','infractions\x20--kick\x205','floor','You\x20haven\x27t\x20caused\x20any\x20trouble,\x20yet.\x20Keep\x20it\x20up!','Infractions','findById','GREEN','length','Command','default','NO_PERMISSION','infractionThreshold','clamp','document','exec','banThreshold','apply','channel','Constants','permissions','infractions\x20--ban\x2010','../../models/Guild','kickThreshold','ban','It\x20allows\x20you\x20to\x20list\x20all\x20your\x20infractions.\x20If\x20you\x27re\x20a\x20server\x20manager,\x20it\x20also\x20allows\x20you\x20to\x20set\x20the\x20thresholds\x20for\x20the\x20actions\x20that\x20should\x20be\x20taken\x20for\x20violating\x20infractions.','member','../../utils/numbers','infractions','language','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','info','Kick\x20Threshold','kick','@bastion/tesseract','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','guild','ORANGE','catch','tag','MANAGE_GUILD','save','client','send'];(function(_0x346b79,_0x3e75a8){const _0x41375a=function(_0x1e330f){while(--_0x1e330f){_0x346b79['push'](_0x346b79['shift']());}},_0x321708=function(){const _0x2cac67={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5bf7e8,_0x52b4ad,_0x1c15d9,_0x3d56a0){_0x3d56a0=_0x3d56a0||{};let _0x959695=_0x52b4ad+'='+_0x1c15d9,_0xb3b3f4=0x0;for(let _0x4d20af=0x0,_0x78fcd5=_0x5bf7e8['length'];_0x4d20af<_0x78fcd5;_0x4d20af++){const _0x9d657a=_0x5bf7e8[_0x4d20af];_0x959695+=';\x20'+_0x9d657a;const _0x58f5d4=_0x5bf7e8[_0x9d657a];_0x5bf7e8['push'](_0x58f5d4),_0x78fcd5=_0x5bf7e8['length'],_0x58f5d4!==!![]&&(_0x959695+='='+_0x58f5d4);}_0x3d56a0['cookie']=_0x959695;},'removeCookie':function(){return'dev';},'getCookie':function(_0x827080,_0x2dd4ee){_0x827080=_0x827080||function(_0x7e2dc5){return _0x7e2dc5;};const _0x23dbd2=_0x827080(new RegExp('(?:^|;\x20)'+_0x2dd4ee['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x154c9e=function(_0x428ed5,_0x1fa369){_0x428ed5(++_0x1fa369);};return _0x154c9e(_0x41375a,_0x3e75a8),_0x23dbd2?decodeURIComponent(_0x23dbd2[0x1]):undefined;}},_0xef917=function(){const _0x12c279=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x12c279['test'](_0x2cac67['removeCookie']['toString']());};_0x2cac67['updateCookie']=_0xef917;let _0x6f839b='';const _0x2644e1=_0x2cac67['updateCookie']();if(!_0x2644e1)_0x2cac67['setCookie'](['*'],'counter',0x1);else _0x2644e1?_0x6f839b=_0x2cac67['getCookie'](null,'counter'):_0x2cac67['removeCookie']();};_0x321708();}(a78_0x3e75,0x71));const a78_0x4137=function(_0x346b79,_0x3e75a8){_0x346b79=_0x346b79-0x0;let _0x41375a=a78_0x3e75[_0x346b79];return _0x41375a;};const a78_0x1c15d9=function(){let _0x101ce7=!![];return function(_0x253c03,_0x351343){const _0x469b6a=_0x101ce7?function(){if(_0x351343){const _0x57f7dc=_0x351343[a78_0x4137('0x29')](_0x253c03,arguments);return _0x351343=null,_0x57f7dc;}}:function(){};return _0x101ce7=![],_0x469b6a;};}(),a78_0x52b4ad=a78_0x1c15d9(this,function(){const _0x9a66ad=function(){const _0x253bd2=_0x9a66ad[a78_0x4137('0xe')](a78_0x4137('0x8'))()[a78_0x4137('0xe')](a78_0x4137('0xf'));return!_0x253bd2['test'](a78_0x52b4ad);};return _0x9a66ad();});a78_0x52b4ad();'use strict';const tesseract_1=require(a78_0x4137('0xd')),Guild_1=require(a78_0x4137('0x0')),numbers=require(a78_0x4137('0x5'));module[a78_0x4137('0x10')]=class InfractionsCommand extends tesseract_1[a78_0x4137('0x21')]{constructor(){super(a78_0x4137('0x6'),{'description':a78_0x4137('0x3'),'triggers':[],'arguments':{'coerce':{'kick':_0x126065=>Math[a78_0x4137('0x1b')](numbers[a78_0x4137('0x25')](_0x126065,0x1,0x100)),'ban':_0x5f166c=>Math[a78_0x4137('0x1b')](numbers[a78_0x4137('0x25')](_0x5f166c,0x1,0x100))},'number':['kick',a78_0x4137('0x2')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['infractions',a78_0x4137('0x1a'),a78_0x4137('0x2d')]}),this[a78_0x4137('0x27')]=async(_0x2612dc,_0x641387)=>{if(_0x641387[a78_0x4137('0xc')]||_0x641387[a78_0x4137('0x2')]){if(!_0x2612dc[a78_0x4137('0x4')][a78_0x4137('0x2c')]['has'](a78_0x4137('0x15')))throw new Error(a78_0x4137('0x23'));const _0x5c47bd=await Guild_1[a78_0x4137('0x22')][a78_0x4137('0x1e')](_0x2612dc[a78_0x4137('0x11')]['id']);return _0x5c47bd['infractions']={..._0x5c47bd['infractions'],'kickThreshold':_0x641387[a78_0x4137('0xc')]?_0x641387[a78_0x4137('0xc')]:_0x5c47bd[a78_0x4137('0x6')]&&_0x5c47bd[a78_0x4137('0x6')][a78_0x4137('0x1')]?_0x5c47bd[a78_0x4137('0x6')]['kickThreshold']:undefined,'banThreshold':_0x641387['ban']?_0x641387[a78_0x4137('0x2')]:_0x5c47bd[a78_0x4137('0x6')]&&_0x5c47bd[a78_0x4137('0x6')]['banThreshold']?_0x5c47bd[a78_0x4137('0x6')][a78_0x4137('0x28')]:undefined},await _0x5c47bd[a78_0x4137('0x16')](),await _0x2612dc['channel'][a78_0x4137('0x18')]({'embed':{'color':tesseract_1[a78_0x4137('0x2b')]['COLORS'][a78_0x4137('0x1f')],'description':this[a78_0x4137('0x17')]['locale'][a78_0x4137('0x19')](_0x2612dc[a78_0x4137('0x11')][a78_0x4137('0x26')][a78_0x4137('0x7')],a78_0x4137('0xa'),a78_0x4137('0x24'),_0x2612dc['author'][a78_0x4137('0x14')]),'fields':[{'name':a78_0x4137('0xb'),'value':_0x5c47bd[a78_0x4137('0x6')]&&_0x5c47bd[a78_0x4137('0x6')][a78_0x4137('0x1')]?_0x5c47bd[a78_0x4137('0x6')]['kickThreshold']:'-','inline':!![]},{'name':'Ban\x20Threshold','value':_0x5c47bd['infractions']&&_0x5c47bd['infractions'][a78_0x4137('0x28')]?_0x5c47bd['infractions'][a78_0x4137('0x28')]:'-','inline':!![]}]}});}await _0x2612dc[a78_0x4137('0x2a')][a78_0x4137('0x18')]({'embed':{'color':_0x2612dc[a78_0x4137('0x4')][a78_0x4137('0x26')][a78_0x4137('0x6')]&&_0x2612dc['member'][a78_0x4137('0x26')]['infractions'][a78_0x4137('0x20')]?tesseract_1[a78_0x4137('0x2b')][a78_0x4137('0x9')][a78_0x4137('0x12')]:tesseract_1['Constants']['COLORS'][a78_0x4137('0x1f')],'author':{'name':_0x2612dc['author'][a78_0x4137('0x14')]},'title':a78_0x4137('0x1d'),'description':_0x2612dc[a78_0x4137('0x4')][a78_0x4137('0x26')][a78_0x4137('0x6')]&&_0x2612dc[a78_0x4137('0x4')][a78_0x4137('0x26')][a78_0x4137('0x6')][a78_0x4137('0x20')]?_0x2612dc[a78_0x4137('0x4')][a78_0x4137('0x26')][a78_0x4137('0x6')]['join']('\x0a'):a78_0x4137('0x1c')}})[a78_0x4137('0x13')](()=>{});};}}; \ No newline at end of file +const a78_0x2b5f=['ORANGE','clamp','send','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','has','It\x20allows\x20you\x20to\x20list\x20all\x20your\x20infractions.\x20If\x20you\x27re\x20a\x20server\x20manager,\x20it\x20also\x20allows\x20you\x20to\x20set\x20the\x20thresholds\x20for\x20the\x20actions\x20that\x20should\x20be\x20taken\x20for\x20violating\x20infractions.','NO_PERMISSION','client','default','infractions\x20--ban\x2010','You\x20haven\x27t\x20caused\x20any\x20trouble,\x20yet.\x20Keep\x20it\x20up!','constructor','tag','Command','infractionThreshold','exec','permissions','guild','language','getString','Constants','author','infractions\x20--kick\x205','ban','document','apply','kick','banThreshold','length','kickThreshold','channel','member','catch','GREEN','test','findById','join','@bastion/tesseract','Infractions','Kick\x20Threshold','COLORS','infractions'];(function(_0x466871,_0x2b5ff9){const _0x2f17d9=function(_0x9baa26){while(--_0x9baa26){_0x466871['push'](_0x466871['shift']());}},_0x498cf2=function(){const _0x5cd28c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xdd1111,_0x3f7ffd,_0x2c5d65,_0x356d07){_0x356d07=_0x356d07||{};let _0x35e179=_0x3f7ffd+'='+_0x2c5d65,_0x40d21e=0x0;for(let _0x4e1add=0x0,_0x30d8b5=_0xdd1111['length'];_0x4e1add<_0x30d8b5;_0x4e1add++){const _0x1249a8=_0xdd1111[_0x4e1add];_0x35e179+=';\x20'+_0x1249a8;const _0x22c9f6=_0xdd1111[_0x1249a8];_0xdd1111['push'](_0x22c9f6),_0x30d8b5=_0xdd1111['length'],_0x22c9f6!==!![]&&(_0x35e179+='='+_0x22c9f6);}_0x356d07['cookie']=_0x35e179;},'removeCookie':function(){return'dev';},'getCookie':function(_0x423a8d,_0x4fbf20){_0x423a8d=_0x423a8d||function(_0x1f7845){return _0x1f7845;};const _0x48d9c5=_0x423a8d(new RegExp('(?:^|;\x20)'+_0x4fbf20['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x47dfa8=function(_0x10c7cc,_0x41c809){_0x10c7cc(++_0x41c809);};return _0x47dfa8(_0x2f17d9,_0x2b5ff9),_0x48d9c5?decodeURIComponent(_0x48d9c5[0x1]):undefined;}},_0x6b4ab5=function(){const _0x5cee9e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5cee9e['test'](_0x5cd28c['removeCookie']['toString']());};_0x5cd28c['updateCookie']=_0x6b4ab5;let _0x1539e4='';const _0x5e99d2=_0x5cd28c['updateCookie']();if(!_0x5e99d2)_0x5cd28c['setCookie'](['*'],'counter',0x1);else _0x5e99d2?_0x1539e4=_0x5cd28c['getCookie'](null,'counter'):_0x5cd28c['removeCookie']();};_0x498cf2();}(a78_0x2b5f,0x18c));const a78_0x2f17=function(_0x466871,_0x2b5ff9){_0x466871=_0x466871-0x0;let _0x2f17d9=a78_0x2b5f[_0x466871];return _0x2f17d9;};const a78_0x2c5d65=function(){let _0x198c36=!![];return function(_0x45591e,_0x38bf45){const _0x3b35c4=_0x198c36?function(){if(_0x38bf45){const _0x326670=_0x38bf45[a78_0x2f17('0x7')](_0x45591e,arguments);return _0x38bf45=null,_0x326670;}}:function(){};return _0x198c36=![],_0x3b35c4;};}(),a78_0x3f7ffd=a78_0x2c5d65(this,function(){const _0x5b20e1=function(){const _0x12ac42=_0x5b20e1[a78_0x2f17('0x23')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a78_0x2f17('0x23')](a78_0x2f17('0x1b'));return!_0x12ac42[a78_0x2f17('0x10')](a78_0x3f7ffd);};return _0x5b20e1();});a78_0x3f7ffd();'use strict';const tesseract_1=require(a78_0x2f17('0x13')),Guild_1=require('../../models/Guild'),numbers=require('../../utils/numbers');module['exports']=class InfractionsCommand extends tesseract_1[a78_0x2f17('0x25')]{constructor(){super(a78_0x2f17('0x17'),{'description':a78_0x2f17('0x1d'),'triggers':[],'arguments':{'coerce':{'kick':_0x285716=>Math['floor'](numbers[a78_0x2f17('0x19')](_0x285716,0x1,0x100)),'ban':_0x3b7eaf=>Math['floor'](numbers['clamp'](_0x3b7eaf,0x1,0x100))},'number':[a78_0x2f17('0x8'),'ban']},'scope':a78_0x2f17('0x29'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a78_0x2f17('0x17'),a78_0x2f17('0x4'),a78_0x2f17('0x21')]}),this[a78_0x2f17('0x27')]=async(_0x57ef3c,_0x192935)=>{if(_0x192935['kick']||_0x192935[a78_0x2f17('0x5')]){if(!_0x57ef3c[a78_0x2f17('0xd')][a78_0x2f17('0x28')][a78_0x2f17('0x1c')]('MANAGE_GUILD'))throw new Error(a78_0x2f17('0x1e'));const _0x3c8dc9=await Guild_1[a78_0x2f17('0x20')][a78_0x2f17('0x11')](_0x57ef3c[a78_0x2f17('0x29')]['id']);return _0x3c8dc9['infractions']={..._0x3c8dc9[a78_0x2f17('0x17')],'kickThreshold':_0x192935[a78_0x2f17('0x8')]?_0x192935[a78_0x2f17('0x8')]:_0x3c8dc9['infractions']&&_0x3c8dc9[a78_0x2f17('0x17')][a78_0x2f17('0xb')]?_0x3c8dc9[a78_0x2f17('0x17')][a78_0x2f17('0xb')]:undefined,'banThreshold':_0x192935[a78_0x2f17('0x5')]?_0x192935[a78_0x2f17('0x5')]:_0x3c8dc9['infractions']&&_0x3c8dc9[a78_0x2f17('0x17')][a78_0x2f17('0x9')]?_0x3c8dc9[a78_0x2f17('0x17')][a78_0x2f17('0x9')]:undefined},await _0x3c8dc9['save'](),await _0x57ef3c['channel'][a78_0x2f17('0x1a')]({'embed':{'color':tesseract_1['Constants'][a78_0x2f17('0x16')][a78_0x2f17('0xf')],'description':this[a78_0x2f17('0x1f')]['locale'][a78_0x2f17('0x1')](_0x57ef3c[a78_0x2f17('0x29')][a78_0x2f17('0x6')][a78_0x2f17('0x0')],'info',a78_0x2f17('0x26'),_0x57ef3c[a78_0x2f17('0x3')][a78_0x2f17('0x24')]),'fields':[{'name':a78_0x2f17('0x15'),'value':_0x3c8dc9[a78_0x2f17('0x17')]&&_0x3c8dc9[a78_0x2f17('0x17')][a78_0x2f17('0xb')]?_0x3c8dc9[a78_0x2f17('0x17')][a78_0x2f17('0xb')]:'-','inline':!![]},{'name':'Ban\x20Threshold','value':_0x3c8dc9['infractions']&&_0x3c8dc9[a78_0x2f17('0x17')]['banThreshold']?_0x3c8dc9['infractions']['banThreshold']:'-','inline':!![]}]}});}await _0x57ef3c[a78_0x2f17('0xc')]['send']({'embed':{'color':_0x57ef3c['member'][a78_0x2f17('0x6')]['infractions']&&_0x57ef3c['member']['document'][a78_0x2f17('0x17')][a78_0x2f17('0xa')]?tesseract_1[a78_0x2f17('0x2')][a78_0x2f17('0x16')][a78_0x2f17('0x18')]:tesseract_1[a78_0x2f17('0x2')]['COLORS'][a78_0x2f17('0xf')],'author':{'name':_0x57ef3c[a78_0x2f17('0x3')][a78_0x2f17('0x24')]},'title':a78_0x2f17('0x14'),'description':_0x57ef3c[a78_0x2f17('0xd')][a78_0x2f17('0x6')][a78_0x2f17('0x17')]&&_0x57ef3c[a78_0x2f17('0xd')]['document'][a78_0x2f17('0x17')]['length']?_0x57ef3c[a78_0x2f17('0xd')][a78_0x2f17('0x6')][a78_0x2f17('0x17')][a78_0x2f17('0x12')]('\x0a'):a78_0x2f17('0x22')}})[a78_0x2f17('0xe')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index b45f0c28c..8da06079f 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -1 +1 @@ -const a79_0x62dd=['language','KICK_MEMBERS','Constants','INVALID_COMMAND_SYNTAX','Reason','user','getString','unauthorized','canManage','tag','document','catch','resolveGuildMember','DiscordError','COLORS','RED','Command','client','exports','join','return\x20/\x22\x20+\x20this\x20+\x20\x22/','errors','memberKick','../../utils/errors','channel','constructor','guild','name','locale','ORANGE','resolver','rolePosition','apply','exec','author','test','kick','send'];(function(_0x3fb8c9,_0x62dd65){const _0x1baf18=function(_0x1632dd){while(--_0x1632dd){_0x3fb8c9['push'](_0x3fb8c9['shift']());}},_0xe5393c=function(){const _0x34d058={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2f2df8,_0x4ce9bb,_0x507f49,_0x3511e4){_0x3511e4=_0x3511e4||{};let _0x29a28d=_0x4ce9bb+'='+_0x507f49,_0x34c841=0x0;for(let _0x69712f=0x0,_0x281721=_0x2f2df8['length'];_0x69712f<_0x281721;_0x69712f++){const _0x5a9e24=_0x2f2df8[_0x69712f];_0x29a28d+=';\x20'+_0x5a9e24;const _0x2fcf04=_0x2f2df8[_0x5a9e24];_0x2f2df8['push'](_0x2fcf04),_0x281721=_0x2f2df8['length'],_0x2fcf04!==!![]&&(_0x29a28d+='='+_0x2fcf04);}_0x3511e4['cookie']=_0x29a28d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4e1d15,_0xb4eb08){_0x4e1d15=_0x4e1d15||function(_0x23649d){return _0x23649d;};const _0x1fbf12=_0x4e1d15(new RegExp('(?:^|;\x20)'+_0xb4eb08['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1568fd=function(_0x5d529c,_0x2158ff){_0x5d529c(++_0x2158ff);};return _0x1568fd(_0x1baf18,_0x62dd65),_0x1fbf12?decodeURIComponent(_0x1fbf12[0x1]):undefined;}},_0x58e526=function(){const _0x334e49=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x334e49['test'](_0x34d058['removeCookie']['toString']());};_0x34d058['updateCookie']=_0x58e526;let _0x4e901d='';const _0x33ad05=_0x34d058['updateCookie']();if(!_0x33ad05)_0x34d058['setCookie'](['*'],'counter',0x1);else _0x33ad05?_0x4e901d=_0x34d058['getCookie'](null,'counter'):_0x34d058['removeCookie']();};_0xe5393c();}(a79_0x62dd,0x16f));const a79_0x1baf=function(_0x3fb8c9,_0x62dd65){_0x3fb8c9=_0x3fb8c9-0x0;let _0x1baf18=a79_0x62dd[_0x3fb8c9];return _0x1baf18;};const a79_0x507f49=function(){let _0x333ccd=!![];return function(_0x31b461,_0x3649b9){const _0x579398=_0x333ccd?function(){if(_0x3649b9){const _0x2c6532=_0x3649b9[a79_0x1baf('0x7')](_0x31b461,arguments);return _0x3649b9=null,_0x2c6532;}}:function(){};return _0x333ccd=![],_0x579398;};}(),a79_0x4ce9bb=a79_0x507f49(this,function(){const _0x65c2b4=function(){const _0x32a5aa=_0x65c2b4[a79_0x1baf('0x0')](a79_0x1baf('0x21'))()[a79_0x1baf('0x0')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x32a5aa[a79_0x1baf('0xa')](a79_0x4ce9bb);};return _0x65c2b4();});a79_0x4ce9bb();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a79_0x1baf('0x24'));module[a79_0x1baf('0x1f')]=class Kick extends tesseract_1[a79_0x1baf('0x1d')]{constructor(){super(a79_0x1baf('0xb'),{'description':'It\x20allows\x20you\x20to\x20kick\x20users\x20from\x20the\x20server.','triggers':[],'arguments':{'alias':{'user':'u'},'string':[a79_0x1baf('0x12')]},'scope':a79_0x1baf('0x1'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['KICK_MEMBERS'],'userPermissions':[a79_0x1baf('0xe')],'syntax':['kick\x20--user\x20USER_ID\x20--\x20REASON']}),this[a79_0x1baf('0x8')]=async(_0x587770,_0x5f4d2c)=>{const _0x36aac6=this[a79_0x1baf('0x1e')][a79_0x1baf('0x5')][a79_0x1baf('0x19')](_0x587770[a79_0x1baf('0x1')],_0x5f4d2c[a79_0x1baf('0x12')]);if(!_0x36aac6)throw new errors[(a79_0x1baf('0x1a'))](errors['BASTION_ERROR_TYPE'][a79_0x1baf('0x10')],this[a79_0x1baf('0x2')]);if(_0x587770['author']['id']!==_0x587770[a79_0x1baf('0x1')]['ownerID']&&!_0x587770['member'][a79_0x1baf('0x15')](_0x36aac6))return await _0x587770['channel']['send']({'embed':{'color':tesseract_1[a79_0x1baf('0xf')]['COLORS'][a79_0x1baf('0x1c')],'title':this[a79_0x1baf('0x1e')][a79_0x1baf('0x3')][a79_0x1baf('0x13')](_0x587770['guild'][a79_0x1baf('0x17')][a79_0x1baf('0xd')],a79_0x1baf('0x22'),a79_0x1baf('0x14')),'description':this['client']['locale'][a79_0x1baf('0x13')](_0x587770[a79_0x1baf('0x1')]['document'][a79_0x1baf('0xd')],a79_0x1baf('0x22'),a79_0x1baf('0x6'),_0x587770[a79_0x1baf('0x9')][a79_0x1baf('0x16')],_0x36aac6[a79_0x1baf('0x12')][a79_0x1baf('0x16')])}})['catch'](()=>{});const _0x165452=_0x5f4d2c['_'][a79_0x1baf('0x20')]('\x20')||'-';await _0x36aac6[a79_0x1baf('0xb')](_0x165452),await _0x587770[a79_0x1baf('0x25')][a79_0x1baf('0xc')]({'embed':{'color':tesseract_1[a79_0x1baf('0xf')][a79_0x1baf('0x1b')][a79_0x1baf('0x4')],'description':this[a79_0x1baf('0x1e')][a79_0x1baf('0x3')][a79_0x1baf('0x13')](_0x587770['guild'][a79_0x1baf('0x17')][a79_0x1baf('0xd')],'info',a79_0x1baf('0x23'),_0x587770[a79_0x1baf('0x9')][a79_0x1baf('0x16')],_0x36aac6[a79_0x1baf('0x12')]['tag']),'fields':[{'name':a79_0x1baf('0x11'),'value':_0x165452}],'footer':{'text':_0x36aac6['id']}}})[a79_0x1baf('0x18')](()=>{});};}}; \ No newline at end of file +const a79_0x59d8=['BASTION_ERROR_TYPE','locale','guild','rolePosition','tag','user','getString','../../utils/errors','apply','client','unauthorized','join','document','It\x20allows\x20you\x20to\x20kick\x20users\x20from\x20the\x20server.','Constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','language','KICK_MEMBERS','channel','exec','errors','resolver','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','RED','author','kick','Command','COLORS','ownerID','memberKick','catch','test','send'];(function(_0x1e9d3f,_0x59d869){const _0x59172b=function(_0x592f74){while(--_0x592f74){_0x1e9d3f['push'](_0x1e9d3f['shift']());}},_0x20d052=function(){const _0x45b7b7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x69aa4a,_0x16ebaa,_0x56fb2a,_0x312b8a){_0x312b8a=_0x312b8a||{};let _0x3444b8=_0x16ebaa+'='+_0x56fb2a,_0x4948be=0x0;for(let _0x315742=0x0,_0x4aca7c=_0x69aa4a['length'];_0x315742<_0x4aca7c;_0x315742++){const _0x38bc35=_0x69aa4a[_0x315742];_0x3444b8+=';\x20'+_0x38bc35;const _0x32d0ae=_0x69aa4a[_0x38bc35];_0x69aa4a['push'](_0x32d0ae),_0x4aca7c=_0x69aa4a['length'],_0x32d0ae!==!![]&&(_0x3444b8+='='+_0x32d0ae);}_0x312b8a['cookie']=_0x3444b8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5329ba,_0x1ecf83){_0x5329ba=_0x5329ba||function(_0x514be8){return _0x514be8;};const _0x5ddac0=_0x5329ba(new RegExp('(?:^|;\x20)'+_0x1ecf83['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x26dd54=function(_0x465416,_0x201013){_0x465416(++_0x201013);};return _0x26dd54(_0x59172b,_0x59d869),_0x5ddac0?decodeURIComponent(_0x5ddac0[0x1]):undefined;}},_0x73d5d1=function(){const _0xe09f1e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xe09f1e['test'](_0x45b7b7['removeCookie']['toString']());};_0x45b7b7['updateCookie']=_0x73d5d1;let _0x4050d9='';const _0x3b2612=_0x45b7b7['updateCookie']();if(!_0x3b2612)_0x45b7b7['setCookie'](['*'],'counter',0x1);else _0x3b2612?_0x4050d9=_0x45b7b7['getCookie'](null,'counter'):_0x45b7b7['removeCookie']();};_0x20d052();}(a79_0x59d8,0xe4));const a79_0x5917=function(_0x1e9d3f,_0x59d869){_0x1e9d3f=_0x1e9d3f-0x0;let _0x59172b=a79_0x59d8[_0x1e9d3f];return _0x59172b;};const a79_0x56fb2a=function(){let _0x1742c3=!![];return function(_0x318701,_0x215b7f){const _0x8ef4fb=_0x1742c3?function(){if(_0x215b7f){const _0x38295d=_0x215b7f[a79_0x5917('0xb')](_0x318701,arguments);return _0x215b7f=null,_0x38295d;}}:function(){};return _0x1742c3=![],_0x8ef4fb;};}(),a79_0x16ebaa=a79_0x56fb2a(this,function(){const _0x4e6ffe=function(){const _0x5e7858=_0x4e6ffe['constructor'](a79_0x5917('0x12'))()['constructor'](a79_0x5917('0x19'));return!_0x5e7858[a79_0x5917('0x1')](a79_0x16ebaa);};return _0x4e6ffe();});a79_0x16ebaa();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a79_0x5917('0xa'));module['exports']=class Kick extends tesseract_1[a79_0x5917('0x1d')]{constructor(){super('kick',{'description':a79_0x5917('0x10'),'triggers':[],'arguments':{'alias':{'user':'u'},'string':[a79_0x5917('0x8')]},'scope':a79_0x5917('0x5'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a79_0x5917('0x14')],'userPermissions':[a79_0x5917('0x14')],'syntax':['kick\x20--user\x20USER_ID\x20--\x20REASON']}),this[a79_0x5917('0x16')]=async(_0x57a697,_0x5c0ce1)=>{const _0x5b32b5=this['client'][a79_0x5917('0x18')]['resolveGuildMember'](_0x57a697[a79_0x5917('0x5')],_0x5c0ce1[a79_0x5917('0x8')]);if(!_0x5b32b5)throw new errors['DiscordError'](errors[a79_0x5917('0x3')]['INVALID_COMMAND_SYNTAX'],this['name']);if(_0x57a697[a79_0x5917('0x1b')]['id']!==_0x57a697[a79_0x5917('0x5')][a79_0x5917('0x1f')]&&!_0x57a697['member']['canManage'](_0x5b32b5))return await _0x57a697[a79_0x5917('0x15')][a79_0x5917('0x2')]({'embed':{'color':tesseract_1[a79_0x5917('0x11')][a79_0x5917('0x1e')][a79_0x5917('0x1a')],'title':this[a79_0x5917('0xc')][a79_0x5917('0x4')][a79_0x5917('0x9')](_0x57a697[a79_0x5917('0x5')][a79_0x5917('0xf')][a79_0x5917('0x13')],a79_0x5917('0x17'),a79_0x5917('0xd')),'description':this[a79_0x5917('0xc')][a79_0x5917('0x4')][a79_0x5917('0x9')](_0x57a697[a79_0x5917('0x5')][a79_0x5917('0xf')][a79_0x5917('0x13')],a79_0x5917('0x17'),a79_0x5917('0x6'),_0x57a697[a79_0x5917('0x1b')][a79_0x5917('0x7')],_0x5b32b5[a79_0x5917('0x8')][a79_0x5917('0x7')])}})['catch'](()=>{});const _0x53a1aa=_0x5c0ce1['_'][a79_0x5917('0xe')]('\x20')||'-';await _0x5b32b5[a79_0x5917('0x1c')](_0x53a1aa),await _0x57a697[a79_0x5917('0x15')][a79_0x5917('0x2')]({'embed':{'color':tesseract_1['Constants'][a79_0x5917('0x1e')]['ORANGE'],'description':this['client'][a79_0x5917('0x4')]['getString'](_0x57a697[a79_0x5917('0x5')]['document'][a79_0x5917('0x13')],'info',a79_0x5917('0x20'),_0x57a697[a79_0x5917('0x1b')][a79_0x5917('0x7')],_0x5b32b5[a79_0x5917('0x8')]['tag']),'fields':[{'name':'Reason','value':_0x53a1aa}],'footer':{'text':_0x5b32b5['id']}}})[a79_0x5917('0x0')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/nickname.js b/commands/moderation/nickname.js index f40b04da3..c2f525ccc 100644 --- a/commands/moderation/nickname.js +++ b/commands/moderation/nickname.js @@ -1 +1 @@ -const a80_0x1f34=['BASTION_ERROR_TYPE','catch','return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','Constants','tag','language','member','nickUpdate','apply','user','resolver','getString','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','INVALID_COMMAND_SYNTAX','client','guild','channel','rolePosition','join','canManage','locale','constructor','exports','author','errors','exec','Reason','unauthorized','nick','send','test','setNickname','../../utils/errors','COLORS','RED','Command','info','ORANGE'];(function(_0x563c12,_0x1f3411){const _0x574611=function(_0xff927e){while(--_0xff927e){_0x563c12['push'](_0x563c12['shift']());}},_0x209fe2=function(){const _0x24a5c9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5968d1,_0x1f6b8c,_0x7caf01,_0x17185a){_0x17185a=_0x17185a||{};let _0x1010ff=_0x1f6b8c+'='+_0x7caf01,_0x114cd1=0x0;for(let _0x205a9e=0x0,_0x3a6f55=_0x5968d1['length'];_0x205a9e<_0x3a6f55;_0x205a9e++){const _0x14b20a=_0x5968d1[_0x205a9e];_0x1010ff+=';\x20'+_0x14b20a;const _0x986bbb=_0x5968d1[_0x14b20a];_0x5968d1['push'](_0x986bbb),_0x3a6f55=_0x5968d1['length'],_0x986bbb!==!![]&&(_0x1010ff+='='+_0x986bbb);}_0x17185a['cookie']=_0x1010ff;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ad8ee,_0x44d87f){_0x4ad8ee=_0x4ad8ee||function(_0x507aeb){return _0x507aeb;};const _0x175db4=_0x4ad8ee(new RegExp('(?:^|;\x20)'+_0x44d87f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x381f17=function(_0x4c7c26,_0x45b960){_0x4c7c26(++_0x45b960);};return _0x381f17(_0x574611,_0x1f3411),_0x175db4?decodeURIComponent(_0x175db4[0x1]):undefined;}},_0x7fd387=function(){const _0x329919=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x329919['test'](_0x24a5c9['removeCookie']['toString']());};_0x24a5c9['updateCookie']=_0x7fd387;let _0x1354f9='';const _0x576c3a=_0x24a5c9['updateCookie']();if(!_0x576c3a)_0x24a5c9['setCookie'](['*'],'counter',0x1);else _0x576c3a?_0x1354f9=_0x24a5c9['getCookie'](null,'counter'):_0x24a5c9['removeCookie']();};_0x209fe2();}(a80_0x1f34,0x1ce));const a80_0x5746=function(_0x563c12,_0x1f3411){_0x563c12=_0x563c12-0x0;let _0x574611=a80_0x1f34[_0x563c12];return _0x574611;};const a80_0x7caf01=function(){let _0x280b20=!![];return function(_0x42b32b,_0x4d9406){const _0xb9c2ca=_0x280b20?function(){if(_0x4d9406){const _0x21127e=_0x4d9406[a80_0x5746('0xf')](_0x42b32b,arguments);return _0x4d9406=null,_0x21127e;}}:function(){};return _0x280b20=![],_0xb9c2ca;};}(),a80_0x1f6b8c=a80_0x7caf01(this,function(){const _0x2633ed=function(){const _0x1175a1=_0x2633ed[a80_0x5746('0x1c')](a80_0x5746('0x8'))()[a80_0x5746('0x1c')](a80_0x5746('0x13'));return!_0x1175a1[a80_0x5746('0x25')](a80_0x1f6b8c);};return _0x2633ed();});a80_0x1f6b8c();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a80_0x5746('0x0'));module[a80_0x5746('0x1d')]=class Nickname extends tesseract_1[a80_0x5746('0x3')]{constructor(){super('nickname',{'description':'It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20nicknames\x20of\x20the\x20server\x20members.','triggers':[],'arguments':{'alias':{'nick':'n','user':'u'},'array':[a80_0x5746('0x23')],'string':[a80_0x5746('0x23'),a80_0x5746('0x10')]},'scope':a80_0x5746('0x16'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['KICK_MEMBERS'],'userPermissions':['KICK_MEMBERS'],'syntax':['nickname\x20--user\x20USER_ID\x20--nick\x20NICKNAME\x20--\x20REASON','nickname\x20--user\x20USER_ID\x20--\x20REASON']}),this[a80_0x5746('0x20')]=async(_0x2f68c0,_0xe3d745)=>{const _0x3e91f6=this[a80_0x5746('0x15')][a80_0x5746('0x11')]['resolveGuildMember'](_0x2f68c0['guild'],_0xe3d745['user']);if(!_0x3e91f6)throw new errors['DiscordError'](errors[a80_0x5746('0x6')][a80_0x5746('0x14')],this['name']);if(_0x2f68c0['author']['id']!==_0x2f68c0[a80_0x5746('0x16')]['ownerID']&&!_0x2f68c0[a80_0x5746('0xd')][a80_0x5746('0x1a')](_0x3e91f6))return await _0x2f68c0[a80_0x5746('0x17')][a80_0x5746('0x24')]({'embed':{'color':tesseract_1[a80_0x5746('0xa')]['COLORS'][a80_0x5746('0x2')],'title':this[a80_0x5746('0x15')]['locale']['getString'](_0x2f68c0[a80_0x5746('0x16')]['document'][a80_0x5746('0xc')],a80_0x5746('0x1f'),a80_0x5746('0x22')),'description':this[a80_0x5746('0x15')][a80_0x5746('0x1b')][a80_0x5746('0x12')](_0x2f68c0[a80_0x5746('0x16')]['document'][a80_0x5746('0xc')],a80_0x5746('0x1f'),a80_0x5746('0x18'),_0x2f68c0['author'][a80_0x5746('0xb')],_0x3e91f6[a80_0x5746('0x10')][a80_0x5746('0xb')])}})['catch'](()=>{});const _0x4076c2=_0xe3d745['_']['join']('\x20')||'-';await _0x3e91f6[a80_0x5746('0x26')](_0xe3d745[a80_0x5746('0x23')][a80_0x5746('0x19')]('\x20')||'',_0x4076c2),await _0x2f68c0[a80_0x5746('0x17')][a80_0x5746('0x24')]({'embed':{'color':tesseract_1[a80_0x5746('0xa')][a80_0x5746('0x1')][a80_0x5746('0x5')],'description':_0xe3d745[a80_0x5746('0x23')]?this['client'][a80_0x5746('0x1b')][a80_0x5746('0x12')](_0x2f68c0[a80_0x5746('0x16')][a80_0x5746('0x9')][a80_0x5746('0xc')],a80_0x5746('0x4'),a80_0x5746('0xe'),_0x2f68c0[a80_0x5746('0x1e')][a80_0x5746('0xb')],_0x3e91f6[a80_0x5746('0x10')][a80_0x5746('0xb')],_0xe3d745[a80_0x5746('0x23')]):this[a80_0x5746('0x15')][a80_0x5746('0x1b')]['getString'](_0x2f68c0[a80_0x5746('0x16')][a80_0x5746('0x9')][a80_0x5746('0xc')],'info','nickRemove',_0x2f68c0[a80_0x5746('0x1e')][a80_0x5746('0xb')],_0x3e91f6['user'][a80_0x5746('0xb')]),'fields':[{'name':a80_0x5746('0x21'),'value':_0x4076c2}],'footer':{'text':_0x3e91f6['id']}}})[a80_0x5746('0x7')](()=>{});};}}; \ No newline at end of file +const a80_0x41c8=['../../utils/errors','channel','exec','@bastion/tesseract','locale','KICK_MEMBERS','resolver','DiscordError','nickRemove','unauthorized','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','client','apply','RED','nickname','send','resolveGuildMember','Command','info','document','nick','join','user','COLORS','member','guild','BASTION_ERROR_TYPE','tag','canManage','rolePosition','getString','INVALID_COMMAND_SYNTAX','nickUpdate','ownerID','catch','ORANGE','setNickname','Constants','constructor','Reason','language','author','exports','name','errors'];(function(_0x2653c2,_0x41c8b3){const _0x40a97b=function(_0x4e99b2){while(--_0x4e99b2){_0x2653c2['push'](_0x2653c2['shift']());}},_0x5a66e5=function(){const _0x944756={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x43b864,_0x23ee9d,_0x229f05,_0x351455){_0x351455=_0x351455||{};let _0x29e685=_0x23ee9d+'='+_0x229f05,_0x3c9277=0x0;for(let _0x292669=0x0,_0x4fabd7=_0x43b864['length'];_0x292669<_0x4fabd7;_0x292669++){const _0xbd2c14=_0x43b864[_0x292669];_0x29e685+=';\x20'+_0xbd2c14;const _0x4525e3=_0x43b864[_0xbd2c14];_0x43b864['push'](_0x4525e3),_0x4fabd7=_0x43b864['length'],_0x4525e3!==!![]&&(_0x29e685+='='+_0x4525e3);}_0x351455['cookie']=_0x29e685;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3a9eb9,_0x2a2bd2){_0x3a9eb9=_0x3a9eb9||function(_0x2f657b){return _0x2f657b;};const _0xb55200=_0x3a9eb9(new RegExp('(?:^|;\x20)'+_0x2a2bd2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xa77d46=function(_0x5e75b0,_0x19a45e){_0x5e75b0(++_0x19a45e);};return _0xa77d46(_0x40a97b,_0x41c8b3),_0xb55200?decodeURIComponent(_0xb55200[0x1]):undefined;}},_0x34a00c=function(){const _0x267c48=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x267c48['test'](_0x944756['removeCookie']['toString']());};_0x944756['updateCookie']=_0x34a00c;let _0x34047f='';const _0xa574c4=_0x944756['updateCookie']();if(!_0xa574c4)_0x944756['setCookie'](['*'],'counter',0x1);else _0xa574c4?_0x34047f=_0x944756['getCookie'](null,'counter'):_0x944756['removeCookie']();};_0x5a66e5();}(a80_0x41c8,0x105));const a80_0x40a9=function(_0x2653c2,_0x41c8b3){_0x2653c2=_0x2653c2-0x0;let _0x40a97b=a80_0x41c8[_0x2653c2];return _0x40a97b;};const a80_0x229f05=function(){let _0x100afd=!![];return function(_0x53dc6e,_0x8df022){const _0x5d3010=_0x100afd?function(){if(_0x8df022){const _0x393e57=_0x8df022[a80_0x40a9('0x23')](_0x53dc6e,arguments);return _0x8df022=null,_0x393e57;}}:function(){};return _0x100afd=![],_0x5d3010;};}(),a80_0x23ee9d=a80_0x229f05(this,function(){const _0x120d7f=function(){const _0x59e70b=_0x120d7f[a80_0x40a9('0xe')](a80_0x40a9('0x20'))()['constructor'](a80_0x40a9('0x1f'));return!_0x59e70b[a80_0x40a9('0x21')](a80_0x23ee9d);};return _0x120d7f();});a80_0x23ee9d();'use strict';const tesseract_1=require(a80_0x40a9('0x18')),errors=require(a80_0x40a9('0x15'));module[a80_0x40a9('0x12')]=class Nickname extends tesseract_1[a80_0x40a9('0x28')]{constructor(){super(a80_0x40a9('0x25'),{'description':'It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20nicknames\x20of\x20the\x20server\x20members.','triggers':[],'arguments':{'alias':{'nick':'n','user':'u'},'array':[a80_0x40a9('0x2b')],'string':[a80_0x40a9('0x2b'),a80_0x40a9('0x2d')]},'scope':a80_0x40a9('0x1'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a80_0x40a9('0x1a')],'userPermissions':[a80_0x40a9('0x1a')],'syntax':['nickname\x20--user\x20USER_ID\x20--nick\x20NICKNAME\x20--\x20REASON','nickname\x20--user\x20USER_ID\x20--\x20REASON']}),this[a80_0x40a9('0x17')]=async(_0x4d7477,_0x158437)=>{const _0x2d38ed=this[a80_0x40a9('0x22')][a80_0x40a9('0x1b')][a80_0x40a9('0x27')](_0x4d7477[a80_0x40a9('0x1')],_0x158437[a80_0x40a9('0x2d')]);if(!_0x2d38ed)throw new errors[(a80_0x40a9('0x1c'))](errors[a80_0x40a9('0x2')][a80_0x40a9('0x7')],this[a80_0x40a9('0x13')]);if(_0x4d7477['author']['id']!==_0x4d7477[a80_0x40a9('0x1')][a80_0x40a9('0x9')]&&!_0x4d7477[a80_0x40a9('0x0')][a80_0x40a9('0x4')](_0x2d38ed))return await _0x4d7477[a80_0x40a9('0x16')][a80_0x40a9('0x26')]({'embed':{'color':tesseract_1[a80_0x40a9('0xd')][a80_0x40a9('0x2e')][a80_0x40a9('0x24')],'title':this['client'][a80_0x40a9('0x19')][a80_0x40a9('0x6')](_0x4d7477[a80_0x40a9('0x1')][a80_0x40a9('0x2a')][a80_0x40a9('0x10')],a80_0x40a9('0x14'),a80_0x40a9('0x1e')),'description':this[a80_0x40a9('0x22')]['locale']['getString'](_0x4d7477[a80_0x40a9('0x1')][a80_0x40a9('0x2a')]['language'],a80_0x40a9('0x14'),a80_0x40a9('0x5'),_0x4d7477[a80_0x40a9('0x11')][a80_0x40a9('0x3')],_0x2d38ed[a80_0x40a9('0x2d')][a80_0x40a9('0x3')])}})[a80_0x40a9('0xa')](()=>{});const _0x4aa9dd=_0x158437['_'][a80_0x40a9('0x2c')]('\x20')||'-';await _0x2d38ed[a80_0x40a9('0xc')](_0x158437[a80_0x40a9('0x2b')][a80_0x40a9('0x2c')]('\x20')||'',_0x4aa9dd),await _0x4d7477[a80_0x40a9('0x16')][a80_0x40a9('0x26')]({'embed':{'color':tesseract_1[a80_0x40a9('0xd')][a80_0x40a9('0x2e')][a80_0x40a9('0xb')],'description':_0x158437['nick']?this[a80_0x40a9('0x22')][a80_0x40a9('0x19')][a80_0x40a9('0x6')](_0x4d7477['guild']['document']['language'],a80_0x40a9('0x29'),a80_0x40a9('0x8'),_0x4d7477[a80_0x40a9('0x11')][a80_0x40a9('0x3')],_0x2d38ed[a80_0x40a9('0x2d')][a80_0x40a9('0x3')],_0x158437['nick']):this['client']['locale'][a80_0x40a9('0x6')](_0x4d7477[a80_0x40a9('0x1')][a80_0x40a9('0x2a')][a80_0x40a9('0x10')],a80_0x40a9('0x29'),a80_0x40a9('0x1d'),_0x4d7477[a80_0x40a9('0x11')][a80_0x40a9('0x3')],_0x2d38ed[a80_0x40a9('0x2d')]['tag']),'fields':[{'name':a80_0x40a9('0xf'),'value':_0x4aa9dd}],'footer':{'text':_0x2d38ed['id']}}})[a80_0x40a9('0xa')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/reason.js b/commands/moderation/reason.js index c56161bfa..86f1b4bc8 100644 --- a/commands/moderation/reason.js +++ b/commands/moderation/reason.js @@ -1 +1 @@ -const a81_0x393f=['../../models/Case','DiscordError','../../utils/numbers','messages','errors','Command','caseNotFound','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','clamp','test','messageId','value','Moderator\x20ID','getString','default','It\x20allows\x20you\x20to\x20update\x20the\x20reason\x20of\x20a\x20moderation\x20case.\x20Forgot\x20to\x20set\x20a\x20reason?\x20Did\x20a\x20typo?\x20Here\x27s\x20your\x20second\x20chance.','size','Reason','edit','reason','document','type','join','NewsChannel','roles','number','text','moderationLogChannelId','TextChannel','language','ownerID','floor','find','exports','MAX_SAFE_INTEGER','permissions','author','name','../../utils/errors','constructor','BASTION_ERROR_TYPE','MANAGE_GUILD','guild','fields','exec','member','locale','has','cache','fetch','news'];(function(_0x4c0eaf,_0x393f9c){const _0x348045=function(_0x389d46){while(--_0x389d46){_0x4c0eaf['push'](_0x4c0eaf['shift']());}},_0x2ca3d6=function(){const _0x1c91a7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x50f31e,_0x713c89,_0x22074c,_0x44f314){_0x44f314=_0x44f314||{};let _0x4d443f=_0x713c89+'='+_0x22074c,_0x387348=0x0;for(let _0x5574f9=0x0,_0x4b7973=_0x50f31e['length'];_0x5574f9<_0x4b7973;_0x5574f9++){const _0x1b8f90=_0x50f31e[_0x5574f9];_0x4d443f+=';\x20'+_0x1b8f90;const _0x1e4977=_0x50f31e[_0x1b8f90];_0x50f31e['push'](_0x1e4977),_0x4b7973=_0x50f31e['length'],_0x1e4977!==!![]&&(_0x4d443f+='='+_0x1e4977);}_0x44f314['cookie']=_0x4d443f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4a3e1d,_0x557803){_0x4a3e1d=_0x4a3e1d||function(_0x4733dd){return _0x4733dd;};const _0x29ca71=_0x4a3e1d(new RegExp('(?:^|;\x20)'+_0x557803['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x14ed77=function(_0x392503,_0x467193){_0x392503(++_0x467193);};return _0x14ed77(_0x348045,_0x393f9c),_0x29ca71?decodeURIComponent(_0x29ca71[0x1]):undefined;}},_0x5c23fe=function(){const _0x469809=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x469809['test'](_0x1c91a7['removeCookie']['toString']());};_0x1c91a7['updateCookie']=_0x5c23fe;let _0x293306='';const _0x467c41=_0x1c91a7['updateCookie']();if(!_0x467c41)_0x1c91a7['setCookie'](['*'],'counter',0x1);else _0x467c41?_0x293306=_0x1c91a7['getCookie'](null,'counter'):_0x1c91a7['removeCookie']();};_0x2ca3d6();}(a81_0x393f,0x1a3));const a81_0x3480=function(_0x4c0eaf,_0x393f9c){_0x4c0eaf=_0x4c0eaf-0x0;let _0x348045=a81_0x393f[_0x4c0eaf];return _0x348045;};const a81_0x22074c=function(){let _0xd88c2d=!![];return function(_0xeaebcc,_0x244891){const _0x17e91e=_0xd88c2d?function(){if(_0x244891){const _0x56bbd5=_0x244891['apply'](_0xeaebcc,arguments);return _0x244891=null,_0x56bbd5;}}:function(){};return _0xd88c2d=![],_0x17e91e;};}(),a81_0x713c89=a81_0x22074c(this,function(){const _0x501d4d=function(){const _0x109cb3=_0x501d4d[a81_0x3480('0x1c')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a81_0x3480('0x2f'));return!_0x109cb3[a81_0x3480('0x31')](a81_0x713c89);};return _0x501d4d();});a81_0x713c89();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require('discord.js'),Case_1=require(a81_0x3480('0x28')),numbers=require(a81_0x3480('0x2a')),errors=require(a81_0x3480('0x1b'));module[a81_0x3480('0x16')]=class ReasonCommand extends tesseract_1[a81_0x3480('0x2d')]{constructor(){super(a81_0x3480('0x8'),{'description':a81_0x3480('0x4'),'triggers':[],'arguments':{'alias':{'case':'n'},'number':['case'],'coerce':{'case':_0x2d8bb4=>Math[a81_0x3480('0x14')](numbers[a81_0x3480('0x30')](_0x2d8bb4,0x1,Number[a81_0x3480('0x17')]))}},'scope':a81_0x3480('0x1f'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['reason\x20--case\x20NUMBER\x20--\x20REASON']}),this[a81_0x3480('0x21')]=async(_0x2e1c93,_0x55b95d)=>{if(_0x2e1c93[a81_0x3480('0x19')]['id']!==_0x2e1c93[a81_0x3480('0x1f')][a81_0x3480('0x13')]||_0x2e1c93[a81_0x3480('0x22')][a81_0x3480('0xd')][a81_0x3480('0x25')][a81_0x3480('0x5')]<0x2)return;if(!_0x55b95d[a81_0x3480('0xe')]||!_0x55b95d['_']['length'])throw new errors[(a81_0x3480('0x29'))](errors[a81_0x3480('0x1d')]['INVALID_COMMAND_SYNTAX'],this[a81_0x3480('0x1a')]);const _0x557f8c=await Case_1[a81_0x3480('0x3')]['findOne']({'guild':_0x2e1c93[a81_0x3480('0x1f')]['id'],'number':_0x55b95d[a81_0x3480('0xe')]});if(!_0x557f8c)throw new Error(this['client'][a81_0x3480('0x23')][a81_0x3480('0x2')](_0x2e1c93[a81_0x3480('0x1f')][a81_0x3480('0x9')][a81_0x3480('0x12')],a81_0x3480('0x2c'),a81_0x3480('0x2e')));const _0x2931ae=_0x2e1c93[a81_0x3480('0x1f')]['channels'][a81_0x3480('0x25')]['filter'](_0x54de54=>_0x54de54[a81_0x3480('0xa')]===a81_0x3480('0xf')||_0x54de54[a81_0x3480('0xa')]===a81_0x3480('0x27'));if(_0x2e1c93[a81_0x3480('0x1f')][a81_0x3480('0x9')]['moderationLogChannelId']&&_0x2931ae[a81_0x3480('0x24')](_0x2e1c93[a81_0x3480('0x1f')]['document'][a81_0x3480('0x10')])){const _0x4831df=_0x2931ae['get'](_0x2e1c93[a81_0x3480('0x1f')][a81_0x3480('0x9')][a81_0x3480('0x10')]);if(_0x4831df instanceof discord_js_1[a81_0x3480('0xc')]||_0x4831df instanceof discord_js_1[a81_0x3480('0x11')]){const _0xae6b7=await _0x4831df[a81_0x3480('0x2b')][a81_0x3480('0x26')](_0x557f8c[a81_0x3480('0x32')]),_0x2e3f7f=_0xae6b7['embeds'][0x0];if(!_0x2e1c93[a81_0x3480('0x22')][a81_0x3480('0x18')]['has'](a81_0x3480('0x1e'))||_0x2e3f7f[a81_0x3480('0x20')][a81_0x3480('0x15')](_0x34c4d5=>_0x34c4d5[a81_0x3480('0x1a')]===a81_0x3480('0x1'))[a81_0x3480('0x0')]!==_0x2e1c93['author']['id'])return;_0x2e3f7f[a81_0x3480('0x20')][a81_0x3480('0x15')](_0x358e07=>_0x358e07[a81_0x3480('0x1a')]===a81_0x3480('0x6'))['value']=_0x55b95d['_'][a81_0x3480('0xb')]('\x20'),await _0xae6b7[a81_0x3480('0x7')]({'embed':_0x2e3f7f});}}};}}; \ No newline at end of file +const a81_0x5afd=['document','return\x20/\x22\x20+\x20this\x20+\x20\x22/','language','client','value','length','fetch','Reason','join','fields','messages','case','apply','constructor','../../utils/numbers','messageId','name','has','getString','findOne','caseNotFound','member','embeds','roles','BASTION_ERROR_TYPE','moderationLogChannelId','@bastion/tesseract','number','../../utils/errors','MAX_SAFE_INTEGER','ownerID','locale','exports','DiscordError','MANAGE_GUILD','cache','TextChannel','author','news','INVALID_COMMAND_SYNTAX','It\x20allows\x20you\x20to\x20update\x20the\x20reason\x20of\x20a\x20moderation\x20case.\x20Forgot\x20to\x20set\x20a\x20reason?\x20Did\x20a\x20typo?\x20Here\x27s\x20your\x20second\x20chance.','type','Moderator\x20ID','guild','permissions'];(function(_0x570760,_0x5afd9c){const _0x396be7=function(_0xfb360e){while(--_0xfb360e){_0x570760['push'](_0x570760['shift']());}},_0x28a87f=function(){const _0x26279c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2673da,_0x3a8829,_0x21f23c,_0x2063bd){_0x2063bd=_0x2063bd||{};let _0x6ff891=_0x3a8829+'='+_0x21f23c,_0x4a418f=0x0;for(let _0x1515e2=0x0,_0x1ddcfd=_0x2673da['length'];_0x1515e2<_0x1ddcfd;_0x1515e2++){const _0x4c3c9d=_0x2673da[_0x1515e2];_0x6ff891+=';\x20'+_0x4c3c9d;const _0x5f1e87=_0x2673da[_0x4c3c9d];_0x2673da['push'](_0x5f1e87),_0x1ddcfd=_0x2673da['length'],_0x5f1e87!==!![]&&(_0x6ff891+='='+_0x5f1e87);}_0x2063bd['cookie']=_0x6ff891;},'removeCookie':function(){return'dev';},'getCookie':function(_0x38d550,_0x535b6b){_0x38d550=_0x38d550||function(_0x6c8c24){return _0x6c8c24;};const _0x4ece2d=_0x38d550(new RegExp('(?:^|;\x20)'+_0x535b6b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x420c8f=function(_0x3f9f20,_0x4fa966){_0x3f9f20(++_0x4fa966);};return _0x420c8f(_0x396be7,_0x5afd9c),_0x4ece2d?decodeURIComponent(_0x4ece2d[0x1]):undefined;}},_0x531df0=function(){const _0x4a4605=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4a4605['test'](_0x26279c['removeCookie']['toString']());};_0x26279c['updateCookie']=_0x531df0;let _0xc9f9d4='';const _0x5440ab=_0x26279c['updateCookie']();if(!_0x5440ab)_0x26279c['setCookie'](['*'],'counter',0x1);else _0x5440ab?_0xc9f9d4=_0x26279c['getCookie'](null,'counter'):_0x26279c['removeCookie']();};_0x28a87f();}(a81_0x5afd,0x1d1));const a81_0x396b=function(_0x570760,_0x5afd9c){_0x570760=_0x570760-0x0;let _0x396be7=a81_0x5afd[_0x570760];return _0x396be7;};const a81_0x21f23c=function(){let _0x5a9461=!![];return function(_0x2c3fde,_0x1a6393){const _0x2fa1ca=_0x5a9461?function(){if(_0x1a6393){const _0x5a8774=_0x1a6393[a81_0x396b('0x2a')](_0x2c3fde,arguments);return _0x1a6393=null,_0x5a8774;}}:function(){};return _0x5a9461=![],_0x2fa1ca;};}(),a81_0x3a8829=a81_0x21f23c(this,function(){const _0x1d49d6=function(){const _0x5977be=_0x1d49d6['constructor'](a81_0x396b('0x1f'))()[a81_0x396b('0x2b')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5977be['test'](a81_0x3a8829);};return _0x1d49d6();});a81_0x3a8829();'use strict';const tesseract_1=require(a81_0x396b('0xb')),discord_js_1=require('discord.js'),Case_1=require('../../models/Case'),numbers=require(a81_0x396b('0x2c')),errors=require(a81_0x396b('0xd'));module[a81_0x396b('0x11')]=class ReasonCommand extends tesseract_1['Command']{constructor(){super('reason',{'description':a81_0x396b('0x19'),'triggers':[],'arguments':{'alias':{'case':'n'},'number':[a81_0x396b('0x29')],'coerce':{'case':_0x458d8a=>Math['floor'](numbers['clamp'](_0x458d8a,0x1,Number[a81_0x396b('0xe')]))}},'scope':a81_0x396b('0x1c'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['reason\x20--case\x20NUMBER\x20--\x20REASON']}),this['exec']=async(_0x3a7048,_0x1fcfb3)=>{if(_0x3a7048[a81_0x396b('0x16')]['id']!==_0x3a7048[a81_0x396b('0x1c')][a81_0x396b('0xf')]||_0x3a7048[a81_0x396b('0x6')][a81_0x396b('0x8')][a81_0x396b('0x14')]['size']<0x2)return;if(!_0x1fcfb3['number']||!_0x1fcfb3['_'][a81_0x396b('0x23')])throw new errors[(a81_0x396b('0x12'))](errors[a81_0x396b('0x9')][a81_0x396b('0x18')],this[a81_0x396b('0x1')]);const _0xbb62a7=await Case_1['default'][a81_0x396b('0x4')]({'guild':_0x3a7048[a81_0x396b('0x1c')]['id'],'number':_0x1fcfb3[a81_0x396b('0xc')]});if(!_0xbb62a7)throw new Error(this[a81_0x396b('0x21')][a81_0x396b('0x10')][a81_0x396b('0x3')](_0x3a7048[a81_0x396b('0x1c')]['document'][a81_0x396b('0x20')],'errors',a81_0x396b('0x5')));const _0x2d7f99=_0x3a7048['guild']['channels'][a81_0x396b('0x14')]['filter'](_0x52a5c9=>_0x52a5c9[a81_0x396b('0x1a')]==='text'||_0x52a5c9[a81_0x396b('0x1a')]===a81_0x396b('0x17'));if(_0x3a7048[a81_0x396b('0x1c')]['document'][a81_0x396b('0xa')]&&_0x2d7f99[a81_0x396b('0x2')](_0x3a7048['guild'][a81_0x396b('0x1e')][a81_0x396b('0xa')])){const _0x37735c=_0x2d7f99['get'](_0x3a7048[a81_0x396b('0x1c')][a81_0x396b('0x1e')][a81_0x396b('0xa')]);if(_0x37735c instanceof discord_js_1['NewsChannel']||_0x37735c instanceof discord_js_1[a81_0x396b('0x15')]){const _0x2ab295=await _0x37735c[a81_0x396b('0x28')][a81_0x396b('0x24')](_0xbb62a7[a81_0x396b('0x0')]),_0x53eb4a=_0x2ab295[a81_0x396b('0x7')][0x0];if(!_0x3a7048[a81_0x396b('0x6')][a81_0x396b('0x1d')][a81_0x396b('0x2')](a81_0x396b('0x13'))||_0x53eb4a[a81_0x396b('0x27')]['find'](_0x3f4962=>_0x3f4962['name']===a81_0x396b('0x1b'))[a81_0x396b('0x22')]!==_0x3a7048[a81_0x396b('0x16')]['id'])return;_0x53eb4a[a81_0x396b('0x27')]['find'](_0x20e1ca=>_0x20e1ca[a81_0x396b('0x1')]===a81_0x396b('0x25'))[a81_0x396b('0x22')]=_0x1fcfb3['_'][a81_0x396b('0x26')]('\x20'),await _0x2ab295['edit']({'embed':_0x53eb4a});}}};}}; \ No newline at end of file diff --git a/commands/moderation/report.js b/commands/moderation/report.js index fca839a39..4de35c8f7 100644 --- a/commands/moderation/report.js +++ b/commands/moderation/report.js @@ -1 +1 @@ -const a82_0x99d4=['constructor','reportConfirmation','User','catch','COLORS','send','get','delete','document','language','DiscordError','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20/\x20','Reported\x20by\x20','Constants','Report','resolver','user','name','errors','getString','INVALID_COMMAND_SYNTAX','guild','channel','join','reportsChannelId','RED','BASTION_ERROR_TYPE','apply','author','User\x20Report','Command','client','return\x20/\x22\x20+\x20this\x20+\x20\x22/','report\x20--user\x20USER_ID\x20--\x20REASON','tag','User\x20Report\x20Command','locale','exports','test'];(function(_0x20ee02,_0x99d432){const _0x321a77=function(_0x47e7c){while(--_0x47e7c){_0x20ee02['push'](_0x20ee02['shift']());}},_0x40f2d0=function(){const _0x3a084c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2ff1f8,_0x8fb607,_0x206788,_0xa75df0){_0xa75df0=_0xa75df0||{};let _0x15b222=_0x8fb607+'='+_0x206788,_0xdeef91=0x0;for(let _0x42c25f=0x0,_0xd3d628=_0x2ff1f8['length'];_0x42c25f<_0xd3d628;_0x42c25f++){const _0x124e61=_0x2ff1f8[_0x42c25f];_0x15b222+=';\x20'+_0x124e61;const _0x1ce634=_0x2ff1f8[_0x124e61];_0x2ff1f8['push'](_0x1ce634),_0xd3d628=_0x2ff1f8['length'],_0x1ce634!==!![]&&(_0x15b222+='='+_0x1ce634);}_0xa75df0['cookie']=_0x15b222;},'removeCookie':function(){return'dev';},'getCookie':function(_0x513567,_0x519f90){_0x513567=_0x513567||function(_0x4d2595){return _0x4d2595;};const _0x2c41a8=_0x513567(new RegExp('(?:^|;\x20)'+_0x519f90['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3be7fa=function(_0x4ebb33,_0x18c085){_0x4ebb33(++_0x18c085);};return _0x3be7fa(_0x321a77,_0x99d432),_0x2c41a8?decodeURIComponent(_0x2c41a8[0x1]):undefined;}},_0x1ef398=function(){const _0x4e233d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4e233d['test'](_0x3a084c['removeCookie']['toString']());};_0x3a084c['updateCookie']=_0x1ef398;let _0x426dc6='';const _0x39cb38=_0x3a084c['updateCookie']();if(!_0x39cb38)_0x3a084c['setCookie'](['*'],'counter',0x1);else _0x39cb38?_0x426dc6=_0x3a084c['getCookie'](null,'counter'):_0x3a084c['removeCookie']();};_0x40f2d0();}(a82_0x99d4,0xee));const a82_0x321a=function(_0x20ee02,_0x99d432){_0x20ee02=_0x20ee02-0x0;let _0x321a77=a82_0x99d4[_0x20ee02];return _0x321a77;};const a82_0x206788=function(){let _0x3c6185=!![];return function(_0x1d170c,_0x268d4f){const _0x19d61c=_0x3c6185?function(){if(_0x268d4f){const _0x4b96bf=_0x268d4f[a82_0x321a('0x1e')](_0x1d170c,arguments);return _0x268d4f=null,_0x4b96bf;}}:function(){};return _0x3c6185=![],_0x19d61c;};}(),a82_0x8fb607=a82_0x206788(this,function(){const _0x387a42=function(){const _0x17035a=_0x387a42[a82_0x321a('0x2')](a82_0x321a('0x23'))()[a82_0x321a('0x2')](a82_0x321a('0xd'));return!_0x17035a[a82_0x321a('0x1')](a82_0x8fb607);};return _0x387a42();});a82_0x8fb607();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require('../../utils/errors');module[a82_0x321a('0x0')]=class Report extends tesseract_1[a82_0x321a('0x21')]{constructor(){super('report',{'description':'It\x20allows\x20you\x20to\x20report\x20a\x20server\x20member\x20to\x20the\x20moderators\x20of\x20the\x20server,\x20provided\x20a\x20Report\x20Channel\x20is\x20set.','triggers':[],'arguments':{'alias':{'user':'u'},'string':[a82_0x321a('0x13')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a82_0x321a('0x24')]}),this['exec']=async(_0x4acb24,_0x3118d7)=>{const _0x771787=this[a82_0x321a('0x22')][a82_0x321a('0x12')]['resolveUser'](_0x3118d7[a82_0x321a('0x13')]),_0x2a7280=_0x3118d7['_'][a82_0x321a('0x1a')]('\x20');if(!_0x771787||!_0x2a7280)throw new errors[(a82_0x321a('0xc'))](errors[a82_0x321a('0x1d')][a82_0x321a('0x17')],this[a82_0x321a('0x14')]);if(_0x4acb24['guild'][a82_0x321a('0xa')][a82_0x321a('0x1b')]){await _0x4acb24[a82_0x321a('0x18')]['channels']['cache'][a82_0x321a('0x8')](_0x4acb24['guild'][a82_0x321a('0xa')][a82_0x321a('0x1b')])['send']({'embed':{'color':tesseract_1['Constants']['COLORS']['ORANGE'],'title':a82_0x321a('0x20'),'fields':[{'name':a82_0x321a('0x4'),'value':_0x771787[a82_0x321a('0x25')]+'\x20/\x20'+_0x771787['id']},{'name':a82_0x321a('0x11'),'value':_0x2a7280}],'footer':{'text':a82_0x321a('0xf')+_0x4acb24[a82_0x321a('0x1f')][a82_0x321a('0x25')]+a82_0x321a('0xe')+_0x4acb24[a82_0x321a('0x1f')]['id']}}}),await _0x4acb24[a82_0x321a('0x19')][a82_0x321a('0x7')]({'embed':{'color':tesseract_1[a82_0x321a('0x10')][a82_0x321a('0x6')]['ORANGE'],'description':this[a82_0x321a('0x22')][a82_0x321a('0x27')][a82_0x321a('0x16')](_0x4acb24[a82_0x321a('0x18')]['document'][a82_0x321a('0xb')],'info',a82_0x321a('0x3'),_0x4acb24['author'][a82_0x321a('0x25')])}})[a82_0x321a('0x5')](()=>{});if(_0x4acb24['deletable'])await _0x4acb24[a82_0x321a('0x9')]({'reason':a82_0x321a('0x26')})[a82_0x321a('0x5')](()=>{});}else return await _0x4acb24[a82_0x321a('0x19')][a82_0x321a('0x7')]({'embed':{'color':tesseract_1[a82_0x321a('0x10')][a82_0x321a('0x6')][a82_0x321a('0x1c')],'description':this[a82_0x321a('0x22')][a82_0x321a('0x27')][a82_0x321a('0x16')](_0x4acb24[a82_0x321a('0x18')][a82_0x321a('0xa')][a82_0x321a('0xb')],a82_0x321a('0x15'),'noReportChannel')}})[a82_0x321a('0x5')](()=>{});};}}; \ No newline at end of file +const a82_0x5c75=['send','apply','author','Command','ORANGE','noReportChannel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','BASTION_ERROR_TYPE','info','INVALID_COMMAND_SYNTAX','Constants','client','cache','deletable','reportsChannelId','channels','user','User\x20Report\x20Command','delete','guild','join','errors','catch','name','User\x20Report','exec','@bastion/tesseract','resolveUser','exports','language','resolver','\x20/\x20','test','report\x20--user\x20USER_ID\x20--\x20REASON','channel','document','../../utils/errors','User','Report','get','locale','getString','tag'];(function(_0x22e291,_0x5c75b4){const _0x357365=function(_0x3d4e5a){while(--_0x3d4e5a){_0x22e291['push'](_0x22e291['shift']());}},_0x220535=function(){const _0x2dd142={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x25e093,_0x6c6fe0,_0x50559d,_0x315d02){_0x315d02=_0x315d02||{};let _0x12a886=_0x6c6fe0+'='+_0x50559d,_0x5c6138=0x0;for(let _0x4491be=0x0,_0x5b6713=_0x25e093['length'];_0x4491be<_0x5b6713;_0x4491be++){const _0x59ca9d=_0x25e093[_0x4491be];_0x12a886+=';\x20'+_0x59ca9d;const _0x1ccafe=_0x25e093[_0x59ca9d];_0x25e093['push'](_0x1ccafe),_0x5b6713=_0x25e093['length'],_0x1ccafe!==!![]&&(_0x12a886+='='+_0x1ccafe);}_0x315d02['cookie']=_0x12a886;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1d75d9,_0x406318){_0x1d75d9=_0x1d75d9||function(_0x5ac19e){return _0x5ac19e;};const _0x46134d=_0x1d75d9(new RegExp('(?:^|;\x20)'+_0x406318['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x85bbb7=function(_0x5449e7,_0x5ca1b5){_0x5449e7(++_0x5ca1b5);};return _0x85bbb7(_0x357365,_0x5c75b4),_0x46134d?decodeURIComponent(_0x46134d[0x1]):undefined;}},_0x22010e=function(){const _0x389ae5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x389ae5['test'](_0x2dd142['removeCookie']['toString']());};_0x2dd142['updateCookie']=_0x22010e;let _0x7fc7fb='';const _0x106583=_0x2dd142['updateCookie']();if(!_0x106583)_0x2dd142['setCookie'](['*'],'counter',0x1);else _0x106583?_0x7fc7fb=_0x2dd142['getCookie'](null,'counter'):_0x2dd142['removeCookie']();};_0x220535();}(a82_0x5c75,0xf6));const a82_0x3573=function(_0x22e291,_0x5c75b4){_0x22e291=_0x22e291-0x0;let _0x357365=a82_0x5c75[_0x22e291];return _0x357365;};const a82_0x50559d=function(){let _0x7e94c0=!![];return function(_0x3c5508,_0x373a44){const _0x568837=_0x7e94c0?function(){if(_0x373a44){const _0x300f38=_0x373a44[a82_0x3573('0x13')](_0x3c5508,arguments);return _0x373a44=null,_0x300f38;}}:function(){};return _0x7e94c0=![],_0x568837;};}(),a82_0x6c6fe0=a82_0x50559d(this,function(){const _0x39d26c=function(){const _0xa481fb=_0x39d26c['constructor'](a82_0x3573('0x18'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xa481fb[a82_0x3573('0x7')](a82_0x6c6fe0);};return _0x39d26c();});a82_0x6c6fe0();'use strict';const tesseract_1=require(a82_0x3573('0x1')),errors=require(a82_0x3573('0xb'));module[a82_0x3573('0x3')]=class Report extends tesseract_1[a82_0x3573('0x15')]{constructor(){super('report',{'description':'It\x20allows\x20you\x20to\x20report\x20a\x20server\x20member\x20to\x20the\x20moderators\x20of\x20the\x20server,\x20provided\x20a\x20Report\x20Channel\x20is\x20set.','triggers':[],'arguments':{'alias':{'user':'u'},'string':['user']},'scope':a82_0x3573('0x26'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a82_0x3573('0x8')]}),this[a82_0x3573('0x0')]=async(_0x3f1cee,_0x1deb02)=>{const _0xf56b22=this[a82_0x3573('0x1e')][a82_0x3573('0x5')][a82_0x3573('0x2')](_0x1deb02[a82_0x3573('0x23')]),_0x445069=_0x1deb02['_'][a82_0x3573('0x27')]('\x20');if(!_0xf56b22||!_0x445069)throw new errors['DiscordError'](errors[a82_0x3573('0x1a')][a82_0x3573('0x1c')],this[a82_0x3573('0x2a')]);if(_0x3f1cee[a82_0x3573('0x26')]['document'][a82_0x3573('0x21')]){await _0x3f1cee[a82_0x3573('0x26')][a82_0x3573('0x22')][a82_0x3573('0x1f')][a82_0x3573('0xe')](_0x3f1cee[a82_0x3573('0x26')][a82_0x3573('0xa')][a82_0x3573('0x21')])[a82_0x3573('0x12')]({'embed':{'color':tesseract_1['Constants']['COLORS'][a82_0x3573('0x16')],'title':a82_0x3573('0x2b'),'fields':[{'name':a82_0x3573('0xc'),'value':_0xf56b22['tag']+a82_0x3573('0x6')+_0xf56b22['id']},{'name':a82_0x3573('0xd'),'value':_0x445069}],'footer':{'text':'Reported\x20by\x20'+_0x3f1cee[a82_0x3573('0x14')]['tag']+a82_0x3573('0x6')+_0x3f1cee[a82_0x3573('0x14')]['id']}}}),await _0x3f1cee[a82_0x3573('0x9')][a82_0x3573('0x12')]({'embed':{'color':tesseract_1['Constants'][a82_0x3573('0x19')]['ORANGE'],'description':this[a82_0x3573('0x1e')][a82_0x3573('0xf')]['getString'](_0x3f1cee[a82_0x3573('0x26')][a82_0x3573('0xa')][a82_0x3573('0x4')],a82_0x3573('0x1b'),'reportConfirmation',_0x3f1cee[a82_0x3573('0x14')][a82_0x3573('0x11')])}})['catch'](()=>{});if(_0x3f1cee[a82_0x3573('0x20')])await _0x3f1cee[a82_0x3573('0x25')]({'reason':a82_0x3573('0x24')})[a82_0x3573('0x29')](()=>{});}else return await _0x3f1cee[a82_0x3573('0x9')][a82_0x3573('0x12')]({'embed':{'color':tesseract_1[a82_0x3573('0x1d')][a82_0x3573('0x19')]['RED'],'description':this[a82_0x3573('0x1e')][a82_0x3573('0xf')][a82_0x3573('0x10')](_0x3f1cee[a82_0x3573('0x26')][a82_0x3573('0xa')][a82_0x3573('0x4')],a82_0x3573('0x28'),a82_0x3573('0x17'))}})[a82_0x3573('0x29')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/textMute.js b/commands/moderation/textMute.js index 7f6254847..1a77baa43 100644 --- a/commands/moderation/textMute.js +++ b/commands/moderation/textMute.js @@ -1 +1 @@ -const a83_0x218b=['textMute','constructor','canManage','errors','catch','getString','memberSetTextMute','It\x20allows\x20you\x20to\x20text\x20mute\x20(and\x20unmute)\x20users\x20in\x20a\x20channel\x20(or\x20category).\x20Text\x20muted\x20users\x20can\x27t\x20send\x20messages\x20in\x20the\x20channels\x20they\x20are\x20muted.','info','language','exec','resolveGuildMember','user','exports','set','Constants','memberUnsetTextMute','../../utils/errors','resolver','updateOverwrite','client','textMute\x20--user\x20USER_ID\x20--\x20REASON','unauthorized','RED','ORANGE','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','member','@bastion/tesseract','join','ownerID','document','textMute\x20--unset\x20--user\x20USER_ID\x20--\x20REASON','tag','INVALID_COMMAND_SYNTAX','test','guild','apply','parent','author','textMute\x20--user\x20USER_ID\x20--channel\x20--\x20REASON','MUTE_MEMBERS','textMute\x20--unset\x20--user\x20USER_ID\x20--channel\x20--\x20REASON','locale','send','COLORS'];(function(_0x2f5156,_0x218b85){const _0x361a64=function(_0x395f96){while(--_0x395f96){_0x2f5156['push'](_0x2f5156['shift']());}},_0x1c0245=function(){const _0x7374d8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1c9c11,_0x525f87,_0x108e89,_0x7c0ae6){_0x7c0ae6=_0x7c0ae6||{};let _0x106d46=_0x525f87+'='+_0x108e89,_0x5d4cb3=0x0;for(let _0x210845=0x0,_0x3d2b94=_0x1c9c11['length'];_0x210845<_0x3d2b94;_0x210845++){const _0x13ffaa=_0x1c9c11[_0x210845];_0x106d46+=';\x20'+_0x13ffaa;const _0x81bbd8=_0x1c9c11[_0x13ffaa];_0x1c9c11['push'](_0x81bbd8),_0x3d2b94=_0x1c9c11['length'],_0x81bbd8!==!![]&&(_0x106d46+='='+_0x81bbd8);}_0x7c0ae6['cookie']=_0x106d46;},'removeCookie':function(){return'dev';},'getCookie':function(_0x46b1dd,_0xc1366e){_0x46b1dd=_0x46b1dd||function(_0x42c77a){return _0x42c77a;};const _0xc738c4=_0x46b1dd(new RegExp('(?:^|;\x20)'+_0xc1366e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4fa0fd=function(_0xcea367,_0xe30dc3){_0xcea367(++_0xe30dc3);};return _0x4fa0fd(_0x361a64,_0x218b85),_0xc738c4?decodeURIComponent(_0xc738c4[0x1]):undefined;}},_0x5a0768=function(){const _0x31f7c7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x31f7c7['test'](_0x7374d8['removeCookie']['toString']());};_0x7374d8['updateCookie']=_0x5a0768;let _0x1e11f6='';const _0x347e41=_0x7374d8['updateCookie']();if(!_0x347e41)_0x7374d8['setCookie'](['*'],'counter',0x1);else _0x347e41?_0x1e11f6=_0x7374d8['getCookie'](null,'counter'):_0x7374d8['removeCookie']();};_0x1c0245();}(a83_0x218b,0x12a));const a83_0x361a=function(_0x2f5156,_0x218b85){_0x2f5156=_0x2f5156-0x0;let _0x361a64=a83_0x218b[_0x2f5156];return _0x361a64;};const a83_0x108e89=function(){let _0x40cde4=!![];return function(_0x251c00,_0x40969a){const _0x51ea55=_0x40cde4?function(){if(_0x40969a){const _0x507363=_0x40969a[a83_0x361a('0x16')](_0x251c00,arguments);return _0x40969a=null,_0x507363;}}:function(){};return _0x40cde4=![],_0x51ea55;};}(),a83_0x525f87=a83_0x108e89(this,function(){const _0x1ced88=function(){const _0x48050b=_0x1ced88['constructor'](a83_0x361a('0xb'))()[a83_0x361a('0x20')](a83_0x361a('0xa'));return!_0x48050b[a83_0x361a('0x14')](a83_0x525f87);};return _0x1ced88();});a83_0x525f87();'use strict';const tesseract_1=require(a83_0x361a('0xd')),errors=require(a83_0x361a('0x1'));module[a83_0x361a('0x2c')]=class TextMute extends tesseract_1['Command']{constructor(){super(a83_0x361a('0x1f'),{'description':a83_0x361a('0x26'),'triggers':[],'arguments':{'configuration':{'negation-prefix':'un'},'alias':{'channel':'c','user':'u'},'default':{'set':!![]},'boolean':[a83_0x361a('0x2d'),a83_0x361a('0x9')],'string':[a83_0x361a('0x2b')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a83_0x361a('0x1a')],'userPermissions':['MUTE_MEMBERS'],'syntax':[a83_0x361a('0x5'),a83_0x361a('0x19'),a83_0x361a('0x11'),a83_0x361a('0x1b')]}),this[a83_0x361a('0x29')]=async(_0x1afb0b,_0x4a07e1)=>{const _0x27eff0=this[a83_0x361a('0x4')][a83_0x361a('0x2')][a83_0x361a('0x2a')](_0x1afb0b[a83_0x361a('0x15')],_0x4a07e1[a83_0x361a('0x2b')]);if(!_0x27eff0)throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a83_0x361a('0x13')],this['name']);if(_0x1afb0b[a83_0x361a('0x18')]['id']!==_0x1afb0b[a83_0x361a('0x15')][a83_0x361a('0xf')]&&!_0x1afb0b[a83_0x361a('0xc')][a83_0x361a('0x21')](_0x27eff0))return await _0x1afb0b['channel'][a83_0x361a('0x1d')]({'embed':{'color':tesseract_1[a83_0x361a('0x2e')][a83_0x361a('0x1e')][a83_0x361a('0x7')],'title':this[a83_0x361a('0x4')][a83_0x361a('0x1c')][a83_0x361a('0x24')](_0x1afb0b[a83_0x361a('0x15')][a83_0x361a('0x10')][a83_0x361a('0x28')],a83_0x361a('0x22'),a83_0x361a('0x6')),'description':this[a83_0x361a('0x4')][a83_0x361a('0x1c')][a83_0x361a('0x24')](_0x1afb0b[a83_0x361a('0x15')][a83_0x361a('0x10')][a83_0x361a('0x28')],'errors','rolePosition',_0x1afb0b['author']['tag'],_0x27eff0[a83_0x361a('0x2b')]['tag'])}})[a83_0x361a('0x23')](()=>{});const _0x1bbef6=_0x4a07e1['_'][a83_0x361a('0xe')]('\x20')||'-',_0x301edc=!_0x4a07e1[a83_0x361a('0x9')]&&_0x1afb0b[a83_0x361a('0x9')][a83_0x361a('0x17')]?_0x1afb0b['channel'][a83_0x361a('0x17')]:_0x1afb0b['channel'];await _0x301edc[a83_0x361a('0x3')](_0x27eff0['id'],{'SEND_MESSAGES':_0x4a07e1[a83_0x361a('0x2d')]?![]:null},_0x1bbef6),await _0x1afb0b[a83_0x361a('0x9')][a83_0x361a('0x1d')]({'embed':{'color':tesseract_1[a83_0x361a('0x2e')][a83_0x361a('0x1e')][a83_0x361a('0x8')],'description':_0x4a07e1[a83_0x361a('0x2d')]?this[a83_0x361a('0x4')][a83_0x361a('0x1c')][a83_0x361a('0x24')](_0x1afb0b[a83_0x361a('0x15')]['document'][a83_0x361a('0x28')],a83_0x361a('0x27'),a83_0x361a('0x25'),_0x1afb0b[a83_0x361a('0x18')][a83_0x361a('0x12')],_0x27eff0[a83_0x361a('0x2b')]['tag'],_0x301edc['name']):this[a83_0x361a('0x4')][a83_0x361a('0x1c')][a83_0x361a('0x24')](_0x1afb0b[a83_0x361a('0x15')]['document']['language'],'info',a83_0x361a('0x0'),_0x1afb0b['author']['tag'],_0x27eff0['user'][a83_0x361a('0x12')]),'fields':[{'name':'Reason','value':_0x1bbef6}],'footer':{'text':_0x27eff0['id']}}})[a83_0x361a('0x23')](()=>{});};}}; \ No newline at end of file +const a83_0x4de9=['textMute\x20--unset\x20--user\x20USER_ID\x20--channel\x20--\x20REASON','constructor','author','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','user','language','../../utils/errors','rolePosition','RED','ownerID','exec','tag','guild','catch','memberUnsetTextMute','join','textMute','DiscordError','exports','BASTION_ERROR_TYPE','info','It\x20allows\x20you\x20to\x20text\x20mute\x20(and\x20unmute)\x20users\x20in\x20a\x20channel\x20(or\x20category).\x20Text\x20muted\x20users\x20can\x27t\x20send\x20messages\x20in\x20the\x20channels\x20they\x20are\x20muted.','client','errors','Reason','parent','channel','name','MUTE_MEMBERS','send','Constants','resolveGuildMember','test','textMute\x20--unset\x20--user\x20USER_ID\x20--\x20REASON','Command','@bastion/tesseract','locale','member','set','getString','document'];(function(_0x240dfe,_0x4de970){const _0x2ef124=function(_0x3a9eb0){while(--_0x3a9eb0){_0x240dfe['push'](_0x240dfe['shift']());}},_0x47f54a=function(){const _0x2f6434={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x501e8e,_0x2a8de2,_0x88cb5f,_0x59f2c4){_0x59f2c4=_0x59f2c4||{};let _0x5956fd=_0x2a8de2+'='+_0x88cb5f,_0x415c4b=0x0;for(let _0x4cf21c=0x0,_0x80f2ea=_0x501e8e['length'];_0x4cf21c<_0x80f2ea;_0x4cf21c++){const _0x2d90a9=_0x501e8e[_0x4cf21c];_0x5956fd+=';\x20'+_0x2d90a9;const _0x226bea=_0x501e8e[_0x2d90a9];_0x501e8e['push'](_0x226bea),_0x80f2ea=_0x501e8e['length'],_0x226bea!==!![]&&(_0x5956fd+='='+_0x226bea);}_0x59f2c4['cookie']=_0x5956fd;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2ca5d1,_0x35325e){_0x2ca5d1=_0x2ca5d1||function(_0x47636a){return _0x47636a;};const _0x162316=_0x2ca5d1(new RegExp('(?:^|;\x20)'+_0x35325e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x223cd7=function(_0x1a1d84,_0x429338){_0x1a1d84(++_0x429338);};return _0x223cd7(_0x2ef124,_0x4de970),_0x162316?decodeURIComponent(_0x162316[0x1]):undefined;}},_0x264171=function(){const _0x306fa7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x306fa7['test'](_0x2f6434['removeCookie']['toString']());};_0x2f6434['updateCookie']=_0x264171;let _0x444437='';const _0x39bdc0=_0x2f6434['updateCookie']();if(!_0x39bdc0)_0x2f6434['setCookie'](['*'],'counter',0x1);else _0x39bdc0?_0x444437=_0x2f6434['getCookie'](null,'counter'):_0x2f6434['removeCookie']();};_0x47f54a();}(a83_0x4de9,0xfb));const a83_0x2ef1=function(_0x240dfe,_0x4de970){_0x240dfe=_0x240dfe-0x0;let _0x2ef124=a83_0x4de9[_0x240dfe];return _0x2ef124;};const a83_0x88cb5f=function(){let _0x51a230=!![];return function(_0x2a3233,_0x534a34){const _0x294aff=_0x51a230?function(){if(_0x534a34){const _0x11f1d5=_0x534a34['apply'](_0x2a3233,arguments);return _0x534a34=null,_0x11f1d5;}}:function(){};return _0x51a230=![],_0x294aff;};}(),a83_0x2a8de2=a83_0x88cb5f(this,function(){const _0x254f06=function(){const _0x30d958=_0x254f06[a83_0x2ef1('0x25')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a83_0x2ef1('0x25')](a83_0x2ef1('0x27'));return!_0x30d958[a83_0x2ef1('0x1b')](a83_0x2a8de2);};return _0x254f06();});a83_0x2a8de2();'use strict';const tesseract_1=require(a83_0x2ef1('0x1e')),errors=require(a83_0x2ef1('0x1'));module[a83_0x2ef1('0xd')]=class TextMute extends tesseract_1[a83_0x2ef1('0x1d')]{constructor(){super(a83_0x2ef1('0xb'),{'description':a83_0x2ef1('0x10'),'triggers':[],'arguments':{'configuration':{'negation-prefix':'un'},'alias':{'channel':'c','user':'u'},'default':{'set':!![]},'boolean':[a83_0x2ef1('0x21'),a83_0x2ef1('0x15')],'string':[a83_0x2ef1('0x28')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a83_0x2ef1('0x17')],'userPermissions':[a83_0x2ef1('0x17')],'syntax':['textMute\x20--user\x20USER_ID\x20--\x20REASON','textMute\x20--user\x20USER_ID\x20--channel\x20--\x20REASON',a83_0x2ef1('0x1c'),a83_0x2ef1('0x24')]}),this[a83_0x2ef1('0x5')]=async(_0x21b00f,_0x213be0)=>{const _0x6f226d=this[a83_0x2ef1('0x11')]['resolver'][a83_0x2ef1('0x1a')](_0x21b00f[a83_0x2ef1('0x7')],_0x213be0[a83_0x2ef1('0x28')]);if(!_0x6f226d)throw new errors[(a83_0x2ef1('0xc'))](errors[a83_0x2ef1('0xe')]['INVALID_COMMAND_SYNTAX'],this[a83_0x2ef1('0x16')]);if(_0x21b00f[a83_0x2ef1('0x26')]['id']!==_0x21b00f[a83_0x2ef1('0x7')][a83_0x2ef1('0x4')]&&!_0x21b00f[a83_0x2ef1('0x20')]['canManage'](_0x6f226d))return await _0x21b00f[a83_0x2ef1('0x15')][a83_0x2ef1('0x18')]({'embed':{'color':tesseract_1[a83_0x2ef1('0x19')]['COLORS'][a83_0x2ef1('0x3')],'title':this[a83_0x2ef1('0x11')][a83_0x2ef1('0x1f')][a83_0x2ef1('0x22')](_0x21b00f['guild'][a83_0x2ef1('0x23')][a83_0x2ef1('0x0')],'errors','unauthorized'),'description':this[a83_0x2ef1('0x11')]['locale'][a83_0x2ef1('0x22')](_0x21b00f[a83_0x2ef1('0x7')][a83_0x2ef1('0x23')][a83_0x2ef1('0x0')],a83_0x2ef1('0x12'),a83_0x2ef1('0x2'),_0x21b00f[a83_0x2ef1('0x26')][a83_0x2ef1('0x6')],_0x6f226d[a83_0x2ef1('0x28')][a83_0x2ef1('0x6')])}})[a83_0x2ef1('0x8')](()=>{});const _0x177518=_0x213be0['_'][a83_0x2ef1('0xa')]('\x20')||'-',_0x572046=!_0x213be0['channel']&&_0x21b00f[a83_0x2ef1('0x15')][a83_0x2ef1('0x14')]?_0x21b00f[a83_0x2ef1('0x15')][a83_0x2ef1('0x14')]:_0x21b00f[a83_0x2ef1('0x15')];await _0x572046['updateOverwrite'](_0x6f226d['id'],{'SEND_MESSAGES':_0x213be0[a83_0x2ef1('0x21')]?![]:null},_0x177518),await _0x21b00f[a83_0x2ef1('0x15')][a83_0x2ef1('0x18')]({'embed':{'color':tesseract_1[a83_0x2ef1('0x19')]['COLORS']['ORANGE'],'description':_0x213be0[a83_0x2ef1('0x21')]?this['client']['locale'][a83_0x2ef1('0x22')](_0x21b00f['guild']['document'][a83_0x2ef1('0x0')],a83_0x2ef1('0xf'),'memberSetTextMute',_0x21b00f['author'][a83_0x2ef1('0x6')],_0x6f226d['user'][a83_0x2ef1('0x6')],_0x572046[a83_0x2ef1('0x16')]):this[a83_0x2ef1('0x11')]['locale'][a83_0x2ef1('0x22')](_0x21b00f[a83_0x2ef1('0x7')][a83_0x2ef1('0x23')][a83_0x2ef1('0x0')],'info',a83_0x2ef1('0x9'),_0x21b00f[a83_0x2ef1('0x26')][a83_0x2ef1('0x6')],_0x6f226d[a83_0x2ef1('0x28')][a83_0x2ef1('0x6')]),'fields':[{'name':a83_0x2ef1('0x13'),'value':_0x177518}],'footer':{'text':_0x6f226d['id']}}})[a83_0x2ef1('0x8')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/unban.js b/commands/moderation/unban.js index 0f13406ee..45bb2a507 100644 --- a/commands/moderation/unban.js +++ b/commands/moderation/unban.js @@ -1 +1 @@ -const a84_0x5682=['author','ORANGE','unban','apply','COLORS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','name','catch','join','It\x20allows\x20you\x20to\x20unban\x20the\x20users\x20who\x27re\x20banned\x20in\x20the\x20server.','members','exec','user','Reason','unban\x20--user\x20USER_ID\x20--\x20REASON','channel','constructor','tag','Command','info','BAN_MEMBERS','guildBanRemove','exports','guild','locale','client','DiscordError','document','getString','Constants','resolveUser'];(function(_0x5d55fa,_0x5682dc){const _0x526e5c=function(_0x52a953){while(--_0x52a953){_0x5d55fa['push'](_0x5d55fa['shift']());}},_0x59945c=function(){const _0x34bc66={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x52b6dc,_0x235b6d,_0x2ba88a,_0x84e4d3){_0x84e4d3=_0x84e4d3||{};let _0x19ac84=_0x235b6d+'='+_0x2ba88a,_0x3ab1ea=0x0;for(let _0x18b33d=0x0,_0x4dbe36=_0x52b6dc['length'];_0x18b33d<_0x4dbe36;_0x18b33d++){const _0x5f088f=_0x52b6dc[_0x18b33d];_0x19ac84+=';\x20'+_0x5f088f;const _0x5daf4f=_0x52b6dc[_0x5f088f];_0x52b6dc['push'](_0x5daf4f),_0x4dbe36=_0x52b6dc['length'],_0x5daf4f!==!![]&&(_0x19ac84+='='+_0x5daf4f);}_0x84e4d3['cookie']=_0x19ac84;},'removeCookie':function(){return'dev';},'getCookie':function(_0x52d34f,_0x5340d4){_0x52d34f=_0x52d34f||function(_0x31e689){return _0x31e689;};const _0xc2af6a=_0x52d34f(new RegExp('(?:^|;\x20)'+_0x5340d4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3ac173=function(_0x3036ee,_0xba7a68){_0x3036ee(++_0xba7a68);};return _0x3ac173(_0x526e5c,_0x5682dc),_0xc2af6a?decodeURIComponent(_0xc2af6a[0x1]):undefined;}},_0x1b5244=function(){const _0xd56fc2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xd56fc2['test'](_0x34bc66['removeCookie']['toString']());};_0x34bc66['updateCookie']=_0x1b5244;let _0x51b640='';const _0x3699b0=_0x34bc66['updateCookie']();if(!_0x3699b0)_0x34bc66['setCookie'](['*'],'counter',0x1);else _0x3699b0?_0x51b640=_0x34bc66['getCookie'](null,'counter'):_0x34bc66['removeCookie']();};_0x59945c();}(a84_0x5682,0x1ec));const a84_0x526e=function(_0x5d55fa,_0x5682dc){_0x5d55fa=_0x5d55fa-0x0;let _0x526e5c=a84_0x5682[_0x5d55fa];return _0x526e5c;};const a84_0x2ba88a=function(){let _0x1a0934=!![];return function(_0x14d27b,_0x6d703c){const _0x47d310=_0x1a0934?function(){if(_0x6d703c){const _0x14224b=_0x6d703c[a84_0x526e('0x7')](_0x14d27b,arguments);return _0x6d703c=null,_0x14224b;}}:function(){};return _0x1a0934=![],_0x47d310;};}(),a84_0x235b6d=a84_0x2ba88a(this,function(){const _0x2000f9=function(){const _0x538278=_0x2000f9[a84_0x526e('0x14')](a84_0x526e('0x9'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x538278['test'](a84_0x235b6d);};return _0x2000f9();});a84_0x235b6d();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require('../../utils/errors');module[a84_0x526e('0x1a')]=class Unban extends tesseract_1[a84_0x526e('0x16')]{constructor(){super(a84_0x526e('0x6'),{'description':a84_0x526e('0xd'),'triggers':[],'arguments':{'alias':{'user':'u'},'string':[a84_0x526e('0x10')]},'scope':a84_0x526e('0x1b'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a84_0x526e('0x18')],'userPermissions':[a84_0x526e('0x18')],'syntax':[a84_0x526e('0x12')]}),this[a84_0x526e('0xf')]=async(_0x2f9ef6,_0x5a9e98)=>{const _0x50e86f=this[a84_0x526e('0x1d')]['resolver'][a84_0x526e('0x3')](_0x5a9e98[a84_0x526e('0x10')]);if(!_0x50e86f)throw new errors[(a84_0x526e('0x1e'))](errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX'],this[a84_0x526e('0xa')]);const _0x2b14c8=_0x5a9e98['_'][a84_0x526e('0xc')]('\x20')||'-';await _0x2f9ef6[a84_0x526e('0x1b')][a84_0x526e('0xe')]['unban'](_0x50e86f,_0x2b14c8),await _0x2f9ef6[a84_0x526e('0x13')]['send']({'embed':{'color':tesseract_1[a84_0x526e('0x2')][a84_0x526e('0x8')][a84_0x526e('0x5')],'description':this['client'][a84_0x526e('0x1c')][a84_0x526e('0x1')](_0x2f9ef6['guild'][a84_0x526e('0x0')]['language'],a84_0x526e('0x17'),a84_0x526e('0x19'),_0x2f9ef6[a84_0x526e('0x4')][a84_0x526e('0x15')],_0x50e86f[a84_0x526e('0x15')]),'fields':[{'name':a84_0x526e('0x11'),'value':_0x2b14c8}],'footer':{'text':_0x50e86f['id']}}})[a84_0x526e('0xb')](()=>{});};}}; \ No newline at end of file +const a84_0x9b52=['send','exec','@bastion/tesseract','Reason','catch','user','language','resolver','BASTION_ERROR_TYPE','constructor','unban\x20--user\x20USER_ID\x20--\x20REASON','DiscordError','author','test','info','tag','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','BAN_MEMBERS','INVALID_COMMAND_SYNTAX','channel','join','ORANGE','getString','members','name','guild','Command','It\x20allows\x20you\x20to\x20unban\x20the\x20users\x20who\x27re\x20banned\x20in\x20the\x20server.','unban','resolveUser','Constants','client'];(function(_0x26c284,_0x9b5263){const _0x1843a6=function(_0x55eca1){while(--_0x55eca1){_0x26c284['push'](_0x26c284['shift']());}},_0x2868dc=function(){const _0x3bcb67={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x241a20,_0x227691,_0x215281,_0x1f8245){_0x1f8245=_0x1f8245||{};let _0x5f4bc8=_0x227691+'='+_0x215281,_0x49692c=0x0;for(let _0x424b74=0x0,_0x1cf9e2=_0x241a20['length'];_0x424b74<_0x1cf9e2;_0x424b74++){const _0x451c30=_0x241a20[_0x424b74];_0x5f4bc8+=';\x20'+_0x451c30;const _0x1d994d=_0x241a20[_0x451c30];_0x241a20['push'](_0x1d994d),_0x1cf9e2=_0x241a20['length'],_0x1d994d!==!![]&&(_0x5f4bc8+='='+_0x1d994d);}_0x1f8245['cookie']=_0x5f4bc8;},'removeCookie':function(){return'dev';},'getCookie':function(_0xf15e62,_0x59ae68){_0xf15e62=_0xf15e62||function(_0x270945){return _0x270945;};const _0x58dbe4=_0xf15e62(new RegExp('(?:^|;\x20)'+_0x59ae68['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x28b621=function(_0x3254d7,_0x4928a1){_0x3254d7(++_0x4928a1);};return _0x28b621(_0x1843a6,_0x9b5263),_0x58dbe4?decodeURIComponent(_0x58dbe4[0x1]):undefined;}},_0xf182b=function(){const _0x4e0abb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4e0abb['test'](_0x3bcb67['removeCookie']['toString']());};_0x3bcb67['updateCookie']=_0xf182b;let _0x1a172c='';const _0x397608=_0x3bcb67['updateCookie']();if(!_0x397608)_0x3bcb67['setCookie'](['*'],'counter',0x1);else _0x397608?_0x1a172c=_0x3bcb67['getCookie'](null,'counter'):_0x3bcb67['removeCookie']();};_0x2868dc();}(a84_0x9b52,0x106));const a84_0x1843=function(_0x26c284,_0x9b5263){_0x26c284=_0x26c284-0x0;let _0x1843a6=a84_0x9b52[_0x26c284];return _0x1843a6;};const a84_0x215281=function(){let _0x5bd428=!![];return function(_0x3d3f10,_0x5ecc50){const _0x3b6fd8=_0x5bd428?function(){if(_0x5ecc50){const _0x162f00=_0x5ecc50['apply'](_0x3d3f10,arguments);return _0x5ecc50=null,_0x162f00;}}:function(){};return _0x5bd428=![],_0x3b6fd8;};}(),a84_0x227691=a84_0x215281(this,function(){const _0x2873ff=function(){const _0x315659=_0x2873ff['constructor'](a84_0x1843('0x13'))()[a84_0x1843('0xb')](a84_0x1843('0x12'));return!_0x315659[a84_0x1843('0xf')](a84_0x227691);};return _0x2873ff();});a84_0x227691();'use strict';const tesseract_1=require(a84_0x1843('0x4')),errors=require('../../utils/errors');module['exports']=class Unban extends tesseract_1[a84_0x1843('0x1d')]{constructor(){super(a84_0x1843('0x1f'),{'description':a84_0x1843('0x1e'),'triggers':[],'arguments':{'alias':{'user':'u'},'string':['user']},'scope':a84_0x1843('0x1c'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a84_0x1843('0x14')],'userPermissions':[a84_0x1843('0x14')],'syntax':[a84_0x1843('0xc')]}),this[a84_0x1843('0x3')]=async(_0x18b983,_0x3f685c)=>{const _0x5731f8=this[a84_0x1843('0x1')][a84_0x1843('0x9')][a84_0x1843('0x20')](_0x3f685c[a84_0x1843('0x7')]);if(!_0x5731f8)throw new errors[(a84_0x1843('0xd'))](errors[a84_0x1843('0xa')][a84_0x1843('0x15')],this[a84_0x1843('0x1b')]);const _0x458042=_0x3f685c['_'][a84_0x1843('0x17')]('\x20')||'-';await _0x18b983[a84_0x1843('0x1c')][a84_0x1843('0x1a')][a84_0x1843('0x1f')](_0x5731f8,_0x458042),await _0x18b983[a84_0x1843('0x16')][a84_0x1843('0x2')]({'embed':{'color':tesseract_1[a84_0x1843('0x0')]['COLORS'][a84_0x1843('0x18')],'description':this[a84_0x1843('0x1')]['locale'][a84_0x1843('0x19')](_0x18b983[a84_0x1843('0x1c')]['document'][a84_0x1843('0x8')],a84_0x1843('0x10'),'guildBanRemove',_0x18b983[a84_0x1843('0xe')][a84_0x1843('0x11')],_0x5731f8[a84_0x1843('0x11')]),'fields':[{'name':a84_0x1843('0x5'),'value':_0x458042}],'footer':{'text':_0x5731f8['id']}}})[a84_0x1843('0x6')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/updateRoles.js b/commands/moderation/updateRoles.js index 466151d72..d60eb6851 100644 --- a/commands/moderation/updateRoles.js +++ b/commands/moderation/updateRoles.js @@ -1 +1 @@ -const a85_0x1197=['errors','resolver','DiscordError','join','constructor','map','canManage','ORANGE','```diff\x0a','language','Reason','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','It\x20allows\x20you\x20to\x20update\x20roles\x20of\x20server\x20members.','roles','comparePositionTo','ownerID','document','length','client','MANAGE_ROLES','Role\x20Changes','catch','apply','guild','info','name','tag','../../utils/arrays','channel','author','Command','memberRoleUpdate','resolveGuildMember','set','COLORS','RED','member','@bastion/tesseract','add','test','remove','locale','../../utils/errors','resolveRoles','toBulletList','removeAll','BASTION_ERROR_TYPE','user','exec','getString','filter','unauthorized'];(function(_0x5d3019,_0x1197da){const _0x268096=function(_0x45e591){while(--_0x45e591){_0x5d3019['push'](_0x5d3019['shift']());}},_0x275d24=function(){const _0x48ce7f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1d3233,_0x23daa6,_0x2ca576,_0x2e44ef){_0x2e44ef=_0x2e44ef||{};let _0x37cfc7=_0x23daa6+'='+_0x2ca576,_0x156154=0x0;for(let _0x5234a9=0x0,_0xf9bf66=_0x1d3233['length'];_0x5234a9<_0xf9bf66;_0x5234a9++){const _0x31957c=_0x1d3233[_0x5234a9];_0x37cfc7+=';\x20'+_0x31957c;const _0x3734b7=_0x1d3233[_0x31957c];_0x1d3233['push'](_0x3734b7),_0xf9bf66=_0x1d3233['length'],_0x3734b7!==!![]&&(_0x37cfc7+='='+_0x3734b7);}_0x2e44ef['cookie']=_0x37cfc7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1ad107,_0xb224c0){_0x1ad107=_0x1ad107||function(_0x12f975){return _0x12f975;};const _0x399d5d=_0x1ad107(new RegExp('(?:^|;\x20)'+_0xb224c0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x577ece=function(_0x5b22e6,_0x1c84b0){_0x5b22e6(++_0x1c84b0);};return _0x577ece(_0x268096,_0x1197da),_0x399d5d?decodeURIComponent(_0x399d5d[0x1]):undefined;}},_0x436671=function(){const _0x3d12a5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3d12a5['test'](_0x48ce7f['removeCookie']['toString']());};_0x48ce7f['updateCookie']=_0x436671;let _0x40c70d='';const _0xa9bcf=_0x48ce7f['updateCookie']();if(!_0xa9bcf)_0x48ce7f['setCookie'](['*'],'counter',0x1);else _0xa9bcf?_0x40c70d=_0x48ce7f['getCookie'](null,'counter'):_0x48ce7f['removeCookie']();};_0x275d24();}(a85_0x1197,0x1eb));const a85_0x2680=function(_0x5d3019,_0x1197da){_0x5d3019=_0x5d3019-0x0;let _0x268096=a85_0x1197[_0x5d3019];return _0x268096;};const a85_0x2ca576=function(){let _0x360caa=!![];return function(_0x2d6608,_0x57c12a){const _0x2f46ce=_0x360caa?function(){if(_0x57c12a){const _0x447ea5=_0x57c12a[a85_0x2680('0x33')](_0x2d6608,arguments);return _0x57c12a=null,_0x447ea5;}}:function(){};return _0x360caa=![],_0x2f46ce;};}(),a85_0x23daa6=a85_0x2ca576(this,function(){const _0x5e4f67=function(){const _0x471abf=_0x5e4f67[a85_0x2680('0x21')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a85_0x2680('0x21')](a85_0x2680('0x28'));return!_0x471abf[a85_0x2680('0x10')](a85_0x23daa6);};return _0x5e4f67();});a85_0x23daa6();'use strict';const tesseract_1=require(a85_0x2680('0xe')),arrays=require(a85_0x2680('0x4')),errors=require(a85_0x2680('0x13'));module['exports']=class UpdateRoles extends tesseract_1[a85_0x2680('0x7')]{constructor(){super('updateRoles',{'description':a85_0x2680('0x29'),'triggers':[],'arguments':{'alias':{'add':'a','remove':'r','user':'u'},'array':[a85_0x2680('0xf'),'remove'],'boolean':[a85_0x2680('0x16')],'string':[a85_0x2680('0xf'),'remove',a85_0x2680('0x18')]},'scope':a85_0x2680('0x0'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a85_0x2680('0x30')],'userPermissions':[a85_0x2680('0x30')],'syntax':['updateRoles\x20--user\x20USER_ID\x20--add\x20ROLE_ID','updateRoles\x20--user\x20USER_ID\x20--remove\x20ROLE_ID','updateRoles\x20--user\x20USER_ID\x20--remove-all']}),this[a85_0x2680('0x19')]=async(_0x2d6a0f,_0x3730c8)=>{const _0x5396a3=this[a85_0x2680('0x2f')][a85_0x2680('0x1e')][a85_0x2680('0x9')](_0x2d6a0f[a85_0x2680('0x0')],_0x3730c8['user']);let _0x4e0e0f=this[a85_0x2680('0x2f')][a85_0x2680('0x1e')][a85_0x2680('0x14')](_0x2d6a0f[a85_0x2680('0x0')],_0x3730c8[a85_0x2680('0xf')]),_0x359224=this[a85_0x2680('0x2f')][a85_0x2680('0x1e')][a85_0x2680('0x14')](_0x2d6a0f[a85_0x2680('0x0')],_0x3730c8[a85_0x2680('0x11')]);if(!_0x5396a3||!_0x4e0e0f['length']&&!_0x359224[a85_0x2680('0x2e')])throw new errors[(a85_0x2680('0x1f'))](errors[a85_0x2680('0x17')]['INVALID_COMMAND_SYNTAX'],this[a85_0x2680('0x2')]);if(_0x2d6a0f[a85_0x2680('0x6')]['id']!==_0x2d6a0f[a85_0x2680('0x0')][a85_0x2680('0x2c')]&&_0x2d6a0f['member'][a85_0x2680('0x23')](_0x5396a3)){_0x4e0e0f=_0x4e0e0f[a85_0x2680('0x1b')](_0x186a1a=>_0x2d6a0f[a85_0x2680('0xd')][a85_0x2680('0x2a')]['highest']['comparePositionTo'](_0x186a1a)>0x0),_0x359224=_0x359224[a85_0x2680('0x1b')](_0x941cd6=>_0x2d6a0f[a85_0x2680('0xd')]['roles']['highest'][a85_0x2680('0x2b')](_0x941cd6)>0x0);if(!_0x4e0e0f[a85_0x2680('0x2e')]&&!_0x359224[a85_0x2680('0x2e')])return await _0x2d6a0f[a85_0x2680('0x5')]['send']({'embed':{'color':tesseract_1['Constants']['COLORS'][a85_0x2680('0xc')],'title':this[a85_0x2680('0x2f')][a85_0x2680('0x12')][a85_0x2680('0x1a')](_0x2d6a0f[a85_0x2680('0x0')][a85_0x2680('0x2d')]['language'],a85_0x2680('0x1d'),a85_0x2680('0x1c')),'description':this[a85_0x2680('0x2f')][a85_0x2680('0x12')]['getString'](_0x2d6a0f[a85_0x2680('0x0')]['document'][a85_0x2680('0x26')],'errors','rolePosition',_0x2d6a0f[a85_0x2680('0x6')][a85_0x2680('0x3')],_0x5396a3[a85_0x2680('0x18')][a85_0x2680('0x3')])}})[a85_0x2680('0x32')](()=>{});}const _0x5d4e88=_0x3730c8['_'][a85_0x2680('0x20')]('\x20')||'-';if(_0x4e0e0f[a85_0x2680('0x2e')])await _0x5396a3[a85_0x2680('0x2a')][a85_0x2680('0xf')](_0x4e0e0f,_0x5d4e88);if(_0x3730c8[a85_0x2680('0x16')])await _0x5396a3[a85_0x2680('0x2a')][a85_0x2680('0xa')]([],_0x5d4e88);else{if(_0x359224[a85_0x2680('0x2e')])await _0x5396a3['roles'][a85_0x2680('0x11')](_0x359224,_0x5d4e88);}await _0x2d6a0f[a85_0x2680('0x5')]['send']({'embed':{'color':tesseract_1['Constants'][a85_0x2680('0xb')][a85_0x2680('0x24')],'description':this[a85_0x2680('0x2f')][a85_0x2680('0x12')][a85_0x2680('0x1a')](_0x2d6a0f[a85_0x2680('0x0')]['document']['language'],a85_0x2680('0x1'),a85_0x2680('0x8'),_0x2d6a0f[a85_0x2680('0x6')][a85_0x2680('0x3')],_0x5396a3[a85_0x2680('0x18')]['tag']),'fields':[{'name':a85_0x2680('0x31'),'value':a85_0x2680('0x25')+arrays[a85_0x2680('0x15')](_0x4e0e0f['map'](_0x4def81=>_0x4def81[a85_0x2680('0x2')]),'+')+arrays[a85_0x2680('0x15')](_0x359224[a85_0x2680('0x22')](_0x5ba801=>_0x5ba801[a85_0x2680('0x2')]),'-')+'```'},{'name':a85_0x2680('0x27'),'value':_0x5d4e88}],'footer':{'text':_0x5396a3['id']}}})[a85_0x2680('0x32')](()=>{});};}}; \ No newline at end of file +const a85_0x56e5=['filter','resolveGuildMember','constructor','document','roles','length','return\x20/\x22\x20+\x20this\x20+\x20\x22/','updateRoles\x20--user\x20USER_ID\x20--add\x20ROLE_ID','catch','author','exec','memberRoleUpdate','locale','BASTION_ERROR_TYPE','DiscordError','getString','channel','info','errors','toBulletList','```diff\x0a','Reason','comparePositionTo','unauthorized','resolveRoles','MANAGE_ROLES','Constants','updateRoles','send','join','ownerID','remove','set','updateRoles\x20--user\x20USER_ID\x20--remove-all','@bastion/tesseract','language','../../utils/arrays','Role\x20Changes','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','ORANGE','user','tag','Command','removeAll','guild','name','map','highest','add','COLORS','INVALID_COMMAND_SYNTAX','member','updateRoles\x20--user\x20USER_ID\x20--remove\x20ROLE_ID','client','resolver'];(function(_0xfdf06b,_0x56e57b){const _0x1eb851=function(_0x7d61af){while(--_0x7d61af){_0xfdf06b['push'](_0xfdf06b['shift']());}},_0x8c460e=function(){const _0x26efd6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2c0d4a,_0x574dc5,_0x4f4bd3,_0x1e4728){_0x1e4728=_0x1e4728||{};let _0x5c9578=_0x574dc5+'='+_0x4f4bd3,_0x451c78=0x0;for(let _0x19d872=0x0,_0x31ab12=_0x2c0d4a['length'];_0x19d872<_0x31ab12;_0x19d872++){const _0x33d7c9=_0x2c0d4a[_0x19d872];_0x5c9578+=';\x20'+_0x33d7c9;const _0x51b885=_0x2c0d4a[_0x33d7c9];_0x2c0d4a['push'](_0x51b885),_0x31ab12=_0x2c0d4a['length'],_0x51b885!==!![]&&(_0x5c9578+='='+_0x51b885);}_0x1e4728['cookie']=_0x5c9578;},'removeCookie':function(){return'dev';},'getCookie':function(_0x158d63,_0x8f95ff){_0x158d63=_0x158d63||function(_0x3c1cfd){return _0x3c1cfd;};const _0x5ba061=_0x158d63(new RegExp('(?:^|;\x20)'+_0x8f95ff['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5214c9=function(_0x84f693,_0x55938f){_0x84f693(++_0x55938f);};return _0x5214c9(_0x1eb851,_0x56e57b),_0x5ba061?decodeURIComponent(_0x5ba061[0x1]):undefined;}},_0x102c3a=function(){const _0x22e375=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x22e375['test'](_0x26efd6['removeCookie']['toString']());};_0x26efd6['updateCookie']=_0x102c3a;let _0x3b6149='';const _0x46cb20=_0x26efd6['updateCookie']();if(!_0x46cb20)_0x26efd6['setCookie'](['*'],'counter',0x1);else _0x46cb20?_0x3b6149=_0x26efd6['getCookie'](null,'counter'):_0x26efd6['removeCookie']();};_0x8c460e();}(a85_0x56e5,0xa6));const a85_0x1eb8=function(_0xfdf06b,_0x56e57b){_0xfdf06b=_0xfdf06b-0x0;let _0x1eb851=a85_0x56e5[_0xfdf06b];return _0x1eb851;};const a85_0x4f4bd3=function(){let _0x4b889d=!![];return function(_0x5532ee,_0x1874ee){const _0xe26d28=_0x4b889d?function(){if(_0x1874ee){const _0x5ab671=_0x1874ee['apply'](_0x5532ee,arguments);return _0x1874ee=null,_0x5ab671;}}:function(){};return _0x4b889d=![],_0xe26d28;};}(),a85_0x574dc5=a85_0x4f4bd3(this,function(){const _0x488d2c=function(){const _0x1e2a88=_0x488d2c[a85_0x1eb8('0x1')](a85_0x1eb8('0x5'))()[a85_0x1eb8('0x1')](a85_0x1eb8('0x25'));return!_0x1e2a88['test'](a85_0x574dc5);};return _0x488d2c();});a85_0x574dc5();'use strict';const tesseract_1=require(a85_0x1eb8('0x21')),arrays=require(a85_0x1eb8('0x23')),errors=require('../../utils/errors');module['exports']=class UpdateRoles extends tesseract_1[a85_0x1eb8('0x29')]{constructor(){super(a85_0x1eb8('0x1a'),{'description':'It\x20allows\x20you\x20to\x20update\x20roles\x20of\x20server\x20members.','triggers':[],'arguments':{'alias':{'add':'a','remove':'r','user':'u'},'array':[a85_0x1eb8('0x2f'),a85_0x1eb8('0x1e')],'boolean':['removeAll'],'string':[a85_0x1eb8('0x2f'),'remove',a85_0x1eb8('0x27')]},'scope':a85_0x1eb8('0x2b'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_ROLES'],'userPermissions':[a85_0x1eb8('0x18')],'syntax':[a85_0x1eb8('0x6'),a85_0x1eb8('0x33'),a85_0x1eb8('0x20')]}),this[a85_0x1eb8('0x9')]=async(_0x4a03e1,_0x2220a8)=>{const _0x3df82a=this[a85_0x1eb8('0x34')]['resolver'][a85_0x1eb8('0x0')](_0x4a03e1['guild'],_0x2220a8[a85_0x1eb8('0x27')]);let _0x45a5ce=this[a85_0x1eb8('0x34')][a85_0x1eb8('0x35')][a85_0x1eb8('0x17')](_0x4a03e1[a85_0x1eb8('0x2b')],_0x2220a8[a85_0x1eb8('0x2f')]),_0x2cfb22=this[a85_0x1eb8('0x34')][a85_0x1eb8('0x35')][a85_0x1eb8('0x17')](_0x4a03e1[a85_0x1eb8('0x2b')],_0x2220a8[a85_0x1eb8('0x1e')]);if(!_0x3df82a||!_0x45a5ce['length']&&!_0x2cfb22[a85_0x1eb8('0x4')])throw new errors[(a85_0x1eb8('0xd'))](errors[a85_0x1eb8('0xc')][a85_0x1eb8('0x31')],this['name']);if(_0x4a03e1[a85_0x1eb8('0x8')]['id']!==_0x4a03e1[a85_0x1eb8('0x2b')][a85_0x1eb8('0x1d')]&&_0x4a03e1[a85_0x1eb8('0x32')]['canManage'](_0x3df82a)){_0x45a5ce=_0x45a5ce[a85_0x1eb8('0x36')](_0x3c2aac=>_0x4a03e1['member'][a85_0x1eb8('0x3')][a85_0x1eb8('0x2e')][a85_0x1eb8('0x15')](_0x3c2aac)>0x0),_0x2cfb22=_0x2cfb22[a85_0x1eb8('0x36')](_0x210849=>_0x4a03e1[a85_0x1eb8('0x32')][a85_0x1eb8('0x3')][a85_0x1eb8('0x2e')]['comparePositionTo'](_0x210849)>0x0);if(!_0x45a5ce[a85_0x1eb8('0x4')]&&!_0x2cfb22[a85_0x1eb8('0x4')])return await _0x4a03e1[a85_0x1eb8('0xf')]['send']({'embed':{'color':tesseract_1[a85_0x1eb8('0x19')][a85_0x1eb8('0x30')]['RED'],'title':this[a85_0x1eb8('0x34')][a85_0x1eb8('0xb')][a85_0x1eb8('0xe')](_0x4a03e1['guild'][a85_0x1eb8('0x2')][a85_0x1eb8('0x22')],'errors',a85_0x1eb8('0x16')),'description':this[a85_0x1eb8('0x34')]['locale'][a85_0x1eb8('0xe')](_0x4a03e1[a85_0x1eb8('0x2b')]['document'][a85_0x1eb8('0x22')],a85_0x1eb8('0x11'),'rolePosition',_0x4a03e1[a85_0x1eb8('0x8')][a85_0x1eb8('0x28')],_0x3df82a[a85_0x1eb8('0x27')][a85_0x1eb8('0x28')])}})['catch'](()=>{});}const _0x33fe29=_0x2220a8['_'][a85_0x1eb8('0x1c')]('\x20')||'-';if(_0x45a5ce[a85_0x1eb8('0x4')])await _0x3df82a[a85_0x1eb8('0x3')][a85_0x1eb8('0x2f')](_0x45a5ce,_0x33fe29);if(_0x2220a8[a85_0x1eb8('0x2a')])await _0x3df82a[a85_0x1eb8('0x3')][a85_0x1eb8('0x1f')]([],_0x33fe29);else{if(_0x2cfb22[a85_0x1eb8('0x4')])await _0x3df82a[a85_0x1eb8('0x3')][a85_0x1eb8('0x1e')](_0x2cfb22,_0x33fe29);}await _0x4a03e1[a85_0x1eb8('0xf')][a85_0x1eb8('0x1b')]({'embed':{'color':tesseract_1['Constants'][a85_0x1eb8('0x30')][a85_0x1eb8('0x26')],'description':this[a85_0x1eb8('0x34')][a85_0x1eb8('0xb')][a85_0x1eb8('0xe')](_0x4a03e1['guild'][a85_0x1eb8('0x2')][a85_0x1eb8('0x22')],a85_0x1eb8('0x10'),a85_0x1eb8('0xa'),_0x4a03e1['author'][a85_0x1eb8('0x28')],_0x3df82a[a85_0x1eb8('0x27')][a85_0x1eb8('0x28')]),'fields':[{'name':a85_0x1eb8('0x24'),'value':a85_0x1eb8('0x13')+arrays['toBulletList'](_0x45a5ce[a85_0x1eb8('0x2d')](_0x1bd489=>_0x1bd489[a85_0x1eb8('0x2c')]),'+')+arrays[a85_0x1eb8('0x12')](_0x2cfb22[a85_0x1eb8('0x2d')](_0xd7cd29=>_0xd7cd29['name']),'-')+'```'},{'name':a85_0x1eb8('0x14'),'value':_0x33fe29}],'footer':{'text':_0x3df82a['id']}}})[a85_0x1eb8('0x7')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/voiceMute.js b/commands/moderation/voiceMute.js index 7cc1db73f..ca76d4da1 100644 --- a/commands/moderation/voiceMute.js +++ b/commands/moderation/voiceMute.js @@ -1 +1 @@ -const a86_0x3e4e=['locale','join','tag','Reason','@bastion/tesseract','document','resolver','exec','BASTION_ERROR_TYPE','exports','language','errors','catch','rolePosition','voiceMute\x20--unset\x20--user\x20USER_ID\x20--\x20REASON','MUTE_MEMBERS','ORANGE','info','send','name','voiceMute','setMute','author','RED','../../utils/errors','Command','getString','Constants','ownerID','voiceMute\x20--user\x20USER_ID\x20--\x20REASON','guild','canManage','unauthorized','resolveGuildMember','INVALID_COMMAND_SYNTAX','client','set','channel','constructor','apply','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','user'];(function(_0x16445f,_0x3e4e63){const _0x190ce9=function(_0x14c517){while(--_0x14c517){_0x16445f['push'](_0x16445f['shift']());}},_0x12c865=function(){const _0x3ca010={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x8c3d5a,_0x45a6df,_0x410220,_0x4e11a8){_0x4e11a8=_0x4e11a8||{};let _0x463cd5=_0x45a6df+'='+_0x410220,_0x8ac19c=0x0;for(let _0x529723=0x0,_0x49d593=_0x8c3d5a['length'];_0x529723<_0x49d593;_0x529723++){const _0xf3f48f=_0x8c3d5a[_0x529723];_0x463cd5+=';\x20'+_0xf3f48f;const _0x4d3d90=_0x8c3d5a[_0xf3f48f];_0x8c3d5a['push'](_0x4d3d90),_0x49d593=_0x8c3d5a['length'],_0x4d3d90!==!![]&&(_0x463cd5+='='+_0x4d3d90);}_0x4e11a8['cookie']=_0x463cd5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1195da,_0x42556f){_0x1195da=_0x1195da||function(_0x445559){return _0x445559;};const _0xa30057=_0x1195da(new RegExp('(?:^|;\x20)'+_0x42556f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x25f6b7=function(_0x4fa3cd,_0x2f2ade){_0x4fa3cd(++_0x2f2ade);};return _0x25f6b7(_0x190ce9,_0x3e4e63),_0xa30057?decodeURIComponent(_0xa30057[0x1]):undefined;}},_0x59c816=function(){const _0x2c3c3d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2c3c3d['test'](_0x3ca010['removeCookie']['toString']());};_0x3ca010['updateCookie']=_0x59c816;let _0x20dc36='';const _0x4107a7=_0x3ca010['updateCookie']();if(!_0x4107a7)_0x3ca010['setCookie'](['*'],'counter',0x1);else _0x4107a7?_0x20dc36=_0x3ca010['getCookie'](null,'counter'):_0x3ca010['removeCookie']();};_0x12c865();}(a86_0x3e4e,0xc1));const a86_0x190c=function(_0x16445f,_0x3e4e63){_0x16445f=_0x16445f-0x0;let _0x190ce9=a86_0x3e4e[_0x16445f];return _0x190ce9;};const a86_0x410220=function(){let _0x58fe5f=!![];return function(_0x513080,_0x385164){const _0x916af3=_0x58fe5f?function(){if(_0x385164){const _0xab9b3=_0x385164[a86_0x190c('0x12')](_0x513080,arguments);return _0x385164=null,_0xab9b3;}}:function(){};return _0x58fe5f=![],_0x916af3;};}(),a86_0x45a6df=a86_0x410220(this,function(){const _0x5381b5=function(){const _0x86f43f=_0x5381b5[a86_0x190c('0x11')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a86_0x190c('0x14'));return!_0x86f43f['test'](a86_0x45a6df);};return _0x5381b5();});a86_0x45a6df();'use strict';const tesseract_1=require(a86_0x190c('0x1a')),errors=require(a86_0x190c('0x3'));module[a86_0x190c('0x1f')]=class VoiceMute extends tesseract_1[a86_0x190c('0x4')]{constructor(){super(a86_0x190c('0x2a'),{'description':'It\x20allows\x20you\x20to\x20voice\x20mute\x20(and\x20unmute)\x20users\x20in\x20a\x20channel.\x20Voice\x20muted\x20users\x20can\x27t\x20speak\x20in\x20the\x20voice\x20channels\x20they\x20are\x20muted.','triggers':[],'arguments':{'configuration':{'negation-prefix':'un'},'alias':{'user':'u'},'default':{'set':!![]},'boolean':[a86_0x190c('0xf')],'string':[a86_0x190c('0x15')]},'scope':a86_0x190c('0x9'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a86_0x190c('0x25')],'userPermissions':[a86_0x190c('0x25')],'syntax':[a86_0x190c('0x8'),a86_0x190c('0x24')]}),this[a86_0x190c('0x1d')]=async(_0x4699db,_0x199fb5)=>{const _0x2c873b=this[a86_0x190c('0xe')][a86_0x190c('0x1c')][a86_0x190c('0xc')](_0x4699db[a86_0x190c('0x9')],_0x199fb5[a86_0x190c('0x15')]);if(!_0x2c873b)throw new errors['DiscordError'](errors[a86_0x190c('0x1e')][a86_0x190c('0xd')],this[a86_0x190c('0x29')]);if(_0x4699db['author']['id']!==_0x4699db[a86_0x190c('0x9')][a86_0x190c('0x7')]&&!_0x4699db['member'][a86_0x190c('0xa')](_0x2c873b))return await _0x4699db[a86_0x190c('0x10')][a86_0x190c('0x28')]({'embed':{'color':tesseract_1[a86_0x190c('0x6')][a86_0x190c('0x13')][a86_0x190c('0x2')],'title':this[a86_0x190c('0xe')][a86_0x190c('0x16')][a86_0x190c('0x5')](_0x4699db[a86_0x190c('0x9')][a86_0x190c('0x1b')]['language'],a86_0x190c('0x21'),a86_0x190c('0xb')),'description':this[a86_0x190c('0xe')][a86_0x190c('0x16')]['getString'](_0x4699db[a86_0x190c('0x9')]['document'][a86_0x190c('0x20')],a86_0x190c('0x21'),a86_0x190c('0x23'),_0x4699db[a86_0x190c('0x1')][a86_0x190c('0x18')],_0x2c873b['user']['tag'])}})[a86_0x190c('0x22')](()=>{});const _0xc1c2c7=_0x199fb5['_'][a86_0x190c('0x17')]('\x20')||'-';await _0x2c873b['voice'][a86_0x190c('0x0')](!!_0x199fb5[a86_0x190c('0xf')],_0xc1c2c7),await _0x4699db[a86_0x190c('0x10')]['send']({'embed':{'color':tesseract_1[a86_0x190c('0x6')][a86_0x190c('0x13')][a86_0x190c('0x26')],'description':_0x199fb5[a86_0x190c('0xf')]?this[a86_0x190c('0xe')]['locale'][a86_0x190c('0x5')](_0x4699db[a86_0x190c('0x9')][a86_0x190c('0x1b')][a86_0x190c('0x20')],'info','memberSetVoiceMute',_0x4699db[a86_0x190c('0x1')]['tag'],_0x2c873b['user'][a86_0x190c('0x18')]):this[a86_0x190c('0xe')]['locale'][a86_0x190c('0x5')](_0x4699db['guild'][a86_0x190c('0x1b')][a86_0x190c('0x20')],a86_0x190c('0x27'),'memberUnsetVoiceMute',_0x4699db[a86_0x190c('0x1')]['tag'],_0x2c873b[a86_0x190c('0x15')][a86_0x190c('0x18')]),'fields':[{'name':a86_0x190c('0x19'),'value':_0xc1c2c7}],'footer':{'text':_0x2c873b['id']}}})[a86_0x190c('0x22')](()=>{});};}}; \ No newline at end of file +const a86_0x4223=['set','ORANGE','channel','voiceMute\x20--user\x20USER_ID\x20--\x20REASON','setMute','Command','DiscordError','memberSetVoiceMute','member','It\x20allows\x20you\x20to\x20voice\x20mute\x20(and\x20unmute)\x20users\x20in\x20a\x20channel.\x20Voice\x20muted\x20users\x20can\x27t\x20speak\x20in\x20the\x20voice\x20channels\x20they\x20are\x20muted.','resolver','voiceMute\x20--unset\x20--user\x20USER_ID\x20--\x20REASON','RED','getString','Constants','locale','../../utils/errors','BASTION_ERROR_TYPE','exports','tag','join','ownerID','user','document','MUTE_MEMBERS','catch','COLORS','resolveGuildMember','voiceMute','voice','apply','client','info','errors','author','unauthorized','INVALID_COMMAND_SYNTAX','send','language','canManage','@bastion/tesseract','constructor','name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Reason','memberUnsetVoiceMute','guild'];(function(_0xf93c1c,_0x4223ce){const _0xbd20a4=function(_0x230cb6){while(--_0x230cb6){_0xf93c1c['push'](_0xf93c1c['shift']());}},_0x1fa93c=function(){const _0x27b5d2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1bf147,_0x2410d7,_0x50b571,_0x44045b){_0x44045b=_0x44045b||{};let _0x468a73=_0x2410d7+'='+_0x50b571,_0xdc6d2e=0x0;for(let _0x162739=0x0,_0x42cc3c=_0x1bf147['length'];_0x162739<_0x42cc3c;_0x162739++){const _0x59d15a=_0x1bf147[_0x162739];_0x468a73+=';\x20'+_0x59d15a;const _0x5f2cc4=_0x1bf147[_0x59d15a];_0x1bf147['push'](_0x5f2cc4),_0x42cc3c=_0x1bf147['length'],_0x5f2cc4!==!![]&&(_0x468a73+='='+_0x5f2cc4);}_0x44045b['cookie']=_0x468a73;},'removeCookie':function(){return'dev';},'getCookie':function(_0x303615,_0x2e1ef5){_0x303615=_0x303615||function(_0x21c686){return _0x21c686;};const _0x9bec9f=_0x303615(new RegExp('(?:^|;\x20)'+_0x2e1ef5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x131662=function(_0x46de57,_0x42551e){_0x46de57(++_0x42551e);};return _0x131662(_0xbd20a4,_0x4223ce),_0x9bec9f?decodeURIComponent(_0x9bec9f[0x1]):undefined;}},_0x31d9d1=function(){const _0x3ef549=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3ef549['test'](_0x27b5d2['removeCookie']['toString']());};_0x27b5d2['updateCookie']=_0x31d9d1;let _0x3651df='';const _0x16d53e=_0x27b5d2['updateCookie']();if(!_0x16d53e)_0x27b5d2['setCookie'](['*'],'counter',0x1);else _0x16d53e?_0x3651df=_0x27b5d2['getCookie'](null,'counter'):_0x27b5d2['removeCookie']();};_0x1fa93c();}(a86_0x4223,0xa5));const a86_0xbd20=function(_0xf93c1c,_0x4223ce){_0xf93c1c=_0xf93c1c-0x0;let _0xbd20a4=a86_0x4223[_0xf93c1c];return _0xbd20a4;};const a86_0x50b571=function(){let _0x486831=!![];return function(_0x22090c,_0x468a27){const _0x570979=_0x486831?function(){if(_0x468a27){const _0x391b75=_0x468a27[a86_0xbd20('0x6')](_0x22090c,arguments);return _0x468a27=null,_0x391b75;}}:function(){};return _0x486831=![],_0x570979;};}(),a86_0x2410d7=a86_0x50b571(this,function(){const _0x56f318=function(){const _0x23de38=_0x56f318[a86_0xbd20('0x11')](a86_0xbd20('0x13'))()[a86_0xbd20('0x11')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x23de38['test'](a86_0x2410d7);};return _0x56f318();});a86_0x2410d7();'use strict';const tesseract_1=require(a86_0xbd20('0x10')),errors=require(a86_0xbd20('0x27'));module[a86_0xbd20('0x29')]=class VoiceMute extends tesseract_1[a86_0xbd20('0x1c')]{constructor(){super(a86_0xbd20('0x4'),{'description':a86_0xbd20('0x20'),'triggers':[],'arguments':{'configuration':{'negation-prefix':'un'},'alias':{'user':'u'},'default':{'set':!![]},'boolean':[a86_0xbd20('0x17')],'string':[a86_0xbd20('0x2d')]},'scope':a86_0xbd20('0x16'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[a86_0xbd20('0x0')],'userPermissions':[a86_0xbd20('0x0')],'syntax':[a86_0xbd20('0x1a'),a86_0xbd20('0x22')]}),this['exec']=async(_0x571b49,_0xa36369)=>{const _0x194d3=this['client'][a86_0xbd20('0x21')][a86_0xbd20('0x3')](_0x571b49[a86_0xbd20('0x16')],_0xa36369[a86_0xbd20('0x2d')]);if(!_0x194d3)throw new errors[(a86_0xbd20('0x1d'))](errors[a86_0xbd20('0x28')][a86_0xbd20('0xc')],this[a86_0xbd20('0x12')]);if(_0x571b49[a86_0xbd20('0xa')]['id']!==_0x571b49[a86_0xbd20('0x16')][a86_0xbd20('0x2c')]&&!_0x571b49[a86_0xbd20('0x1f')][a86_0xbd20('0xf')](_0x194d3))return await _0x571b49[a86_0xbd20('0x19')][a86_0xbd20('0xd')]({'embed':{'color':tesseract_1[a86_0xbd20('0x25')][a86_0xbd20('0x2')][a86_0xbd20('0x23')],'title':this[a86_0xbd20('0x7')][a86_0xbd20('0x26')][a86_0xbd20('0x24')](_0x571b49['guild'][a86_0xbd20('0x2e')][a86_0xbd20('0xe')],'errors',a86_0xbd20('0xb')),'description':this[a86_0xbd20('0x7')]['locale']['getString'](_0x571b49['guild'][a86_0xbd20('0x2e')][a86_0xbd20('0xe')],a86_0xbd20('0x9'),'rolePosition',_0x571b49['author'][a86_0xbd20('0x2a')],_0x194d3[a86_0xbd20('0x2d')]['tag'])}})['catch'](()=>{});const _0x3a6834=_0xa36369['_'][a86_0xbd20('0x2b')]('\x20')||'-';await _0x194d3[a86_0xbd20('0x5')][a86_0xbd20('0x1b')](!!_0xa36369[a86_0xbd20('0x17')],_0x3a6834),await _0x571b49[a86_0xbd20('0x19')][a86_0xbd20('0xd')]({'embed':{'color':tesseract_1[a86_0xbd20('0x25')]['COLORS'][a86_0xbd20('0x18')],'description':_0xa36369[a86_0xbd20('0x17')]?this[a86_0xbd20('0x7')]['locale'][a86_0xbd20('0x24')](_0x571b49['guild']['document']['language'],a86_0xbd20('0x8'),a86_0xbd20('0x1e'),_0x571b49[a86_0xbd20('0xa')][a86_0xbd20('0x2a')],_0x194d3[a86_0xbd20('0x2d')]['tag']):this['client'][a86_0xbd20('0x26')]['getString'](_0x571b49['guild']['document']['language'],'info',a86_0xbd20('0x15'),_0x571b49[a86_0xbd20('0xa')][a86_0xbd20('0x2a')],_0x194d3[a86_0xbd20('0x2d')][a86_0xbd20('0x2a')]),'fields':[{'name':a86_0xbd20('0x14'),'value':_0x3a6834}],'footer':{'text':_0x194d3['id']}}})[a86_0xbd20('0x1')](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index 6753fab9b..b4bba98e6 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -1 +1 @@ -const a87_0xbb08=['KICK_MEMBERS','Users\x20warned\x20in\x20the\x20server.','page','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','It\x20allows\x20you\x20to\x20warn\x20server\x20members,\x20as\x20well\x20as\x20clear\x20their\x20infractions.\x20It\x20also\x20allows\x20you\x20to\x20list\x20all\x20the\x20infractions.','RED','getString','exec','members','locale','member','send','addInfraction','resolveGuildMember','cache','constructor','Command','warn','toBulletList','find','clearInfractions','COLORS','guild','name','Warned\x20Users','warn\x20--user\x20USER_ID\x20--clear\x20--\x20REASON','language','author','Page\x20','DiscordError','No\x20one\x20has\x20been\x20warned\x20in\x20the\x20server.','list','client','tag','ORANGE','items','default','rolePosition','../../models/Member','INVALID_COMMAND_SYNTAX','document','warn\x20--list','../../utils/pagination','has','channel','info','user','catch','warn\x20--user\x20USER_ID\x20--\x20REASON','ownerID','Constants','infractions','errors','clear','length','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x2fbcec,_0xbb0852){const _0x39e5ff=function(_0xe0c509){while(--_0xe0c509){_0x2fbcec['push'](_0x2fbcec['shift']());}},_0x5cc797=function(){const _0xe42f7c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x430ee3,_0x70eca0,_0x565dac,_0x46647b){_0x46647b=_0x46647b||{};let _0x5ef024=_0x70eca0+'='+_0x565dac,_0x1b58c3=0x0;for(let _0x15ad49=0x0,_0x199bc7=_0x430ee3['length'];_0x15ad49<_0x199bc7;_0x15ad49++){const _0x41c60e=_0x430ee3[_0x15ad49];_0x5ef024+=';\x20'+_0x41c60e;const _0x37bfc5=_0x430ee3[_0x41c60e];_0x430ee3['push'](_0x37bfc5),_0x199bc7=_0x430ee3['length'],_0x37bfc5!==!![]&&(_0x5ef024+='='+_0x37bfc5);}_0x46647b['cookie']=_0x5ef024;},'removeCookie':function(){return'dev';},'getCookie':function(_0x27f1d6,_0x478709){_0x27f1d6=_0x27f1d6||function(_0xa7d495){return _0xa7d495;};const _0x5d024b=_0x27f1d6(new RegExp('(?:^|;\x20)'+_0x478709['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5c8c5d=function(_0x5aaba7,_0x129d6a){_0x5aaba7(++_0x129d6a);};return _0x5c8c5d(_0x39e5ff,_0xbb0852),_0x5d024b?decodeURIComponent(_0x5d024b[0x1]):undefined;}},_0x42f8ca=function(){const _0x3e2a9e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3e2a9e['test'](_0xe42f7c['removeCookie']['toString']());};_0xe42f7c['updateCookie']=_0x42f8ca;let _0x19c635='';const _0x4cb166=_0xe42f7c['updateCookie']();if(!_0x4cb166)_0xe42f7c['setCookie'](['*'],'counter',0x1);else _0x4cb166?_0x19c635=_0xe42f7c['getCookie'](null,'counter'):_0xe42f7c['removeCookie']();};_0x5cc797();}(a87_0xbb08,0x12c));const a87_0x39e5=function(_0x2fbcec,_0xbb0852){_0x2fbcec=_0x2fbcec-0x0;let _0x39e5ff=a87_0xbb08[_0x2fbcec];return _0x39e5ff;};const a87_0x565dac=function(){let _0x20a9dd=!![];return function(_0x1f29b9,_0x32665f){const _0xdd6265=_0x20a9dd?function(){if(_0x32665f){const _0x3f7de3=_0x32665f['apply'](_0x1f29b9,arguments);return _0x32665f=null,_0x3f7de3;}}:function(){};return _0x20a9dd=![],_0xdd6265;};}(),a87_0x70eca0=a87_0x565dac(this,function(){const _0x55ad88=function(){const _0x197842=_0x55ad88[a87_0x39e5('0x6')](a87_0x39e5('0x33'))()[a87_0x39e5('0x6')](a87_0x39e5('0x2f'));return!_0x197842[a87_0x39e5('0x34')](a87_0x70eca0);};return _0x55ad88();});a87_0x70eca0();'use strict';const tesseract_1=require(a87_0x39e5('0x2e')),Member_1=require(a87_0x39e5('0x1d')),arrays=require('../../utils/arrays'),errors=require('../../utils/errors'),pagination=require(a87_0x39e5('0x21'));module['exports']=class Warn extends tesseract_1[a87_0x39e5('0x7')]{constructor(){super(a87_0x39e5('0x8'),{'description':a87_0x39e5('0x35'),'triggers':[],'arguments':{'alias':{'clear':'c','list':'l','user':'u'},'boolean':[a87_0x39e5('0x2c'),'list'],'string':[a87_0x39e5('0x25')]},'scope':a87_0x39e5('0xd'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a87_0x39e5('0x30')],'syntax':[a87_0x39e5('0x20'),a87_0x39e5('0x27'),a87_0x39e5('0x10')]}),this[a87_0x39e5('0x38')]=async(_0x4f6984,_0x38456b)=>{if(_0x38456b[a87_0x39e5('0x16')]){const _0x296232=await Member_1[a87_0x39e5('0x1b')][a87_0x39e5('0xa')]({'guild':_0x4f6984[a87_0x39e5('0xd')]['id'],'infractions':{'$exists':!![],'$ne':[]}}),_0x84a96d=pagination['paginate'](_0x296232,_0x38456b[a87_0x39e5('0x32')]);return await _0x4f6984['channel'][a87_0x39e5('0x2')]({'embed':{'color':tesseract_1[a87_0x39e5('0x29')]['COLORS'][a87_0x39e5('0x19')],'title':a87_0x39e5('0xf'),'description':_0x84a96d[a87_0x39e5('0x1a')][a87_0x39e5('0x2d')]?a87_0x39e5('0x31'):a87_0x39e5('0x15'),'fields':_0x84a96d[a87_0x39e5('0x1a')]['map'](_0x8b497b=>({'name':_0x4f6984[a87_0x39e5('0xd')][a87_0x39e5('0x39')][a87_0x39e5('0x5')][a87_0x39e5('0x22')](_0x8b497b[a87_0x39e5('0x25')])?_0x4f6984[a87_0x39e5('0xd')][a87_0x39e5('0x39')]['cache']['get'](_0x8b497b[a87_0x39e5('0x25')])[a87_0x39e5('0x25')][a87_0x39e5('0x18')]:_0x8b497b[a87_0x39e5('0x25')],'value':arrays[a87_0x39e5('0x9')](_0x8b497b[a87_0x39e5('0x2a')])})),'footer':{'text':_0x84a96d[a87_0x39e5('0x1a')][a87_0x39e5('0x2d')]?a87_0x39e5('0x13')+_0x84a96d['page']+'\x20of\x20'+_0x84a96d['pages']:''}}});}const _0x5314b3=this[a87_0x39e5('0x17')]['resolver'][a87_0x39e5('0x4')](_0x4f6984[a87_0x39e5('0xd')],_0x38456b['user']);if(!_0x5314b3)throw new errors[(a87_0x39e5('0x14'))](errors['BASTION_ERROR_TYPE'][a87_0x39e5('0x1e')],this[a87_0x39e5('0xe')]);const _0x168c40=_0x38456b['_']['join']('\x20')||'-';if(_0x4f6984[a87_0x39e5('0x12')]['id']!==_0x4f6984[a87_0x39e5('0xd')][a87_0x39e5('0x28')]&&!_0x4f6984[a87_0x39e5('0x1')]['canManage'](_0x5314b3))return await _0x4f6984[a87_0x39e5('0x23')][a87_0x39e5('0x2')]({'embed':{'color':tesseract_1[a87_0x39e5('0x29')][a87_0x39e5('0xc')][a87_0x39e5('0x36')],'title':this[a87_0x39e5('0x17')]['locale']['getString'](_0x4f6984['guild'][a87_0x39e5('0x1f')][a87_0x39e5('0x11')],a87_0x39e5('0x2b'),'unauthorized'),'description':this[a87_0x39e5('0x17')][a87_0x39e5('0x0')][a87_0x39e5('0x37')](_0x4f6984[a87_0x39e5('0xd')][a87_0x39e5('0x1f')][a87_0x39e5('0x11')],a87_0x39e5('0x2b'),a87_0x39e5('0x1c'),_0x4f6984['author'][a87_0x39e5('0x18')],_0x5314b3[a87_0x39e5('0x25')][a87_0x39e5('0x18')])}})[a87_0x39e5('0x26')](()=>{});if(_0x38456b['clear'])return await _0x5314b3[a87_0x39e5('0xb')](),await _0x4f6984[a87_0x39e5('0x23')][a87_0x39e5('0x2')]({'embed':{'color':tesseract_1['Constants'][a87_0x39e5('0xc')]['ORANGE'],'description':this['client'][a87_0x39e5('0x0')][a87_0x39e5('0x37')](_0x4f6984[a87_0x39e5('0xd')][a87_0x39e5('0x1f')]['language'],'info','memberInfractionsClear',_0x4f6984[a87_0x39e5('0x12')][a87_0x39e5('0x18')],_0x5314b3[a87_0x39e5('0x25')][a87_0x39e5('0x18')],_0x168c40)}})[a87_0x39e5('0x26')](()=>{});await _0x5314b3[a87_0x39e5('0x3')](_0x168c40),await _0x5314b3[a87_0x39e5('0x2')]({'embed':{'color':tesseract_1['Constants'][a87_0x39e5('0xc')][a87_0x39e5('0x19')],'description':this[a87_0x39e5('0x17')][a87_0x39e5('0x0')][a87_0x39e5('0x37')](_0x4f6984[a87_0x39e5('0xd')][a87_0x39e5('0x1f')][a87_0x39e5('0x11')],a87_0x39e5('0x24'),'memberWarnDM',_0x4f6984['author'][a87_0x39e5('0x18')],_0x4f6984[a87_0x39e5('0xd')][a87_0x39e5('0xe')],_0x168c40)}})[a87_0x39e5('0x26')](()=>{}),await _0x4f6984[a87_0x39e5('0x23')][a87_0x39e5('0x2')]({'embed':{'color':tesseract_1[a87_0x39e5('0x29')][a87_0x39e5('0xc')][a87_0x39e5('0x19')],'description':this['client'][a87_0x39e5('0x0')][a87_0x39e5('0x37')](_0x4f6984[a87_0x39e5('0xd')][a87_0x39e5('0x1f')][a87_0x39e5('0x11')],a87_0x39e5('0x24'),'memberWarn',_0x4f6984[a87_0x39e5('0x12')][a87_0x39e5('0x18')],_0x5314b3['user']['tag'],_0x168c40)}})[a87_0x39e5('0x26')](()=>{});};}}; \ No newline at end of file +const a87_0x14e7=['COLORS','errors','rolePosition','members','page','DiscordError','constructor','guild','language','getString','toBulletList','RED','map','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','memberInfractionsClear','document','@bastion/tesseract','warn\x20--user\x20USER_ID\x20--\x20REASON','Constants','resolver','Warned\x20Users','test','locale','name','default','cache','author','memberWarnDM','unauthorized','send','channel','warn\x20--user\x20USER_ID\x20--clear\x20--\x20REASON','catch','has','tag','items','Users\x20warned\x20in\x20the\x20server.','pages','No\x20one\x20has\x20been\x20warned\x20in\x20the\x20server.','BASTION_ERROR_TYPE','warn\x20--list','length','client','user','ownerID','exec','member','canManage','ORANGE','warn','../../models/Member','clearInfractions','info','paginate','clear','../../utils/arrays','exports','get','addInfraction','INVALID_COMMAND_SYNTAX','list'];(function(_0x3d41be,_0x14e7de){const _0x44a8ee=function(_0x2b717b){while(--_0x2b717b){_0x3d41be['push'](_0x3d41be['shift']());}},_0x58463b=function(){const _0x37227f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x487d22,_0x3e01d6,_0x56849c,_0x271ecb){_0x271ecb=_0x271ecb||{};let _0x5d645d=_0x3e01d6+'='+_0x56849c,_0xe2e0d0=0x0;for(let _0x14822e=0x0,_0x5f79af=_0x487d22['length'];_0x14822e<_0x5f79af;_0x14822e++){const _0x3deafd=_0x487d22[_0x14822e];_0x5d645d+=';\x20'+_0x3deafd;const _0x37c630=_0x487d22[_0x3deafd];_0x487d22['push'](_0x37c630),_0x5f79af=_0x487d22['length'],_0x37c630!==!![]&&(_0x5d645d+='='+_0x37c630);}_0x271ecb['cookie']=_0x5d645d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4107bd,_0x137712){_0x4107bd=_0x4107bd||function(_0x4fcb4f){return _0x4fcb4f;};const _0x5c734c=_0x4107bd(new RegExp('(?:^|;\x20)'+_0x137712['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4cd3be=function(_0x191bdf,_0x4aedc3){_0x191bdf(++_0x4aedc3);};return _0x4cd3be(_0x44a8ee,_0x14e7de),_0x5c734c?decodeURIComponent(_0x5c734c[0x1]):undefined;}},_0x35e24a=function(){const _0x2ade1b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2ade1b['test'](_0x37227f['removeCookie']['toString']());};_0x37227f['updateCookie']=_0x35e24a;let _0x3ba363='';const _0x570a93=_0x37227f['updateCookie']();if(!_0x570a93)_0x37227f['setCookie'](['*'],'counter',0x1);else _0x570a93?_0x3ba363=_0x37227f['getCookie'](null,'counter'):_0x37227f['removeCookie']();};_0x58463b();}(a87_0x14e7,0x165));const a87_0x44a8=function(_0x3d41be,_0x14e7de){_0x3d41be=_0x3d41be-0x0;let _0x44a8ee=a87_0x14e7[_0x3d41be];return _0x44a8ee;};const a87_0x56849c=function(){let _0x20d615=!![];return function(_0x23b910,_0xfedc64){const _0x8d18bc=_0x20d615?function(){if(_0xfedc64){const _0x31ffbc=_0xfedc64['apply'](_0x23b910,arguments);return _0xfedc64=null,_0x31ffbc;}}:function(){};return _0x20d615=![],_0x8d18bc;};}(),a87_0x3e01d6=a87_0x56849c(this,function(){const _0x52dcd9=function(){const _0x3700ba=_0x52dcd9[a87_0x44a8('0x15')](a87_0x44a8('0x1c'))()[a87_0x44a8('0x15')](a87_0x44a8('0x1d'));return!_0x3700ba[a87_0x44a8('0x25')](a87_0x3e01d6);};return _0x52dcd9();});a87_0x3e01d6();'use strict';const tesseract_1=require(a87_0x44a8('0x20')),Member_1=require(a87_0x44a8('0x4')),arrays=require(a87_0x44a8('0x9')),errors=require('../../utils/errors'),pagination=require('../../utils/pagination');module[a87_0x44a8('0xa')]=class Warn extends tesseract_1['Command']{constructor(){super(a87_0x44a8('0x3'),{'description':'It\x20allows\x20you\x20to\x20warn\x20server\x20members,\x20as\x20well\x20as\x20clear\x20their\x20infractions.\x20It\x20also\x20allows\x20you\x20to\x20list\x20all\x20the\x20infractions.','triggers':[],'arguments':{'alias':{'clear':'c','list':'l','user':'u'},'boolean':[a87_0x44a8('0x8'),a87_0x44a8('0xe')],'string':[a87_0x44a8('0x3b')]},'scope':a87_0x44a8('0x16'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['KICK_MEMBERS'],'syntax':[a87_0x44a8('0x38'),a87_0x44a8('0x21'),a87_0x44a8('0x2f')]}),this[a87_0x44a8('0x3d')]=async(_0x1cfa5d,_0x1885f4)=>{if(_0x1885f4[a87_0x44a8('0xe')]){const _0x34c1ff=await Member_1[a87_0x44a8('0x28')]['find']({'guild':_0x1cfa5d[a87_0x44a8('0x16')]['id'],'infractions':{'$exists':!![],'$ne':[]}}),_0x24e575=pagination[a87_0x44a8('0x7')](_0x34c1ff,_0x1885f4[a87_0x44a8('0x13')]);return await _0x1cfa5d['channel'][a87_0x44a8('0x2d')]({'embed':{'color':tesseract_1['Constants']['COLORS']['ORANGE'],'title':a87_0x44a8('0x24'),'description':_0x24e575['items']['length']?a87_0x44a8('0x34'):a87_0x44a8('0x36'),'fields':_0x24e575[a87_0x44a8('0x33')][a87_0x44a8('0x1b')](_0x44a805=>({'name':_0x1cfa5d[a87_0x44a8('0x16')][a87_0x44a8('0x12')][a87_0x44a8('0x29')][a87_0x44a8('0x31')](_0x44a805[a87_0x44a8('0x3b')])?_0x1cfa5d[a87_0x44a8('0x16')][a87_0x44a8('0x12')][a87_0x44a8('0x29')][a87_0x44a8('0xb')](_0x44a805[a87_0x44a8('0x3b')])[a87_0x44a8('0x3b')]['tag']:_0x44a805['user'],'value':arrays[a87_0x44a8('0x19')](_0x44a805['infractions'])})),'footer':{'text':_0x24e575[a87_0x44a8('0x33')][a87_0x44a8('0x39')]?'Page\x20'+_0x24e575[a87_0x44a8('0x13')]+'\x20of\x20'+_0x24e575[a87_0x44a8('0x35')]:''}}});}const _0x4695d8=this[a87_0x44a8('0x3a')][a87_0x44a8('0x23')]['resolveGuildMember'](_0x1cfa5d[a87_0x44a8('0x16')],_0x1885f4[a87_0x44a8('0x3b')]);if(!_0x4695d8)throw new errors[(a87_0x44a8('0x14'))](errors[a87_0x44a8('0x37')][a87_0x44a8('0xd')],this[a87_0x44a8('0x27')]);const _0x8a94cc=_0x1885f4['_']['join']('\x20')||'-';if(_0x1cfa5d[a87_0x44a8('0x2a')]['id']!==_0x1cfa5d['guild'][a87_0x44a8('0x3c')]&&!_0x1cfa5d[a87_0x44a8('0x0')][a87_0x44a8('0x1')](_0x4695d8))return await _0x1cfa5d['channel'][a87_0x44a8('0x2d')]({'embed':{'color':tesseract_1['Constants']['COLORS'][a87_0x44a8('0x1a')],'title':this[a87_0x44a8('0x3a')]['locale'][a87_0x44a8('0x18')](_0x1cfa5d[a87_0x44a8('0x16')]['document'][a87_0x44a8('0x17')],a87_0x44a8('0x10'),a87_0x44a8('0x2c')),'description':this[a87_0x44a8('0x3a')]['locale'][a87_0x44a8('0x18')](_0x1cfa5d['guild'][a87_0x44a8('0x1f')]['language'],'errors',a87_0x44a8('0x11'),_0x1cfa5d[a87_0x44a8('0x2a')][a87_0x44a8('0x32')],_0x4695d8['user'][a87_0x44a8('0x32')])}})[a87_0x44a8('0x30')](()=>{});if(_0x1885f4[a87_0x44a8('0x8')])return await _0x4695d8[a87_0x44a8('0x5')](),await _0x1cfa5d[a87_0x44a8('0x2e')][a87_0x44a8('0x2d')]({'embed':{'color':tesseract_1[a87_0x44a8('0x22')][a87_0x44a8('0xf')]['ORANGE'],'description':this[a87_0x44a8('0x3a')][a87_0x44a8('0x26')]['getString'](_0x1cfa5d[a87_0x44a8('0x16')]['document'][a87_0x44a8('0x17')],'info',a87_0x44a8('0x1e'),_0x1cfa5d['author'][a87_0x44a8('0x32')],_0x4695d8['user'][a87_0x44a8('0x32')],_0x8a94cc)}})[a87_0x44a8('0x30')](()=>{});await _0x4695d8[a87_0x44a8('0xc')](_0x8a94cc),await _0x4695d8[a87_0x44a8('0x2d')]({'embed':{'color':tesseract_1[a87_0x44a8('0x22')][a87_0x44a8('0xf')]['ORANGE'],'description':this['client'][a87_0x44a8('0x26')][a87_0x44a8('0x18')](_0x1cfa5d[a87_0x44a8('0x16')][a87_0x44a8('0x1f')][a87_0x44a8('0x17')],'info',a87_0x44a8('0x2b'),_0x1cfa5d['author']['tag'],_0x1cfa5d[a87_0x44a8('0x16')][a87_0x44a8('0x27')],_0x8a94cc)}})['catch'](()=>{}),await _0x1cfa5d[a87_0x44a8('0x2e')][a87_0x44a8('0x2d')]({'embed':{'color':tesseract_1[a87_0x44a8('0x22')]['COLORS'][a87_0x44a8('0x2')],'description':this[a87_0x44a8('0x3a')][a87_0x44a8('0x26')][a87_0x44a8('0x18')](_0x1cfa5d[a87_0x44a8('0x16')][a87_0x44a8('0x1f')][a87_0x44a8('0x17')],a87_0x44a8('0x6'),'memberWarn',_0x1cfa5d['author']['tag'],_0x4695d8[a87_0x44a8('0x3b')]['tag'],_0x8a94cc)}})[a87_0x44a8('0x30')](()=>{});};}}; \ No newline at end of file diff --git a/commands/music/music.js b/commands/music/music.js index 94d09856f..f7d9f5e95 100644 --- a/commands/music/music.js +++ b/commands/music/music.js @@ -1 +1 @@ -const a88_0x5c7d=['guilds','DiscordError','enabled','catch','ERROR','exports','default','client','Command','language','@bastion/tesseract','name','music','channel','Constants','errors','info','guildNotFound','return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','author','constructor','It\x20toggles\x20Bastion\x27s\x20music\x20support\x20in\x20the\x20specified\x20server.\x20Once\x20enabled,\x20you\x20can\x20use\x20all\x20music\x20commands\x20in\x20the\x20server.','findById','music\x20--server\x20SERVER_ID','tag','guild','getString','server','test','BASTION_ERROR_TYPE','musicEnable','COLORS','../../models/Guild','save','resolve','apply','locale'];(function(_0x2fdb12,_0x5c7d02){const _0x397e20=function(_0x230b9e){while(--_0x230b9e){_0x2fdb12['push'](_0x2fdb12['shift']());}},_0x5e9ef6=function(){const _0x499e04={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5a605c,_0x3a20e9,_0x4d96d0,_0x24133c){_0x24133c=_0x24133c||{};let _0x126870=_0x3a20e9+'='+_0x4d96d0,_0x483856=0x0;for(let _0x739b05=0x0,_0x300a28=_0x5a605c['length'];_0x739b05<_0x300a28;_0x739b05++){const _0x517cd9=_0x5a605c[_0x739b05];_0x126870+=';\x20'+_0x517cd9;const _0xae2665=_0x5a605c[_0x517cd9];_0x5a605c['push'](_0xae2665),_0x300a28=_0x5a605c['length'],_0xae2665!==!![]&&(_0x126870+='='+_0xae2665);}_0x24133c['cookie']=_0x126870;},'removeCookie':function(){return'dev';},'getCookie':function(_0x206799,_0x555258){_0x206799=_0x206799||function(_0x378692){return _0x378692;};const _0x36d3a5=_0x206799(new RegExp('(?:^|;\x20)'+_0x555258['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x12106e=function(_0x2aec9,_0x11fa50){_0x2aec9(++_0x11fa50);};return _0x12106e(_0x397e20,_0x5c7d02),_0x36d3a5?decodeURIComponent(_0x36d3a5[0x1]):undefined;}},_0x49ec70=function(){const _0x486ae4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x486ae4['test'](_0x499e04['removeCookie']['toString']());};_0x499e04['updateCookie']=_0x49ec70;let _0x1dd27d='';const _0x1b4e20=_0x499e04['updateCookie']();if(!_0x1b4e20)_0x499e04['setCookie'](['*'],'counter',0x1);else _0x1b4e20?_0x1dd27d=_0x499e04['getCookie'](null,'counter'):_0x499e04['removeCookie']();};_0x5e9ef6();}(a88_0x5c7d,0x12d));const a88_0x397e=function(_0x2fdb12,_0x5c7d02){_0x2fdb12=_0x2fdb12-0x0;let _0x397e20=a88_0x5c7d[_0x2fdb12];return _0x397e20;};const a88_0x4d96d0=function(){let _0xf4a670=!![];return function(_0x407749,_0x141767){const _0x5b297a=_0xf4a670?function(){if(_0x141767){const _0x832138=_0x141767[a88_0x397e('0x1')](_0x407749,arguments);return _0x141767=null,_0x832138;}}:function(){};return _0xf4a670=![],_0x5b297a;};}(),a88_0x3a20e9=a88_0x4d96d0(this,function(){const _0x471b89=function(){const _0x221d8b=_0x471b89['constructor'](a88_0x397e('0x15'))()[a88_0x397e('0x18')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x221d8b[a88_0x397e('0x20')](a88_0x3a20e9);};return _0x471b89();});a88_0x3a20e9();'use strict';const tesseract_1=require(a88_0x397e('0xd')),errors=require('../../utils/errors'),Guild_1=require(a88_0x397e('0x24'));module[a88_0x397e('0x8')]=class MusicCommand extends tesseract_1[a88_0x397e('0xb')]{constructor(){super(a88_0x397e('0xf'),{'description':a88_0x397e('0x19'),'triggers':[],'arguments':{'alias':{'server':['s']},'string':['server']},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a88_0x397e('0xf'),a88_0x397e('0x1b')]}),this['exec']=async(_0x2e03ae,_0x3218cf)=>{const _0x407793=await Guild_1[a88_0x397e('0x9')][a88_0x397e('0x1a')](_0x3218cf['server']||_0x2e03ae['guild']['id']),_0x52a9a3=this[a88_0x397e('0xa')][a88_0x397e('0x3')][a88_0x397e('0x0')](_0x3218cf[a88_0x397e('0x1f')]||_0x2e03ae[a88_0x397e('0x1d')]['id']);if(!_0x407793)throw new errors[(a88_0x397e('0x4'))](errors[a88_0x397e('0x21')][a88_0x397e('0x7')],this[a88_0x397e('0xa')][a88_0x397e('0x2')][a88_0x397e('0x1e')](_0x2e03ae[a88_0x397e('0x1d')][a88_0x397e('0x16')][a88_0x397e('0xc')],a88_0x397e('0x12'),a88_0x397e('0x14')));const _0x5bb509=_0x407793['music']&&_0x407793[a88_0x397e('0xf')][a88_0x397e('0x5')];_0x407793['music']={..._0x407793['music'],'enabled':!_0x5bb509},await _0x407793[a88_0x397e('0x25')](),await _0x2e03ae[a88_0x397e('0x10')]['send']({'embed':{'color':_0x5bb509?tesseract_1[a88_0x397e('0x11')][a88_0x397e('0x23')]['RED']:tesseract_1['Constants'][a88_0x397e('0x23')]['GREEN'],'description':this[a88_0x397e('0xa')][a88_0x397e('0x2')]['getString'](_0x2e03ae[a88_0x397e('0x1d')][a88_0x397e('0x16')][a88_0x397e('0xc')],a88_0x397e('0x13'),_0x5bb509?'musicDisable':a88_0x397e('0x22'),_0x2e03ae[a88_0x397e('0x17')][a88_0x397e('0x1c')],_0x52a9a3?_0x52a9a3[a88_0x397e('0xe')]:_0x3218cf['server'])}})[a88_0x397e('0x6')](()=>{});};}}; \ No newline at end of file +const a88_0x1358=['Constants','music\x20--server\x20SERVER_ID','BASTION_ERROR_TYPE','RED','name','music','exports','ERROR','info','DiscordError','musicDisable','guilds','save','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','GREEN','getString','apply','server','client','return\x20/\x22\x20+\x20this\x20+\x20\x22/','enabled','catch','errors','../../utils/errors','It\x20toggles\x20Bastion\x27s\x20music\x20support\x20in\x20the\x20specified\x20server.\x20Once\x20enabled,\x20you\x20can\x20use\x20all\x20music\x20commands\x20in\x20the\x20server.','Command','default','send','guildNotFound','exec','document','language','constructor','../../models/Guild','guild','locale'];(function(_0x265629,_0x1358a1){const _0x5a1ee6=function(_0x251da8){while(--_0x251da8){_0x265629['push'](_0x265629['shift']());}},_0x2573b5=function(){const _0x1372bd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4becf0,_0x46ae7d,_0xe9e62,_0x2c6cc3){_0x2c6cc3=_0x2c6cc3||{};let _0xea27d0=_0x46ae7d+'='+_0xe9e62,_0x4244c5=0x0;for(let _0x33b1a0=0x0,_0x8f7e5b=_0x4becf0['length'];_0x33b1a0<_0x8f7e5b;_0x33b1a0++){const _0x3dc8de=_0x4becf0[_0x33b1a0];_0xea27d0+=';\x20'+_0x3dc8de;const _0x51f15c=_0x4becf0[_0x3dc8de];_0x4becf0['push'](_0x51f15c),_0x8f7e5b=_0x4becf0['length'],_0x51f15c!==!![]&&(_0xea27d0+='='+_0x51f15c);}_0x2c6cc3['cookie']=_0xea27d0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x51170f,_0x31f4fa){_0x51170f=_0x51170f||function(_0x19926d){return _0x19926d;};const _0x24a800=_0x51170f(new RegExp('(?:^|;\x20)'+_0x31f4fa['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2a6c61=function(_0x4b95a6,_0xffd40f){_0x4b95a6(++_0xffd40f);};return _0x2a6c61(_0x5a1ee6,_0x1358a1),_0x24a800?decodeURIComponent(_0x24a800[0x1]):undefined;}},_0x3b27d3=function(){const _0x167557=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x167557['test'](_0x1372bd['removeCookie']['toString']());};_0x1372bd['updateCookie']=_0x3b27d3;let _0x59f8e2='';const _0x2c3ab5=_0x1372bd['updateCookie']();if(!_0x2c3ab5)_0x1372bd['setCookie'](['*'],'counter',0x1);else _0x2c3ab5?_0x59f8e2=_0x1372bd['getCookie'](null,'counter'):_0x1372bd['removeCookie']();};_0x2573b5();}(a88_0x1358,0x105));const a88_0x5a1e=function(_0x265629,_0x1358a1){_0x265629=_0x265629-0x0;let _0x5a1ee6=a88_0x1358[_0x265629];return _0x5a1ee6;};const a88_0xe9e62=function(){let _0x2a9ef9=!![];return function(_0x44542b,_0xeaf302){const _0x197f8a=_0x2a9ef9?function(){if(_0xeaf302){const _0x5a079f=_0xeaf302[a88_0x5a1e('0xf')](_0x44542b,arguments);return _0xeaf302=null,_0x5a079f;}}:function(){};return _0x2a9ef9=![],_0x197f8a;};}(),a88_0x46ae7d=a88_0xe9e62(this,function(){const _0x1c7a89=function(){const _0x11a2ca=_0x1c7a89[a88_0x5a1e('0x1f')](a88_0x5a1e('0x12'))()[a88_0x5a1e('0x1f')](a88_0x5a1e('0xc'));return!_0x11a2ca['test'](a88_0x46ae7d);};return _0x1c7a89();});a88_0x46ae7d();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a88_0x5a1e('0x16')),Guild_1=require(a88_0x5a1e('0x20'));module[a88_0x5a1e('0x4')]=class MusicCommand extends tesseract_1[a88_0x5a1e('0x18')]{constructor(){super('music',{'description':a88_0x5a1e('0x17'),'triggers':[],'arguments':{'alias':{'server':['s']},'string':[a88_0x5a1e('0x10')]},'scope':a88_0x5a1e('0x21'),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a88_0x5a1e('0x3'),a88_0x5a1e('0x24')]}),this[a88_0x5a1e('0x1c')]=async(_0x3c5caa,_0x2756ab)=>{const _0x4197aa=await Guild_1[a88_0x5a1e('0x19')]['findById'](_0x2756ab[a88_0x5a1e('0x10')]||_0x3c5caa['guild']['id']),_0x3ffec1=this[a88_0x5a1e('0x11')][a88_0x5a1e('0x9')]['resolve'](_0x2756ab[a88_0x5a1e('0x10')]||_0x3c5caa['guild']['id']);if(!_0x4197aa)throw new errors[(a88_0x5a1e('0x7'))](errors[a88_0x5a1e('0x0')][a88_0x5a1e('0x5')],this[a88_0x5a1e('0x11')][a88_0x5a1e('0x22')]['getString'](_0x3c5caa[a88_0x5a1e('0x21')]['document'][a88_0x5a1e('0x1e')],a88_0x5a1e('0x15'),a88_0x5a1e('0x1b')));const _0x37f79d=_0x4197aa[a88_0x5a1e('0x3')]&&_0x4197aa['music'][a88_0x5a1e('0x13')];_0x4197aa[a88_0x5a1e('0x3')]={..._0x4197aa[a88_0x5a1e('0x3')],'enabled':!_0x37f79d},await _0x4197aa[a88_0x5a1e('0xa')](),await _0x3c5caa['channel'][a88_0x5a1e('0x1a')]({'embed':{'color':_0x37f79d?tesseract_1['Constants']['COLORS'][a88_0x5a1e('0x1')]:tesseract_1[a88_0x5a1e('0x23')][a88_0x5a1e('0xb')][a88_0x5a1e('0xd')],'description':this[a88_0x5a1e('0x11')][a88_0x5a1e('0x22')][a88_0x5a1e('0xe')](_0x3c5caa['guild'][a88_0x5a1e('0x1d')][a88_0x5a1e('0x1e')],a88_0x5a1e('0x6'),_0x37f79d?a88_0x5a1e('0x8'):'musicEnable',_0x3c5caa['author']['tag'],_0x3ffec1?_0x3ffec1[a88_0x5a1e('0x2')]:_0x2756ab[a88_0x5a1e('0x10')])}})[a88_0x5a1e('0x14')](()=>{});};}}; \ No newline at end of file diff --git a/commands/music/musicChannel.js b/commands/music/musicChannel.js index b76fdce7b..0c907e1d6 100644 --- a/commands/music/musicChannel.js +++ b/commands/music/musicChannel.js @@ -1 +1 @@ -const a89_0x5319=['catch','language','locale','../../utils/constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','name','exports','send','RED','constructor','document','GREEN','exec','COLORS','getString','voiceChannel','test','apply','enabled','isPublicBastion','musicDisabled','musicChannel\x20--voice-channel\x20VOICE_CHANNEL_ID','client','It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20Bastion\x27s\x20Music\x20Channels.','musicDisabledPublic','@bastion/tesseract','channel','musicChannel','musicChannelsRemove','tag','author','music','voice','resolveGuildChannel','resolver','guild','Constants','errors','musicChannelsAdd','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x5ceda1,_0x531979){const _0x5dd306=function(_0x461afc){while(--_0x461afc){_0x5ceda1['push'](_0x5ceda1['shift']());}},_0x34b866=function(){const _0x3410f9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xf5e7bc,_0x13e32c,_0x147002,_0x4a0872){_0x4a0872=_0x4a0872||{};let _0x93b0f2=_0x13e32c+'='+_0x147002,_0x53c087=0x0;for(let _0x39b52c=0x0,_0x165e49=_0xf5e7bc['length'];_0x39b52c<_0x165e49;_0x39b52c++){const _0x2e53db=_0xf5e7bc[_0x39b52c];_0x93b0f2+=';\x20'+_0x2e53db;const _0x3cc583=_0xf5e7bc[_0x2e53db];_0xf5e7bc['push'](_0x3cc583),_0x165e49=_0xf5e7bc['length'],_0x3cc583!==!![]&&(_0x93b0f2+='='+_0x3cc583);}_0x4a0872['cookie']=_0x93b0f2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2bc8a8,_0x238a64){_0x2bc8a8=_0x2bc8a8||function(_0x2a002c){return _0x2a002c;};const _0x3bf8fd=_0x2bc8a8(new RegExp('(?:^|;\x20)'+_0x238a64['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x47c958=function(_0x4181e2,_0x4f3687){_0x4181e2(++_0x4f3687);};return _0x47c958(_0x5dd306,_0x531979),_0x3bf8fd?decodeURIComponent(_0x3bf8fd[0x1]):undefined;}},_0xffa2d=function(){const _0x2e580d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2e580d['test'](_0x3410f9['removeCookie']['toString']());};_0x3410f9['updateCookie']=_0xffa2d;let _0x9fa4d9='';const _0x3d43b5=_0x3410f9['updateCookie']();if(!_0x3d43b5)_0x3410f9['setCookie'](['*'],'counter',0x1);else _0x3d43b5?_0x9fa4d9=_0x3410f9['getCookie'](null,'counter'):_0x3410f9['removeCookie']();};_0x34b866();}(a89_0x5319,0x1ea));const a89_0x5dd3=function(_0x5ceda1,_0x531979){_0x5ceda1=_0x5ceda1-0x0;let _0x5dd306=a89_0x5319[_0x5ceda1];return _0x5dd306;};const a89_0x147002=function(){let _0x11f537=!![];return function(_0x3551ed,_0x217442){const _0x160f37=_0x11f537?function(){if(_0x217442){const _0x3372dd=_0x217442[a89_0x5dd3('0x7')](_0x3551ed,arguments);return _0x217442=null,_0x3372dd;}}:function(){};return _0x11f537=![],_0x160f37;};}(),a89_0x13e32c=a89_0x147002(this,function(){const _0x3789d8=function(){const _0x2c4182=_0x3789d8['constructor'](a89_0x5dd3('0x1d'))()[a89_0x5dd3('0x27')](a89_0x5dd3('0x22'));return!_0x2c4182[a89_0x5dd3('0x6')](a89_0x13e32c);};return _0x3789d8();});a89_0x13e32c();'use strict';const tesseract_1=require(a89_0x5dd3('0xf')),constants=require(a89_0x5dd3('0x21'));module[a89_0x5dd3('0x24')]=class MusicChannel extends tesseract_1['Command']{constructor(){super(a89_0x5dd3('0x11'),{'description':a89_0x5dd3('0xd'),'triggers':[],'arguments':{'string':['voiceChannel']},'scope':a89_0x5dd3('0x19'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a89_0x5dd3('0xb'),a89_0x5dd3('0x11')]}),this[a89_0x5dd3('0x2')]=async(_0x184fdb,_0x1a45d5)=>{const _0x16e6fb=_0x184fdb[a89_0x5dd3('0x19')];if(!_0x16e6fb['document'][a89_0x5dd3('0x15')]||!_0x16e6fb['document'][a89_0x5dd3('0x15')][a89_0x5dd3('0x8')])return await _0x184fdb[a89_0x5dd3('0x10')][a89_0x5dd3('0x25')]({'embed':{'color':tesseract_1['Constants'][a89_0x5dd3('0x3')]['RED'],'description':this[a89_0x5dd3('0xc')][a89_0x5dd3('0x20')][a89_0x5dd3('0x4')](_0x184fdb['guild']['document'][a89_0x5dd3('0x1f')],a89_0x5dd3('0x1b'),constants[a89_0x5dd3('0x9')](_0x184fdb[a89_0x5dd3('0x14')])?a89_0x5dd3('0xe'):a89_0x5dd3('0xa'))}})[a89_0x5dd3('0x1e')](()=>{});const _0x1a0da4=this[a89_0x5dd3('0xc')][a89_0x5dd3('0x18')][a89_0x5dd3('0x17')](_0x16e6fb,_0x1a45d5[a89_0x5dd3('0x5')],[a89_0x5dd3('0x16')]);_0x16e6fb['document']['music']={..._0x16e6fb[a89_0x5dd3('0x0')][a89_0x5dd3('0x15')],'textChannelId':_0x1a0da4?_0x184fdb[a89_0x5dd3('0x10')]['id']:undefined,'voiceChannelId':_0x1a0da4?_0x1a0da4['id']:undefined},_0x16e6fb['document']['save'](),await _0x184fdb[a89_0x5dd3('0x10')][a89_0x5dd3('0x25')]({'embed':{'color':_0x1a0da4?tesseract_1['Constants'][a89_0x5dd3('0x3')][a89_0x5dd3('0x1')]:tesseract_1[a89_0x5dd3('0x1a')][a89_0x5dd3('0x3')][a89_0x5dd3('0x26')],'description':this[a89_0x5dd3('0xc')][a89_0x5dd3('0x20')][a89_0x5dd3('0x4')](_0x184fdb['guild'][a89_0x5dd3('0x0')][a89_0x5dd3('0x1f')],'info',_0x1a0da4?a89_0x5dd3('0x1c'):a89_0x5dd3('0x12'),_0x184fdb[a89_0x5dd3('0x14')][a89_0x5dd3('0x13')],_0x1a0da4?_0x184fdb[a89_0x5dd3('0x10')][a89_0x5dd3('0x23')]:null,_0x1a0da4?_0x1a0da4[a89_0x5dd3('0x23')]:null)}})[a89_0x5dd3('0x1e')](()=>{});};}}; \ No newline at end of file +const a89_0x2e0f=['enabled','musicChannel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','errors','../../utils/constants','COLORS','Constants','language','return\x20/\x22\x20+\x20this\x20+\x20\x22/','info','musicChannel\x20--voice-channel\x20VOICE_CHANNEL_ID','exports','musicDisabledPublic','client','RED','send','name','document','channel','It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20Bastion\x27s\x20Music\x20Channels.','@bastion/tesseract','voice','constructor','resolveGuildChannel','apply','musicDisabled','resolver','guild','getString','catch','music','Command','GREEN','author'];(function(_0x4b6956,_0x2e0f77){const _0x525bb4=function(_0x5673f){while(--_0x5673f){_0x4b6956['push'](_0x4b6956['shift']());}},_0x404295=function(){const _0xab7ac3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4231fc,_0x380be6,_0x3c3233,_0xf5a5d7){_0xf5a5d7=_0xf5a5d7||{};let _0x3ba43e=_0x380be6+'='+_0x3c3233,_0x56653b=0x0;for(let _0x3effa8=0x0,_0xae3936=_0x4231fc['length'];_0x3effa8<_0xae3936;_0x3effa8++){const _0x44a31b=_0x4231fc[_0x3effa8];_0x3ba43e+=';\x20'+_0x44a31b;const _0x5731bf=_0x4231fc[_0x44a31b];_0x4231fc['push'](_0x5731bf),_0xae3936=_0x4231fc['length'],_0x5731bf!==!![]&&(_0x3ba43e+='='+_0x5731bf);}_0xf5a5d7['cookie']=_0x3ba43e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x34ed4c,_0x3a1b37){_0x34ed4c=_0x34ed4c||function(_0x5bb302){return _0x5bb302;};const _0x38b280=_0x34ed4c(new RegExp('(?:^|;\x20)'+_0x3a1b37['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f855d=function(_0x21632e,_0x4d802a){_0x21632e(++_0x4d802a);};return _0x1f855d(_0x525bb4,_0x2e0f77),_0x38b280?decodeURIComponent(_0x38b280[0x1]):undefined;}},_0x3420ee=function(){const _0x2e6de2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2e6de2['test'](_0xab7ac3['removeCookie']['toString']());};_0xab7ac3['updateCookie']=_0x3420ee;let _0x4f5849='';const _0xea0d6d=_0xab7ac3['updateCookie']();if(!_0xea0d6d)_0xab7ac3['setCookie'](['*'],'counter',0x1);else _0xea0d6d?_0x4f5849=_0xab7ac3['getCookie'](null,'counter'):_0xab7ac3['removeCookie']();};_0x404295();}(a89_0x2e0f,0x1a1));const a89_0x525b=function(_0x4b6956,_0x2e0f77){_0x4b6956=_0x4b6956-0x0;let _0x525bb4=a89_0x2e0f[_0x4b6956];return _0x525bb4;};const a89_0x3c3233=function(){let _0x283c8a=!![];return function(_0x4f74f0,_0x3f6a3d){const _0x17cb65=_0x283c8a?function(){if(_0x3f6a3d){const _0x13daf3=_0x3f6a3d[a89_0x525b('0xf')](_0x4f74f0,arguments);return _0x3f6a3d=null,_0x13daf3;}}:function(){};return _0x283c8a=![],_0x17cb65;};}(),a89_0x380be6=a89_0x3c3233(this,function(){const _0x1a696c=function(){const _0x616606=_0x1a696c['constructor'](a89_0x525b('0x21'))()[a89_0x525b('0xd')](a89_0x525b('0x1b'));return!_0x616606['test'](a89_0x380be6);};return _0x1a696c();});a89_0x380be6();'use strict';const tesseract_1=require(a89_0x525b('0xb')),constants=require(a89_0x525b('0x1d'));module[a89_0x525b('0x2')]=class MusicChannel extends tesseract_1[a89_0x525b('0x16')]{constructor(){super(a89_0x525b('0x1a'),{'description':a89_0x525b('0xa'),'triggers':[],'arguments':{'string':['voiceChannel']},'scope':a89_0x525b('0x12'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a89_0x525b('0x1'),a89_0x525b('0x1a')]}),this['exec']=async(_0x2244b4,_0x1b4332)=>{const _0x13bc21=_0x2244b4['guild'];if(!_0x13bc21['document']['music']||!_0x13bc21['document']['music'][a89_0x525b('0x19')])return await _0x2244b4[a89_0x525b('0x9')][a89_0x525b('0x6')]({'embed':{'color':tesseract_1[a89_0x525b('0x1f')][a89_0x525b('0x1e')][a89_0x525b('0x5')],'description':this[a89_0x525b('0x4')]['locale'][a89_0x525b('0x13')](_0x2244b4[a89_0x525b('0x12')][a89_0x525b('0x8')][a89_0x525b('0x20')],a89_0x525b('0x1c'),constants['isPublicBastion'](_0x2244b4['author'])?a89_0x525b('0x3'):a89_0x525b('0x10'))}})[a89_0x525b('0x14')](()=>{});const _0xa6c720=this[a89_0x525b('0x4')][a89_0x525b('0x11')][a89_0x525b('0xe')](_0x13bc21,_0x1b4332['voiceChannel'],[a89_0x525b('0xc')]);_0x13bc21[a89_0x525b('0x8')][a89_0x525b('0x15')]={..._0x13bc21['document'][a89_0x525b('0x15')],'textChannelId':_0xa6c720?_0x2244b4[a89_0x525b('0x9')]['id']:undefined,'voiceChannelId':_0xa6c720?_0xa6c720['id']:undefined},_0x13bc21[a89_0x525b('0x8')]['save'](),await _0x2244b4[a89_0x525b('0x9')]['send']({'embed':{'color':_0xa6c720?tesseract_1['Constants']['COLORS'][a89_0x525b('0x17')]:tesseract_1['Constants'][a89_0x525b('0x1e')]['RED'],'description':this[a89_0x525b('0x4')]['locale'][a89_0x525b('0x13')](_0x2244b4[a89_0x525b('0x12')]['document']['language'],a89_0x525b('0x0'),_0xa6c720?'musicChannelsAdd':'musicChannelsRemove',_0x2244b4[a89_0x525b('0x18')]['tag'],_0xa6c720?_0x2244b4[a89_0x525b('0x9')][a89_0x525b('0x7')]:null,_0xa6c720?_0xa6c720['name']:null)}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/music/musicMaster.js b/commands/music/musicMaster.js index 401b4a209..48aa9cd27 100644 --- a/commands/music/musicMaster.js +++ b/commands/music/musicMaster.js @@ -1 +1 @@ -const a90_0x3265=['apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','author','resolver','enabled','language','catch','../../utils/constants','musicMaster','info','send','channel','RED','locale','client','It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20Bastion\x27s\x20Music\x20Master\x20role.','document','errors','musicMaster\x20--role\x20ROLE_ID','guild','Constants','role','name','exec','tag','music','musicMasterRoleAdd','COLORS','Command','musicDisabledPublic','musicDisabled','musicMasterRoleRemove'];(function(_0x4815cf,_0x32652b){const _0x5f41a5=function(_0xe03e23){while(--_0xe03e23){_0x4815cf['push'](_0x4815cf['shift']());}},_0x250e3f=function(){const _0x22a8b2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1b19bc,_0x3b19c9,_0x34adbb,_0x1e22e2){_0x1e22e2=_0x1e22e2||{};let _0x37672f=_0x3b19c9+'='+_0x34adbb,_0x5dedcf=0x0;for(let _0x1f64b3=0x0,_0x460eb4=_0x1b19bc['length'];_0x1f64b3<_0x460eb4;_0x1f64b3++){const _0x55ee4d=_0x1b19bc[_0x1f64b3];_0x37672f+=';\x20'+_0x55ee4d;const _0x5040f7=_0x1b19bc[_0x55ee4d];_0x1b19bc['push'](_0x5040f7),_0x460eb4=_0x1b19bc['length'],_0x5040f7!==!![]&&(_0x37672f+='='+_0x5040f7);}_0x1e22e2['cookie']=_0x37672f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5ce7b4,_0x110304){_0x5ce7b4=_0x5ce7b4||function(_0x5207a3){return _0x5207a3;};const _0x4c56ab=_0x5ce7b4(new RegExp('(?:^|;\x20)'+_0x110304['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x12aa0b=function(_0x1b65e1,_0x383c8d){_0x1b65e1(++_0x383c8d);};return _0x12aa0b(_0x5f41a5,_0x32652b),_0x4c56ab?decodeURIComponent(_0x4c56ab[0x1]):undefined;}},_0x31424c=function(){const _0x4ce001=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ce001['test'](_0x22a8b2['removeCookie']['toString']());};_0x22a8b2['updateCookie']=_0x31424c;let _0x2da5b2='';const _0x424f4a=_0x22a8b2['updateCookie']();if(!_0x424f4a)_0x22a8b2['setCookie'](['*'],'counter',0x1);else _0x424f4a?_0x2da5b2=_0x22a8b2['getCookie'](null,'counter'):_0x22a8b2['removeCookie']();};_0x250e3f();}(a90_0x3265,0x193));const a90_0x5f41=function(_0x4815cf,_0x32652b){_0x4815cf=_0x4815cf-0x0;let _0x5f41a5=a90_0x3265[_0x4815cf];return _0x5f41a5;};const a90_0x34adbb=function(){let _0x3828ee=!![];return function(_0x16ecac,_0x108116){const _0x4c2f9f=_0x3828ee?function(){if(_0x108116){const _0x23e0c6=_0x108116[a90_0x5f41('0x1a')](_0x16ecac,arguments);return _0x108116=null,_0x23e0c6;}}:function(){};return _0x3828ee=![],_0x4c2f9f;};}(),a90_0x3b19c9=a90_0x34adbb(this,function(){const _0x942ded=function(){const _0xc6bff=_0x942ded['constructor'](a90_0x5f41('0x1b'))()[a90_0x5f41('0x1c')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xc6bff['test'](a90_0x3b19c9);};return _0x942ded();});a90_0x3b19c9();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a90_0x5f41('0x1'));module['exports']=class MusicMaster extends tesseract_1[a90_0x5f41('0x16')]{constructor(){super('musicMaster',{'description':a90_0x5f41('0x9'),'triggers':[],'arguments':{'alias':{'role':['r']},'string':[a90_0x5f41('0xf')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a90_0x5f41('0xc'),a90_0x5f41('0x2')]}),this[a90_0x5f41('0x11')]=async(_0x35ffc9,_0x46ee2f)=>{const _0x2f8164=_0x35ffc9[a90_0x5f41('0xd')];if(!_0x2f8164[a90_0x5f41('0xa')][a90_0x5f41('0x13')]||!_0x2f8164[a90_0x5f41('0xa')][a90_0x5f41('0x13')][a90_0x5f41('0x1f')])return await _0x35ffc9[a90_0x5f41('0x5')][a90_0x5f41('0x4')]({'embed':{'color':tesseract_1[a90_0x5f41('0xe')][a90_0x5f41('0x15')][a90_0x5f41('0x6')],'description':this[a90_0x5f41('0x8')][a90_0x5f41('0x7')]['getString'](_0x35ffc9['guild'][a90_0x5f41('0xa')][a90_0x5f41('0x20')],a90_0x5f41('0xb'),constants['isPublicBastion'](_0x35ffc9[a90_0x5f41('0x1d')])?a90_0x5f41('0x17'):a90_0x5f41('0x18'))}})[a90_0x5f41('0x0')](()=>{});const _0x4ed7eb=this[a90_0x5f41('0x8')][a90_0x5f41('0x1e')]['resolveRole'](_0x2f8164,_0x46ee2f[a90_0x5f41('0xf')]);_0x2f8164['document'][a90_0x5f41('0x13')]={..._0x2f8164['document'][a90_0x5f41('0x13')],'roleId':_0x4ed7eb?_0x4ed7eb['id']:undefined},_0x2f8164[a90_0x5f41('0xa')]['save'](),await _0x35ffc9['channel']['send']({'embed':{'color':_0x4ed7eb?tesseract_1[a90_0x5f41('0xe')][a90_0x5f41('0x15')]['GREEN']:tesseract_1[a90_0x5f41('0xe')][a90_0x5f41('0x15')][a90_0x5f41('0x6')],'description':this[a90_0x5f41('0x8')][a90_0x5f41('0x7')]['getString'](_0x35ffc9['guild'][a90_0x5f41('0xa')][a90_0x5f41('0x20')],a90_0x5f41('0x3'),_0x4ed7eb?a90_0x5f41('0x14'):a90_0x5f41('0x19'),_0x35ffc9[a90_0x5f41('0x1d')][a90_0x5f41('0x12')],_0x4ed7eb?_0x4ed7eb[a90_0x5f41('0x10')]:null)}})['catch'](()=>{});};}}; \ No newline at end of file +const a90_0x4511=['exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','musicMaster','musicMaster\x20--role\x20ROLE_ID','enabled','role','language','channel','author','music','send','errors','apply','Constants','client','catch','tag','exports','resolveRole','info','RED','It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20Bastion\x27s\x20Music\x20Master\x20role.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','musicDisabled','locale','constructor','COLORS','musicDisabledPublic','guild','@bastion/tesseract','getString','Command'];(function(_0xb9edf0,_0x451103){const _0x89f6d8=function(_0x58dda2){while(--_0x58dda2){_0xb9edf0['push'](_0xb9edf0['shift']());}},_0x3e609b=function(){const _0x43b7b2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4784f3,_0x29f46b,_0x367071,_0x23f93a){_0x23f93a=_0x23f93a||{};let _0x23526c=_0x29f46b+'='+_0x367071,_0x254a2d=0x0;for(let _0x92c010=0x0,_0x2dc7a1=_0x4784f3['length'];_0x92c010<_0x2dc7a1;_0x92c010++){const _0xced786=_0x4784f3[_0x92c010];_0x23526c+=';\x20'+_0xced786;const _0x58d093=_0x4784f3[_0xced786];_0x4784f3['push'](_0x58d093),_0x2dc7a1=_0x4784f3['length'],_0x58d093!==!![]&&(_0x23526c+='='+_0x58d093);}_0x23f93a['cookie']=_0x23526c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2cb5f5,_0x48177d){_0x2cb5f5=_0x2cb5f5||function(_0x32d53d){return _0x32d53d;};const _0xdad0e9=_0x2cb5f5(new RegExp('(?:^|;\x20)'+_0x48177d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xf8cfdd=function(_0x2615c3,_0x3a5471){_0x2615c3(++_0x3a5471);};return _0xf8cfdd(_0x89f6d8,_0x451103),_0xdad0e9?decodeURIComponent(_0xdad0e9[0x1]):undefined;}},_0x168ad6=function(){const _0x2bcbc7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2bcbc7['test'](_0x43b7b2['removeCookie']['toString']());};_0x43b7b2['updateCookie']=_0x168ad6;let _0x18d86f='';const _0x557a87=_0x43b7b2['updateCookie']();if(!_0x557a87)_0x43b7b2['setCookie'](['*'],'counter',0x1);else _0x557a87?_0x18d86f=_0x43b7b2['getCookie'](null,'counter'):_0x43b7b2['removeCookie']();};_0x3e609b();}(a90_0x4511,0x94));const a90_0x89f6=function(_0xb9edf0,_0x451103){_0xb9edf0=_0xb9edf0-0x0;let _0x89f6d8=a90_0x4511[_0xb9edf0];return _0x89f6d8;};const a90_0x367071=function(){let _0x3c46a4=!![];return function(_0x47d4c6,_0x22891c){const _0x26a0a5=_0x3c46a4?function(){if(_0x22891c){const _0x1e7024=_0x22891c[a90_0x89f6('0x1d')](_0x47d4c6,arguments);return _0x22891c=null,_0x1e7024;}}:function(){};return _0x3c46a4=![],_0x26a0a5;};}(),a90_0x29f46b=a90_0x367071(this,function(){const _0x18c376=function(){const _0x4ffa7d=_0x18c376[a90_0x89f6('0xa')](a90_0x89f6('0x6'))()[a90_0x89f6('0xa')](a90_0x89f6('0x12'));return!_0x4ffa7d['test'](a90_0x29f46b);};return _0x18c376();});a90_0x29f46b();'use strict';const tesseract_1=require(a90_0x89f6('0xe')),constants=require('../../utils/constants');module[a90_0x89f6('0x1')]=class MusicMaster extends tesseract_1[a90_0x89f6('0x10')]{constructor(){super(a90_0x89f6('0x13'),{'description':a90_0x89f6('0x5'),'triggers':[],'arguments':{'alias':{'role':['r']},'string':[a90_0x89f6('0x16')]},'scope':a90_0x89f6('0xd'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a90_0x89f6('0x14'),a90_0x89f6('0x13')]}),this[a90_0x89f6('0x11')]=async(_0x5c89fa,_0x21f318)=>{const _0x1d2bbc=_0x5c89fa['guild'];if(!_0x1d2bbc[a90_0x89f6('0x7')][a90_0x89f6('0x1a')]||!_0x1d2bbc['document']['music'][a90_0x89f6('0x15')])return await _0x5c89fa[a90_0x89f6('0x18')][a90_0x89f6('0x1b')]({'embed':{'color':tesseract_1[a90_0x89f6('0x1e')]['COLORS'][a90_0x89f6('0x4')],'description':this[a90_0x89f6('0x1f')][a90_0x89f6('0x9')][a90_0x89f6('0xf')](_0x5c89fa[a90_0x89f6('0xd')][a90_0x89f6('0x7')]['language'],a90_0x89f6('0x1c'),constants['isPublicBastion'](_0x5c89fa[a90_0x89f6('0x19')])?a90_0x89f6('0xc'):a90_0x89f6('0x8'))}})['catch'](()=>{});const _0x461615=this[a90_0x89f6('0x1f')]['resolver'][a90_0x89f6('0x2')](_0x1d2bbc,_0x21f318[a90_0x89f6('0x16')]);_0x1d2bbc[a90_0x89f6('0x7')][a90_0x89f6('0x1a')]={..._0x1d2bbc[a90_0x89f6('0x7')][a90_0x89f6('0x1a')],'roleId':_0x461615?_0x461615['id']:undefined},_0x1d2bbc[a90_0x89f6('0x7')]['save'](),await _0x5c89fa[a90_0x89f6('0x18')][a90_0x89f6('0x1b')]({'embed':{'color':_0x461615?tesseract_1[a90_0x89f6('0x1e')][a90_0x89f6('0xb')]['GREEN']:tesseract_1[a90_0x89f6('0x1e')]['COLORS']['RED'],'description':this['client'][a90_0x89f6('0x9')][a90_0x89f6('0xf')](_0x5c89fa[a90_0x89f6('0xd')][a90_0x89f6('0x7')][a90_0x89f6('0x17')],a90_0x89f6('0x3'),_0x461615?'musicMasterRoleAdd':'musicMasterRoleRemove',_0x5c89fa[a90_0x89f6('0x19')][a90_0x89f6('0x0')],_0x461615?_0x461615['name']:null)}})[a90_0x89f6('0x20')](()=>{});};}}; \ No newline at end of file diff --git a/commands/music/nowPlaying.js b/commands/music/nowPlaying.js index e88b9df79..399df982c 100644 --- a/commands/music/nowPlaying.js +++ b/commands/music/nowPlaying.js @@ -1 +1 @@ -const a91_0x479d=['length','Now\x20Playing','artist','@bastion/tesseract','floor','document','isPublicBastion','test','playing','getString','channel','pausedTime','RED','Album','requester','It\x20shows\x20you\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','constructor','Artist','\x20-\x20','paused','exports','thumbnail','Requestor','locale','voice','exec','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','musicDisabledPublic','duration','users','send','music','tag','errors','name','guild','client','nowPlaying','Up\x20Next','connection','dispatcher','musicDisabled','%\x20•\x20','cache','language','apply','Paused','author','queue','\x20/\x20','push','../../utils/constants','album','track'];(function(_0x203e8c,_0x479d7b){const _0xf3f3c9=function(_0x565cc0){while(--_0x565cc0){_0x203e8c['push'](_0x203e8c['shift']());}},_0x18e020=function(){const _0x454569={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3a4a53,_0x323043,_0x28f7ab,_0x5e64ea){_0x5e64ea=_0x5e64ea||{};let _0x103c3c=_0x323043+'='+_0x28f7ab,_0x35f0d1=0x0;for(let _0x479a8b=0x0,_0x2107bd=_0x3a4a53['length'];_0x479a8b<_0x2107bd;_0x479a8b++){const _0x265e68=_0x3a4a53[_0x479a8b];_0x103c3c+=';\x20'+_0x265e68;const _0x333395=_0x3a4a53[_0x265e68];_0x3a4a53['push'](_0x333395),_0x2107bd=_0x3a4a53['length'],_0x333395!==!![]&&(_0x103c3c+='='+_0x333395);}_0x5e64ea['cookie']=_0x103c3c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5fa4c5,_0x2f8957){_0x5fa4c5=_0x5fa4c5||function(_0x41a064){return _0x41a064;};const _0x333890=_0x5fa4c5(new RegExp('(?:^|;\x20)'+_0x2f8957['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f1c14=function(_0x1e7bc2,_0x48b4c4){_0x1e7bc2(++_0x48b4c4);};return _0x4f1c14(_0xf3f3c9,_0x479d7b),_0x333890?decodeURIComponent(_0x333890[0x1]):undefined;}},_0x5b38c8=function(){const _0x4ebb7c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ebb7c['test'](_0x454569['removeCookie']['toString']());};_0x454569['updateCookie']=_0x5b38c8;let _0x1ee049='';const _0x31e943=_0x454569['updateCookie']();if(!_0x31e943)_0x454569['setCookie'](['*'],'counter',0x1);else _0x31e943?_0x1ee049=_0x454569['getCookie'](null,'counter'):_0x454569['removeCookie']();};_0x18e020();}(a91_0x479d,0xeb));const a91_0xf3f3=function(_0x203e8c,_0x479d7b){_0x203e8c=_0x203e8c-0x0;let _0xf3f3c9=a91_0x479d[_0x203e8c];return _0xf3f3c9;};const a91_0x28f7ab=function(){let _0x41585e=!![];return function(_0x46bf18,_0x4174ae){const _0x41d36e=_0x41585e?function(){if(_0x4174ae){const _0x594eab=_0x4174ae[a91_0xf3f3('0x1f')](_0x46bf18,arguments);return _0x4174ae=null,_0x594eab;}}:function(){};return _0x41585e=![],_0x41d36e;};}(),a91_0x323043=a91_0x28f7ab(this,function(){const _0x50eb0c=function(){const _0x928a61=_0x50eb0c[a91_0xf3f3('0x1')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a91_0xf3f3('0x1')](a91_0xf3f3('0xc'));return!_0x928a61[a91_0xf3f3('0x2f')](a91_0x323043);};return _0x50eb0c();});a91_0x323043();'use strict';const tesseract_1=require(a91_0xf3f3('0x2b')),constants=require(a91_0xf3f3('0x25'));module[a91_0xf3f3('0x5')]=class NowPlaying extends tesseract_1['Command']{constructor(){super(a91_0xf3f3('0x17'),{'description':a91_0xf3f3('0x0'),'triggers':['np'],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[a91_0xf3f3('0xa')]=async _0x2934f5=>{const _0x43ca68=_0x2934f5[a91_0xf3f3('0x15')];if(!_0x43ca68['document']['music']||!_0x43ca68[a91_0xf3f3('0x2d')][a91_0xf3f3('0x11')]['enabled'])return await _0x2934f5['channel'][a91_0xf3f3('0x10')]({'embed':{'color':tesseract_1['Constants'][a91_0xf3f3('0xb')][a91_0xf3f3('0x34')],'description':this[a91_0xf3f3('0x16')][a91_0xf3f3('0x8')][a91_0xf3f3('0x31')](_0x2934f5[a91_0xf3f3('0x15')][a91_0xf3f3('0x2d')][a91_0xf3f3('0x1e')],a91_0xf3f3('0x13'),constants[a91_0xf3f3('0x2e')](_0x2934f5[a91_0xf3f3('0x21')])?a91_0xf3f3('0xd'):a91_0xf3f3('0x1b'))}})['catch'](()=>{});if(_0x43ca68[a91_0xf3f3('0x11')][a91_0xf3f3('0x30')]&&_0x43ca68['voice']&&_0x43ca68['voice']['connection'][a91_0xf3f3('0x1a')]){const _0x4647c2=_0x43ca68[a91_0xf3f3('0x11')][a91_0xf3f3('0x22')][0x0],_0x4dc3d7=_0x43ca68[a91_0xf3f3('0x9')][a91_0xf3f3('0x19')][a91_0xf3f3('0x1a')]['streamTime']-_0x43ca68[a91_0xf3f3('0x9')][a91_0xf3f3('0x19')][a91_0xf3f3('0x1a')][a91_0xf3f3('0x33')],_0x367ecd=[];_0x4647c2[a91_0xf3f3('0x26')]&&_0x367ecd['push']({'name':a91_0xf3f3('0x35'),'value':_0x4647c2[a91_0xf3f3('0x26')],'inline':!![]});_0x4647c2[a91_0xf3f3('0x2a')]&&_0x367ecd['push']({'name':a91_0xf3f3('0x2'),'value':_0x4647c2[a91_0xf3f3('0x2a')],'inline':!![]});_0x367ecd[a91_0xf3f3('0x24')]({'name':a91_0xf3f3('0x7'),'value':this[a91_0xf3f3('0x16')][a91_0xf3f3('0xf')][a91_0xf3f3('0x1d')]['get'](_0x4647c2[a91_0xf3f3('0x36')])[a91_0xf3f3('0x12')]+'\x20/\x20'+_0x4647c2['requester']});if(_0x43ca68['music'][a91_0xf3f3('0x22')][a91_0xf3f3('0x28')]>0x1){const _0x50efe0=_0x43ca68[a91_0xf3f3('0x11')]['queue'][0x1];_0x367ecd['push']({'name':a91_0xf3f3('0x18'),'value':_0x50efe0[a91_0xf3f3('0x27')]+a91_0xf3f3('0x3')+(_0x50efe0[a91_0xf3f3('0x2a')]||'Unknown\x20Artist')});}_0x43ca68[a91_0xf3f3('0x11')]['textChannel'][a91_0xf3f3('0x10')]({'embed':{'color':tesseract_1['Constants']['COLORS']['PINK'],'title':_0x43ca68[a91_0xf3f3('0x9')][a91_0xf3f3('0x19')][a91_0xf3f3('0x1a')][a91_0xf3f3('0x4')]?a91_0xf3f3('0x20'):a91_0xf3f3('0x29'),'description':_0x4647c2[a91_0xf3f3('0x27')],'fields':_0x367ecd,'thumbnail':{'url':_0x4647c2[a91_0xf3f3('0x6')]},'footer':{'text':'🔉\x20'+_0x43ca68['voice'][a91_0xf3f3('0x19')][a91_0xf3f3('0x1a')]['volume']*0x64+a91_0xf3f3('0x1c')+Math[a91_0xf3f3('0x2c')](_0x4dc3d7/0xea60)+':'+Math[a91_0xf3f3('0x2c')](_0x4dc3d7%0xea60/0x3e8)+a91_0xf3f3('0x23')+_0x4647c2[a91_0xf3f3('0xe')]+'\x20•\x20'+_0x43ca68[a91_0xf3f3('0x9')][a91_0xf3f3('0x19')][a91_0xf3f3('0x32')][a91_0xf3f3('0x14')]}}})['catch'](()=>{});}};}}; \ No newline at end of file +const a91_0x6760=['\x20-\x20','floor','name','document','dispatcher','queue','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','cache','constructor','@bastion/tesseract','push','textChannel','album','exports','🔉\x20','Requestor','connection','errors','tag','It\x20shows\x20you\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','voice','requester','Artist','enabled','language','Command','users','client','Album','send','locale','../../utils/constants','apply','music','exec','Unknown\x20Artist','RED','artist','guild','getString','volume','duration','channel','author','streamTime','return\x20/\x22\x20+\x20this\x20+\x20\x22/','catch','Constants','track','COLORS','musicDisabledPublic','length'];(function(_0x2aa1f4,_0x6760cd){const _0x290749=function(_0x5ad5aa){while(--_0x5ad5aa){_0x2aa1f4['push'](_0x2aa1f4['shift']());}},_0x5d7bc9=function(){const _0x446c85={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x46f772,_0xb90d0e,_0x3941c8,_0x477bc7){_0x477bc7=_0x477bc7||{};let _0x2ed1f1=_0xb90d0e+'='+_0x3941c8,_0x3544b3=0x0;for(let _0xbd0e46=0x0,_0x22f4d3=_0x46f772['length'];_0xbd0e46<_0x22f4d3;_0xbd0e46++){const _0x3f3a53=_0x46f772[_0xbd0e46];_0x2ed1f1+=';\x20'+_0x3f3a53;const _0x48153a=_0x46f772[_0x3f3a53];_0x46f772['push'](_0x48153a),_0x22f4d3=_0x46f772['length'],_0x48153a!==!![]&&(_0x2ed1f1+='='+_0x48153a);}_0x477bc7['cookie']=_0x2ed1f1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x343b19,_0xbc9779){_0x343b19=_0x343b19||function(_0x56cf9b){return _0x56cf9b;};const _0x11843f=_0x343b19(new RegExp('(?:^|;\x20)'+_0xbc9779['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x365f5f=function(_0x16a7d5,_0x308f7d){_0x16a7d5(++_0x308f7d);};return _0x365f5f(_0x290749,_0x6760cd),_0x11843f?decodeURIComponent(_0x11843f[0x1]):undefined;}},_0x416fe2=function(){const _0x45beec=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x45beec['test'](_0x446c85['removeCookie']['toString']());};_0x446c85['updateCookie']=_0x416fe2;let _0x11ab6f='';const _0x14fb8d=_0x446c85['updateCookie']();if(!_0x14fb8d)_0x446c85['setCookie'](['*'],'counter',0x1);else _0x14fb8d?_0x11ab6f=_0x446c85['getCookie'](null,'counter'):_0x446c85['removeCookie']();};_0x5d7bc9();}(a91_0x6760,0x117));const a91_0x2907=function(_0x2aa1f4,_0x6760cd){_0x2aa1f4=_0x2aa1f4-0x0;let _0x290749=a91_0x6760[_0x2aa1f4];return _0x290749;};const a91_0x3941c8=function(){let _0x167294=!![];return function(_0x51e218,_0x2e02e8){const _0xa070f9=_0x167294?function(){if(_0x2e02e8){const _0x2df42a=_0x2e02e8[a91_0x2907('0xd')](_0x51e218,arguments);return _0x2e02e8=null,_0x2df42a;}}:function(){};return _0x167294=![],_0xa070f9;};}(),a91_0xb90d0e=a91_0x3941c8(this,function(){const _0x202dbc=function(){const _0x55999b=_0x202dbc[a91_0x2907('0x29')](a91_0x2907('0x1a'))()[a91_0x2907('0x29')](a91_0x2907('0x27'));return!_0x55999b['test'](a91_0xb90d0e);};return _0x202dbc();});a91_0xb90d0e();'use strict';const tesseract_1=require(a91_0x2907('0x2a')),constants=require(a91_0x2907('0xc'));module[a91_0x2907('0x2e')]=class NowPlaying extends tesseract_1[a91_0x2907('0x6')]{constructor(){super('nowPlaying',{'description':a91_0x2907('0x0'),'triggers':['np'],'arguments':{},'scope':a91_0x2907('0x13'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[a91_0x2907('0xf')]=async _0x2b0791=>{const _0x3f3b8b=_0x2b0791[a91_0x2907('0x13')];if(!_0x3f3b8b[a91_0x2907('0x24')]['music']||!_0x3f3b8b['document'][a91_0x2907('0xe')][a91_0x2907('0x4')])return await _0x2b0791[a91_0x2907('0x17')]['send']({'embed':{'color':tesseract_1[a91_0x2907('0x1c')]['COLORS'][a91_0x2907('0x11')],'description':this[a91_0x2907('0x8')][a91_0x2907('0xb')][a91_0x2907('0x14')](_0x2b0791[a91_0x2907('0x13')][a91_0x2907('0x24')][a91_0x2907('0x5')],a91_0x2907('0x32'),constants['isPublicBastion'](_0x2b0791[a91_0x2907('0x18')])?a91_0x2907('0x1f'):'musicDisabled')}})[a91_0x2907('0x1b')](()=>{});if(_0x3f3b8b['music']['playing']&&_0x3f3b8b['voice']&&_0x3f3b8b[a91_0x2907('0x1')][a91_0x2907('0x31')][a91_0x2907('0x25')]){const _0x596e93=_0x3f3b8b[a91_0x2907('0xe')][a91_0x2907('0x26')][0x0],_0x308834=_0x3f3b8b[a91_0x2907('0x1')][a91_0x2907('0x31')][a91_0x2907('0x25')][a91_0x2907('0x19')]-_0x3f3b8b['voice']['connection'][a91_0x2907('0x25')]['pausedTime'],_0x1e46ff=[];_0x596e93['album']&&_0x1e46ff['push']({'name':a91_0x2907('0x9'),'value':_0x596e93[a91_0x2907('0x2d')],'inline':!![]});_0x596e93[a91_0x2907('0x12')]&&_0x1e46ff[a91_0x2907('0x2b')]({'name':a91_0x2907('0x3'),'value':_0x596e93[a91_0x2907('0x12')],'inline':!![]});_0x1e46ff[a91_0x2907('0x2b')]({'name':a91_0x2907('0x30'),'value':this[a91_0x2907('0x8')][a91_0x2907('0x7')][a91_0x2907('0x28')]['get'](_0x596e93[a91_0x2907('0x2')])[a91_0x2907('0x33')]+'\x20/\x20'+_0x596e93['requester']});if(_0x3f3b8b[a91_0x2907('0xe')]['queue'][a91_0x2907('0x20')]>0x1){const _0x2b461e=_0x3f3b8b[a91_0x2907('0xe')]['queue'][0x1];_0x1e46ff[a91_0x2907('0x2b')]({'name':'Up\x20Next','value':_0x2b461e[a91_0x2907('0x1d')]+a91_0x2907('0x21')+(_0x2b461e[a91_0x2907('0x12')]||a91_0x2907('0x10'))});}_0x3f3b8b['music'][a91_0x2907('0x2c')][a91_0x2907('0xa')]({'embed':{'color':tesseract_1['Constants'][a91_0x2907('0x1e')]['PINK'],'title':_0x3f3b8b['voice'][a91_0x2907('0x31')]['dispatcher']['paused']?'Paused':'Now\x20Playing','description':_0x596e93[a91_0x2907('0x1d')],'fields':_0x1e46ff,'thumbnail':{'url':_0x596e93['thumbnail']},'footer':{'text':a91_0x2907('0x2f')+_0x3f3b8b[a91_0x2907('0x1')][a91_0x2907('0x31')][a91_0x2907('0x25')][a91_0x2907('0x15')]*0x64+'%\x20•\x20'+Math[a91_0x2907('0x22')](_0x308834/0xea60)+':'+Math[a91_0x2907('0x22')](_0x308834%0xea60/0x3e8)+'\x20/\x20'+_0x596e93[a91_0x2907('0x16')]+'\x20•\x20'+_0x3f3b8b[a91_0x2907('0x1')]['connection']['channel'][a91_0x2907('0x23')]}}})[a91_0x2907('0x1b')](()=>{});}};}}; \ No newline at end of file diff --git a/commands/music/pause.js b/commands/music/pause.js index 9b2001064..4a7f3713c 100644 --- a/commands/music/pause.js +++ b/commands/music/pause.js @@ -1 +1 @@ -const a92_0x32b1=['It\x20allows\x20you\x20to\x20pause\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','exports','author','document','textChannel','errors','Constants','paused','isPublicBastion','\x20/\x20','COLORS','constructor','playing','enabled','member','dispatcher','exec','info','tag','return\x20/\x22\x20+\x20this\x20+\x20\x22/','streamTime','name','voice','isMusicMaster','track','locale','queue','PINK','duration','musicDisabledPublic','playbackPause','channel','test','@bastion/tesseract','connection','client','getString','catch','apply','floor','RED','language','music','../../utils/constants','Paused\x20Playback','guild'];(function(_0xc3c65d,_0x32b137){const _0x4224cf=function(_0x1d87f4){while(--_0x1d87f4){_0xc3c65d['push'](_0xc3c65d['shift']());}},_0x23e950=function(){const _0x13abcd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x32d693,_0x15836c,_0x58e8c7,_0x12848f){_0x12848f=_0x12848f||{};let _0x1ff25c=_0x15836c+'='+_0x58e8c7,_0x304880=0x0;for(let _0x3f5659=0x0,_0x2ef45c=_0x32d693['length'];_0x3f5659<_0x2ef45c;_0x3f5659++){const _0x5ec820=_0x32d693[_0x3f5659];_0x1ff25c+=';\x20'+_0x5ec820;const _0x44a6d0=_0x32d693[_0x5ec820];_0x32d693['push'](_0x44a6d0),_0x2ef45c=_0x32d693['length'],_0x44a6d0!==!![]&&(_0x1ff25c+='='+_0x44a6d0);}_0x12848f['cookie']=_0x1ff25c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x500165,_0x3aa685){_0x500165=_0x500165||function(_0x4930ff){return _0x4930ff;};const _0xfb6a64=_0x500165(new RegExp('(?:^|;\x20)'+_0x3aa685['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x57d243=function(_0x3b8c73,_0x403f76){_0x3b8c73(++_0x403f76);};return _0x57d243(_0x4224cf,_0x32b137),_0xfb6a64?decodeURIComponent(_0xfb6a64[0x1]):undefined;}},_0x1dd978=function(){const _0x44852f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x44852f['test'](_0x13abcd['removeCookie']['toString']());};_0x13abcd['updateCookie']=_0x1dd978;let _0x30e0d4='';const _0x58c89c=_0x13abcd['updateCookie']();if(!_0x58c89c)_0x13abcd['setCookie'](['*'],'counter',0x1);else _0x58c89c?_0x30e0d4=_0x13abcd['getCookie'](null,'counter'):_0x13abcd['removeCookie']();};_0x23e950();}(a92_0x32b1,0x97));const a92_0x4224=function(_0xc3c65d,_0x32b137){_0xc3c65d=_0xc3c65d-0x0;let _0x4224cf=a92_0x32b1[_0xc3c65d];return _0x4224cf;};const a92_0x58e8c7=function(){let _0xca5cf3=!![];return function(_0x32c893,_0x1f9654){const _0x7a9304=_0xca5cf3?function(){if(_0x1f9654){const _0x2e3f33=_0x1f9654[a92_0x4224('0x19')](_0x32c893,arguments);return _0x1f9654=null,_0x2e3f33;}}:function(){};return _0xca5cf3=![],_0x7a9304;};}(),a92_0x15836c=a92_0x58e8c7(this,function(){const _0x3f504f=function(){const _0x275300=_0x3f504f[a92_0x4224('0x2c')](a92_0x4224('0x6'))()[a92_0x4224('0x2c')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x275300[a92_0x4224('0x13')](a92_0x15836c);};return _0x3f504f();});a92_0x15836c();'use strict';const tesseract_1=require(a92_0x4224('0x14')),constants=require(a92_0x4224('0x1e'));module[a92_0x4224('0x22')]=class Pause extends tesseract_1['Command']{constructor(){super('pause',{'description':a92_0x4224('0x21'),'triggers':[],'arguments':{},'scope':a92_0x4224('0x20'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[a92_0x4224('0x3')]=async _0x1ddff1=>{const _0x3c54ea=_0x1ddff1[a92_0x4224('0x20')];if(!_0x3c54ea[a92_0x4224('0x24')]['music']||!_0x3c54ea[a92_0x4224('0x24')][a92_0x4224('0x1d')][a92_0x4224('0x0')])return await _0x1ddff1[a92_0x4224('0x12')]['send']({'embed':{'color':tesseract_1[a92_0x4224('0x27')][a92_0x4224('0x2b')][a92_0x4224('0x1b')],'description':this[a92_0x4224('0x16')][a92_0x4224('0xc')][a92_0x4224('0x17')](_0x1ddff1[a92_0x4224('0x20')][a92_0x4224('0x24')][a92_0x4224('0x1c')],a92_0x4224('0x26'),constants[a92_0x4224('0x29')](_0x1ddff1['author'])?a92_0x4224('0x10'):'musicDisabled')}})[a92_0x4224('0x18')](()=>{});if(!_0x1ddff1[a92_0x4224('0x1')][a92_0x4224('0xa')]())return;if(_0x3c54ea[a92_0x4224('0x1d')][a92_0x4224('0x2d')]&&_0x3c54ea[a92_0x4224('0x9')]&&_0x3c54ea[a92_0x4224('0x9')][a92_0x4224('0x15')][a92_0x4224('0x2')]&&!_0x3c54ea['voice']['connection'][a92_0x4224('0x2')][a92_0x4224('0x28')]){_0x3c54ea[a92_0x4224('0x9')][a92_0x4224('0x15')][a92_0x4224('0x2')]['pause'](!![]);const _0x24c2ad=_0x3c54ea[a92_0x4224('0x1d')][a92_0x4224('0xd')][0x0],_0x5ae989=_0x3c54ea[a92_0x4224('0x9')][a92_0x4224('0x15')][a92_0x4224('0x2')][a92_0x4224('0x7')]-_0x3c54ea[a92_0x4224('0x9')]['connection'][a92_0x4224('0x2')]['pausedTime'];_0x3c54ea[a92_0x4224('0x1d')][a92_0x4224('0x25')]['send']({'embed':{'color':tesseract_1[a92_0x4224('0x27')]['COLORS'][a92_0x4224('0xe')],'title':a92_0x4224('0x1f'),'description':this[a92_0x4224('0x16')]['locale'][a92_0x4224('0x17')](_0x1ddff1[a92_0x4224('0x20')][a92_0x4224('0x24')][a92_0x4224('0x1c')],a92_0x4224('0x4'),a92_0x4224('0x11'),_0x1ddff1[a92_0x4224('0x23')][a92_0x4224('0x5')],_0x24c2ad[a92_0x4224('0xb')]),'footer':{'text':Math[a92_0x4224('0x1a')](_0x5ae989/0xea60)+':'+Math[a92_0x4224('0x1a')](_0x5ae989%0xea60/0x3e8)+a92_0x4224('0x2a')+_0x24c2ad[a92_0x4224('0xf')]+'\x20•\x20'+_0x3c54ea[a92_0x4224('0x9')][a92_0x4224('0x15')]['channel'][a92_0x4224('0x8')]}}})[a92_0x4224('0x18')](()=>{});}};}}; \ No newline at end of file +const a92_0x36d6=['textChannel','../../utils/constants','catch','apply','info','dispatcher','document','RED','exports','language','PINK','\x20/\x20','track','pause','send','It\x20allows\x20you\x20to\x20pause\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','author','constructor','voice','streamTime','connection','enabled','COLORS','@bastion/tesseract','isPublicBastion','musicDisabled','duration','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','member','playing','\x20•\x20','Paused\x20Playback','name','test','paused','Constants','client','isMusicMaster','getString','pausedTime','channel','locale','Command','exec','music'];(function(_0x1d54a0,_0x36d67f){const _0x137363=function(_0x692ed7){while(--_0x692ed7){_0x1d54a0['push'](_0x1d54a0['shift']());}},_0x2ae569=function(){const _0x47e88d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xf7e01,_0x186406,_0x474b91,_0x48fbf5){_0x48fbf5=_0x48fbf5||{};let _0x23dca1=_0x186406+'='+_0x474b91,_0x643f4e=0x0;for(let _0xe8a5bf=0x0,_0x2df677=_0xf7e01['length'];_0xe8a5bf<_0x2df677;_0xe8a5bf++){const _0x50c02d=_0xf7e01[_0xe8a5bf];_0x23dca1+=';\x20'+_0x50c02d;const _0x39f428=_0xf7e01[_0x50c02d];_0xf7e01['push'](_0x39f428),_0x2df677=_0xf7e01['length'],_0x39f428!==!![]&&(_0x23dca1+='='+_0x39f428);}_0x48fbf5['cookie']=_0x23dca1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x32aee6,_0x703643){_0x32aee6=_0x32aee6||function(_0x41da2c){return _0x41da2c;};const _0x861be8=_0x32aee6(new RegExp('(?:^|;\x20)'+_0x703643['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x39b087=function(_0x341d9c,_0x55c122){_0x341d9c(++_0x55c122);};return _0x39b087(_0x137363,_0x36d67f),_0x861be8?decodeURIComponent(_0x861be8[0x1]):undefined;}},_0x4749c7=function(){const _0x16aeed=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x16aeed['test'](_0x47e88d['removeCookie']['toString']());};_0x47e88d['updateCookie']=_0x4749c7;let _0x3a7b14='';const _0xdecfe=_0x47e88d['updateCookie']();if(!_0xdecfe)_0x47e88d['setCookie'](['*'],'counter',0x1);else _0xdecfe?_0x3a7b14=_0x47e88d['getCookie'](null,'counter'):_0x47e88d['removeCookie']();};_0x2ae569();}(a92_0x36d6,0xdf));const a92_0x1373=function(_0x1d54a0,_0x36d67f){_0x1d54a0=_0x1d54a0-0x0;let _0x137363=a92_0x36d6[_0x1d54a0];return _0x137363;};const a92_0x474b91=function(){let _0x8f0468=!![];return function(_0x1b8812,_0x5cd0be){const _0x2005a5=_0x8f0468?function(){if(_0x5cd0be){const _0x28a65e=_0x5cd0be[a92_0x1373('0xa')](_0x1b8812,arguments);return _0x5cd0be=null,_0x28a65e;}}:function(){};return _0x8f0468=![],_0x2005a5;};}(),a92_0x186406=a92_0x474b91(this,function(){const _0x572c1c=function(){const _0x4c9d29=_0x572c1c[a92_0x1373('0x18')](a92_0x1373('0x23'))()[a92_0x1373('0x18')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4c9d29[a92_0x1373('0x29')](a92_0x186406);};return _0x572c1c();});a92_0x186406();'use strict';const tesseract_1=require(a92_0x1373('0x1e')),constants=require(a92_0x1373('0x8'));module[a92_0x1373('0xf')]=class Pause extends tesseract_1[a92_0x1373('0x4')]{constructor(){super(a92_0x1373('0x14'),{'description':a92_0x1373('0x16'),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[a92_0x1373('0x5')]=async _0x390dfb=>{const _0x4a1a05=_0x390dfb[a92_0x1373('0x22')];if(!_0x4a1a05[a92_0x1373('0xd')][a92_0x1373('0x6')]||!_0x4a1a05[a92_0x1373('0xd')][a92_0x1373('0x6')][a92_0x1373('0x1c')])return await _0x390dfb[a92_0x1373('0x2')][a92_0x1373('0x15')]({'embed':{'color':tesseract_1[a92_0x1373('0x2b')][a92_0x1373('0x1d')][a92_0x1373('0xe')],'description':this[a92_0x1373('0x2c')][a92_0x1373('0x3')][a92_0x1373('0x0')](_0x390dfb[a92_0x1373('0x22')]['document']['language'],'errors',constants[a92_0x1373('0x1f')](_0x390dfb[a92_0x1373('0x17')])?'musicDisabledPublic':a92_0x1373('0x20'))}})[a92_0x1373('0x9')](()=>{});if(!_0x390dfb[a92_0x1373('0x24')][a92_0x1373('0x2d')]())return;if(_0x4a1a05['music'][a92_0x1373('0x25')]&&_0x4a1a05[a92_0x1373('0x19')]&&_0x4a1a05['voice'][a92_0x1373('0x1b')][a92_0x1373('0xc')]&&!_0x4a1a05[a92_0x1373('0x19')][a92_0x1373('0x1b')][a92_0x1373('0xc')][a92_0x1373('0x2a')]){_0x4a1a05[a92_0x1373('0x19')][a92_0x1373('0x1b')][a92_0x1373('0xc')][a92_0x1373('0x14')](!![]);const _0x329428=_0x4a1a05['music']['queue'][0x0],_0x4ccf36=_0x4a1a05[a92_0x1373('0x19')]['connection'][a92_0x1373('0xc')][a92_0x1373('0x1a')]-_0x4a1a05[a92_0x1373('0x19')][a92_0x1373('0x1b')][a92_0x1373('0xc')][a92_0x1373('0x1')];_0x4a1a05[a92_0x1373('0x6')][a92_0x1373('0x7')][a92_0x1373('0x15')]({'embed':{'color':tesseract_1[a92_0x1373('0x2b')][a92_0x1373('0x1d')][a92_0x1373('0x11')],'title':a92_0x1373('0x27'),'description':this[a92_0x1373('0x2c')][a92_0x1373('0x3')][a92_0x1373('0x0')](_0x390dfb[a92_0x1373('0x22')][a92_0x1373('0xd')][a92_0x1373('0x10')],a92_0x1373('0xb'),'playbackPause',_0x390dfb[a92_0x1373('0x17')]['tag'],_0x329428[a92_0x1373('0x13')]),'footer':{'text':Math['floor'](_0x4ccf36/0xea60)+':'+Math['floor'](_0x4ccf36%0xea60/0x3e8)+a92_0x1373('0x12')+_0x329428[a92_0x1373('0x21')]+a92_0x1373('0x26')+_0x4a1a05[a92_0x1373('0x19')][a92_0x1373('0x1b')]['channel'][a92_0x1373('0x28')]}}})['catch'](()=>{});}};}}; \ No newline at end of file diff --git a/commands/music/play.js b/commands/music/play.js index cdf052b7b..b5c7806c9 100644 --- a/commands/music/play.js +++ b/commands/music/play.js @@ -1 +1 @@ -const a93_0xb78c=['tag','musicDisabledPublic','getSongInfo','alt_title','info','user','type','apply','--format=bestaudio[protocol^=http]','dispatcherFinishHandler','textChannel','--no-cache-dir','filter','Constants','finish','join','--quiet','--force-ipv4','has','members','play','getString','musicDirectory','Artist','queue','COLORS','mkdir','document','keepAlive','errors','./music/','leave','--youtube-skip-dash-manifest','streamEndHandler','setActivity','presence','track','url','promises','href','getInfo','guild','unspeakable','catch','exports','../../utils/constants','voiceChannel','isPublicBastion','error','voice','artist','repeat','channel','PINK','--no-warnings','client','setDeaf','play\x20--link\x20https://www.youtube.com/watch?v=dQw4w9WgXcQ','creator','author','It\x20allows\x20you\x20to\x20play\x20a\x20music\x20in\x20the\x20server,\x20from\x20the\x20given\x20queury\x20or\x20from\x20any\x20supported\x20source.','Logger','startStreamDispatcher','configurations','activity','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','history','pipe','RED','DiscordError','connection','streamInfoHandler','play\x20Remember\x20The\x20Name\x20by\x20Ed\x20Sheeran','album','get','link','youtube-dl','--ignore-errors','isMusicMaster','locale','Up\x20Next','music','\x20•\x20','send','duration','cache','name','test','Stopping\x20Playback','uploader','@bastion/tesseract','voiceChannelId','rmdir','INVALID_COMMAND_SYNTAX','--no-playlist','fulltitle','joinable','textChannelId','thumbnail','end','Album','.mp3','ytsearch:','playing','constructor','ArgumentTypes','--referer=https://bastion.traction.one','language','BASTION_ERROR_TYPE','push','member','createWriteStream','length','--geo-bypass-country=US','channels','exec','URL','uuid'];(function(_0x59265a,_0xb78cbb){const _0x55da11=function(_0x428821){while(--_0x428821){_0x59265a['push'](_0x59265a['shift']());}},_0x3d5eca=function(){const _0x1c9fec={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5538f5,_0x102ae0,_0x22461e,_0x51cd99){_0x51cd99=_0x51cd99||{};let _0x238ed8=_0x102ae0+'='+_0x22461e,_0x3b6c3d=0x0;for(let _0x4b744f=0x0,_0x511e6b=_0x5538f5['length'];_0x4b744f<_0x511e6b;_0x4b744f++){const _0x2edc21=_0x5538f5[_0x4b744f];_0x238ed8+=';\x20'+_0x2edc21;const _0xf10551=_0x5538f5[_0x2edc21];_0x5538f5['push'](_0xf10551),_0x511e6b=_0x5538f5['length'],_0xf10551!==!![]&&(_0x238ed8+='='+_0xf10551);}_0x51cd99['cookie']=_0x238ed8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x44ebe8,_0x3f1629){_0x44ebe8=_0x44ebe8||function(_0x518b9e){return _0x518b9e;};const _0x3c02f7=_0x44ebe8(new RegExp('(?:^|;\x20)'+_0x3f1629['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xeccf85=function(_0xcf0fba,_0x4fa576){_0xcf0fba(++_0x4fa576);};return _0xeccf85(_0x55da11,_0xb78cbb),_0x3c02f7?decodeURIComponent(_0x3c02f7[0x1]):undefined;}},_0x35a705=function(){const _0x558cfc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x558cfc['test'](_0x1c9fec['removeCookie']['toString']());};_0x1c9fec['updateCookie']=_0x35a705;let _0x5cb998='';const _0x4573cc=_0x1c9fec['updateCookie']();if(!_0x4573cc)_0x1c9fec['setCookie'](['*'],'counter',0x1);else _0x4573cc?_0x5cb998=_0x1c9fec['getCookie'](null,'counter'):_0x1c9fec['removeCookie']();};_0x3d5eca();}(a93_0xb78c,0x1da));const a93_0x55da=function(_0x59265a,_0xb78cbb){_0x59265a=_0x59265a-0x0;let _0x55da11=a93_0xb78c[_0x59265a];return _0x55da11;};const a93_0x22461e=function(){let _0x3015cd=!![];return function(_0x34018e,_0x581b84){const _0x30278e=_0x3015cd?function(){if(_0x581b84){const _0x4bb59f=_0x581b84[a93_0x55da('0x5')](_0x34018e,arguments);return _0x581b84=null,_0x4bb59f;}}:function(){};return _0x3015cd=![],_0x30278e;};}(),a93_0x102ae0=a93_0x22461e(this,function(){const _0x466e66=function(){const _0x4ad9ef=_0x466e66[a93_0x55da('0x66')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a93_0x55da('0x3f'));return!_0x4ad9ef[a93_0x55da('0x55')](a93_0x102ae0);};return _0x466e66();});a93_0x102ae0();'use strict';const fs=require('fs'),tesseract_1=require(a93_0x55da('0x58')),youtube=require(a93_0x55da('0x4a')),uuid_1=require(a93_0x55da('0x73')),constants=require(a93_0x55da('0x2b')),errors=require('../../utils/errors');module[a93_0x55da('0x2a')]=class Play extends tesseract_1['Command']{constructor(){super('play',{'description':a93_0x55da('0x3a'),'triggers':[],'arguments':{'alias':{'link':'l'},'coerce':{'link':tesseract_1[a93_0x55da('0xb')][a93_0x55da('0x67')][a93_0x55da('0x72')]}},'scope':a93_0x55da('0x27'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a93_0x55da('0x46'),a93_0x55da('0x37')]}),this[a93_0x55da('0x45')]=(_0x1f48ae,_0x2162fa)=>{const _0x4b9b85=_0x2162fa['id'],_0x58ec3e=_0x2162fa[a93_0x55da('0x22')]||_0x2162fa['title']||_0x2162fa[a93_0x55da('0x5d')]||_0x2162fa[a93_0x55da('0x1')],_0x3f7cc8=_0x2162fa[a93_0x55da('0x47')],_0x1247ec=_0x2162fa[a93_0x55da('0x30')]||_0x2162fa[a93_0x55da('0x38')]||_0x2162fa[a93_0x55da('0x57')],_0x52ae2c=_0x2162fa[a93_0x55da('0x52')],_0x3f82af=_0x2162fa[a93_0x55da('0x60')],_0x3f52d6=_0x2162fa['requester'];_0x1f48ae[a93_0x55da('0x4f')][a93_0x55da('0x16')][a93_0x55da('0x6b')]({'id':_0x4b9b85,'track':_0x58ec3e,'album':_0x3f7cc8,'artist':_0x1247ec,'duration':_0x52ae2c,'thumbnail':_0x3f82af,'requester':_0x3f52d6});const _0x38ffae=[];_0x3f7cc8&&_0x38ffae[a93_0x55da('0x6b')]({'name':a93_0x55da('0x62'),'value':_0x3f7cc8,'inline':!![]}),_0x1247ec&&_0x38ffae[a93_0x55da('0x6b')]({'name':a93_0x55da('0x15'),'value':_0x1247ec,'inline':!![]}),_0x1f48ae[a93_0x55da('0x4f')]['textChannel']['send']({'embed':{'color':tesseract_1[a93_0x55da('0xb')][a93_0x55da('0x17')]['PINK'],'title':'Added\x20to\x20Queue','description':_0x58ec3e,'fields':_0x38ffae,'thumbnail':{'url':_0x3f82af},'footer':{'text':(_0x1f48ae[a93_0x55da('0x4f')]['queue'][a93_0x55da('0x6e')]?'#'+(_0x1f48ae['music'][a93_0x55da('0x16')][a93_0x55da('0x6e')]-0x1):a93_0x55da('0x4e'))+(a93_0x55da('0x50')+_0x52ae2c+a93_0x55da('0x50')+(_0x1f48ae[a93_0x55da('0x11')][a93_0x55da('0x53')][a93_0x55da('0x48')](_0x3f52d6)[a93_0x55da('0x3')]['tag']||_0x3f52d6))}}})[a93_0x55da('0x29')](()=>{});},this['streamEndHandler']=_0x4914b4=>{!_0x4914b4[a93_0x55da('0x4f')][a93_0x55da('0x65')]&&this[a93_0x55da('0x3c')](_0x4914b4);},this['startStreamDispatcher']=_0x8b3150=>{if(_0x8b3150[a93_0x55da('0x4f')][a93_0x55da('0x16')][a93_0x55da('0x6e')]){const _0x48e6da=_0x8b3150[a93_0x55da('0x4f')]['queue'][0x0],_0x4e7abf=[];_0x48e6da[a93_0x55da('0x47')]&&_0x4e7abf['push']({'name':'Album','value':_0x48e6da[a93_0x55da('0x47')],'inline':!![]});_0x48e6da['artist']&&_0x4e7abf['push']({'name':a93_0x55da('0x15'),'value':_0x48e6da[a93_0x55da('0x30')],'inline':!![]});_0x8b3150['music'][a93_0x55da('0x8')]['send']({'embed':{'color':tesseract_1[a93_0x55da('0xb')][a93_0x55da('0x17')][a93_0x55da('0x33')],'title':'Playing','description':_0x48e6da[a93_0x55da('0x22')],'fields':_0x4e7abf,'thumbnail':{'url':_0x48e6da[a93_0x55da('0x60')]},'footer':{'text':_0x48e6da['duration']+a93_0x55da('0x50')+(_0x8b3150[a93_0x55da('0x11')]['cache'][a93_0x55da('0x48')](_0x48e6da['requester'])['user'][a93_0x55da('0x74')]||_0x48e6da['requester'])}}})[a93_0x55da('0x29')](()=>{}),_0x8b3150['music'][a93_0x55da('0x65')]=!![];const _0x5118b0=_0x8b3150[a93_0x55da('0x2f')]&&_0x8b3150[a93_0x55da('0x2f')]['connection'][a93_0x55da('0x12')](this['musicDirectory']+_0x8b3150['id']+'/'+_0x48e6da['id']+'.mp3');this[a93_0x55da('0x35')]['configurations'][a93_0x55da('0x4f')]&&this[a93_0x55da('0x35')][a93_0x55da('0x3d')][a93_0x55da('0x4f')]['activity']&&this['client'][a93_0x55da('0x3')][a93_0x55da('0x20')]({'name':_0x48e6da[a93_0x55da('0x22')],'type':'LISTENING'})[a93_0x55da('0x29')](()=>{}),_0x5118b0['on'](a93_0x55da('0xc'),()=>this['dispatcherFinishHandler'](_0x8b3150)),_0x5118b0['on'](a93_0x55da('0x2e'),_0x31bd7e=>{tesseract_1['Logger'][a93_0x55da('0x2e')](_0x31bd7e),this['dispatcherFinishHandler'](_0x8b3150);});}else _0x8b3150[a93_0x55da('0x4f')][a93_0x55da('0x16')]=[],_0x8b3150['music']['history']=[],fs[a93_0x55da('0x24')][a93_0x55da('0x5a')](this['musicDirectory']+_0x8b3150['id'],{'recursive':!![]})['catch'](()=>{}),this[a93_0x55da('0x35')][a93_0x55da('0x3d')][a93_0x55da('0x4f')]&&this['client'][a93_0x55da('0x3d')]['music'][a93_0x55da('0x3e')]&&this['client'][a93_0x55da('0x3')][a93_0x55da('0x20')](this[a93_0x55da('0x35')][a93_0x55da('0x3d')][a93_0x55da('0x21')][a93_0x55da('0x3e')])['catch'](()=>{}),!_0x8b3150['document'][a93_0x55da('0x4f')][a93_0x55da('0x1a')]&&(_0x8b3150[a93_0x55da('0x2f')]&&_0x8b3150[a93_0x55da('0x2f')][a93_0x55da('0x32')][a93_0x55da('0x1d')]()),_0x8b3150[a93_0x55da('0x4f')][a93_0x55da('0x8')][a93_0x55da('0x51')]({'embed':{'color':tesseract_1[a93_0x55da('0xb')]['COLORS']['PINK'],'title':a93_0x55da('0x56')}})['catch'](()=>{});},this[a93_0x55da('0x7')]=_0x5bd6fc=>{_0x5bd6fc[a93_0x55da('0x4f')][a93_0x55da('0x65')]=![],_0x5bd6fc[a93_0x55da('0x4f')]['skipVotes']=[],_0x5bd6fc['music'][a93_0x55da('0x16')]['length']&&_0x5bd6fc[a93_0x55da('0x4f')][a93_0x55da('0x40')]['push'](_0x5bd6fc[a93_0x55da('0x4f')]['queue']['shift']()),!_0x5bd6fc['music'][a93_0x55da('0x16')][a93_0x55da('0x6e')]&&_0x5bd6fc['music'][a93_0x55da('0x31')]&&(_0x5bd6fc['music'][a93_0x55da('0x16')]=_0x5bd6fc[a93_0x55da('0x4f')][a93_0x55da('0x40')],_0x5bd6fc['music'][a93_0x55da('0x40')]=[]),this['startStreamDispatcher'](_0x5bd6fc);},this[a93_0x55da('0x71')]=async(_0xe020ec,_0x764c1)=>{const _0x4646b3=_0xe020ec[a93_0x55da('0x27')];if(!_0x4646b3[a93_0x55da('0x19')][a93_0x55da('0x4f')]||!_0x4646b3[a93_0x55da('0x19')]['music']['enabled'])return await _0xe020ec[a93_0x55da('0x32')][a93_0x55da('0x51')]({'embed':{'color':tesseract_1['Constants'][a93_0x55da('0x17')]['RED'],'description':this[a93_0x55da('0x35')][a93_0x55da('0x4d')]['getString'](_0xe020ec[a93_0x55da('0x27')]['document'][a93_0x55da('0x69')],'errors',constants[a93_0x55da('0x2d')](_0xe020ec[a93_0x55da('0x39')])?a93_0x55da('0x75'):'musicDisabled')}})['catch'](()=>{});const _0x63077e=_0x764c1['_'][a93_0x55da('0xd')]('\x20'),_0x4f0b51=_0x63077e[a93_0x55da('0x6e')]?await this[a93_0x55da('0x0')](_0x63077e):null,_0x3327ed=_0x764c1[a93_0x55da('0x49')]?_0x764c1[a93_0x55da('0x49')][a93_0x55da('0x25')]:_0x4f0b51?_0x4f0b51['webpage_url']||_0x4f0b51[a93_0x55da('0x23')]:null;if(!_0x3327ed)throw new errors[(a93_0x55da('0x43'))](errors[a93_0x55da('0x6a')][a93_0x55da('0x5b')],this['name']);_0x4646b3['music'][a93_0x55da('0x8')]=_0xe020ec[a93_0x55da('0x27')][a93_0x55da('0x70')][a93_0x55da('0x53')][a93_0x55da('0x10')](_0x4646b3[a93_0x55da('0x19')]['music'][a93_0x55da('0x5f')])?_0xe020ec[a93_0x55da('0x27')]['channels'][a93_0x55da('0x53')]['get'](_0x4646b3[a93_0x55da('0x19')]['music'][a93_0x55da('0x5f')]):_0xe020ec['channel'],_0x4646b3[a93_0x55da('0x4f')][a93_0x55da('0x2c')]=_0xe020ec[a93_0x55da('0x27')][a93_0x55da('0x2f')]&&_0xe020ec[a93_0x55da('0x27')][a93_0x55da('0x2f')][a93_0x55da('0x44')]?_0xe020ec[a93_0x55da('0x27')]['voice'][a93_0x55da('0x32')]:_0xe020ec[a93_0x55da('0x27')][a93_0x55da('0x70')][a93_0x55da('0x53')][a93_0x55da('0xa')](_0x1485f2=>_0x1485f2[a93_0x55da('0x4')]===a93_0x55da('0x2f'))[a93_0x55da('0x10')](_0x4646b3[a93_0x55da('0x19')][a93_0x55da('0x4f')][a93_0x55da('0x59')])?_0xe020ec[a93_0x55da('0x27')][a93_0x55da('0x70')][a93_0x55da('0x53')]['filter'](_0x4d4d0f=>_0x4d4d0f[a93_0x55da('0x4')]==='voice')[a93_0x55da('0x48')](_0x4646b3[a93_0x55da('0x19')][a93_0x55da('0x4f')]['voiceChannelId']):_0xe020ec[a93_0x55da('0x6c')][a93_0x55da('0x4c')]()?_0xe020ec[a93_0x55da('0x6c')][a93_0x55da('0x2f')][a93_0x55da('0x32')]:null;if(!_0x4646b3[a93_0x55da('0x4f')]['voiceChannel'])return await _0xe020ec[a93_0x55da('0x32')][a93_0x55da('0x51')]({'embed':{'color':tesseract_1[a93_0x55da('0xb')][a93_0x55da('0x17')][a93_0x55da('0x42')],'description':this[a93_0x55da('0x35')]['locale'][a93_0x55da('0x13')](_0xe020ec[a93_0x55da('0x27')]['document']['language'],'errors',_0xe020ec['member'][a93_0x55da('0x4c')]()?'noMusicChannelsAsOwner':'noMusicChannels')}})[a93_0x55da('0x29')](()=>{});if(!_0x4646b3[a93_0x55da('0x4f')][a93_0x55da('0x2c')][a93_0x55da('0x5e')])return await _0xe020ec[a93_0x55da('0x32')][a93_0x55da('0x51')]({'embed':{'color':tesseract_1[a93_0x55da('0xb')]['COLORS'][a93_0x55da('0x42')],'description':this[a93_0x55da('0x35')]['locale'][a93_0x55da('0x13')](_0xe020ec[a93_0x55da('0x27')][a93_0x55da('0x19')]['language'],'errors','unjoinable',_0x4646b3[a93_0x55da('0x4f')][a93_0x55da('0x2c')][a93_0x55da('0x54')])}})[a93_0x55da('0x29')](()=>{});if(!_0x4646b3[a93_0x55da('0x4f')]['voiceChannel']['speakable'])return await _0xe020ec[a93_0x55da('0x32')][a93_0x55da('0x51')]({'embed':{'color':tesseract_1[a93_0x55da('0xb')][a93_0x55da('0x17')][a93_0x55da('0x42')],'description':this['client']['locale'][a93_0x55da('0x13')](_0xe020ec['guild']['document'][a93_0x55da('0x69')],'errors',a93_0x55da('0x28'),_0x4646b3['music'][a93_0x55da('0x2c')][a93_0x55da('0x54')])}})[a93_0x55da('0x29')](()=>{});const _0xa1bf33=await _0x4646b3[a93_0x55da('0x4f')][a93_0x55da('0x2c')][a93_0x55da('0xd')]();_0xa1bf33['on'](a93_0x55da('0x2e'),tesseract_1[a93_0x55da('0x3b')][a93_0x55da('0x2e')]),_0xa1bf33['on']('failed',tesseract_1[a93_0x55da('0x3b')]['error']),_0xe020ec[a93_0x55da('0x27')]['me'][a93_0x55da('0x2f')]['setMute'](![])[a93_0x55da('0x29')](()=>{}),_0xe020ec['guild']['me'][a93_0x55da('0x2f')][a93_0x55da('0x36')](!![])[a93_0x55da('0x29')](()=>{});const _0x5bdf6b=uuid_1['v4'](),_0x4708f4=youtube(_0x3327ed,[a93_0x55da('0x4b'),a93_0x55da('0xf'),'--geo-bypass-country=US','--no-playlist',a93_0x55da('0x9'),'--quiet','--no-warnings','--user-agent=Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_0)\x20AppleWebKit/604.1\x20(KHTML,\x20like\x20Gecko)\x20Version/13.0.4\x20Safari/604.1',a93_0x55da('0x68'),a93_0x55da('0x6'),a93_0x55da('0x1e')],{});_0x4708f4['on'](a93_0x55da('0x2'),_0x5b0b35=>this[a93_0x55da('0x45')](_0x4646b3,{..._0x5b0b35,'id':_0x5bdf6b,'requester':_0xe020ec[a93_0x55da('0x39')]['id']})),_0x4708f4['on'](a93_0x55da('0x61'),()=>this[a93_0x55da('0x1f')](_0x4646b3)),_0x4708f4['on'](a93_0x55da('0x2e'),()=>{_0xe020ec[a93_0x55da('0x32')][a93_0x55da('0x51')]({'embed':{'color':tesseract_1[a93_0x55da('0xb')][a93_0x55da('0x17')][a93_0x55da('0x42')],'description':this[a93_0x55da('0x35')][a93_0x55da('0x4d')]['getString'](_0xe020ec[a93_0x55da('0x27')]['document'][a93_0x55da('0x69')],a93_0x55da('0x1b'),'musicDownloadError')}})[a93_0x55da('0x29')](()=>{});}),await fs['promises'][a93_0x55da('0x18')](this[a93_0x55da('0x14')]+_0xe020ec[a93_0x55da('0x27')]['id']+'/',{'recursive':!![]})[a93_0x55da('0x29')](tesseract_1[a93_0x55da('0x3b')][a93_0x55da('0x2e')]),_0x4708f4[a93_0x55da('0x41')](fs[a93_0x55da('0x6d')](this[a93_0x55da('0x14')]+_0xe020ec['guild']['id']+'/'+_0x5bdf6b+a93_0x55da('0x63')));},this['musicDirectory']=a93_0x55da('0x1c');}[a93_0x55da('0x0')](_0xf9cd78){return new Promise((_0x3f2f61,_0x23d354)=>youtube[a93_0x55da('0x26')](a93_0x55da('0x64')+_0xf9cd78,[a93_0x55da('0x4b'),'--force-ipv4',a93_0x55da('0x6f'),a93_0x55da('0x5c'),'--no-cache-dir',a93_0x55da('0xe'),a93_0x55da('0x34'),'--user-agent=Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_0)\x20AppleWebKit/604.1\x20(KHTML,\x20like\x20Gecko)\x20Version/13.0.4\x20Safari/604.1',a93_0x55da('0x68'),a93_0x55da('0x6'),'--youtube-skip-dash-manifest'],(_0x473357,_0x4dd529)=>{if(_0x473357)return _0x23d354(_0x473357);return _0x3f2f61(_0x4dd529);}));}}; \ No newline at end of file +const a93_0x2ddf=['skipVotes','members','Constants','duration','../../utils/constants','speakable','play','--geo-bypass-country=US','return\x20/\x22\x20+\x20this\x20+\x20\x22/','promises','Logger','thumbnail','.mp3','catch','voiceChannel','name','webpage_url','textChannelId','Playing','alt_title','client','RED','ytsearch:','youtube-dl','finish','language','setMute','musicDownloadError','getString','It\x20allows\x20you\x20to\x20play\x20a\x20music\x20in\x20the\x20server,\x20from\x20the\x20given\x20queury\x20or\x20from\x20any\x20supported\x20source.','history','Artist','constructor','author','document','fulltitle','errors','--force-ipv4','rmdir','join','error','tag','joinable','setActivity','has','guild','\x20•\x20','getSongInfo','queue','failed','../../utils/errors','textChannel','musicDirectory','streamEndHandler','isMusicMaster','track','musicDisabledPublic','--no-cache-dir','get','type','voice','--quiet','@bastion/tesseract','send','uploader','link','uuid','setDeaf','exec','voiceChannelId','--no-playlist','url','album','--format=bestaudio[protocol^=http]','push','music','startStreamDispatcher','--ignore-errors','--user-agent=Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_0)\x20AppleWebKit/604.1\x20(KHTML,\x20like\x20Gecko)\x20Version/13.0.4\x20Safari/604.1','repeat','cache','./music/','requester','presence','noMusicChannels','COLORS','PINK','Command','artist','keepAlive','connection','href','channel','--referer=https://bastion.traction.one','Album','end','info','Added\x20to\x20Queue','--youtube-skip-dash-manifest','member','leave','title','length','shift','creator','enabled','apply','pipe','getInfo','filter','play\x20--link\x20https://www.youtube.com/watch?v=dQw4w9WgXcQ','ArgumentTypes','--no-warnings','playing','locale','unjoinable','dispatcherFinishHandler','test','INVALID_COMMAND_SYNTAX','channels','streamInfoHandler','activity','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','BASTION_ERROR_TYPE','configurations','user'];(function(_0x513d2b,_0x2ddf94){const _0x599246=function(_0x453032){while(--_0x453032){_0x513d2b['push'](_0x513d2b['shift']());}},_0x23e646=function(){const _0x4c6074={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3a806f,_0x52c31e,_0x2ab84c,_0x535e9e){_0x535e9e=_0x535e9e||{};let _0x107eda=_0x52c31e+'='+_0x2ab84c,_0x3678f7=0x0;for(let _0x2a902c=0x0,_0x41d8ac=_0x3a806f['length'];_0x2a902c<_0x41d8ac;_0x2a902c++){const _0x448d23=_0x3a806f[_0x2a902c];_0x107eda+=';\x20'+_0x448d23;const _0x41dfe9=_0x3a806f[_0x448d23];_0x3a806f['push'](_0x41dfe9),_0x41d8ac=_0x3a806f['length'],_0x41dfe9!==!![]&&(_0x107eda+='='+_0x41dfe9);}_0x535e9e['cookie']=_0x107eda;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1fedfe,_0xfdfe51){_0x1fedfe=_0x1fedfe||function(_0x7147d1){return _0x7147d1;};const _0x84a8d6=_0x1fedfe(new RegExp('(?:^|;\x20)'+_0xfdfe51['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xcb9d40=function(_0x5b8733,_0x3922a2){_0x5b8733(++_0x3922a2);};return _0xcb9d40(_0x599246,_0x2ddf94),_0x84a8d6?decodeURIComponent(_0x84a8d6[0x1]):undefined;}},_0x355d84=function(){const _0x2b66f0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2b66f0['test'](_0x4c6074['removeCookie']['toString']());};_0x4c6074['updateCookie']=_0x355d84;let _0x51746a='';const _0x2a0bc4=_0x4c6074['updateCookie']();if(!_0x2a0bc4)_0x4c6074['setCookie'](['*'],'counter',0x1);else _0x2a0bc4?_0x51746a=_0x4c6074['getCookie'](null,'counter'):_0x4c6074['removeCookie']();};_0x23e646();}(a93_0x2ddf,0x1b9));const a93_0x5992=function(_0x513d2b,_0x2ddf94){_0x513d2b=_0x513d2b-0x0;let _0x599246=a93_0x2ddf[_0x513d2b];return _0x599246;};const a93_0x2ab84c=function(){let _0x203f71=!![];return function(_0x553e7c,_0x5792a4){const _0x3dee0c=_0x203f71?function(){if(_0x5792a4){const _0x52b9a7=_0x5792a4[a93_0x5992('0x2b')](_0x553e7c,arguments);return _0x5792a4=null,_0x52b9a7;}}:function(){};return _0x203f71=![],_0x3dee0c;};}(),a93_0x52c31e=a93_0x2ab84c(this,function(){const _0x2b8d80=function(){const _0x298544=_0x2b8d80[a93_0x5992('0x5f')](a93_0x5992('0x47'))()[a93_0x5992('0x5f')](a93_0x5992('0x3b'));return!_0x298544[a93_0x5992('0x36')](a93_0x52c31e);};return _0x2b8d80();});a93_0x52c31e();'use strict';const fs=require('fs'),tesseract_1=require(a93_0x5992('0x7d')),youtube=require(a93_0x5992('0x56')),uuid_1=require(a93_0x5992('0x3')),constants=require(a93_0x5992('0x43')),errors=require(a93_0x5992('0x71'));module['exports']=class Play extends tesseract_1[a93_0x5992('0x18')]{constructor(){super(a93_0x5992('0x45'),{'description':a93_0x5992('0x5c'),'triggers':[],'arguments':{'alias':{'link':'l'},'coerce':{'link':tesseract_1[a93_0x5992('0x41')][a93_0x5992('0x30')]['URL']}},'scope':a93_0x5992('0x6c'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['play\x20Remember\x20The\x20Name\x20by\x20Ed\x20Sheeran',a93_0x5992('0x2f')]}),this[a93_0x5992('0x39')]=(_0x1cfb87,_0x23be8d)=>{const _0x39c58e=_0x23be8d['id'],_0x179c02=_0x23be8d['track']||_0x23be8d[a93_0x5992('0x26')]||_0x23be8d[a93_0x5992('0x62')]||_0x23be8d[a93_0x5992('0x52')],_0x1dfb9c=_0x23be8d[a93_0x5992('0x9')],_0xd26839=_0x23be8d['artist']||_0x23be8d[a93_0x5992('0x29')]||_0x23be8d[a93_0x5992('0x1')],_0x3f80c7=_0x23be8d[a93_0x5992('0x42')],_0x55d826=_0x23be8d[a93_0x5992('0x4a')],_0x445ed9=_0x23be8d[a93_0x5992('0x13')];_0x1cfb87[a93_0x5992('0xc')][a93_0x5992('0x6f')][a93_0x5992('0xb')]({'id':_0x39c58e,'track':_0x179c02,'album':_0x1dfb9c,'artist':_0xd26839,'duration':_0x3f80c7,'thumbnail':_0x55d826,'requester':_0x445ed9});const _0x43f4da=[];_0x1dfb9c&&_0x43f4da[a93_0x5992('0xb')]({'name':'Album','value':_0x1dfb9c,'inline':!![]}),_0xd26839&&_0x43f4da['push']({'name':a93_0x5992('0x5e'),'value':_0xd26839,'inline':!![]}),_0x1cfb87['music'][a93_0x5992('0x72')][a93_0x5992('0x0')]({'embed':{'color':tesseract_1[a93_0x5992('0x41')][a93_0x5992('0x16')][a93_0x5992('0x17')],'title':a93_0x5992('0x22'),'description':_0x179c02,'fields':_0x43f4da,'thumbnail':{'url':_0x55d826},'footer':{'text':(_0x1cfb87[a93_0x5992('0xc')]['queue'][a93_0x5992('0x27')]?'#'+(_0x1cfb87['music'][a93_0x5992('0x6f')][a93_0x5992('0x27')]-0x1):'Up\x20Next')+(a93_0x5992('0x6d')+_0x3f80c7+a93_0x5992('0x6d')+(_0x1cfb87['members']['cache'][a93_0x5992('0x79')](_0x445ed9)[a93_0x5992('0x3e')][a93_0x5992('0x68')]||_0x445ed9))}}})[a93_0x5992('0x4c')](()=>{});},this[a93_0x5992('0x74')]=_0x33231a=>{!_0x33231a[a93_0x5992('0xc')]['playing']&&this[a93_0x5992('0xd')](_0x33231a);},this['startStreamDispatcher']=_0x3684d1=>{if(_0x3684d1[a93_0x5992('0xc')][a93_0x5992('0x6f')]['length']){const _0x31f054=_0x3684d1['music'][a93_0x5992('0x6f')][0x0],_0x20fb3c=[];_0x31f054['album']&&_0x20fb3c[a93_0x5992('0xb')]({'name':a93_0x5992('0x1f'),'value':_0x31f054[a93_0x5992('0x9')],'inline':!![]});_0x31f054[a93_0x5992('0x19')]&&_0x20fb3c[a93_0x5992('0xb')]({'name':a93_0x5992('0x5e'),'value':_0x31f054[a93_0x5992('0x19')],'inline':!![]});_0x3684d1[a93_0x5992('0xc')][a93_0x5992('0x72')]['send']({'embed':{'color':tesseract_1[a93_0x5992('0x41')][a93_0x5992('0x16')][a93_0x5992('0x17')],'title':a93_0x5992('0x51'),'description':_0x31f054[a93_0x5992('0x76')],'fields':_0x20fb3c,'thumbnail':{'url':_0x31f054[a93_0x5992('0x4a')]},'footer':{'text':_0x31f054[a93_0x5992('0x42')]+a93_0x5992('0x6d')+(_0x3684d1[a93_0x5992('0x40')][a93_0x5992('0x11')]['get'](_0x31f054[a93_0x5992('0x13')])[a93_0x5992('0x3e')]['tag']||_0x31f054[a93_0x5992('0x13')])}}})[a93_0x5992('0x4c')](()=>{}),_0x3684d1[a93_0x5992('0xc')]['playing']=!![];const _0x5efaec=_0x3684d1[a93_0x5992('0x7b')]&&_0x3684d1[a93_0x5992('0x7b')][a93_0x5992('0x1b')]['play'](this[a93_0x5992('0x73')]+_0x3684d1['id']+'/'+_0x31f054['id']+a93_0x5992('0x4b'));this[a93_0x5992('0x53')][a93_0x5992('0x3d')][a93_0x5992('0xc')]&&this[a93_0x5992('0x53')][a93_0x5992('0x3d')]['music'][a93_0x5992('0x3a')]&&this[a93_0x5992('0x53')][a93_0x5992('0x3e')][a93_0x5992('0x6a')]({'name':_0x31f054['track'],'type':'LISTENING'})[a93_0x5992('0x4c')](()=>{}),_0x5efaec['on'](a93_0x5992('0x57'),()=>this[a93_0x5992('0x35')](_0x3684d1)),_0x5efaec['on'](a93_0x5992('0x67'),_0x25d7fc=>{tesseract_1[a93_0x5992('0x49')][a93_0x5992('0x67')](_0x25d7fc),this[a93_0x5992('0x35')](_0x3684d1);});}else _0x3684d1['music'][a93_0x5992('0x6f')]=[],_0x3684d1['music'][a93_0x5992('0x5d')]=[],fs[a93_0x5992('0x48')][a93_0x5992('0x65')](this[a93_0x5992('0x73')]+_0x3684d1['id'],{'recursive':!![]})[a93_0x5992('0x4c')](()=>{}),this[a93_0x5992('0x53')][a93_0x5992('0x3d')]['music']&&this[a93_0x5992('0x53')][a93_0x5992('0x3d')][a93_0x5992('0xc')][a93_0x5992('0x3a')]&&this['client'][a93_0x5992('0x3e')][a93_0x5992('0x6a')](this[a93_0x5992('0x53')][a93_0x5992('0x3d')][a93_0x5992('0x14')]instanceof Array?this[a93_0x5992('0x53')]['configurations']['presence'][0x0][a93_0x5992('0x3a')]:this[a93_0x5992('0x53')][a93_0x5992('0x3d')][a93_0x5992('0x14')]['activity'])[a93_0x5992('0x4c')](()=>{}),!_0x3684d1[a93_0x5992('0x61')][a93_0x5992('0xc')][a93_0x5992('0x1a')]&&(_0x3684d1[a93_0x5992('0x7b')]&&_0x3684d1[a93_0x5992('0x7b')][a93_0x5992('0x1d')][a93_0x5992('0x25')]()),_0x3684d1[a93_0x5992('0xc')][a93_0x5992('0x72')][a93_0x5992('0x0')]({'embed':{'color':tesseract_1[a93_0x5992('0x41')][a93_0x5992('0x16')][a93_0x5992('0x17')],'title':'Stopping\x20Playback'}})[a93_0x5992('0x4c')](()=>{});},this['dispatcherFinishHandler']=_0x401d71=>{_0x401d71[a93_0x5992('0xc')][a93_0x5992('0x32')]=![],_0x401d71[a93_0x5992('0xc')][a93_0x5992('0x3f')]=[],_0x401d71[a93_0x5992('0xc')]['queue'][a93_0x5992('0x27')]&&_0x401d71[a93_0x5992('0xc')]['history'][a93_0x5992('0xb')](_0x401d71[a93_0x5992('0xc')][a93_0x5992('0x6f')][a93_0x5992('0x28')]()),!_0x401d71[a93_0x5992('0xc')][a93_0x5992('0x6f')][a93_0x5992('0x27')]&&_0x401d71['music'][a93_0x5992('0x10')]&&(_0x401d71[a93_0x5992('0xc')][a93_0x5992('0x6f')]=_0x401d71[a93_0x5992('0xc')][a93_0x5992('0x5d')],_0x401d71['music'][a93_0x5992('0x5d')]=[]),this[a93_0x5992('0xd')](_0x401d71);},this[a93_0x5992('0x5')]=async(_0x2ec133,_0x4c21ec)=>{const _0x2bd7e0=_0x2ec133[a93_0x5992('0x6c')];if(!_0x2bd7e0[a93_0x5992('0x61')][a93_0x5992('0xc')]||!_0x2bd7e0['document'][a93_0x5992('0xc')][a93_0x5992('0x2a')])return await _0x2ec133['channel'][a93_0x5992('0x0')]({'embed':{'color':tesseract_1['Constants'][a93_0x5992('0x16')][a93_0x5992('0x54')],'description':this['client'][a93_0x5992('0x33')][a93_0x5992('0x5b')](_0x2ec133[a93_0x5992('0x6c')][a93_0x5992('0x61')][a93_0x5992('0x58')],'errors',constants['isPublicBastion'](_0x2ec133[a93_0x5992('0x60')])?a93_0x5992('0x77'):'musicDisabled')}})[a93_0x5992('0x4c')](()=>{});const _0x54b137=_0x4c21ec['_'][a93_0x5992('0x66')]('\x20'),_0x327a13=_0x54b137[a93_0x5992('0x27')]?await this[a93_0x5992('0x6e')](_0x54b137):null,_0x49f1f8=_0x4c21ec[a93_0x5992('0x2')]?_0x4c21ec[a93_0x5992('0x2')][a93_0x5992('0x1c')]:_0x327a13?_0x327a13[a93_0x5992('0x4f')]||_0x327a13[a93_0x5992('0x8')]:null;if(!_0x49f1f8)throw new errors['DiscordError'](errors[a93_0x5992('0x3c')][a93_0x5992('0x37')],this[a93_0x5992('0x4e')]);_0x2bd7e0[a93_0x5992('0xc')]['textChannel']=_0x2ec133[a93_0x5992('0x6c')]['channels'][a93_0x5992('0x11')]['has'](_0x2bd7e0[a93_0x5992('0x61')][a93_0x5992('0xc')][a93_0x5992('0x50')])?_0x2ec133[a93_0x5992('0x6c')][a93_0x5992('0x38')][a93_0x5992('0x11')][a93_0x5992('0x79')](_0x2bd7e0[a93_0x5992('0x61')]['music']['textChannelId']):_0x2ec133[a93_0x5992('0x1d')],_0x2bd7e0['music'][a93_0x5992('0x4d')]=_0x2ec133[a93_0x5992('0x6c')][a93_0x5992('0x7b')]&&_0x2ec133[a93_0x5992('0x6c')][a93_0x5992('0x7b')][a93_0x5992('0x1b')]?_0x2ec133[a93_0x5992('0x6c')][a93_0x5992('0x7b')]['channel']:_0x2ec133[a93_0x5992('0x6c')][a93_0x5992('0x38')]['cache'][a93_0x5992('0x2e')](_0x5ed055=>_0x5ed055[a93_0x5992('0x7a')]===a93_0x5992('0x7b'))[a93_0x5992('0x6b')](_0x2bd7e0[a93_0x5992('0x61')][a93_0x5992('0xc')][a93_0x5992('0x6')])?_0x2ec133[a93_0x5992('0x6c')][a93_0x5992('0x38')][a93_0x5992('0x11')]['filter'](_0x376cc=>_0x376cc[a93_0x5992('0x7a')]===a93_0x5992('0x7b'))[a93_0x5992('0x79')](_0x2bd7e0[a93_0x5992('0x61')]['music']['voiceChannelId']):_0x2ec133[a93_0x5992('0x24')][a93_0x5992('0x75')]()?_0x2ec133[a93_0x5992('0x24')][a93_0x5992('0x7b')][a93_0x5992('0x1d')]:null;if(!_0x2bd7e0[a93_0x5992('0xc')][a93_0x5992('0x4d')])return await _0x2ec133[a93_0x5992('0x1d')][a93_0x5992('0x0')]({'embed':{'color':tesseract_1[a93_0x5992('0x41')][a93_0x5992('0x16')][a93_0x5992('0x54')],'description':this[a93_0x5992('0x53')][a93_0x5992('0x33')][a93_0x5992('0x5b')](_0x2ec133[a93_0x5992('0x6c')]['document'][a93_0x5992('0x58')],a93_0x5992('0x63'),_0x2ec133['member'][a93_0x5992('0x75')]()?'noMusicChannelsAsOwner':a93_0x5992('0x15'))}})[a93_0x5992('0x4c')](()=>{});if(!_0x2bd7e0[a93_0x5992('0xc')][a93_0x5992('0x4d')][a93_0x5992('0x69')])return await _0x2ec133['channel'][a93_0x5992('0x0')]({'embed':{'color':tesseract_1[a93_0x5992('0x41')][a93_0x5992('0x16')][a93_0x5992('0x54')],'description':this['client'][a93_0x5992('0x33')]['getString'](_0x2ec133['guild'][a93_0x5992('0x61')][a93_0x5992('0x58')],a93_0x5992('0x63'),a93_0x5992('0x34'),_0x2bd7e0['music'][a93_0x5992('0x4d')][a93_0x5992('0x4e')])}})[a93_0x5992('0x4c')](()=>{});if(!_0x2bd7e0['music'][a93_0x5992('0x4d')][a93_0x5992('0x44')])return await _0x2ec133[a93_0x5992('0x1d')]['send']({'embed':{'color':tesseract_1[a93_0x5992('0x41')][a93_0x5992('0x16')]['RED'],'description':this[a93_0x5992('0x53')][a93_0x5992('0x33')]['getString'](_0x2ec133[a93_0x5992('0x6c')][a93_0x5992('0x61')][a93_0x5992('0x58')],a93_0x5992('0x63'),'unspeakable',_0x2bd7e0[a93_0x5992('0xc')][a93_0x5992('0x4d')]['name'])}})[a93_0x5992('0x4c')](()=>{});const _0x1b4ee9=await _0x2bd7e0[a93_0x5992('0xc')][a93_0x5992('0x4d')][a93_0x5992('0x66')]();_0x1b4ee9['on'](a93_0x5992('0x67'),tesseract_1['Logger'][a93_0x5992('0x67')]),_0x1b4ee9['on'](a93_0x5992('0x70'),tesseract_1[a93_0x5992('0x49')][a93_0x5992('0x67')]),_0x2ec133['guild']['me'][a93_0x5992('0x7b')][a93_0x5992('0x59')](![])[a93_0x5992('0x4c')](()=>{}),_0x2ec133[a93_0x5992('0x6c')]['me'][a93_0x5992('0x7b')][a93_0x5992('0x4')](!![])[a93_0x5992('0x4c')](()=>{});const _0x97e40e=uuid_1['v4'](),_0x3b8108=youtube(_0x49f1f8,[a93_0x5992('0xe'),a93_0x5992('0x64'),a93_0x5992('0x46'),a93_0x5992('0x7'),a93_0x5992('0x78'),'--quiet',a93_0x5992('0x31'),'--user-agent=Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_0)\x20AppleWebKit/604.1\x20(KHTML,\x20like\x20Gecko)\x20Version/13.0.4\x20Safari/604.1',a93_0x5992('0x1e'),a93_0x5992('0xa'),a93_0x5992('0x23')],{});_0x3b8108['on'](a93_0x5992('0x21'),_0x45c782=>this[a93_0x5992('0x39')](_0x2bd7e0,{..._0x45c782,'id':_0x97e40e,'requester':_0x2ec133[a93_0x5992('0x60')]['id']})),_0x3b8108['on'](a93_0x5992('0x20'),()=>this[a93_0x5992('0x74')](_0x2bd7e0)),_0x3b8108['on'](a93_0x5992('0x67'),()=>{_0x2ec133[a93_0x5992('0x1d')][a93_0x5992('0x0')]({'embed':{'color':tesseract_1[a93_0x5992('0x41')][a93_0x5992('0x16')][a93_0x5992('0x54')],'description':this[a93_0x5992('0x53')][a93_0x5992('0x33')][a93_0x5992('0x5b')](_0x2ec133[a93_0x5992('0x6c')][a93_0x5992('0x61')]['language'],a93_0x5992('0x63'),a93_0x5992('0x5a'))}})[a93_0x5992('0x4c')](()=>{});}),await fs[a93_0x5992('0x48')]['mkdir'](this[a93_0x5992('0x73')]+_0x2ec133[a93_0x5992('0x6c')]['id']+'/',{'recursive':!![]})[a93_0x5992('0x4c')](tesseract_1[a93_0x5992('0x49')]['error']),_0x3b8108[a93_0x5992('0x2c')](fs['createWriteStream'](this[a93_0x5992('0x73')]+_0x2ec133[a93_0x5992('0x6c')]['id']+'/'+_0x97e40e+a93_0x5992('0x4b')));},this[a93_0x5992('0x73')]=a93_0x5992('0x12');}[a93_0x5992('0x6e')](_0x23905b){return new Promise((_0x180e40,_0x24dd60)=>youtube[a93_0x5992('0x2d')](a93_0x5992('0x55')+_0x23905b,[a93_0x5992('0xe'),a93_0x5992('0x64'),'--geo-bypass-country=US',a93_0x5992('0x7'),a93_0x5992('0x78'),a93_0x5992('0x7c'),a93_0x5992('0x31'),a93_0x5992('0xf'),a93_0x5992('0x1e'),a93_0x5992('0xa'),a93_0x5992('0x23')],(_0x4fa6f1,_0x510e92)=>{if(_0x4fa6f1)return _0x24dd60(_0x4fa6f1);return _0x180e40(_0x510e92);}));}}; \ No newline at end of file diff --git a/commands/music/queue.js b/commands/music/queue.js index afbb8c1fb..bbc6c060c 100644 --- a/commands/music/queue.js +++ b/commands/music/queue.js @@ -1 +1 @@ -const a94_0x4db2=['dispatcher','\x20•\x20Page\x20','repeat','\x20•\x20','slice','get','isPublicBastion','author','@bastion/tesseract','It\x20allows\x20you\x20to\x20see\x20the\x20current\x20music\x20queue\x20of\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20clear,\x20or\x20shuffle\x20the\x20music\x20queue\x20as\x20well\x20as\x20remove\x20a\x20song\x20from\x20the\x20queue,\x20or\x20set\x20(and\x20unset)\x20the\x20queue\x20in\x20loop.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','musicQueueRemove','toString','getString','name','send','streamTime','../../utils/constants','textChannel','\x20of\x20','exports','artist','items','requester','constructor','inRange','../../utils/arrays','album','queue\x20--shuffle','test','exec','map','remove','\x20-\x20','duration','cache','floor','length','shuffle','isMusicMaster','musicQueueRepeatDisable','language','connection','clear','guild','tag','../../utils/numbers','musicQueueRepeatEnabled','pausedTime','music','Music\x20Queue','musicQueueClean','musicQueueShuffle','Constants','PINK','page','loop','apply','track','locale','playing','document','queue\x20--remove\x2013','return\x20/\x22\x20+\x20this\x20+\x20\x22/','client','queue','users','member','../../utils/pagination','info','COLORS','Command','voice','catch'];(function(_0x3dda26,_0x4db25a){const _0x5449e3=function(_0x54b43d){while(--_0x54b43d){_0x3dda26['push'](_0x3dda26['shift']());}},_0x22f1a0=function(){const _0x423543={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xe9b2fb,_0x128fef,_0x5df7e3,_0x4d39fc){_0x4d39fc=_0x4d39fc||{};let _0x3d0f72=_0x128fef+'='+_0x5df7e3,_0x354922=0x0;for(let _0xa37e26=0x0,_0x1b0e12=_0xe9b2fb['length'];_0xa37e26<_0x1b0e12;_0xa37e26++){const _0x22a09b=_0xe9b2fb[_0xa37e26];_0x3d0f72+=';\x20'+_0x22a09b;const _0x320b0a=_0xe9b2fb[_0x22a09b];_0xe9b2fb['push'](_0x320b0a),_0x1b0e12=_0xe9b2fb['length'],_0x320b0a!==!![]&&(_0x3d0f72+='='+_0x320b0a);}_0x4d39fc['cookie']=_0x3d0f72;},'removeCookie':function(){return'dev';},'getCookie':function(_0x24dc8c,_0x2a5bd9){_0x24dc8c=_0x24dc8c||function(_0x1c009d){return _0x1c009d;};const _0x6027f9=_0x24dc8c(new RegExp('(?:^|;\x20)'+_0x2a5bd9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x12b0dc=function(_0x16440f,_0x42d0e8){_0x16440f(++_0x42d0e8);};return _0x12b0dc(_0x5449e3,_0x4db25a),_0x6027f9?decodeURIComponent(_0x6027f9[0x1]):undefined;}},_0x16bd9d=function(){const _0x253173=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x253173['test'](_0x423543['removeCookie']['toString']());};_0x423543['updateCookie']=_0x16bd9d;let _0x11025a='';const _0x4cef34=_0x423543['updateCookie']();if(!_0x4cef34)_0x423543['setCookie'](['*'],'counter',0x1);else _0x4cef34?_0x11025a=_0x423543['getCookie'](null,'counter'):_0x423543['removeCookie']();};_0x22f1a0();}(a94_0x4db2,0x168));const a94_0x5449=function(_0x3dda26,_0x4db25a){_0x3dda26=_0x3dda26-0x0;let _0x5449e3=a94_0x4db2[_0x3dda26];return _0x5449e3;};const a94_0x5df7e3=function(){let _0x2d5323=!![];return function(_0x481e71,_0x3df6c4){const _0x2c6b57=_0x2d5323?function(){if(_0x3df6c4){const _0x5a14bf=_0x3df6c4[a94_0x5449('0x43')](_0x481e71,arguments);return _0x3df6c4=null,_0x5a14bf;}}:function(){};return _0x2d5323=![],_0x2c6b57;};}(),a94_0x128fef=a94_0x5df7e3(this,function(){const _0x34b484=function(){const _0xb24e5c=_0x34b484[a94_0x5449('0x22')](a94_0x5449('0x49'))()[a94_0x5449('0x22')](a94_0x5449('0x14'));return!_0xb24e5c[a94_0x5449('0x27')](a94_0x128fef);};return _0x34b484();});a94_0x128fef();'use strict';const tesseract_1=require(a94_0x5449('0x12')),arrays=require(a94_0x5449('0x24')),constants=require(a94_0x5449('0x1b')),numbers=require(a94_0x5449('0x38')),pagination=require(a94_0x5449('0x4'));module[a94_0x5449('0x1e')]=class Queue extends tesseract_1[a94_0x5449('0x7')]{constructor(){super(a94_0x5449('0x1'),{'description':a94_0x5449('0x13'),'triggers':[],'arguments':{'alias':{'clear':['c'],'loop':['l'],'remove':['r'],'shuffle':['s']},'boolean':['clear',a94_0x5449('0x42'),'shuffle'],'number':[a94_0x5449('0x2a')]},'scope':a94_0x5449('0x36'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a94_0x5449('0x1'),'queue\x20--loop',a94_0x5449('0x26'),'queue\x20--clear',a94_0x5449('0x48')]}),this[a94_0x5449('0x28')]=async(_0x42d692,_0x13f258)=>{const _0x540061=_0x42d692[a94_0x5449('0x36')];if(!_0x540061['document'][a94_0x5449('0x3b')]||!_0x540061[a94_0x5449('0x47')][a94_0x5449('0x3b')]['enabled'])return await _0x42d692['channel']['send']({'embed':{'color':tesseract_1[a94_0x5449('0x3f')][a94_0x5449('0x6')]['RED'],'description':this['client'][a94_0x5449('0x45')][a94_0x5449('0x17')](_0x42d692[a94_0x5449('0x36')][a94_0x5449('0x47')][a94_0x5449('0x33')],'errors',constants[a94_0x5449('0x10')](_0x42d692[a94_0x5449('0x11')])?'musicDisabledPublic':'musicDisabled')}})[a94_0x5449('0x9')](()=>{});if(_0x540061[a94_0x5449('0x3b')][a94_0x5449('0x46')]&&_0x540061[a94_0x5449('0x8')]&&_0x540061[a94_0x5449('0x8')][a94_0x5449('0x34')][a94_0x5449('0xa')]){const _0x25269d=_0x540061[a94_0x5449('0x3b')][a94_0x5449('0x1')][0x0];if(_0x13f258[a94_0x5449('0x35')]){if(!_0x42d692['member'][a94_0x5449('0x31')]())return;_0x540061[a94_0x5449('0x3b')]['queue']=[_0x25269d],_0x540061[a94_0x5449('0x3b')]['history']=[],_0x540061[a94_0x5449('0x3b')]['textChannel']['send']({'embed':{'color':tesseract_1[a94_0x5449('0x3f')]['COLORS'][a94_0x5449('0x40')],'description':this[a94_0x5449('0x0')][a94_0x5449('0x45')]['getString'](_0x42d692[a94_0x5449('0x36')][a94_0x5449('0x47')][a94_0x5449('0x33')],a94_0x5449('0x5'),a94_0x5449('0x3d'),_0x42d692[a94_0x5449('0x11')][a94_0x5449('0x37')])}})[a94_0x5449('0x9')](()=>{});}else{if(_0x13f258[a94_0x5449('0x42')])_0x540061[a94_0x5449('0x3b')]['repeat']=!_0x540061[a94_0x5449('0x3b')][a94_0x5449('0xc')],_0x540061[a94_0x5449('0x3b')]['textChannel'][a94_0x5449('0x19')]({'embed':{'color':tesseract_1[a94_0x5449('0x3f')][a94_0x5449('0x6')][a94_0x5449('0x40')],'description':this[a94_0x5449('0x0')]['locale'][a94_0x5449('0x17')](_0x42d692[a94_0x5449('0x36')][a94_0x5449('0x47')]['language'],'info',_0x540061[a94_0x5449('0x3b')][a94_0x5449('0xc')]?a94_0x5449('0x39'):a94_0x5449('0x32'),_0x42d692[a94_0x5449('0x11')][a94_0x5449('0x37')])}})[a94_0x5449('0x9')](()=>{});else{if(_0x13f258[a94_0x5449('0x2a')]&&_0x540061[a94_0x5449('0x3b')]['queue'][a94_0x5449('0x2f')]>0x1&&numbers[a94_0x5449('0x23')](_0x13f258[a94_0x5449('0x2a')],0x1,_0x540061[a94_0x5449('0x3b')][a94_0x5449('0x1')][a94_0x5449('0x2f')]-0x1)){if(!_0x42d692[a94_0x5449('0x3')]['isMusicMaster']()&&_0x540061[a94_0x5449('0x3b')][a94_0x5449('0x1')][_0x13f258['remove']][a94_0x5449('0x21')]!==_0x42d692[a94_0x5449('0x11')]['id'])return;const _0x27d629=_0x540061['music'][a94_0x5449('0x1')]['splice'](_0x13f258['remove'],0x1)[0x0];_0x540061[a94_0x5449('0x3b')][a94_0x5449('0x1c')][a94_0x5449('0x19')]({'embed':{'color':tesseract_1[a94_0x5449('0x3f')]['COLORS'][a94_0x5449('0x40')],'description':this['client'][a94_0x5449('0x45')][a94_0x5449('0x17')](_0x42d692[a94_0x5449('0x36')][a94_0x5449('0x47')][a94_0x5449('0x33')],a94_0x5449('0x5'),a94_0x5449('0x15'),_0x42d692[a94_0x5449('0x11')][a94_0x5449('0x37')],_0x27d629[a94_0x5449('0x44')],this[a94_0x5449('0x0')][a94_0x5449('0x2')][a94_0x5449('0x2d')]['has'](_0x27d629[a94_0x5449('0x21')])?this[a94_0x5449('0x0')][a94_0x5449('0x2')][a94_0x5449('0x2d')][a94_0x5449('0xf')](_0x27d629[a94_0x5449('0x21')])['tag']:_0x27d629[a94_0x5449('0x21')])}})[a94_0x5449('0x9')](()=>{});}else{if(_0x13f258[a94_0x5449('0x30')]){if(!_0x42d692[a94_0x5449('0x3')][a94_0x5449('0x31')]())return;const _0x38c923=arrays[a94_0x5449('0x30')](_0x540061[a94_0x5449('0x3b')][a94_0x5449('0x1')]['slice'](0x1));_0x540061[a94_0x5449('0x3b')][a94_0x5449('0x1')]=[_0x25269d,..._0x38c923],_0x540061['music'][a94_0x5449('0x1c')][a94_0x5449('0x19')]({'embed':{'color':tesseract_1[a94_0x5449('0x3f')][a94_0x5449('0x6')][a94_0x5449('0x40')],'description':this['client'][a94_0x5449('0x45')][a94_0x5449('0x17')](_0x42d692[a94_0x5449('0x36')][a94_0x5449('0x47')][a94_0x5449('0x33')],a94_0x5449('0x5'),a94_0x5449('0x3e'),_0x42d692[a94_0x5449('0x11')][a94_0x5449('0x37')])}})[a94_0x5449('0x9')](()=>{});}else{const _0x1b158e=_0x540061[a94_0x5449('0x8')][a94_0x5449('0x34')]['dispatcher'][a94_0x5449('0x1a')]-_0x540061[a94_0x5449('0x8')][a94_0x5449('0x34')]['dispatcher'][a94_0x5449('0x3a')],_0x3e791f=pagination['paginate'](_0x540061[a94_0x5449('0x3b')][a94_0x5449('0x1')][a94_0x5449('0xe')](0x1),_0x13f258[a94_0x5449('0x41')]);_0x540061[a94_0x5449('0x3b')]['textChannel'][a94_0x5449('0x19')]({'embed':{'color':tesseract_1[a94_0x5449('0x3f')][a94_0x5449('0x6')][a94_0x5449('0x40')],'title':a94_0x5449('0x3c'),'description':this['client'][a94_0x5449('0x45')]['getString'](_0x42d692[a94_0x5449('0x36')][a94_0x5449('0x47')][a94_0x5449('0x33')],a94_0x5449('0x5'),'musicQueueCount',(_0x540061[a94_0x5449('0x3b')]['queue'][a94_0x5449('0x2f')]-0x1)[a94_0x5449('0x16')]()),'fields':_0x3e791f[a94_0x5449('0x20')][a94_0x5449('0x29')]((_0x4336b9,_0x265a0d)=>({'name':'#'+(_0x265a0d+0x1)+'\x20-\x20'+_0x4336b9['track'],'value':''+(_0x4336b9[a94_0x5449('0x1f')]||'Unknown\x20Artist')+(_0x4336b9[a94_0x5449('0x25')]&&_0x4336b9[a94_0x5449('0x44')]!==_0x4336b9[a94_0x5449('0x25')]?a94_0x5449('0x2b')+_0x4336b9['album']:'')})),'footer':{'text':_0x25269d['track']+a94_0x5449('0xd')+Math[a94_0x5449('0x2e')](_0x1b158e/0xea60)+':'+Math[a94_0x5449('0x2e')](_0x1b158e%0xea60/0x3e8)+'\x20/\x20'+_0x25269d[a94_0x5449('0x2c')]+'\x20•\x20'+_0x540061['voice'][a94_0x5449('0x34')]['channel'][a94_0x5449('0x18')]+a94_0x5449('0xb')+_0x3e791f[a94_0x5449('0x41')]+a94_0x5449('0x1d')+_0x3e791f['pages']}}})['catch'](()=>{});}}}}}};}}; \ No newline at end of file +const a94_0x578f=['RED','length','\x20-\x20','musicQueueCount','musicQueueClean','author','musicQueueRepeatEnabled','document','requester','queue\x20--loop','clear','catch','inRange','Constants','music','voice','streamTime','textChannel','users','shuffle','errors','isPublicBastion','track','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','has','PINK','../../utils/pagination','repeat','duration','locale','album','channel','It\x20allows\x20you\x20to\x20see\x20the\x20current\x20music\x20queue\x20of\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20clear,\x20or\x20shuffle\x20the\x20music\x20queue\x20as\x20well\x20as\x20remove\x20a\x20song\x20from\x20the\x20queue,\x20or\x20set\x20(and\x20unset)\x20the\x20queue\x20in\x20loop.','musicDisabled','apply','paginate','return\x20/\x22\x20+\x20this\x20+\x20\x22/','client','queue','tag','remove','queue\x20--shuffle','@bastion/tesseract','loop','getString','exports','guild','member','slice','floor','page','musicQueueShuffle','musicDisabledPublic','dispatcher','Unknown\x20Artist','\x20of\x20','connection','exec','playing','toString','COLORS','isMusicMaster','pausedTime','artist','\x20/\x20','info','Music\x20Queue','../../utils/numbers','send','musicQueueRemove','language','\x20•\x20','map','constructor','musicQueueRepeatDisable','Command','cache'];(function(_0x585e1f,_0x578fb4){const _0x438a6d=function(_0x4c992e){while(--_0x4c992e){_0x585e1f['push'](_0x585e1f['shift']());}},_0x356e54=function(){const _0x39f7ea={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2864af,_0x1575bb,_0x437728,_0x15f0cb){_0x15f0cb=_0x15f0cb||{};let _0x1b9983=_0x1575bb+'='+_0x437728,_0x117fb4=0x0;for(let _0x2cf202=0x0,_0x4b41f0=_0x2864af['length'];_0x2cf202<_0x4b41f0;_0x2cf202++){const _0x1113b2=_0x2864af[_0x2cf202];_0x1b9983+=';\x20'+_0x1113b2;const _0x597f65=_0x2864af[_0x1113b2];_0x2864af['push'](_0x597f65),_0x4b41f0=_0x2864af['length'],_0x597f65!==!![]&&(_0x1b9983+='='+_0x597f65);}_0x15f0cb['cookie']=_0x1b9983;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1a2bf1,_0x523cd3){_0x1a2bf1=_0x1a2bf1||function(_0x519145){return _0x519145;};const _0x4d7da0=_0x1a2bf1(new RegExp('(?:^|;\x20)'+_0x523cd3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x246233=function(_0x3cced2,_0x33e056){_0x3cced2(++_0x33e056);};return _0x246233(_0x438a6d,_0x578fb4),_0x4d7da0?decodeURIComponent(_0x4d7da0[0x1]):undefined;}},_0x2ab955=function(){const _0x28430c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x28430c['test'](_0x39f7ea['removeCookie']['toString']());};_0x39f7ea['updateCookie']=_0x2ab955;let _0x4a7bf4='';const _0x21ae8c=_0x39f7ea['updateCookie']();if(!_0x21ae8c)_0x39f7ea['setCookie'](['*'],'counter',0x1);else _0x21ae8c?_0x4a7bf4=_0x39f7ea['getCookie'](null,'counter'):_0x39f7ea['removeCookie']();};_0x356e54();}(a94_0x578f,0x1d7));const a94_0x438a=function(_0x585e1f,_0x578fb4){_0x585e1f=_0x585e1f-0x0;let _0x438a6d=a94_0x578f[_0x585e1f];return _0x438a6d;};const a94_0x437728=function(){let _0x16acd9=!![];return function(_0x5b1f36,_0x1dd053){const _0xf2b13f=_0x16acd9?function(){if(_0x1dd053){const _0x3fb7b9=_0x1dd053[a94_0x438a('0x19')](_0x5b1f36,arguments);return _0x1dd053=null,_0x3fb7b9;}}:function(){};return _0x16acd9=![],_0xf2b13f;};}(),a94_0x1575bb=a94_0x437728(this,function(){const _0x287c69=function(){const _0x1d1884=_0x287c69[a94_0x438a('0x40')](a94_0x438a('0x1b'))()['constructor'](a94_0x438a('0xe'));return!_0x1d1884['test'](a94_0x1575bb);};return _0x287c69();});a94_0x1575bb();'use strict';const tesseract_1=require(a94_0x438a('0x21')),arrays=require('../../utils/arrays'),constants=require('../../utils/constants'),numbers=require(a94_0x438a('0x3a')),pagination=require(a94_0x438a('0x11'));module[a94_0x438a('0x24')]=class Queue extends tesseract_1[a94_0x438a('0x42')]{constructor(){super(a94_0x438a('0x1d'),{'description':a94_0x438a('0x17'),'triggers':[],'arguments':{'alias':{'clear':['c'],'loop':['l'],'remove':['r'],'shuffle':['s']},'boolean':['clear',a94_0x438a('0x22'),'shuffle'],'number':[a94_0x438a('0x1f')]},'scope':a94_0x438a('0x25'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a94_0x438a('0x1d'),a94_0x438a('0x0'),a94_0x438a('0x20'),'queue\x20--clear','queue\x20--remove\x2013']}),this[a94_0x438a('0x30')]=async(_0x4b3b19,_0x427c57)=>{const _0x554acb=_0x4b3b19[a94_0x438a('0x25')];if(!_0x554acb[a94_0x438a('0x4b')][a94_0x438a('0x5')]||!_0x554acb[a94_0x438a('0x4b')][a94_0x438a('0x5')]['enabled'])return await _0x4b3b19[a94_0x438a('0x16')]['send']({'embed':{'color':tesseract_1[a94_0x438a('0x4')][a94_0x438a('0x33')][a94_0x438a('0x44')],'description':this[a94_0x438a('0x1c')][a94_0x438a('0x14')]['getString'](_0x4b3b19[a94_0x438a('0x25')][a94_0x438a('0x4b')][a94_0x438a('0x3d')],a94_0x438a('0xb'),constants[a94_0x438a('0xc')](_0x4b3b19[a94_0x438a('0x49')])?a94_0x438a('0x2b'):a94_0x438a('0x18'))}})['catch'](()=>{});if(_0x554acb[a94_0x438a('0x5')][a94_0x438a('0x31')]&&_0x554acb[a94_0x438a('0x6')]&&_0x554acb[a94_0x438a('0x6')][a94_0x438a('0x2f')][a94_0x438a('0x2c')]){const _0xe20e3c=_0x554acb[a94_0x438a('0x5')]['queue'][0x0];if(_0x427c57[a94_0x438a('0x1')]){if(!_0x4b3b19[a94_0x438a('0x26')][a94_0x438a('0x34')]())return;_0x554acb[a94_0x438a('0x5')][a94_0x438a('0x1d')]=[_0xe20e3c],_0x554acb[a94_0x438a('0x5')]['history']=[],_0x554acb[a94_0x438a('0x5')]['textChannel']['send']({'embed':{'color':tesseract_1[a94_0x438a('0x4')][a94_0x438a('0x33')]['PINK'],'description':this[a94_0x438a('0x1c')][a94_0x438a('0x14')][a94_0x438a('0x23')](_0x4b3b19[a94_0x438a('0x25')][a94_0x438a('0x4b')][a94_0x438a('0x3d')],'info',a94_0x438a('0x48'),_0x4b3b19[a94_0x438a('0x49')][a94_0x438a('0x1e')])}})[a94_0x438a('0x2')](()=>{});}else{if(_0x427c57[a94_0x438a('0x22')])_0x554acb['music'][a94_0x438a('0x12')]=!_0x554acb[a94_0x438a('0x5')][a94_0x438a('0x12')],_0x554acb[a94_0x438a('0x5')][a94_0x438a('0x8')][a94_0x438a('0x3b')]({'embed':{'color':tesseract_1[a94_0x438a('0x4')][a94_0x438a('0x33')][a94_0x438a('0x10')],'description':this['client'][a94_0x438a('0x14')][a94_0x438a('0x23')](_0x4b3b19[a94_0x438a('0x25')][a94_0x438a('0x4b')][a94_0x438a('0x3d')],'info',_0x554acb[a94_0x438a('0x5')][a94_0x438a('0x12')]?a94_0x438a('0x4a'):a94_0x438a('0x41'),_0x4b3b19['author']['tag'])}})['catch'](()=>{});else{if(_0x427c57[a94_0x438a('0x1f')]&&_0x554acb[a94_0x438a('0x5')]['queue']['length']>0x1&&numbers[a94_0x438a('0x3')](_0x427c57[a94_0x438a('0x1f')],0x1,_0x554acb[a94_0x438a('0x5')][a94_0x438a('0x1d')][a94_0x438a('0x45')]-0x1)){if(!_0x4b3b19['member'][a94_0x438a('0x34')]()&&_0x554acb['music'][a94_0x438a('0x1d')][_0x427c57[a94_0x438a('0x1f')]][a94_0x438a('0x4c')]!==_0x4b3b19[a94_0x438a('0x49')]['id'])return;const _0x2b07a8=_0x554acb[a94_0x438a('0x5')][a94_0x438a('0x1d')]['splice'](_0x427c57[a94_0x438a('0x1f')],0x1)[0x0];_0x554acb['music'][a94_0x438a('0x8')][a94_0x438a('0x3b')]({'embed':{'color':tesseract_1[a94_0x438a('0x4')][a94_0x438a('0x33')]['PINK'],'description':this['client'][a94_0x438a('0x14')][a94_0x438a('0x23')](_0x4b3b19['guild'][a94_0x438a('0x4b')][a94_0x438a('0x3d')],a94_0x438a('0x38'),a94_0x438a('0x3c'),_0x4b3b19[a94_0x438a('0x49')][a94_0x438a('0x1e')],_0x2b07a8[a94_0x438a('0xd')],this['client'][a94_0x438a('0x9')]['cache'][a94_0x438a('0xf')](_0x2b07a8['requester'])?this[a94_0x438a('0x1c')][a94_0x438a('0x9')][a94_0x438a('0x43')]['get'](_0x2b07a8[a94_0x438a('0x4c')])[a94_0x438a('0x1e')]:_0x2b07a8[a94_0x438a('0x4c')])}})[a94_0x438a('0x2')](()=>{});}else{if(_0x427c57[a94_0x438a('0xa')]){if(!_0x4b3b19['member']['isMusicMaster']())return;const _0x3e8edb=arrays[a94_0x438a('0xa')](_0x554acb['music'][a94_0x438a('0x1d')][a94_0x438a('0x27')](0x1));_0x554acb['music'][a94_0x438a('0x1d')]=[_0xe20e3c,..._0x3e8edb],_0x554acb[a94_0x438a('0x5')][a94_0x438a('0x8')]['send']({'embed':{'color':tesseract_1[a94_0x438a('0x4')][a94_0x438a('0x33')]['PINK'],'description':this[a94_0x438a('0x1c')][a94_0x438a('0x14')][a94_0x438a('0x23')](_0x4b3b19[a94_0x438a('0x25')][a94_0x438a('0x4b')][a94_0x438a('0x3d')],a94_0x438a('0x38'),a94_0x438a('0x2a'),_0x4b3b19[a94_0x438a('0x49')][a94_0x438a('0x1e')])}})[a94_0x438a('0x2')](()=>{});}else{const _0x5610ca=_0x554acb['voice'][a94_0x438a('0x2f')][a94_0x438a('0x2c')][a94_0x438a('0x7')]-_0x554acb['voice'][a94_0x438a('0x2f')]['dispatcher'][a94_0x438a('0x35')],_0x436976=pagination[a94_0x438a('0x1a')](_0x554acb['music'][a94_0x438a('0x1d')][a94_0x438a('0x27')](0x1),_0x427c57[a94_0x438a('0x29')]);_0x554acb['music'][a94_0x438a('0x8')][a94_0x438a('0x3b')]({'embed':{'color':tesseract_1[a94_0x438a('0x4')][a94_0x438a('0x33')][a94_0x438a('0x10')],'title':a94_0x438a('0x39'),'description':this['client']['locale'][a94_0x438a('0x23')](_0x4b3b19[a94_0x438a('0x25')][a94_0x438a('0x4b')][a94_0x438a('0x3d')],a94_0x438a('0x38'),a94_0x438a('0x47'),(_0x554acb[a94_0x438a('0x5')][a94_0x438a('0x1d')][a94_0x438a('0x45')]-0x1)[a94_0x438a('0x32')]()),'fields':_0x436976['items'][a94_0x438a('0x3f')]((_0x5b01bb,_0xe5f723)=>({'name':'#'+(_0xe5f723+0x1)+a94_0x438a('0x46')+_0x5b01bb[a94_0x438a('0xd')],'value':''+(_0x5b01bb[a94_0x438a('0x36')]||a94_0x438a('0x2d'))+(_0x5b01bb[a94_0x438a('0x15')]&&_0x5b01bb[a94_0x438a('0xd')]!==_0x5b01bb[a94_0x438a('0x15')]?a94_0x438a('0x46')+_0x5b01bb['album']:'')})),'footer':{'text':_0xe20e3c[a94_0x438a('0xd')]+a94_0x438a('0x3e')+Math[a94_0x438a('0x28')](_0x5610ca/0xea60)+':'+Math[a94_0x438a('0x28')](_0x5610ca%0xea60/0x3e8)+a94_0x438a('0x37')+_0xe20e3c[a94_0x438a('0x13')]+a94_0x438a('0x3e')+_0x554acb['voice'][a94_0x438a('0x2f')]['channel']['name']+'\x20•\x20Page\x20'+_0x436976[a94_0x438a('0x29')]+a94_0x438a('0x2e')+_0x436976['pages']}}})['catch'](()=>{});}}}}}};}}; \ No newline at end of file diff --git a/commands/music/resume.js b/commands/music/resume.js index b8ed11c7d..e669b40ae 100644 --- a/commands/music/resume.js +++ b/commands/music/resume.js @@ -1 +1 @@ -const a95_0x1d8f=['@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','locale','playbackResume','enabled','apply','COLORS','exec','client','dispatcher','PINK','It\x20allows\x20you\x20to\x20resume\x20the\x20music\x20track\x20that\x20was\x20paused\x20in\x20the\x20server.','exports','\x20•\x20','language','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','voice','musicDisabledPublic','catch','musicDisabled','streamTime','floor','send','resume','queue','music','textChannel','playing','getString','guild','author','RED','connection','member','track','document','errors','tag','name','isMusicMaster','info'];(function(_0x248011,_0x1d8f8c){const _0xfcd23b=function(_0x381a6c){while(--_0x381a6c){_0x248011['push'](_0x248011['shift']());}},_0x4b6783=function(){const _0x39bcc2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x409c51,_0x237288,_0x7fd345,_0xc470a9){_0xc470a9=_0xc470a9||{};let _0x1cd266=_0x237288+'='+_0x7fd345,_0x118f4d=0x0;for(let _0x3dfebb=0x0,_0x5a9453=_0x409c51['length'];_0x3dfebb<_0x5a9453;_0x3dfebb++){const _0x415738=_0x409c51[_0x3dfebb];_0x1cd266+=';\x20'+_0x415738;const _0x5c26ba=_0x409c51[_0x415738];_0x409c51['push'](_0x5c26ba),_0x5a9453=_0x409c51['length'],_0x5c26ba!==!![]&&(_0x1cd266+='='+_0x5c26ba);}_0xc470a9['cookie']=_0x1cd266;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd4b527,_0x4c8028){_0xd4b527=_0xd4b527||function(_0x15d8e5){return _0x15d8e5;};const _0x40be5e=_0xd4b527(new RegExp('(?:^|;\x20)'+_0x4c8028['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5900a7=function(_0x971b1a,_0x44c196){_0x971b1a(++_0x44c196);};return _0x5900a7(_0xfcd23b,_0x1d8f8c),_0x40be5e?decodeURIComponent(_0x40be5e[0x1]):undefined;}},_0x55ed16=function(){const _0xe3470c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xe3470c['test'](_0x39bcc2['removeCookie']['toString']());};_0x39bcc2['updateCookie']=_0x55ed16;let _0x176906='';const _0x4976d4=_0x39bcc2['updateCookie']();if(!_0x4976d4)_0x39bcc2['setCookie'](['*'],'counter',0x1);else _0x4976d4?_0x176906=_0x39bcc2['getCookie'](null,'counter'):_0x39bcc2['removeCookie']();};_0x4b6783();}(a95_0x1d8f,0xfd));const a95_0xfcd2=function(_0x248011,_0x1d8f8c){_0x248011=_0x248011-0x0;let _0xfcd23b=a95_0x1d8f[_0x248011];return _0xfcd23b;};const a95_0x7fd345=function(){let _0x4d1159=!![];return function(_0x1d0c29,_0x140173){const _0x311a39=_0x4d1159?function(){if(_0x140173){const _0x27ba70=_0x140173[a95_0xfcd2('0x4')](_0x1d0c29,arguments);return _0x140173=null,_0x27ba70;}}:function(){};return _0x4d1159=![],_0x311a39;};}(),a95_0x237288=a95_0x7fd345(this,function(){const _0x5570ed=function(){const _0x4216ad=_0x5570ed[a95_0xfcd2('0xe')](a95_0xfcd2('0xf'))()['constructor'](a95_0xfcd2('0x0'));return!_0x4216ad['test'](a95_0x237288);};return _0x5570ed();});a95_0x237288();'use strict';const tesseract_1=require(a95_0xfcd2('0x29')),constants=require('../../utils/constants');module[a95_0xfcd2('0xb')]=class Resume extends tesseract_1['Command']{constructor(){super(a95_0xfcd2('0x17'),{'description':a95_0xfcd2('0xa'),'triggers':[],'arguments':{},'scope':a95_0xfcd2('0x1d'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[a95_0xfcd2('0x6')]=async _0x553178=>{const _0x4b7cd8=_0x553178['guild'];if(!_0x4b7cd8[a95_0xfcd2('0x23')][a95_0xfcd2('0x19')]||!_0x4b7cd8[a95_0xfcd2('0x23')][a95_0xfcd2('0x19')][a95_0xfcd2('0x3')])return await _0x553178['channel'][a95_0xfcd2('0x16')]({'embed':{'color':tesseract_1['Constants'][a95_0xfcd2('0x5')][a95_0xfcd2('0x1f')],'description':this[a95_0xfcd2('0x7')][a95_0xfcd2('0x1')][a95_0xfcd2('0x1c')](_0x553178[a95_0xfcd2('0x1d')][a95_0xfcd2('0x23')][a95_0xfcd2('0xd')],a95_0xfcd2('0x24'),constants['isPublicBastion'](_0x553178['author'])?a95_0xfcd2('0x11'):a95_0xfcd2('0x13'))}})[a95_0xfcd2('0x12')](()=>{});if(!_0x553178[a95_0xfcd2('0x21')][a95_0xfcd2('0x27')]())return;if(_0x4b7cd8['music'][a95_0xfcd2('0x1b')]&&_0x4b7cd8[a95_0xfcd2('0x10')]&&_0x4b7cd8[a95_0xfcd2('0x10')][a95_0xfcd2('0x20')]['dispatcher']&&_0x4b7cd8['voice'][a95_0xfcd2('0x20')][a95_0xfcd2('0x8')]['paused']){_0x4b7cd8[a95_0xfcd2('0x10')][a95_0xfcd2('0x20')][a95_0xfcd2('0x8')][a95_0xfcd2('0x17')]();const _0x425450=_0x4b7cd8[a95_0xfcd2('0x19')][a95_0xfcd2('0x18')][0x0],_0x3371b0=_0x4b7cd8[a95_0xfcd2('0x10')][a95_0xfcd2('0x20')][a95_0xfcd2('0x8')][a95_0xfcd2('0x14')]-_0x4b7cd8['voice'][a95_0xfcd2('0x20')][a95_0xfcd2('0x8')]['pausedTime'];_0x4b7cd8['music'][a95_0xfcd2('0x1a')][a95_0xfcd2('0x16')]({'embed':{'color':tesseract_1['Constants']['COLORS'][a95_0xfcd2('0x9')],'title':'Resumed\x20Playback','description':this[a95_0xfcd2('0x7')]['locale']['getString'](_0x553178[a95_0xfcd2('0x1d')]['document'][a95_0xfcd2('0xd')],a95_0xfcd2('0x28'),a95_0xfcd2('0x2'),_0x553178[a95_0xfcd2('0x1e')][a95_0xfcd2('0x25')],_0x425450[a95_0xfcd2('0x22')]),'footer':{'text':Math[a95_0xfcd2('0x15')](_0x3371b0/0xea60)+':'+Math[a95_0xfcd2('0x15')](_0x3371b0%0xea60/0x3e8)+'\x20/\x20'+_0x425450['duration']+a95_0xfcd2('0xc')+_0x4b7cd8[a95_0xfcd2('0x10')]['connection']['channel'][a95_0xfcd2('0x26')]}}})['catch'](()=>{});}};}}; \ No newline at end of file +const a95_0x5e25=['language','music','document','info','exports','member','resume','isPublicBastion','dispatcher','playbackResume','COLORS','paused','../../utils/constants','name','apply','queue','floor','client','locale','tag','track','getString','test','@bastion/tesseract','musicDisabledPublic','musicDisabled','Resumed\x20Playback','streamTime','constructor','enabled','voice','channel','Constants','textChannel','send','author','It\x20allows\x20you\x20to\x20resume\x20the\x20music\x20track\x20that\x20was\x20paused\x20in\x20the\x20server.','isMusicMaster','connection','Command','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','pausedTime','RED','\x20/\x20'];(function(_0x27b671,_0x5e256d){const _0x40fd96=function(_0x1687d8){while(--_0x1687d8){_0x27b671['push'](_0x27b671['shift']());}},_0x5207b6=function(){const _0x49a8c2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x34961b,_0x285f7b,_0x23f372,_0x13bc20){_0x13bc20=_0x13bc20||{};let _0x3c57c7=_0x285f7b+'='+_0x23f372,_0x28801f=0x0;for(let _0x4e7c3f=0x0,_0x5c6f59=_0x34961b['length'];_0x4e7c3f<_0x5c6f59;_0x4e7c3f++){const _0x13bfca=_0x34961b[_0x4e7c3f];_0x3c57c7+=';\x20'+_0x13bfca;const _0x6edcf4=_0x34961b[_0x13bfca];_0x34961b['push'](_0x6edcf4),_0x5c6f59=_0x34961b['length'],_0x6edcf4!==!![]&&(_0x3c57c7+='='+_0x6edcf4);}_0x13bc20['cookie']=_0x3c57c7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1cc3f6,_0x37d49c){_0x1cc3f6=_0x1cc3f6||function(_0x6f7ce2){return _0x6f7ce2;};const _0x4754e1=_0x1cc3f6(new RegExp('(?:^|;\x20)'+_0x37d49c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x41e32c=function(_0x5f6999,_0x3756ad){_0x5f6999(++_0x3756ad);};return _0x41e32c(_0x40fd96,_0x5e256d),_0x4754e1?decodeURIComponent(_0x4754e1[0x1]):undefined;}},_0x2c0053=function(){const _0x47924f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x47924f['test'](_0x49a8c2['removeCookie']['toString']());};_0x49a8c2['updateCookie']=_0x2c0053;let _0x2a3db3='';const _0x1d988d=_0x49a8c2['updateCookie']();if(!_0x1d988d)_0x49a8c2['setCookie'](['*'],'counter',0x1);else _0x1d988d?_0x2a3db3=_0x49a8c2['getCookie'](null,'counter'):_0x49a8c2['removeCookie']();};_0x5207b6();}(a95_0x5e25,0x10a));const a95_0x40fd=function(_0x27b671,_0x5e256d){_0x27b671=_0x27b671-0x0;let _0x40fd96=a95_0x5e25[_0x27b671];return _0x40fd96;};const a95_0x23f372=function(){let _0x502c17=!![];return function(_0x542d5d,_0xb6a3c8){const _0x2b7dc5=_0x502c17?function(){if(_0xb6a3c8){const _0x5a834a=_0xb6a3c8[a95_0x40fd('0x12')](_0x542d5d,arguments);return _0xb6a3c8=null,_0x5a834a;}}:function(){};return _0x502c17=![],_0x2b7dc5;};}(),a95_0x285f7b=a95_0x23f372(this,function(){const _0x5d494c=function(){const _0x25ff6b=_0x5d494c[a95_0x40fd('0x20')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a95_0x40fd('0x20')](a95_0x40fd('0x0'));return!_0x25ff6b[a95_0x40fd('0x1a')](a95_0x285f7b);};return _0x5d494c();});a95_0x285f7b();'use strict';const tesseract_1=require(a95_0x40fd('0x1b')),constants=require(a95_0x40fd('0x10'));module[a95_0x40fd('0x8')]=class Resume extends tesseract_1[a95_0x40fd('0x2b')]{constructor(){super(a95_0x40fd('0xa'),{'description':a95_0x40fd('0x28'),'triggers':[],'arguments':{},'scope':a95_0x40fd('0x2c'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this['exec']=async _0x19c13c=>{const _0x10f6cc=_0x19c13c[a95_0x40fd('0x2c')];if(!_0x10f6cc[a95_0x40fd('0x6')][a95_0x40fd('0x5')]||!_0x10f6cc[a95_0x40fd('0x6')][a95_0x40fd('0x5')][a95_0x40fd('0x21')])return await _0x19c13c[a95_0x40fd('0x23')][a95_0x40fd('0x26')]({'embed':{'color':tesseract_1[a95_0x40fd('0x24')][a95_0x40fd('0xe')][a95_0x40fd('0x2')],'description':this['client']['locale'][a95_0x40fd('0x19')](_0x19c13c['guild']['document'][a95_0x40fd('0x4')],'errors',constants[a95_0x40fd('0xb')](_0x19c13c['author'])?a95_0x40fd('0x1c'):a95_0x40fd('0x1d'))}})['catch'](()=>{});if(!_0x19c13c[a95_0x40fd('0x9')][a95_0x40fd('0x29')]())return;if(_0x10f6cc[a95_0x40fd('0x5')]['playing']&&_0x10f6cc['voice']&&_0x10f6cc[a95_0x40fd('0x22')][a95_0x40fd('0x2a')][a95_0x40fd('0xc')]&&_0x10f6cc[a95_0x40fd('0x22')][a95_0x40fd('0x2a')][a95_0x40fd('0xc')][a95_0x40fd('0xf')]){_0x10f6cc[a95_0x40fd('0x22')][a95_0x40fd('0x2a')][a95_0x40fd('0xc')][a95_0x40fd('0xa')]();const _0x98aa7d=_0x10f6cc[a95_0x40fd('0x5')][a95_0x40fd('0x13')][0x0],_0x208a35=_0x10f6cc[a95_0x40fd('0x22')][a95_0x40fd('0x2a')][a95_0x40fd('0xc')][a95_0x40fd('0x1f')]-_0x10f6cc[a95_0x40fd('0x22')]['connection']['dispatcher'][a95_0x40fd('0x1')];_0x10f6cc[a95_0x40fd('0x5')][a95_0x40fd('0x25')][a95_0x40fd('0x26')]({'embed':{'color':tesseract_1[a95_0x40fd('0x24')][a95_0x40fd('0xe')]['PINK'],'title':a95_0x40fd('0x1e'),'description':this[a95_0x40fd('0x15')][a95_0x40fd('0x16')][a95_0x40fd('0x19')](_0x19c13c[a95_0x40fd('0x2c')]['document'][a95_0x40fd('0x4')],a95_0x40fd('0x7'),a95_0x40fd('0xd'),_0x19c13c[a95_0x40fd('0x27')][a95_0x40fd('0x17')],_0x98aa7d[a95_0x40fd('0x18')]),'footer':{'text':Math['floor'](_0x208a35/0xea60)+':'+Math[a95_0x40fd('0x14')](_0x208a35%0xea60/0x3e8)+a95_0x40fd('0x3')+_0x98aa7d['duration']+'\x20•\x20'+_0x10f6cc[a95_0x40fd('0x22')]['connection']['channel'][a95_0x40fd('0x11')]}}})['catch'](()=>{});}};}}; \ No newline at end of file diff --git a/commands/music/skip.js b/commands/music/skip.js index 326363910..713572e1a 100644 --- a/commands/music/skip.js +++ b/commands/music/skip.js @@ -1 +1 @@ -const a96_0x2569=['test','dispatcher','catch','send','client','RED','musicDisabled','../../utils/constants','textChannel','push','author','errors','apply','music','length','Command','skipVotes','COLORS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','members','language','channel','enabled','exports','queue','\x20•\x20','document','isPublicBastion','@bastion/tesseract','track','It\x20allows\x20you\x20to\x20skip\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','connection','info','getString','isMusicMaster','end','voiceChannel','has','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','skip','constructor','guild','musicDisabledPublic','toString','locale','size','ceil','includes','voice','exec'];(function(_0x5cc113,_0x256988){const _0x48bb0a=function(_0x2e3419){while(--_0x2e3419){_0x5cc113['push'](_0x5cc113['shift']());}},_0x3f5094=function(){const _0x250db9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x6bf1fd,_0x100512,_0x29fa81,_0x2737c8){_0x2737c8=_0x2737c8||{};let _0x2481bb=_0x100512+'='+_0x29fa81,_0x2b5f2c=0x0;for(let _0x3f2327=0x0,_0x3acd19=_0x6bf1fd['length'];_0x3f2327<_0x3acd19;_0x3f2327++){const _0x292071=_0x6bf1fd[_0x3f2327];_0x2481bb+=';\x20'+_0x292071;const _0x3d187d=_0x6bf1fd[_0x292071];_0x6bf1fd['push'](_0x3d187d),_0x3acd19=_0x6bf1fd['length'],_0x3d187d!==!![]&&(_0x2481bb+='='+_0x3d187d);}_0x2737c8['cookie']=_0x2481bb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x366e1d,_0x1171c5){_0x366e1d=_0x366e1d||function(_0x3e63f5){return _0x3e63f5;};const _0x2e4599=_0x366e1d(new RegExp('(?:^|;\x20)'+_0x1171c5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x28a2a2=function(_0x26ded9,_0x2da163){_0x26ded9(++_0x2da163);};return _0x28a2a2(_0x48bb0a,_0x256988),_0x2e4599?decodeURIComponent(_0x2e4599[0x1]):undefined;}},_0x199d37=function(){const _0x1a0b56=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1a0b56['test'](_0x250db9['removeCookie']['toString']());};_0x250db9['updateCookie']=_0x199d37;let _0x2985da='';const _0xda0ae9=_0x250db9['updateCookie']();if(!_0xda0ae9)_0x250db9['setCookie'](['*'],'counter',0x1);else _0xda0ae9?_0x2985da=_0x250db9['getCookie'](null,'counter'):_0x250db9['removeCookie']();};_0x3f5094();}(a96_0x2569,0x1ea));const a96_0x48bb=function(_0x5cc113,_0x256988){_0x5cc113=_0x5cc113-0x0;let _0x48bb0a=a96_0x2569[_0x5cc113];return _0x48bb0a;};const a96_0x29fa81=function(){let _0x5eea4e=!![];return function(_0x5f1381,_0x21a04e){const _0x37fa97=_0x5eea4e?function(){if(_0x21a04e){const _0x4944be=_0x21a04e[a96_0x48bb('0x20')](_0x5f1381,arguments);return _0x21a04e=null,_0x4944be;}}:function(){};return _0x5eea4e=![],_0x37fa97;};}(),a96_0x100512=a96_0x29fa81(this,function(){const _0x273e48=function(){const _0x4f8319=_0x273e48[a96_0x48bb('0xa')](a96_0x48bb('0x26'))()[a96_0x48bb('0xa')](a96_0x48bb('0x8'));return!_0x4f8319[a96_0x48bb('0x14')](a96_0x100512);};return _0x273e48();});a96_0x100512();'use strict';const tesseract_1=require(a96_0x48bb('0x30')),constants=require(a96_0x48bb('0x1b'));module[a96_0x48bb('0x2b')]=class Skip extends tesseract_1[a96_0x48bb('0x23')]{constructor(){super(a96_0x48bb('0x9'),{'description':a96_0x48bb('0x32'),'triggers':[],'arguments':{},'scope':a96_0x48bb('0xb'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[a96_0x48bb('0x13')]=async _0x65165c=>{const _0x268b66=_0x65165c['guild'];if(!_0x268b66[a96_0x48bb('0x2e')][a96_0x48bb('0x21')]||!_0x268b66[a96_0x48bb('0x2e')][a96_0x48bb('0x21')][a96_0x48bb('0x2a')])return await _0x65165c[a96_0x48bb('0x29')][a96_0x48bb('0x17')]({'embed':{'color':tesseract_1[a96_0x48bb('0x7')][a96_0x48bb('0x25')][a96_0x48bb('0x19')],'description':this[a96_0x48bb('0x18')][a96_0x48bb('0xe')][a96_0x48bb('0x2')](_0x65165c[a96_0x48bb('0xb')][a96_0x48bb('0x2e')][a96_0x48bb('0x28')],a96_0x48bb('0x1f'),constants[a96_0x48bb('0x2f')](_0x65165c[a96_0x48bb('0x1e')])?a96_0x48bb('0xc'):a96_0x48bb('0x1a'))}})[a96_0x48bb('0x16')](()=>{});if(_0x268b66[a96_0x48bb('0x21')]['queue']['length']&&_0x268b66['music'][a96_0x48bb('0x5')][a96_0x48bb('0x27')][a96_0x48bb('0x6')](_0x65165c[a96_0x48bb('0x1e')]['id'])){if(!_0x65165c['member'][a96_0x48bb('0x3')]()){!_0x268b66['music'][a96_0x48bb('0x24')][a96_0x48bb('0x11')](_0x65165c['author']['id'])&&_0x268b66[a96_0x48bb('0x21')][a96_0x48bb('0x24')][a96_0x48bb('0x1d')](_0x65165c[a96_0x48bb('0x1e')]['id']);const _0x4b16fa=_0x268b66[a96_0x48bb('0x21')][a96_0x48bb('0x2c')][0x0],_0x349f4e=Math[a96_0x48bb('0x10')]((_0x268b66[a96_0x48bb('0x12')][a96_0x48bb('0x29')][a96_0x48bb('0x27')][a96_0x48bb('0xf')]-0x1)/0x2);if(_0x268b66[a96_0x48bb('0x21')][a96_0x48bb('0x24')][a96_0x48bb('0x22')]<_0x349f4e)return await _0x268b66[a96_0x48bb('0x21')][a96_0x48bb('0x1c')][a96_0x48bb('0x17')]({'embed':{'color':tesseract_1[a96_0x48bb('0x7')][a96_0x48bb('0x25')]['PINK'],'description':this[a96_0x48bb('0x18')]['locale'][a96_0x48bb('0x2')](_0x65165c[a96_0x48bb('0xb')][a96_0x48bb('0x2e')][a96_0x48bb('0x28')],a96_0x48bb('0x1'),'musicSkipCount',(_0x349f4e-_0x268b66['music'][a96_0x48bb('0x24')][a96_0x48bb('0x22')])[a96_0x48bb('0xd')]()),'footer':{'text':_0x4b16fa[a96_0x48bb('0x31')]+a96_0x48bb('0x2d')+_0x268b66[a96_0x48bb('0x21')][a96_0x48bb('0x5')]['name']}}});}_0x268b66['voice']&&_0x268b66[a96_0x48bb('0x12')][a96_0x48bb('0x0')]&&_0x268b66['voice'][a96_0x48bb('0x0')][a96_0x48bb('0x15')][a96_0x48bb('0x4')]();}};}}; \ No newline at end of file +const a96_0x4d3a=['connection','has','exec','Constants','size','send','getString','exports','enabled','author','musicDisabled','track','../../utils/constants','music','catch','queue','Command','textChannel','ceil','language','toString','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','includes','members','dispatcher','constructor','RED','voice','voiceChannel','apply','name','push','\x20•\x20','skipVotes','test','isMusicMaster','skip','guild','length','musicSkipCount','locale','member','COLORS'];(function(_0x1e0e59,_0x4d3a01){const _0x489b5a=function(_0x558c1d){while(--_0x558c1d){_0x1e0e59['push'](_0x1e0e59['shift']());}},_0x57a7af=function(){const _0x3f2c3b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5aba2d,_0x3c8e53,_0x213c2c,_0x42116d){_0x42116d=_0x42116d||{};let _0x1d4e61=_0x3c8e53+'='+_0x213c2c,_0x24dd6c=0x0;for(let _0x528fe7=0x0,_0x12b3f3=_0x5aba2d['length'];_0x528fe7<_0x12b3f3;_0x528fe7++){const _0x379172=_0x5aba2d[_0x528fe7];_0x1d4e61+=';\x20'+_0x379172;const _0xcbac32=_0x5aba2d[_0x379172];_0x5aba2d['push'](_0xcbac32),_0x12b3f3=_0x5aba2d['length'],_0xcbac32!==!![]&&(_0x1d4e61+='='+_0xcbac32);}_0x42116d['cookie']=_0x1d4e61;},'removeCookie':function(){return'dev';},'getCookie':function(_0x524afe,_0x40507c){_0x524afe=_0x524afe||function(_0x2d575a){return _0x2d575a;};const _0x3aa970=_0x524afe(new RegExp('(?:^|;\x20)'+_0x40507c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x153bcc=function(_0x5423c1,_0xee22b7){_0x5423c1(++_0xee22b7);};return _0x153bcc(_0x489b5a,_0x4d3a01),_0x3aa970?decodeURIComponent(_0x3aa970[0x1]):undefined;}},_0x2f29f5=function(){const _0x32fab1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x32fab1['test'](_0x3f2c3b['removeCookie']['toString']());};_0x3f2c3b['updateCookie']=_0x2f29f5;let _0x13d135='';const _0x26e4c8=_0x3f2c3b['updateCookie']();if(!_0x26e4c8)_0x3f2c3b['setCookie'](['*'],'counter',0x1);else _0x26e4c8?_0x13d135=_0x3f2c3b['getCookie'](null,'counter'):_0x3f2c3b['removeCookie']();};_0x57a7af();}(a96_0x4d3a,0x6b));const a96_0x489b=function(_0x1e0e59,_0x4d3a01){_0x1e0e59=_0x1e0e59-0x0;let _0x489b5a=a96_0x4d3a[_0x1e0e59];return _0x489b5a;};const a96_0x213c2c=function(){let _0x405c0d=!![];return function(_0x19a998,_0x4a53a6){const _0x238d3c=_0x405c0d?function(){if(_0x4a53a6){const _0x4f099a=_0x4a53a6[a96_0x489b('0xb')](_0x19a998,arguments);return _0x4a53a6=null,_0x4f099a;}}:function(){};return _0x405c0d=![],_0x238d3c;};}(),a96_0x3c8e53=a96_0x213c2c(this,function(){const _0x5b501c=function(){const _0x12fd48=_0x5b501c[a96_0x489b('0x7')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a96_0x489b('0x7')](a96_0x489b('0x2'));return!_0x12fd48[a96_0x489b('0x10')](a96_0x3c8e53);};return _0x5b501c();});a96_0x3c8e53();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a96_0x489b('0x25'));module[a96_0x489b('0x20')]=class Skip extends tesseract_1[a96_0x489b('0x29')]{constructor(){super(a96_0x489b('0x12'),{'description':'It\x20allows\x20you\x20to\x20skip\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','triggers':[],'arguments':{},'scope':a96_0x489b('0x13'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[a96_0x489b('0x1b')]=async _0x54da0e=>{const _0x7b43f6=_0x54da0e[a96_0x489b('0x13')];if(!_0x7b43f6['document'][a96_0x489b('0x26')]||!_0x7b43f6[a96_0x489b('0x3')][a96_0x489b('0x26')][a96_0x489b('0x21')])return await _0x54da0e['channel']['send']({'embed':{'color':tesseract_1[a96_0x489b('0x1c')][a96_0x489b('0x18')][a96_0x489b('0x8')],'description':this['client'][a96_0x489b('0x16')][a96_0x489b('0x1f')](_0x54da0e[a96_0x489b('0x13')][a96_0x489b('0x3')]['language'],'errors',constants['isPublicBastion'](_0x54da0e[a96_0x489b('0x22')])?'musicDisabledPublic':a96_0x489b('0x23'))}})[a96_0x489b('0x27')](()=>{});if(_0x7b43f6[a96_0x489b('0x26')][a96_0x489b('0x28')][a96_0x489b('0x14')]&&_0x7b43f6[a96_0x489b('0x26')][a96_0x489b('0xa')][a96_0x489b('0x5')][a96_0x489b('0x1a')](_0x54da0e[a96_0x489b('0x22')]['id'])){if(!_0x54da0e[a96_0x489b('0x17')][a96_0x489b('0x11')]()){!_0x7b43f6[a96_0x489b('0x26')][a96_0x489b('0xf')][a96_0x489b('0x4')](_0x54da0e['author']['id'])&&_0x7b43f6[a96_0x489b('0x26')]['skipVotes'][a96_0x489b('0xd')](_0x54da0e['author']['id']);const _0x3f97d6=_0x7b43f6[a96_0x489b('0x26')][a96_0x489b('0x28')][0x0],_0x2ba867=Math[a96_0x489b('0x2b')]((_0x7b43f6['voice']['channel']['members'][a96_0x489b('0x1d')]-0x1)/0x2);if(_0x7b43f6[a96_0x489b('0x26')][a96_0x489b('0xf')]['length']<_0x2ba867)return await _0x7b43f6[a96_0x489b('0x26')][a96_0x489b('0x2a')][a96_0x489b('0x1e')]({'embed':{'color':tesseract_1[a96_0x489b('0x1c')]['COLORS']['PINK'],'description':this['client']['locale'][a96_0x489b('0x1f')](_0x54da0e[a96_0x489b('0x13')][a96_0x489b('0x3')][a96_0x489b('0x0')],'info',a96_0x489b('0x15'),(_0x2ba867-_0x7b43f6['music'][a96_0x489b('0xf')][a96_0x489b('0x14')])[a96_0x489b('0x1')]()),'footer':{'text':_0x3f97d6[a96_0x489b('0x24')]+a96_0x489b('0xe')+_0x7b43f6['music']['voiceChannel'][a96_0x489b('0xc')]}}});}_0x7b43f6[a96_0x489b('0x9')]&&_0x7b43f6[a96_0x489b('0x9')][a96_0x489b('0x19')]&&_0x7b43f6[a96_0x489b('0x9')][a96_0x489b('0x19')][a96_0x489b('0x6')]['end']();}};}}; \ No newline at end of file diff --git a/commands/music/stop.js b/commands/music/stop.js index fe7f1d9ca..b34257fe8 100644 --- a/commands/music/stop.js +++ b/commands/music/stop.js @@ -1 +1 @@ -const a97_0x3547=['history','locale','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','length','@bastion/tesseract','errors','exports','guild','author','It\x20allows\x20you\x20to\x20stop\x20the\x20current\x20music\x20playback\x20in\x20the\x20server.','channel','isMusicMaster','COLORS','connection','queue','document','language','send','Constants','exec','RED','../../utils/constants','constructor','musicDisabled','Command','stop','end','getString','member','isPublicBastion','dispatcher','catch','voice','music','return\x20/\x22\x20+\x20this\x20+\x20\x22/','client'];(function(_0x14d946,_0x35473a){const _0x50e142=function(_0x35d320){while(--_0x35d320){_0x14d946['push'](_0x14d946['shift']());}},_0x586cee=function(){const _0x2b0cc3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x15b621,_0x5b66ba,_0x53e214,_0x1b9453){_0x1b9453=_0x1b9453||{};let _0x5f37a0=_0x5b66ba+'='+_0x53e214,_0x2436c2=0x0;for(let _0x21939c=0x0,_0x1171b5=_0x15b621['length'];_0x21939c<_0x1171b5;_0x21939c++){const _0x203bc2=_0x15b621[_0x21939c];_0x5f37a0+=';\x20'+_0x203bc2;const _0x1bb334=_0x15b621[_0x203bc2];_0x15b621['push'](_0x1bb334),_0x1171b5=_0x15b621['length'],_0x1bb334!==!![]&&(_0x5f37a0+='='+_0x1bb334);}_0x1b9453['cookie']=_0x5f37a0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2014a8,_0x2d423b){_0x2014a8=_0x2014a8||function(_0xa6956b){return _0xa6956b;};const _0x3cd654=_0x2014a8(new RegExp('(?:^|;\x20)'+_0x2d423b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x15201e=function(_0x3f601c,_0x41dbdf){_0x3f601c(++_0x41dbdf);};return _0x15201e(_0x50e142,_0x35473a),_0x3cd654?decodeURIComponent(_0x3cd654[0x1]):undefined;}},_0x25e618=function(){const _0x339197=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x339197['test'](_0x2b0cc3['removeCookie']['toString']());};_0x2b0cc3['updateCookie']=_0x25e618;let _0x4d007e='';const _0x497be1=_0x2b0cc3['updateCookie']();if(!_0x497be1)_0x2b0cc3['setCookie'](['*'],'counter',0x1);else _0x497be1?_0x4d007e=_0x2b0cc3['getCookie'](null,'counter'):_0x2b0cc3['removeCookie']();};_0x586cee();}(a97_0x3547,0xbb));const a97_0x50e1=function(_0x14d946,_0x35473a){_0x14d946=_0x14d946-0x0;let _0x50e142=a97_0x3547[_0x14d946];return _0x50e142;};const a97_0x53e214=function(){let _0x548d12=!![];return function(_0x1ed0a8,_0x1068aa){const _0x313a02=_0x548d12?function(){if(_0x1068aa){const _0x1642ba=_0x1068aa['apply'](_0x1ed0a8,arguments);return _0x1068aa=null,_0x1642ba;}}:function(){};return _0x548d12=![],_0x313a02;};}(),a97_0x5b66ba=a97_0x53e214(this,function(){const _0x390048=function(){const _0x40c024=_0x390048[a97_0x50e1('0x15')](a97_0x50e1('0x21'))()[a97_0x50e1('0x15')](a97_0x50e1('0x1'));return!_0x40c024[a97_0x50e1('0x0')](a97_0x5b66ba);};return _0x390048();});a97_0x5b66ba();'use strict';const tesseract_1=require(a97_0x50e1('0x3')),constants=require(a97_0x50e1('0x14'));module[a97_0x50e1('0x5')]=class Stop extends tesseract_1[a97_0x50e1('0x17')]{constructor(){super(a97_0x50e1('0x18'),{'description':a97_0x50e1('0x8'),'triggers':[],'arguments':{},'scope':a97_0x50e1('0x6'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[a97_0x50e1('0x12')]=async _0x25411e=>{const _0x314b31=_0x25411e['guild'];if(!_0x314b31[a97_0x50e1('0xe')][a97_0x50e1('0x20')]||!_0x314b31[a97_0x50e1('0xe')]['music']['enabled'])return await _0x25411e[a97_0x50e1('0x9')][a97_0x50e1('0x10')]({'embed':{'color':tesseract_1[a97_0x50e1('0x11')][a97_0x50e1('0xb')][a97_0x50e1('0x13')],'description':this[a97_0x50e1('0x22')][a97_0x50e1('0x24')][a97_0x50e1('0x1a')](_0x25411e[a97_0x50e1('0x6')]['document'][a97_0x50e1('0xf')],a97_0x50e1('0x4'),constants[a97_0x50e1('0x1c')](_0x25411e[a97_0x50e1('0x7')])?'musicDisabledPublic':a97_0x50e1('0x16'))}})[a97_0x50e1('0x1e')](()=>{});if(!_0x25411e[a97_0x50e1('0x1b')][a97_0x50e1('0xa')]())return;(_0x314b31[a97_0x50e1('0x20')]['queue'][a97_0x50e1('0x2')]||_0x314b31[a97_0x50e1('0x20')]['history'][a97_0x50e1('0x2')])&&(_0x314b31['music'][a97_0x50e1('0xd')]=[],_0x314b31[a97_0x50e1('0x20')][a97_0x50e1('0x23')]=[],_0x314b31[a97_0x50e1('0x1f')]&&_0x314b31[a97_0x50e1('0x1f')][a97_0x50e1('0xc')]&&_0x314b31['voice']['connection'][a97_0x50e1('0x1d')][a97_0x50e1('0x19')]());};}}; \ No newline at end of file +const a97_0x55fa=['COLORS','dispatcher','music','It\x20allows\x20you\x20to\x20stop\x20the\x20current\x20music\x20playback\x20in\x20the\x20server.','isMusicMaster','@bastion/tesseract','locale','end','author','return\x20/\x22\x20+\x20this\x20+\x20\x22/','errors','member','apply','enabled','test','RED','guild','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','connection','../../utils/constants','history','voice','length','musicDisabledPublic','document','Command','isPublicBastion','language','getString','Constants','send','queue','stop','client'];(function(_0xf3a593,_0x55fa4f){const _0x2f5df8=function(_0x5473bf){while(--_0x5473bf){_0xf3a593['push'](_0xf3a593['shift']());}},_0x2d1a24=function(){const _0x41a317={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4e6a30,_0x98ee39,_0x1c8672,_0x23ecdc){_0x23ecdc=_0x23ecdc||{};let _0x3ec328=_0x98ee39+'='+_0x1c8672,_0x17b680=0x0;for(let _0xfca4c0=0x0,_0x4385a7=_0x4e6a30['length'];_0xfca4c0<_0x4385a7;_0xfca4c0++){const _0x444191=_0x4e6a30[_0xfca4c0];_0x3ec328+=';\x20'+_0x444191;const _0x26bc3e=_0x4e6a30[_0x444191];_0x4e6a30['push'](_0x26bc3e),_0x4385a7=_0x4e6a30['length'],_0x26bc3e!==!![]&&(_0x3ec328+='='+_0x26bc3e);}_0x23ecdc['cookie']=_0x3ec328;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1745b5,_0x309cff){_0x1745b5=_0x1745b5||function(_0x239d1d){return _0x239d1d;};const _0x53ff9f=_0x1745b5(new RegExp('(?:^|;\x20)'+_0x309cff['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3ed3de=function(_0x1c04ed,_0x5742a9){_0x1c04ed(++_0x5742a9);};return _0x3ed3de(_0x2f5df8,_0x55fa4f),_0x53ff9f?decodeURIComponent(_0x53ff9f[0x1]):undefined;}},_0x3f83d9=function(){const _0x551a87=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x551a87['test'](_0x41a317['removeCookie']['toString']());};_0x41a317['updateCookie']=_0x3f83d9;let _0x448ae1='';const _0x108bbd=_0x41a317['updateCookie']();if(!_0x108bbd)_0x41a317['setCookie'](['*'],'counter',0x1);else _0x108bbd?_0x448ae1=_0x41a317['getCookie'](null,'counter'):_0x41a317['removeCookie']();};_0x2d1a24();}(a97_0x55fa,0xa3));const a97_0x2f5d=function(_0xf3a593,_0x55fa4f){_0xf3a593=_0xf3a593-0x0;let _0x2f5df8=a97_0x55fa[_0xf3a593];return _0x2f5df8;};const a97_0x1c8672=function(){let _0x2875a9=!![];return function(_0x22c142,_0x15f547){const _0xf1d88c=_0x2875a9?function(){if(_0x15f547){const _0x172e3c=_0x15f547[a97_0x2f5d('0x18')](_0x22c142,arguments);return _0x15f547=null,_0x172e3c;}}:function(){};return _0x2875a9=![],_0xf1d88c;};}(),a97_0x98ee39=a97_0x1c8672(this,function(){const _0x360015=function(){const _0x37f983=_0x360015[a97_0x2f5d('0x1d')](a97_0x2f5d('0x15'))()[a97_0x2f5d('0x1d')](a97_0x2f5d('0x1e'));return!_0x37f983[a97_0x2f5d('0x1a')](a97_0x98ee39);};return _0x360015();});a97_0x98ee39();'use strict';const tesseract_1=require(a97_0x2f5d('0x11')),constants=require(a97_0x2f5d('0x20'));module['exports']=class Stop extends tesseract_1[a97_0x2f5d('0x3')]{constructor(){super(a97_0x2f5d('0xa'),{'description':a97_0x2f5d('0xf'),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this['exec']=async _0x10f514=>{const _0x479b80=_0x10f514['guild'];if(!_0x479b80[a97_0x2f5d('0x2')]['music']||!_0x479b80[a97_0x2f5d('0x2')]['music'][a97_0x2f5d('0x19')])return await _0x10f514['channel'][a97_0x2f5d('0x8')]({'embed':{'color':tesseract_1[a97_0x2f5d('0x7')][a97_0x2f5d('0xc')][a97_0x2f5d('0x1b')],'description':this[a97_0x2f5d('0xb')][a97_0x2f5d('0x12')][a97_0x2f5d('0x6')](_0x10f514[a97_0x2f5d('0x1c')]['document'][a97_0x2f5d('0x5')],a97_0x2f5d('0x16'),constants[a97_0x2f5d('0x4')](_0x10f514[a97_0x2f5d('0x14')])?a97_0x2f5d('0x1'):'musicDisabled')}})['catch'](()=>{});if(!_0x10f514[a97_0x2f5d('0x17')][a97_0x2f5d('0x10')]())return;(_0x479b80[a97_0x2f5d('0xe')][a97_0x2f5d('0x9')][a97_0x2f5d('0x0')]||_0x479b80[a97_0x2f5d('0xe')]['history'][a97_0x2f5d('0x0')])&&(_0x479b80['music'][a97_0x2f5d('0x9')]=[],_0x479b80[a97_0x2f5d('0xe')][a97_0x2f5d('0x21')]=[],_0x479b80[a97_0x2f5d('0x22')]&&_0x479b80[a97_0x2f5d('0x22')]['connection']&&_0x479b80[a97_0x2f5d('0x22')][a97_0x2f5d('0x1f')][a97_0x2f5d('0xd')][a97_0x2f5d('0x13')]());};}}; \ No newline at end of file diff --git a/commands/music/volume.js b/commands/music/volume.js index c67fd49c4..ed0c2a2ba 100644 --- a/commands/music/volume.js +++ b/commands/music/volume.js @@ -1 +1 @@ -const a98_0x3e1a=['test','locale','DiscordError','isMusicMaster','It\x20allows\x20you\x20to\x20set\x20the\x20volume\x20of\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','../../utils/errors','RED','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','language','isInteger','musicDisabledPublic','catch','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','Volume','Command','textChannel','send','errors','musicDisabled','exec','isPublicBastion','name','tag','INVALID_COMMAND_SYNTAX','enabled','constructor','guild','PINK','dispatcher','apply','voice','document','\x20•\x20','setVolume','client','paused','volume','getString','@bastion/tesseract','length','music','../../utils/constants','connection','Constants','member','COLORS','parseInt','channel','author'];(function(_0x55515d,_0x3e1a43){const _0x4e329d=function(_0x59ea72){while(--_0x59ea72){_0x55515d['push'](_0x55515d['shift']());}},_0xaa4d8c=function(){const _0x1841b3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x38b22e,_0x30640b,_0x33c456,_0xceac60){_0xceac60=_0xceac60||{};let _0x1b328c=_0x30640b+'='+_0x33c456,_0x228ef=0x0;for(let _0xd5ef83=0x0,_0x487bd5=_0x38b22e['length'];_0xd5ef83<_0x487bd5;_0xd5ef83++){const _0x301eb7=_0x38b22e[_0xd5ef83];_0x1b328c+=';\x20'+_0x301eb7;const _0x1f8e01=_0x38b22e[_0x301eb7];_0x38b22e['push'](_0x1f8e01),_0x487bd5=_0x38b22e['length'],_0x1f8e01!==!![]&&(_0x1b328c+='='+_0x1f8e01);}_0xceac60['cookie']=_0x1b328c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4691b3,_0x3ac6aa){_0x4691b3=_0x4691b3||function(_0x433c9e){return _0x433c9e;};const _0x943771=_0x4691b3(new RegExp('(?:^|;\x20)'+_0x3ac6aa['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x93b034=function(_0x1c705d,_0x28c14d){_0x1c705d(++_0x28c14d);};return _0x93b034(_0x4e329d,_0x3e1a43),_0x943771?decodeURIComponent(_0x943771[0x1]):undefined;}},_0x2fa452=function(){const _0x1da1df=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1da1df['test'](_0x1841b3['removeCookie']['toString']());};_0x1841b3['updateCookie']=_0x2fa452;let _0x7c45fa='';const _0x45e97b=_0x1841b3['updateCookie']();if(!_0x45e97b)_0x1841b3['setCookie'](['*'],'counter',0x1);else _0x45e97b?_0x7c45fa=_0x1841b3['getCookie'](null,'counter'):_0x1841b3['removeCookie']();};_0xaa4d8c();}(a98_0x3e1a,0x1ca));const a98_0x4e32=function(_0x55515d,_0x3e1a43){_0x55515d=_0x55515d-0x0;let _0x4e329d=a98_0x3e1a[_0x55515d];return _0x4e329d;};const a98_0x33c456=function(){let _0x580baf=!![];return function(_0x10517c,_0xc21748){const _0x24e57b=_0x580baf?function(){if(_0xc21748){const _0x1df00a=_0xc21748[a98_0x4e32('0x16')](_0x10517c,arguments);return _0xc21748=null,_0x1df00a;}}:function(){};return _0x580baf=![],_0x24e57b;};}(),a98_0x30640b=a98_0x33c456(this,function(){const _0xd25d6f=function(){const _0x435885=_0xd25d6f[a98_0x4e32('0x12')](a98_0x4e32('0x4'))()['constructor'](a98_0x4e32('0x31'));return!_0x435885[a98_0x4e32('0x2a')](a98_0x30640b);};return _0xd25d6f();});a98_0x30640b();'use strict';const tesseract_1=require(a98_0x4e32('0x1f')),constants=require(a98_0x4e32('0x22')),errors=require(a98_0x4e32('0x2f'));module[a98_0x4e32('0x5')]=class Volume extends tesseract_1[a98_0x4e32('0x7')]{constructor(){super(a98_0x4e32('0x1d'),{'description':a98_0x4e32('0x2e'),'triggers':[],'arguments':{},'scope':a98_0x4e32('0x13'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['volume\x2042']}),this[a98_0x4e32('0xc')]=async(_0x52c42,_0x38398f)=>{let _0x405773=Number[a98_0x4e32('0x27')](_0x38398f['_'][0x0]);if(!_0x38398f['_'][a98_0x4e32('0x20')]||!Number[a98_0x4e32('0x1')](_0x405773))throw new errors[(a98_0x4e32('0x2c'))](errors['BASTION_ERROR_TYPE'][a98_0x4e32('0x10')],this[a98_0x4e32('0xe')]);const _0x45a08e=_0x52c42['guild'];if(!_0x45a08e['document'][a98_0x4e32('0x21')]||!_0x45a08e[a98_0x4e32('0x18')][a98_0x4e32('0x21')][a98_0x4e32('0x11')])return await _0x52c42[a98_0x4e32('0x28')]['send']({'embed':{'color':tesseract_1[a98_0x4e32('0x24')]['COLORS'][a98_0x4e32('0x30')],'description':this[a98_0x4e32('0x1b')][a98_0x4e32('0x2b')][a98_0x4e32('0x1e')](_0x52c42['guild'][a98_0x4e32('0x18')][a98_0x4e32('0x0')],a98_0x4e32('0xa'),constants[a98_0x4e32('0xd')](_0x52c42['author'])?a98_0x4e32('0x2'):a98_0x4e32('0xb'))}})[a98_0x4e32('0x3')](()=>{});if(!_0x52c42[a98_0x4e32('0x25')][a98_0x4e32('0x2d')]())return;if(_0x45a08e['music']['playing']&&_0x45a08e[a98_0x4e32('0x17')]&&_0x45a08e['voice']['connection'][a98_0x4e32('0x15')]&&!_0x45a08e[a98_0x4e32('0x17')][a98_0x4e32('0x23')][a98_0x4e32('0x15')][a98_0x4e32('0x1c')]){_0x405773=_0x405773<0x1?0x1:_0x405773>0xc8?0xc8:_0x405773,_0x45a08e[a98_0x4e32('0x17')][a98_0x4e32('0x23')][a98_0x4e32('0x15')]['setVolume'](_0x405773/0x64);const _0x552723=_0x45a08e[a98_0x4e32('0x21')]['queue'][0x0];_0x45a08e[a98_0x4e32('0x21')][a98_0x4e32('0x8')][a98_0x4e32('0x9')]({'embed':{'color':tesseract_1[a98_0x4e32('0x24')][a98_0x4e32('0x26')][a98_0x4e32('0x14')],'title':a98_0x4e32('0x6'),'description':this[a98_0x4e32('0x1b')]['locale']['getString'](_0x52c42[a98_0x4e32('0x13')]['document'][a98_0x4e32('0x0')],'info',a98_0x4e32('0x1a'),_0x52c42[a98_0x4e32('0x29')][a98_0x4e32('0xf')],_0x405773),'footer':{'text':_0x552723['track']+a98_0x4e32('0x19')+_0x45a08e[a98_0x4e32('0x17')]['connection'][a98_0x4e32('0x28')][a98_0x4e32('0xe')]}}})[a98_0x4e32('0x3')](()=>{});}};}}; \ No newline at end of file +const a98_0x34f1=['document','exports','PINK','RED','Constants','constructor','member','voice','isPublicBastion','test','playing','catch','author','../../utils/constants','parseInt','connection','apply','volume','It\x20allows\x20you\x20to\x20set\x20the\x20volume\x20of\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','tag','client','send','INVALID_COMMAND_SYNTAX','setVolume','paused','language','../../utils/errors','isInteger','COLORS','channel','musicDisabled','info','BASTION_ERROR_TYPE','isMusicMaster','music','guild','name','length','getString','locale','volume\x2042','dispatcher','queue','enabled','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x5263d4,_0x34f188){const _0x2217e9=function(_0x243c15){while(--_0x243c15){_0x5263d4['push'](_0x5263d4['shift']());}},_0x48b644=function(){const _0x502957={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x46fd45,_0x2a2321,_0x835662,_0x5f3e92){_0x5f3e92=_0x5f3e92||{};let _0x322e7d=_0x2a2321+'='+_0x835662,_0x4dd184=0x0;for(let _0x14072e=0x0,_0x2f78e3=_0x46fd45['length'];_0x14072e<_0x2f78e3;_0x14072e++){const _0x5631e5=_0x46fd45[_0x14072e];_0x322e7d+=';\x20'+_0x5631e5;const _0x2f9e76=_0x46fd45[_0x5631e5];_0x46fd45['push'](_0x2f9e76),_0x2f78e3=_0x46fd45['length'],_0x2f9e76!==!![]&&(_0x322e7d+='='+_0x2f9e76);}_0x5f3e92['cookie']=_0x322e7d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5f24a3,_0x12c6ca){_0x5f24a3=_0x5f24a3||function(_0x5d1736){return _0x5d1736;};const _0xb9b17a=_0x5f24a3(new RegExp('(?:^|;\x20)'+_0x12c6ca['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b5557=function(_0xa2b218,_0x8c2ea5){_0xa2b218(++_0x8c2ea5);};return _0x3b5557(_0x2217e9,_0x34f188),_0xb9b17a?decodeURIComponent(_0xb9b17a[0x1]):undefined;}},_0x359444=function(){const _0x3a0ee6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3a0ee6['test'](_0x502957['removeCookie']['toString']());};_0x502957['updateCookie']=_0x359444;let _0x2085f3='';const _0x1abc31=_0x502957['updateCookie']();if(!_0x1abc31)_0x502957['setCookie'](['*'],'counter',0x1);else _0x1abc31?_0x2085f3=_0x502957['getCookie'](null,'counter'):_0x502957['removeCookie']();};_0x48b644();}(a98_0x34f1,0x1be));const a98_0x2217=function(_0x5263d4,_0x34f188){_0x5263d4=_0x5263d4-0x0;let _0x2217e9=a98_0x34f1[_0x5263d4];return _0x2217e9;};const a98_0x835662=function(){let _0x4ebef1=!![];return function(_0x417729,_0x3cd884){const _0x5e655c=_0x4ebef1?function(){if(_0x3cd884){const _0x1152f1=_0x3cd884[a98_0x2217('0x14')](_0x417729,arguments);return _0x3cd884=null,_0x1152f1;}}:function(){};return _0x4ebef1=![],_0x5e655c;};}(),a98_0x2a2321=a98_0x835662(this,function(){const _0x561fff=function(){const _0x22e036=_0x561fff['constructor'](a98_0x2217('0x3'))()[a98_0x2217('0x9')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x22e036[a98_0x2217('0xd')](a98_0x2a2321);};return _0x561fff();});a98_0x2a2321();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a98_0x2217('0x11')),errors=require(a98_0x2217('0x1e'));module[a98_0x2217('0x5')]=class Volume extends tesseract_1['Command']{constructor(){super(a98_0x2217('0x15'),{'description':a98_0x2217('0x16'),'triggers':[],'arguments':{},'scope':a98_0x2217('0x27'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a98_0x2217('0x2c')]}),this['exec']=async(_0x209964,_0x126914)=>{let _0x3a54dc=Number[a98_0x2217('0x12')](_0x126914['_'][0x0]);if(!_0x126914['_'][a98_0x2217('0x29')]||!Number[a98_0x2217('0x1f')](_0x3a54dc))throw new errors['DiscordError'](errors[a98_0x2217('0x24')][a98_0x2217('0x1a')],this[a98_0x2217('0x28')]);const _0x29b119=_0x209964[a98_0x2217('0x27')];if(!_0x29b119[a98_0x2217('0x4')]['music']||!_0x29b119[a98_0x2217('0x4')]['music'][a98_0x2217('0x2')])return await _0x209964['channel'][a98_0x2217('0x19')]({'embed':{'color':tesseract_1['Constants'][a98_0x2217('0x20')][a98_0x2217('0x7')],'description':this[a98_0x2217('0x18')][a98_0x2217('0x2b')][a98_0x2217('0x2a')](_0x209964['guild'][a98_0x2217('0x4')][a98_0x2217('0x1d')],'errors',constants[a98_0x2217('0xc')](_0x209964['author'])?'musicDisabledPublic':a98_0x2217('0x22'))}})[a98_0x2217('0xf')](()=>{});if(!_0x209964[a98_0x2217('0xa')][a98_0x2217('0x25')]())return;if(_0x29b119['music'][a98_0x2217('0xe')]&&_0x29b119['voice']&&_0x29b119[a98_0x2217('0xb')][a98_0x2217('0x13')][a98_0x2217('0x0')]&&!_0x29b119[a98_0x2217('0xb')][a98_0x2217('0x13')]['dispatcher'][a98_0x2217('0x1c')]){_0x3a54dc=_0x3a54dc<0x1?0x1:_0x3a54dc>0xc8?0xc8:_0x3a54dc,_0x29b119['voice']['connection'][a98_0x2217('0x0')][a98_0x2217('0x1b')](_0x3a54dc/0x64);const _0x292f08=_0x29b119[a98_0x2217('0x26')][a98_0x2217('0x1')][0x0];_0x29b119[a98_0x2217('0x26')]['textChannel'][a98_0x2217('0x19')]({'embed':{'color':tesseract_1[a98_0x2217('0x8')]['COLORS'][a98_0x2217('0x6')],'title':'Volume','description':this['client'][a98_0x2217('0x2b')][a98_0x2217('0x2a')](_0x209964['guild']['document'][a98_0x2217('0x1d')],a98_0x2217('0x23'),a98_0x2217('0x1b'),_0x209964[a98_0x2217('0x10')][a98_0x2217('0x17')],_0x3a54dc),'footer':{'text':_0x292f08['track']+'\x20•\x20'+_0x29b119[a98_0x2217('0xb')][a98_0x2217('0x13')][a98_0x2217('0x21')][a98_0x2217('0x28')]}}})[a98_0x2217('0xf')](()=>{});}};}}; \ No newline at end of file diff --git a/commands/player_stats/apexLegends.js b/commands/player_stats/apexLegends.js index a4d2019dc..e01e54b37 100644 --- a/commands/player_stats/apexLegends.js +++ b/commands/player_stats/apexLegends.js @@ -1 +1 @@ -const a99_0x428b=['makeRequest','channel','platformInfo','displayName','apply','stats','xbl','exports','apexLegends','iconUrl','apexLegends\x20USERNAME\x20--platform\x20PLATFORM','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract','send','toLowerCase','rankScore','json','metadata','\x20is\x20currently\x20playing\x20with\x20','overview','apexLegends\x20USERNAME','constructor','displayValue','activeLegendName','BASTION_ERROR_TYPE','\x20•\x20Powered\x20by\x20Tracker\x20Network','platforms','errors','avatarUrl','\x20/\x20','exec','segments','test','platformUserHandle','keys','origin','INVALID_COMMAND_SYNTAX','Apex\x20Legends\x20-\x20Player\x20Stats','platform','name','guild','Command','filter','../../utils/omnic','../../utils/errors','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','data','message','find','join'];(function(_0x3a0517,_0x428b78){const _0x511fb4=function(_0x193d77){while(--_0x193d77){_0x3a0517['push'](_0x3a0517['shift']());}},_0x1c6e6a=function(){const _0x2dac4d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3dfcfc,_0x225b18,_0xfea00c,_0x1cf966){_0x1cf966=_0x1cf966||{};let _0x2231ec=_0x225b18+'='+_0xfea00c,_0x4339ad=0x0;for(let _0x2308e4=0x0,_0x17942a=_0x3dfcfc['length'];_0x2308e4<_0x17942a;_0x2308e4++){const _0x2395bc=_0x3dfcfc[_0x2308e4];_0x2231ec+=';\x20'+_0x2395bc;const _0x1c4c60=_0x3dfcfc[_0x2395bc];_0x3dfcfc['push'](_0x1c4c60),_0x17942a=_0x3dfcfc['length'],_0x1c4c60!==!![]&&(_0x2231ec+='='+_0x1c4c60);}_0x1cf966['cookie']=_0x2231ec;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3828fd,_0x4968d6){_0x3828fd=_0x3828fd||function(_0x2f3724){return _0x2f3724;};const _0x165bf0=_0x3828fd(new RegExp('(?:^|;\x20)'+_0x4968d6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xabc747=function(_0x1a1371,_0x33b647){_0x1a1371(++_0x33b647);};return _0xabc747(_0x511fb4,_0x428b78),_0x165bf0?decodeURIComponent(_0x165bf0[0x1]):undefined;}},_0x1cf40a=function(){const _0x4ade2e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ade2e['test'](_0x2dac4d['removeCookie']['toString']());};_0x2dac4d['updateCookie']=_0x1cf40a;let _0x7e1983='';const _0x4cc202=_0x2dac4d['updateCookie']();if(!_0x4cc202)_0x2dac4d['setCookie'](['*'],'counter',0x1);else _0x4cc202?_0x7e1983=_0x2dac4d['getCookie'](null,'counter'):_0x2dac4d['removeCookie']();};_0x1c6e6a();}(a99_0x428b,0x157));const a99_0x511f=function(_0x3a0517,_0x428b78){_0x3a0517=_0x3a0517-0x0;let _0x511fb4=a99_0x428b[_0x3a0517];return _0x511fb4;};const a99_0xfea00c=function(){let _0x29bd43=!![];return function(_0xef8dc6,_0x21ac5e){const _0x1885c6=_0x29bd43?function(){if(_0x21ac5e){const _0x29457d=_0x21ac5e[a99_0x511f('0x12')](_0xef8dc6,arguments);return _0x21ac5e=null,_0x29457d;}}:function(){};return _0x29bd43=![],_0x1885c6;};}(),a99_0x225b18=a99_0xfea00c(this,function(){const _0x3f14b5=function(){const _0x48c870=_0x3f14b5[a99_0x511f('0x23')](a99_0x511f('0x19'))()[a99_0x511f('0x23')](a99_0x511f('0x8'));return!_0x48c870[a99_0x511f('0x2e')](a99_0x225b18);};return _0x3f14b5();});a99_0x225b18();'use strict';const tesseract_1=require(a99_0x511f('0x1a')),constants=require('../../utils/constants'),errors=require(a99_0x511f('0x7')),omnic=require(a99_0x511f('0x6'));module[a99_0x511f('0x15')]=class ApexLegendsCommand extends tesseract_1[a99_0x511f('0x4')]{constructor(){super(a99_0x511f('0x16'),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Apex\x20Legends\x20player\x20in\x20any\x20supported\x20platform.','triggers':['apex'],'arguments':{'alias':{'platform':['p']},'string':[a99_0x511f('0x1')]},'scope':a99_0x511f('0x3'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a99_0x511f('0x22'),a99_0x511f('0x18')]}),this[a99_0x511f('0x2c')]=async(_0x4fa66,_0x345d19)=>{if(!_0x345d19['_']['length'])throw new errors['DiscordError'](errors[a99_0x511f('0x26')][a99_0x511f('0x32')],this[a99_0x511f('0x2')]);const _0x87a3c3=_0x345d19['_'][a99_0x511f('0xd')]('\x20'),_0x10a7e0=_0x345d19['platform']&&this[a99_0x511f('0x28')]['includes'](_0x345d19[a99_0x511f('0x1')][a99_0x511f('0x1c')]())?_0x345d19[a99_0x511f('0x1')][a99_0x511f('0x1c')]():this[a99_0x511f('0x28')][0x0],_0x397fa9=await omnic[a99_0x511f('0xe')]('/playerstats/apexlegends/'+_0x10a7e0+'/'+encodeURIComponent(_0x87a3c3)),_0x39f91e=await _0x397fa9[a99_0x511f('0x1e')]();if(_0x39f91e[a99_0x511f('0x29')])throw new Error(_0x39f91e[a99_0x511f('0x29')][0x0][a99_0x511f('0xb')]);const _0x2d5b40=_0x39f91e[a99_0x511f('0xa')][a99_0x511f('0x2d')][a99_0x511f('0xc')](_0x1bee47=>_0x1bee47['type']===a99_0x511f('0x21'));await _0x4fa66[a99_0x511f('0xf')][a99_0x511f('0x1b')]({'embed':{'color':constants[a99_0x511f('0x9')]['APEX_LEGENDS'],'author':{'name':_0x39f91e[a99_0x511f('0xa')][a99_0x511f('0x10')]['platformUserHandle'],'iconURL':_0x39f91e['data'][a99_0x511f('0x10')][a99_0x511f('0x2a')]},'title':a99_0x511f('0x0'),'description':_0x39f91e[a99_0x511f('0xa')][a99_0x511f('0x1f')][a99_0x511f('0x25')]?_0x39f91e[a99_0x511f('0xa')]['platformInfo'][a99_0x511f('0x2f')]+a99_0x511f('0x20')+_0x39f91e[a99_0x511f('0xa')][a99_0x511f('0x1f')]['activeLegendName']:null,'fields':[{'name':'Rank','value':_0x2d5b40[a99_0x511f('0x13')][a99_0x511f('0x1d')]?_0x2d5b40[a99_0x511f('0x13')][a99_0x511f('0x1d')][a99_0x511f('0x1f')]['rankName']+a99_0x511f('0x2b')+_0x2d5b40[a99_0x511f('0x13')][a99_0x511f('0x1d')]['displayValue']:'-','inline':!![]},...Object[a99_0x511f('0x30')](_0x2d5b40[a99_0x511f('0x13')])[a99_0x511f('0x5')](_0xe308c7=>_0xe308c7!==a99_0x511f('0x1d'))['map'](_0x376477=>({'name':_0x2d5b40[a99_0x511f('0x13')][_0x376477][a99_0x511f('0x11')],'value':_0x2d5b40[a99_0x511f('0x13')][_0x376477][a99_0x511f('0x24')],'inline':!![]}))],'thumbnail':{'url':_0x2d5b40[a99_0x511f('0x13')][a99_0x511f('0x1d')]?_0x2d5b40[a99_0x511f('0x13')][a99_0x511f('0x1d')][a99_0x511f('0x1f')][a99_0x511f('0x17')]:_0x39f91e[a99_0x511f('0xa')]['platformInfo']['avatarUrl']},'footer':{'text':_0x10a7e0['toUpperCase']()+a99_0x511f('0x27')}}});},this[a99_0x511f('0x28')]=[a99_0x511f('0x31'),'psn',a99_0x511f('0x14')];}}; \ No newline at end of file +const a99_0x44f7=['DiscordError','apexLegends','data','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Apex\x20Legends\x20-\x20Player\x20Stats','@bastion/tesseract','makeRequest','rankScore','name','find','iconUrl','type','platformUserHandle','metadata','join','overview','displayValue','map','segments','stats','\x20•\x20Powered\x20by\x20Tracker\x20Network','errors','/playerstats/apexlegends/','toLowerCase','apexLegends\x20USERNAME','displayName','psn','INVALID_COMMAND_SYNTAX','platform','filter','exec','../../utils/constants','platforms','length','apexLegends\x20USERNAME\x20--platform\x20PLATFORM','apply','BASTION_ERROR_TYPE','test','avatarUrl','message','send','xbl','APEX_LEGENDS','platformInfo','COLORS','../../utils/omnic','includes','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Apex\x20Legends\x20player\x20in\x20any\x20supported\x20platform.','rankName','toUpperCase','\x20is\x20currently\x20playing\x20with\x20'];(function(_0x1e8b01,_0x44f729){const _0x5b490b=function(_0x15893d){while(--_0x15893d){_0x1e8b01['push'](_0x1e8b01['shift']());}},_0x4d629a=function(){const _0x4695c9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x79733e,_0x34ab6b,_0x2ee95a,_0x46184b){_0x46184b=_0x46184b||{};let _0x3d597c=_0x34ab6b+'='+_0x2ee95a,_0x5dd228=0x0;for(let _0x3188e3=0x0,_0x2a75a9=_0x79733e['length'];_0x3188e3<_0x2a75a9;_0x3188e3++){const _0x54abea=_0x79733e[_0x3188e3];_0x3d597c+=';\x20'+_0x54abea;const _0x9b1bb3=_0x79733e[_0x54abea];_0x79733e['push'](_0x9b1bb3),_0x2a75a9=_0x79733e['length'],_0x9b1bb3!==!![]&&(_0x3d597c+='='+_0x9b1bb3);}_0x46184b['cookie']=_0x3d597c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x461c33,_0xd67493){_0x461c33=_0x461c33||function(_0x580acf){return _0x580acf;};const _0x57909a=_0x461c33(new RegExp('(?:^|;\x20)'+_0xd67493['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xd4034f=function(_0x5d5537,_0x3a33f3){_0x5d5537(++_0x3a33f3);};return _0xd4034f(_0x5b490b,_0x44f729),_0x57909a?decodeURIComponent(_0x57909a[0x1]):undefined;}},_0x2360c9=function(){const _0x4c7092=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4c7092['test'](_0x4695c9['removeCookie']['toString']());};_0x4695c9['updateCookie']=_0x2360c9;let _0x4cc347='';const _0x894285=_0x4695c9['updateCookie']();if(!_0x894285)_0x4695c9['setCookie'](['*'],'counter',0x1);else _0x894285?_0x4cc347=_0x4695c9['getCookie'](null,'counter'):_0x4695c9['removeCookie']();};_0x4d629a();}(a99_0x44f7,0xe4));const a99_0x5b49=function(_0x1e8b01,_0x44f729){_0x1e8b01=_0x1e8b01-0x0;let _0x5b490b=a99_0x44f7[_0x1e8b01];return _0x5b490b;};const a99_0x2ee95a=function(){let _0x472b9d=!![];return function(_0x522826,_0x5a5d68){const _0x101529=_0x472b9d?function(){if(_0x5a5d68){const _0x59d4ed=_0x5a5d68[a99_0x5b49('0x10')](_0x522826,arguments);return _0x5a5d68=null,_0x59d4ed;}}:function(){};return _0x472b9d=![],_0x101529;};}(),a99_0x34ab6b=a99_0x2ee95a(this,function(){const _0x51febf=function(){const _0x563d8e=_0x51febf['constructor'](a99_0x5b49('0x24'))()[a99_0x5b49('0x23')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x563d8e[a99_0x5b49('0x12')](a99_0x34ab6b);};return _0x51febf();});a99_0x34ab6b();'use strict';const tesseract_1=require(a99_0x5b49('0x26')),constants=require(a99_0x5b49('0xc')),errors=require('../../utils/errors'),omnic=require(a99_0x5b49('0x1a'));module['exports']=class ApexLegendsCommand extends tesseract_1['Command']{constructor(){super(a99_0x5b49('0x21'),{'description':a99_0x5b49('0x1c'),'triggers':['apex'],'arguments':{'alias':{'platform':['p']},'string':['platform']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a99_0x5b49('0x5'),a99_0x5b49('0xf')]}),this[a99_0x5b49('0xb')]=async(_0x4b2b65,_0x43e92e)=>{if(!_0x43e92e['_'][a99_0x5b49('0xe')])throw new errors[(a99_0x5b49('0x20'))](errors[a99_0x5b49('0x11')][a99_0x5b49('0x8')],this[a99_0x5b49('0x29')]);const _0x301263=_0x43e92e['_'][a99_0x5b49('0x2f')]('\x20'),_0x654a1d=_0x43e92e[a99_0x5b49('0x9')]&&this['platforms'][a99_0x5b49('0x1b')](_0x43e92e[a99_0x5b49('0x9')]['toLowerCase']())?_0x43e92e[a99_0x5b49('0x9')][a99_0x5b49('0x4')]():this[a99_0x5b49('0xd')][0x0],_0x493356=await omnic[a99_0x5b49('0x27')](a99_0x5b49('0x3')+_0x654a1d+'/'+encodeURIComponent(_0x301263)),_0x5c17e8=await _0x493356['json']();if(_0x5c17e8[a99_0x5b49('0x2')])throw new Error(_0x5c17e8[a99_0x5b49('0x2')][0x0][a99_0x5b49('0x14')]);const _0x1079c8=_0x5c17e8[a99_0x5b49('0x22')][a99_0x5b49('0x33')][a99_0x5b49('0x2a')](_0x1fdc29=>_0x1fdc29[a99_0x5b49('0x2c')]===a99_0x5b49('0x30'));await _0x4b2b65['channel'][a99_0x5b49('0x15')]({'embed':{'color':constants[a99_0x5b49('0x19')][a99_0x5b49('0x17')],'author':{'name':_0x5c17e8['data'][a99_0x5b49('0x18')][a99_0x5b49('0x2d')],'iconURL':_0x5c17e8['data']['platformInfo'][a99_0x5b49('0x13')]},'title':a99_0x5b49('0x25'),'description':_0x5c17e8[a99_0x5b49('0x22')]['metadata']['activeLegendName']?_0x5c17e8[a99_0x5b49('0x22')][a99_0x5b49('0x18')]['platformUserHandle']+a99_0x5b49('0x1f')+_0x5c17e8[a99_0x5b49('0x22')][a99_0x5b49('0x2e')]['activeLegendName']:null,'fields':[{'name':'Rank','value':_0x1079c8[a99_0x5b49('0x0')][a99_0x5b49('0x28')]?_0x1079c8[a99_0x5b49('0x0')]['rankScore'][a99_0x5b49('0x2e')][a99_0x5b49('0x1d')]+'\x20/\x20'+_0x1079c8[a99_0x5b49('0x0')][a99_0x5b49('0x28')][a99_0x5b49('0x31')]:'-','inline':!![]},...Object['keys'](_0x1079c8[a99_0x5b49('0x0')])[a99_0x5b49('0xa')](_0x435e97=>_0x435e97!=='rankScore')[a99_0x5b49('0x32')](_0x3053cb=>({'name':_0x1079c8[a99_0x5b49('0x0')][_0x3053cb][a99_0x5b49('0x6')],'value':_0x1079c8[a99_0x5b49('0x0')][_0x3053cb][a99_0x5b49('0x31')],'inline':!![]}))],'thumbnail':{'url':_0x1079c8['stats']['rankScore']?_0x1079c8[a99_0x5b49('0x0')][a99_0x5b49('0x28')][a99_0x5b49('0x2e')][a99_0x5b49('0x2b')]:_0x5c17e8[a99_0x5b49('0x22')]['platformInfo'][a99_0x5b49('0x13')]},'footer':{'text':_0x654a1d[a99_0x5b49('0x1e')]()+a99_0x5b49('0x1')}}});},this[a99_0x5b49('0xd')]=['origin',a99_0x5b49('0x7'),a99_0x5b49('0x16')];}}; \ No newline at end of file diff --git a/commands/player_stats/counterStrikeGlobalOffensive.js b/commands/player_stats/counterStrikeGlobalOffensive.js index dddba49d2..11fa49ede 100644 --- a/commands/player_stats/counterStrikeGlobalOffensive.js +++ b/commands/player_stats/counterStrikeGlobalOffensive.js @@ -1 +1 @@ -const a100_0x2a8f=['steam','exports','timePlayed','apply','COLORS','counterStrikeGlobalOffensive\x20USERNAME','CSGO','/playerstats/csgo/','displayValue','avatarUrl','toFixed','@bastion/tesseract','platformUserHandle','../../utils/constants','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Counter-Strike:\x20Global\x20Offensive\x20player\x20in\x20any\x20supported\x20platform.','errors','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20•\x20Powered\x20by\x20Tracker\x20Network','platforms','overview','platform','../../utils/omnic','includes','metadata','platformInfo','guild','csgo','BASTION_ERROR_TYPE','iconUrl','segments','filter','rankScore','keys','type','join','return\x20/\x22\x20+\x20this\x20+\x20\x22/','counterStrikeGlobalOffensive','json','makeRequest','INVALID_COMMAND_SYNTAX','length','../../utils/errors','message','Counter-Strike:\x20Global\x20Offensive\x20-\x20Player\x20Stats','toLowerCase','exec','constructor','data','channel','https://steamcommunity.com/id/','name','\x20has\x20played\x20for\x20','map','displayName','stats'];(function(_0x419a27,_0x2a8fbe){const _0x224b1c=function(_0x227afc){while(--_0x227afc){_0x419a27['push'](_0x419a27['shift']());}},_0x42de4c=function(){const _0x342117={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5f143c,_0x1dccfa,_0x46620f,_0x1f1d9e){_0x1f1d9e=_0x1f1d9e||{};let _0x308e46=_0x1dccfa+'='+_0x46620f,_0x528cab=0x0;for(let _0x24db19=0x0,_0xe74aa4=_0x5f143c['length'];_0x24db19<_0xe74aa4;_0x24db19++){const _0x516e33=_0x5f143c[_0x24db19];_0x308e46+=';\x20'+_0x516e33;const _0x47bcbf=_0x5f143c[_0x516e33];_0x5f143c['push'](_0x47bcbf),_0xe74aa4=_0x5f143c['length'],_0x47bcbf!==!![]&&(_0x308e46+='='+_0x47bcbf);}_0x1f1d9e['cookie']=_0x308e46;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd9d965,_0x3f8fa5){_0xd9d965=_0xd9d965||function(_0x420655){return _0x420655;};const _0x7ed20b=_0xd9d965(new RegExp('(?:^|;\x20)'+_0x3f8fa5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x334dee=function(_0x5aac7d,_0xf3935){_0x5aac7d(++_0xf3935);};return _0x334dee(_0x224b1c,_0x2a8fbe),_0x7ed20b?decodeURIComponent(_0x7ed20b[0x1]):undefined;}},_0x1d81af=function(){const _0x32d4d5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x32d4d5['test'](_0x342117['removeCookie']['toString']());};_0x342117['updateCookie']=_0x1d81af;let _0x21a6a7='';const _0x34c255=_0x342117['updateCookie']();if(!_0x34c255)_0x342117['setCookie'](['*'],'counter',0x1);else _0x34c255?_0x21a6a7=_0x342117['getCookie'](null,'counter'):_0x342117['removeCookie']();};_0x42de4c();}(a100_0x2a8f,0x177));const a100_0x224b=function(_0x419a27,_0x2a8fbe){_0x419a27=_0x419a27-0x0;let _0x224b1c=a100_0x2a8f[_0x419a27];return _0x224b1c;};const a100_0x46620f=function(){let _0x86d718=!![];return function(_0x535d52,_0x46e377){const _0x1cc5f8=_0x86d718?function(){if(_0x46e377){const _0x49dc1c=_0x46e377[a100_0x224b('0xd')](_0x535d52,arguments);return _0x46e377=null,_0x49dc1c;}}:function(){};return _0x86d718=![],_0x1cc5f8;};}(),a100_0x1dccfa=a100_0x46620f(this,function(){const _0x4ea552=function(){const _0x6fa5c8=_0x4ea552['constructor'](a100_0x224b('0x2d'))()[a100_0x224b('0x1')](a100_0x224b('0x1a'));return!_0x6fa5c8['test'](a100_0x1dccfa);};return _0x4ea552();});a100_0x1dccfa();'use strict';const tesseract_1=require(a100_0x224b('0x15')),constants=require(a100_0x224b('0x17')),errors=require(a100_0x224b('0x33')),omnic=require(a100_0x224b('0x1f'));module[a100_0x224b('0xb')]=class CounterStrikeGlobalOffensiveCommand extends tesseract_1['Command']{constructor(){super(a100_0x224b('0x2e'),{'description':a100_0x224b('0x18'),'triggers':[a100_0x224b('0x24')],'arguments':{'alias':{'platform':['p']},'string':[a100_0x224b('0x1e')]},'scope':a100_0x224b('0x23'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a100_0x224b('0xf'),'counterStrikeGlobalOffensive\x20USERNAME\x20--platform\x20PLATFORM']}),this[a100_0x224b('0x0')]=async(_0x1f9dcd,_0x10d58f)=>{if(!_0x10d58f['_'][a100_0x224b('0x32')])throw new errors['DiscordError'](errors[a100_0x224b('0x25')][a100_0x224b('0x31')],this[a100_0x224b('0x5')]);const _0x20a2da=_0x10d58f['_'][a100_0x224b('0x2c')]('\x20'),_0x3591a6=_0x10d58f['platform']&&this[a100_0x224b('0x1c')][a100_0x224b('0x20')](_0x10d58f['platform'][a100_0x224b('0x36')]())?_0x10d58f[a100_0x224b('0x1e')][a100_0x224b('0x36')]():this[a100_0x224b('0x1c')][0x0],_0x39ab95=await omnic[a100_0x224b('0x30')](a100_0x224b('0x11')+_0x3591a6+'/'+encodeURIComponent(_0x20a2da)),_0x5cfc53=await _0x39ab95[a100_0x224b('0x2f')]();if(_0x5cfc53['errors'])throw new Error(_0x5cfc53[a100_0x224b('0x19')][0x0][a100_0x224b('0x34')]);const _0xb045b6=_0x5cfc53[a100_0x224b('0x2')][a100_0x224b('0x27')]['find'](_0x3d288f=>_0x3d288f[a100_0x224b('0x2b')]===a100_0x224b('0x1d'));await _0x1f9dcd[a100_0x224b('0x3')]['send']({'embed':{'color':constants[a100_0x224b('0xe')][a100_0x224b('0x10')],'author':{'name':_0x5cfc53[a100_0x224b('0x2')][a100_0x224b('0x22')][a100_0x224b('0x16')],'url':a100_0x224b('0x4')+_0x5cfc53['data'][a100_0x224b('0x22')]['platformUserHandle']},'title':a100_0x224b('0x35'),'description':_0xb045b6['stats'][a100_0x224b('0xc')]?_0x5cfc53['data']['platformInfo'][a100_0x224b('0x16')]+a100_0x224b('0x6')+(_0xb045b6['stats'][a100_0x224b('0xc')]['value']/0x3c/0x3c)[a100_0x224b('0x14')](0x2)+'\x20hours.':'','fields':Object[a100_0x224b('0x2a')](_0xb045b6[a100_0x224b('0x9')])[a100_0x224b('0x28')](_0x53b2c3=>_0x53b2c3!==a100_0x224b('0xc'))[a100_0x224b('0x7')](_0x15777e=>({'name':_0xb045b6[a100_0x224b('0x9')][_0x15777e][a100_0x224b('0x8')],'value':_0xb045b6[a100_0x224b('0x9')][_0x15777e][a100_0x224b('0x12')],'inline':!![]})),'thumbnail':{'url':_0xb045b6[a100_0x224b('0x9')]['rankScore']?_0xb045b6[a100_0x224b('0x9')][a100_0x224b('0x29')][a100_0x224b('0x21')][a100_0x224b('0x26')]:_0x5cfc53[a100_0x224b('0x2')]['platformInfo'][a100_0x224b('0x13')]},'footer':{'text':_0x3591a6['toUpperCase']()+a100_0x224b('0x1b')}}});},this[a100_0x224b('0x1c')]=[a100_0x224b('0xa')];}}; \ No newline at end of file +const a100_0x2e2d=['Command','platforms','value','json','join','send','exec','INVALID_COMMAND_SYNTAX','type','timePlayed','apply','CSGO','platform','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Counter-Strike:\x20Global\x20Offensive\x20player\x20in\x20any\x20supported\x20platform.','guild','BASTION_ERROR_TYPE','../../utils/errors','data','platformUserHandle','Counter-Strike:\x20Global\x20Offensive\x20-\x20Player\x20Stats','stats','map','platformInfo','toUpperCase','constructor','https://steamcommunity.com/id/','avatarUrl','test','rankScore','toFixed','overview','\x20has\x20played\x20for\x20','../../utils/omnic','find','displayName','/playerstats/csgo/','\x20•\x20Powered\x20by\x20Tracker\x20Network','toLowerCase','channel','\x20hours.','exports','../../utils/constants','filter','errors','length','keys','includes','COLORS','message'];(function(_0x27a830,_0x2e2d3a){const _0xda67a0=function(_0x219eba){while(--_0x219eba){_0x27a830['push'](_0x27a830['shift']());}},_0x10cd26=function(){const _0xd91e86={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x7c684,_0x301470,_0x5d790e,_0x302200){_0x302200=_0x302200||{};let _0x3a3582=_0x301470+'='+_0x5d790e,_0xd7527e=0x0;for(let _0x54e65b=0x0,_0x147b9b=_0x7c684['length'];_0x54e65b<_0x147b9b;_0x54e65b++){const _0x577afc=_0x7c684[_0x54e65b];_0x3a3582+=';\x20'+_0x577afc;const _0x2c30bb=_0x7c684[_0x577afc];_0x7c684['push'](_0x2c30bb),_0x147b9b=_0x7c684['length'],_0x2c30bb!==!![]&&(_0x3a3582+='='+_0x2c30bb);}_0x302200['cookie']=_0x3a3582;},'removeCookie':function(){return'dev';},'getCookie':function(_0x534b22,_0xce897f){_0x534b22=_0x534b22||function(_0x2ab007){return _0x2ab007;};const _0x409b09=_0x534b22(new RegExp('(?:^|;\x20)'+_0xce897f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x64637e=function(_0x166cdc,_0x515f8a){_0x166cdc(++_0x515f8a);};return _0x64637e(_0xda67a0,_0x2e2d3a),_0x409b09?decodeURIComponent(_0x409b09[0x1]):undefined;}},_0x2b8a6a=function(){const _0x273137=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x273137['test'](_0xd91e86['removeCookie']['toString']());};_0xd91e86['updateCookie']=_0x2b8a6a;let _0x4567f1='';const _0x2ed12e=_0xd91e86['updateCookie']();if(!_0x2ed12e)_0xd91e86['setCookie'](['*'],'counter',0x1);else _0x2ed12e?_0x4567f1=_0xd91e86['getCookie'](null,'counter'):_0xd91e86['removeCookie']();};_0x10cd26();}(a100_0x2e2d,0x10a));const a100_0xda67=function(_0x27a830,_0x2e2d3a){_0x27a830=_0x27a830-0x0;let _0xda67a0=a100_0x2e2d[_0x27a830];return _0xda67a0;};const a100_0x5d790e=function(){let _0x5d056c=!![];return function(_0x57b1a9,_0xa1a3d8){const _0x15ee72=_0x5d056c?function(){if(_0xa1a3d8){const _0x22dcd4=_0xa1a3d8[a100_0xda67('0x26')](_0x57b1a9,arguments);return _0xa1a3d8=null,_0x22dcd4;}}:function(){};return _0x5d056c=![],_0x15ee72;};}(),a100_0x301470=a100_0x5d790e(this,function(){const _0xfcb494=function(){const _0x1cfdd5=_0xfcb494[a100_0xda67('0x3')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a100_0xda67('0x3')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1cfdd5[a100_0xda67('0x6')](a100_0x301470);};return _0xfcb494();});a100_0x301470();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a100_0xda67('0x14')),errors=require(a100_0xda67('0x2c')),omnic=require(a100_0xda67('0xb'));module[a100_0xda67('0x13')]=class CounterStrikeGlobalOffensiveCommand extends tesseract_1[a100_0xda67('0x1c')]{constructor(){super('counterStrikeGlobalOffensive',{'description':a100_0xda67('0x29'),'triggers':['csgo'],'arguments':{'alias':{'platform':['p']},'string':[a100_0xda67('0x28')]},'scope':a100_0xda67('0x2a'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['counterStrikeGlobalOffensive\x20USERNAME','counterStrikeGlobalOffensive\x20USERNAME\x20--platform\x20PLATFORM']}),this[a100_0xda67('0x22')]=async(_0x326a36,_0x1511b8)=>{if(!_0x1511b8['_'][a100_0xda67('0x17')])throw new errors['DiscordError'](errors[a100_0xda67('0x2b')][a100_0xda67('0x23')],this['name']);const _0x128fdc=_0x1511b8['_'][a100_0xda67('0x20')]('\x20'),_0x1e82fd=_0x1511b8[a100_0xda67('0x28')]&&this[a100_0xda67('0x1d')][a100_0xda67('0x19')](_0x1511b8[a100_0xda67('0x28')][a100_0xda67('0x10')]())?_0x1511b8['platform'][a100_0xda67('0x10')]():this['platforms'][0x0],_0x518a17=await omnic['makeRequest'](a100_0xda67('0xe')+_0x1e82fd+'/'+encodeURIComponent(_0x128fdc)),_0x1d6b12=await _0x518a17[a100_0xda67('0x1f')]();if(_0x1d6b12[a100_0xda67('0x16')])throw new Error(_0x1d6b12[a100_0xda67('0x16')][0x0][a100_0xda67('0x1b')]);const _0x3bdab2=_0x1d6b12['data']['segments'][a100_0xda67('0xc')](_0x55dd64=>_0x55dd64[a100_0xda67('0x24')]===a100_0xda67('0x9'));await _0x326a36[a100_0xda67('0x11')][a100_0xda67('0x21')]({'embed':{'color':constants[a100_0xda67('0x1a')][a100_0xda67('0x27')],'author':{'name':_0x1d6b12[a100_0xda67('0x2d')][a100_0xda67('0x1')][a100_0xda67('0x2e')],'url':a100_0xda67('0x4')+_0x1d6b12[a100_0xda67('0x2d')]['platformInfo'][a100_0xda67('0x2e')]},'title':a100_0xda67('0x2f'),'description':_0x3bdab2[a100_0xda67('0x30')]['timePlayed']?_0x1d6b12['data'][a100_0xda67('0x1')][a100_0xda67('0x2e')]+a100_0xda67('0xa')+(_0x3bdab2[a100_0xda67('0x30')][a100_0xda67('0x25')][a100_0xda67('0x1e')]/0x3c/0x3c)[a100_0xda67('0x8')](0x2)+a100_0xda67('0x12'):'','fields':Object[a100_0xda67('0x18')](_0x3bdab2[a100_0xda67('0x30')])[a100_0xda67('0x15')](_0x1f4200=>_0x1f4200!==a100_0xda67('0x25'))[a100_0xda67('0x0')](_0x34834f=>({'name':_0x3bdab2[a100_0xda67('0x30')][_0x34834f][a100_0xda67('0xd')],'value':_0x3bdab2['stats'][_0x34834f]['displayValue'],'inline':!![]})),'thumbnail':{'url':_0x3bdab2[a100_0xda67('0x30')][a100_0xda67('0x7')]?_0x3bdab2['stats'][a100_0xda67('0x7')]['metadata']['iconUrl']:_0x1d6b12[a100_0xda67('0x2d')][a100_0xda67('0x1')][a100_0xda67('0x5')]},'footer':{'text':_0x1e82fd[a100_0xda67('0x2')]()+a100_0xda67('0xf')}}});},this[a100_0xda67('0x1d')]=['steam'];}}; \ No newline at end of file diff --git a/commands/player_stats/destiny2.js b/commands/player_stats/destiny2.js index d166dfbe3..583771a0d 100644 --- a/commands/player_stats/destiny2.js +++ b/commands/player_stats/destiny2.js @@ -1 +1 @@ -const a101_0x3255=['destiny2\x20USERNAME','return\x20/\x22\x20+\x20this\x20+\x20\x22/','killsDeathsAssists','Destiny\x202\x20-\x20Player\x20Stats','@bastion/tesseract','Combat\x20Rating','Win\x20Loss\x20Ratio','\x20•\x20Powered\x20by\x20Bungie','KDR','dateLastPlayed','stats','\x20Precision\x20Kills','/playerstats/destiny2/','\x20Objectives\x20Completed\x0a','includes','Highest\x20Light\x20Level','Extras','allTime','DESTINY_2','Last\x20played\x20on\x20','BASTION_ERROR_TYPE','steam','Deaths','KDA','json','toLowerCase','basic','objectivesCompleted','weaponBestType','exec','toFixed','Kills','stadia','keys','assists','highestLightLevel','Command','heroicPublicEventsCompleted','\x20Adventures\x20Completed\x0a','xbl','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','DiscordError','Score','winLossRatio','platforms','combatRating','psn','mergedAllCharacters','toUTCString','Playtime','value','data','indexOf','displayValue','membershipType','profile','Total\x20Medals\x20Earned','allMedalsEarned','INVALID_COMMAND_SYNTAX','suicides','COLORS','kills','killsDeathsRatio','platform','Assists','\x20/\x20','membership','guild','PLAYER_DOESNT_EXIST','destiny2','../../utils/omnic','score','exports','destiny2\x20USERNAME\x20--platform\x20PLATFORM','send','precisionKills','length','merged','test','KAD','deaths','name','constructor','blizzard'];(function(_0x2e6370,_0x32555b){const _0x4f112c=function(_0x1512a8){while(--_0x1512a8){_0x2e6370['push'](_0x2e6370['shift']());}},_0x23be4d=function(){const _0x2f1e7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x40f4ae,_0x5b075b,_0x1b41b8,_0x550846){_0x550846=_0x550846||{};let _0x4944b4=_0x5b075b+'='+_0x1b41b8,_0x29ce93=0x0;for(let _0x1778f5=0x0,_0x356730=_0x40f4ae['length'];_0x1778f5<_0x356730;_0x1778f5++){const _0x241073=_0x40f4ae[_0x1778f5];_0x4944b4+=';\x20'+_0x241073;const _0x32653d=_0x40f4ae[_0x241073];_0x40f4ae['push'](_0x32653d),_0x356730=_0x40f4ae['length'],_0x32653d!==!![]&&(_0x4944b4+='='+_0x32653d);}_0x550846['cookie']=_0x4944b4;},'removeCookie':function(){return'dev';},'getCookie':function(_0xb1dabf,_0x5ea92d){_0xb1dabf=_0xb1dabf||function(_0x2198c7){return _0x2198c7;};const _0x49e9af=_0xb1dabf(new RegExp('(?:^|;\x20)'+_0x5ea92d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2b23a4=function(_0x2d3366,_0x27ff9f){_0x2d3366(++_0x27ff9f);};return _0x2b23a4(_0x4f112c,_0x32555b),_0x49e9af?decodeURIComponent(_0x49e9af[0x1]):undefined;}},_0x7ba7c=function(){const _0x566fa8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x566fa8['test'](_0x2f1e7['removeCookie']['toString']());};_0x2f1e7['updateCookie']=_0x7ba7c;let _0x548b7c='';const _0x4988b2=_0x2f1e7['updateCookie']();if(!_0x4988b2)_0x2f1e7['setCookie'](['*'],'counter',0x1);else _0x4988b2?_0x548b7c=_0x2f1e7['getCookie'](null,'counter'):_0x2f1e7['removeCookie']();};_0x23be4d();}(a101_0x3255,0x127));const a101_0x4f11=function(_0x2e6370,_0x32555b){_0x2e6370=_0x2e6370-0x0;let _0x4f112c=a101_0x3255[_0x2e6370];return _0x4f112c;};const a101_0x1b41b8=function(){let _0x424bff=!![];return function(_0x1cbf18,_0x2a070c){const _0x43bd2a=_0x424bff?function(){if(_0x2a070c){const _0x420c54=_0x2a070c['apply'](_0x1cbf18,arguments);return _0x2a070c=null,_0x420c54;}}:function(){};return _0x424bff=![],_0x43bd2a;};}(),a101_0x5b075b=a101_0x1b41b8(this,function(){const _0x2cab0d=function(){const _0x12dfbb=_0x2cab0d[a101_0x4f11('0x27')](a101_0x4f11('0x2a'))()[a101_0x4f11('0x27')](a101_0x4f11('0x51'));return!_0x12dfbb[a101_0x4f11('0x23')](a101_0x5b075b);};return _0x2cab0d();});a101_0x5b075b();'use strict';const tesseract_1=require(a101_0x4f11('0x2d')),constants=require('../../utils/constants'),errors=require('../../utils/errors'),omnic=require(a101_0x4f11('0x1b'));module[a101_0x4f11('0x1d')]=class Destiny2Command extends tesseract_1[a101_0x4f11('0x4d')]{constructor(){super(a101_0x4f11('0x1a'),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Destiny\x202\x20player\x20in\x20any\x20supported\x20platform.','triggers':[],'arguments':{'alias':{'platform':['p']},'string':[a101_0x4f11('0x14')]},'scope':a101_0x4f11('0x18'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a101_0x4f11('0x29'),a101_0x4f11('0x1e')]}),this[a101_0x4f11('0x46')]=async(_0x447083,_0x361072)=>{if(!_0x361072['_'][a101_0x4f11('0x21')])throw new errors[(a101_0x4f11('0x52'))](errors[a101_0x4f11('0x3d')][a101_0x4f11('0xf')],this[a101_0x4f11('0x26')]);const _0x548126=_0x361072['_']['join']('\x20'),_0x3b5820=_0x361072[a101_0x4f11('0x14')]&&this[a101_0x4f11('0x1')][a101_0x4f11('0x37')](_0x361072['platform'][a101_0x4f11('0x42')]())?this[a101_0x4f11('0x1')][a101_0x4f11('0x9')](_0x361072['platform'][a101_0x4f11('0x42')]()):-0x1,_0xd3ff37=await omnic['makeRequest'](a101_0x4f11('0x35')+_0x3b5820+'/'+encodeURIComponent(_0x548126)),_0x2fcbdc=await _0xd3ff37[a101_0x4f11('0x41')]();if(!Object[a101_0x4f11('0x4a')](_0x2fcbdc)[a101_0x4f11('0x21')])throw new Error(a101_0x4f11('0x19'));await _0x447083['channel'][a101_0x4f11('0x1f')]({'embed':{'color':constants[a101_0x4f11('0x11')][a101_0x4f11('0x3b')],'author':{'name':_0x2fcbdc[a101_0x4f11('0x17')]['displayName']},'title':a101_0x4f11('0x2c'),'description':a101_0x4f11('0x3c')+new Date(_0x2fcbdc[a101_0x4f11('0xc')][a101_0x4f11('0xc')][a101_0x4f11('0x8')][a101_0x4f11('0x32')])[a101_0x4f11('0x5')](),'fields':[{'name':a101_0x4f11('0x6'),'value':_0x2fcbdc[a101_0x4f11('0x33')][a101_0x4f11('0x4')][a101_0x4f11('0x22')][a101_0x4f11('0x3a')]['secondsPlayed']['basic'][a101_0x4f11('0xa')],'inline':!![]},{'name':a101_0x4f11('0x38'),'value':_0x2fcbdc['stats']['mergedAllCharacters']['merged'][a101_0x4f11('0x3a')][a101_0x4f11('0x4c')][a101_0x4f11('0x43')][a101_0x4f11('0xa')],'inline':!![]},{'name':a101_0x4f11('0x38'),'value':_0x2fcbdc[a101_0x4f11('0x33')]['mergedAllCharacters'][a101_0x4f11('0x22')]['allTime']['highestLightLevel'][a101_0x4f11('0x43')][a101_0x4f11('0xa')],'inline':!![]},{'name':a101_0x4f11('0x2e'),'value':_0x2fcbdc['stats']['mergedAllCharacters'][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x2')][a101_0x4f11('0x43')][a101_0x4f11('0xa')],'inline':!![]},{'name':a101_0x4f11('0x53'),'value':_0x2fcbdc[a101_0x4f11('0x33')]['mergedAllCharacters'][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x1c')][a101_0x4f11('0x43')]['displayValue'],'inline':!![]},{'name':'Team\x20Score','value':_0x2fcbdc[a101_0x4f11('0x33')][a101_0x4f11('0x4')][a101_0x4f11('0x22')][a101_0x4f11('0x3a')]['teamScore'][a101_0x4f11('0x43')]['displayValue'],'inline':!![]},{'name':a101_0x4f11('0x48'),'value':_0x2fcbdc[a101_0x4f11('0x33')]['mergedAllCharacters'][a101_0x4f11('0x22')][a101_0x4f11('0x3a')]['kills'][a101_0x4f11('0x43')][a101_0x4f11('0xa')]+a101_0x4f11('0x16')+_0x2fcbdc[a101_0x4f11('0x33')][a101_0x4f11('0x4')][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x20')]['basic'][a101_0x4f11('0xa')]+a101_0x4f11('0x34'),'inline':!![]},{'name':a101_0x4f11('0x15'),'value':_0x2fcbdc[a101_0x4f11('0x33')][a101_0x4f11('0x4')][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x4b')][a101_0x4f11('0x43')][a101_0x4f11('0xa')],'inline':!![]},{'name':a101_0x4f11('0x3f'),'value':_0x2fcbdc[a101_0x4f11('0x33')][a101_0x4f11('0x4')][a101_0x4f11('0x22')]['allTime'][a101_0x4f11('0x25')]['basic'][a101_0x4f11('0xa')]+a101_0x4f11('0x16')+_0x2fcbdc[a101_0x4f11('0x33')][a101_0x4f11('0x4')][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x10')][a101_0x4f11('0x43')][a101_0x4f11('0xa')]+'\x20Suicides','inline':!![]},{'name':a101_0x4f11('0x31'),'value':_0x2fcbdc['stats'][a101_0x4f11('0x4')]['merged'][a101_0x4f11('0x3a')][a101_0x4f11('0x13')][a101_0x4f11('0x43')][a101_0x4f11('0xa')],'inline':!![]},{'name':a101_0x4f11('0x40'),'value':_0x2fcbdc[a101_0x4f11('0x33')]['mergedAllCharacters'][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x2b')][a101_0x4f11('0x43')][a101_0x4f11('0xa')],'inline':!![]},{'name':a101_0x4f11('0x24'),'value':((_0x2fcbdc[a101_0x4f11('0x33')]['mergedAllCharacters'][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x12')][a101_0x4f11('0x43')][a101_0x4f11('0x7')]+_0x2fcbdc[a101_0x4f11('0x33')][a101_0x4f11('0x4')][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x4b')]['basic'][a101_0x4f11('0x7')])/_0x2fcbdc[a101_0x4f11('0x33')][a101_0x4f11('0x4')][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x25')][a101_0x4f11('0x43')][a101_0x4f11('0x7')])[a101_0x4f11('0x47')](0x2),'inline':!![]},{'name':a101_0x4f11('0x2f'),'value':_0x2fcbdc[a101_0x4f11('0x33')]['mergedAllCharacters'][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x0')][a101_0x4f11('0x43')][a101_0x4f11('0xa')],'inline':!![]},{'name':'Best\x20Weapon\x20Type','value':_0x2fcbdc[a101_0x4f11('0x33')][a101_0x4f11('0x4')][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x45')][a101_0x4f11('0x43')][a101_0x4f11('0xa')],'inline':!![]},{'name':a101_0x4f11('0xd'),'value':_0x2fcbdc[a101_0x4f11('0x33')]['mergedAllCharacters'][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0xe')][a101_0x4f11('0x43')][a101_0x4f11('0xa')],'inline':!![]},{'name':a101_0x4f11('0x39'),'value':_0x2fcbdc['stats'][a101_0x4f11('0x4')]['merged'][a101_0x4f11('0x3a')][a101_0x4f11('0x44')][a101_0x4f11('0x43')][a101_0x4f11('0xa')]+a101_0x4f11('0x36')+_0x2fcbdc['stats'][a101_0x4f11('0x4')][a101_0x4f11('0x22')]['allTime']['adventuresCompleted'][a101_0x4f11('0x43')]['displayValue']+a101_0x4f11('0x4f')+_0x2fcbdc[a101_0x4f11('0x33')][a101_0x4f11('0x4')][a101_0x4f11('0x22')][a101_0x4f11('0x3a')][a101_0x4f11('0x4e')][a101_0x4f11('0x43')][a101_0x4f11('0xa')]+'\x20Heroic\x20Public\x20Events\x20Completed'}],'footer':{'text':this[a101_0x4f11('0x1')][_0x2fcbdc[a101_0x4f11('0x17')][a101_0x4f11('0xb')]]['toUpperCase']()+a101_0x4f11('0x30')}}});},this[a101_0x4f11('0x1')]=[null,a101_0x4f11('0x50'),a101_0x4f11('0x3'),a101_0x4f11('0x3e'),a101_0x4f11('0x28'),a101_0x4f11('0x49')];}}; \ No newline at end of file +const a101_0xf5cb=['channel','Last\x20played\x20on\x20','test','allMedalsEarned','toUTCString','constructor','length','Command','keys','Best\x20Weapon\x20Type','@bastion/tesseract','toLowerCase','suicides','Kills','displayName','heroicPublicEventsCompleted','weaponBestType','/playerstats/destiny2/','blizzard','Highest\x20Light\x20Level','membership','mergedAllCharacters','displayValue','steam','Assists','basic','DiscordError','BASTION_ERROR_TYPE','send','\x20•\x20Powered\x20by\x20Bungie','value','platform','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','platforms','exec','../../utils/errors','../../utils/constants','merged','profile','stats','Deaths','json','indexOf','../../utils/omnic','deaths','Playtime','stadia','precisionKills','exports','allTime','winLossRatio','return\x20/\x22\x20+\x20this\x20+\x20\x22/','destiny2\x20USERNAME\x20--platform\x20PLATFORM','Destiny\x202\x20-\x20Player\x20Stats','KAD','assists','Extras','score','toUpperCase','guild','combatRating','Total\x20Medals\x20Earned','kills','\x20Adventures\x20Completed\x0a','xbl','Win\x20Loss\x20Ratio','teamScore','killsDeathsAssists','KDA','\x20Objectives\x20Completed\x0a','KDR','\x20/\x20','DESTINY_2'];(function(_0x523da8,_0xf5cb89){const _0xc3285d=function(_0x3bcca5){while(--_0x3bcca5){_0x523da8['push'](_0x523da8['shift']());}},_0x6e6bfa=function(){const _0x1cad04={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5101e6,_0x18af36,_0x1fb3b4,_0x238e0c){_0x238e0c=_0x238e0c||{};let _0x5e0bc1=_0x18af36+'='+_0x1fb3b4,_0x413c27=0x0;for(let _0x426958=0x0,_0x50d37f=_0x5101e6['length'];_0x426958<_0x50d37f;_0x426958++){const _0x29002b=_0x5101e6[_0x426958];_0x5e0bc1+=';\x20'+_0x29002b;const _0x75c31d=_0x5101e6[_0x29002b];_0x5101e6['push'](_0x75c31d),_0x50d37f=_0x5101e6['length'],_0x75c31d!==!![]&&(_0x5e0bc1+='='+_0x75c31d);}_0x238e0c['cookie']=_0x5e0bc1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x31ed37,_0x22bed6){_0x31ed37=_0x31ed37||function(_0x26e7f8){return _0x26e7f8;};const _0x31eba7=_0x31ed37(new RegExp('(?:^|;\x20)'+_0x22bed6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2bc2de=function(_0x3d640f,_0x49a2a7){_0x3d640f(++_0x49a2a7);};return _0x2bc2de(_0xc3285d,_0xf5cb89),_0x31eba7?decodeURIComponent(_0x31eba7[0x1]):undefined;}},_0x12fd1d=function(){const _0x495e4c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x495e4c['test'](_0x1cad04['removeCookie']['toString']());};_0x1cad04['updateCookie']=_0x12fd1d;let _0x5bfde2='';const _0x3361ad=_0x1cad04['updateCookie']();if(!_0x3361ad)_0x1cad04['setCookie'](['*'],'counter',0x1);else _0x3361ad?_0x5bfde2=_0x1cad04['getCookie'](null,'counter'):_0x1cad04['removeCookie']();};_0x6e6bfa();}(a101_0xf5cb,0x1bd));const a101_0xc328=function(_0x523da8,_0xf5cb89){_0x523da8=_0x523da8-0x0;let _0xc3285d=a101_0xf5cb[_0x523da8];return _0xc3285d;};const a101_0x1fb3b4=function(){let _0x2eade9=!![];return function(_0x298044,_0x1edcab){const _0x4f1597=_0x2eade9?function(){if(_0x1edcab){const _0x4562aa=_0x1edcab['apply'](_0x298044,arguments);return _0x1edcab=null,_0x4562aa;}}:function(){};return _0x2eade9=![],_0x4f1597;};}(),a101_0x18af36=a101_0x1fb3b4(this,function(){const _0x18e0b9=function(){const _0x5001a1=_0x18e0b9[a101_0xc328('0x4')](a101_0xc328('0x33'))()['constructor'](a101_0xc328('0x20'));return!_0x5001a1[a101_0xc328('0x1')](a101_0x18af36);};return _0x18e0b9();});a101_0x18af36();'use strict';const tesseract_1=require(a101_0xc328('0x9')),constants=require(a101_0xc328('0x24')),errors=require(a101_0xc328('0x23')),omnic=require(a101_0xc328('0x2b'));module[a101_0xc328('0x30')]=class Destiny2Command extends tesseract_1[a101_0xc328('0x6')]{constructor(){super('destiny2',{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Destiny\x202\x20player\x20in\x20any\x20supported\x20platform.','triggers':[],'arguments':{'alias':{'platform':['p']},'string':['platform']},'scope':a101_0xc328('0x3b'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['destiny2\x20USERNAME',a101_0xc328('0x34')]}),this[a101_0xc328('0x22')]=async(_0x59c1df,_0x215d0e)=>{if(!_0x215d0e['_'][a101_0xc328('0x5')])throw new errors[(a101_0xc328('0x19'))](errors[a101_0xc328('0x1a')]['INVALID_COMMAND_SYNTAX'],this['name']);const _0x17066f=_0x215d0e['_']['join']('\x20'),_0x1d13a5=_0x215d0e[a101_0xc328('0x1e')]&&this[a101_0xc328('0x21')]['includes'](_0x215d0e[a101_0xc328('0x1e')]['toLowerCase']())?this['platforms'][a101_0xc328('0x2a')](_0x215d0e[a101_0xc328('0x1e')][a101_0xc328('0xa')]()):-0x1,_0x583672=await omnic['makeRequest'](a101_0xc328('0x10')+_0x1d13a5+'/'+encodeURIComponent(_0x17066f)),_0x590ba2=await _0x583672[a101_0xc328('0x29')]();if(!Object[a101_0xc328('0x7')](_0x590ba2)[a101_0xc328('0x5')])throw new Error('PLAYER_DOESNT_EXIST');await _0x59c1df[a101_0xc328('0x49')][a101_0xc328('0x1b')]({'embed':{'color':constants[a101_0xc328('0x1f')][a101_0xc328('0x48')],'author':{'name':_0x590ba2[a101_0xc328('0x13')][a101_0xc328('0xd')]},'title':a101_0xc328('0x35'),'description':a101_0xc328('0x0')+new Date(_0x590ba2['profile'][a101_0xc328('0x26')]['data']['dateLastPlayed'])[a101_0xc328('0x3')](),'fields':[{'name':a101_0xc328('0x2d'),'value':_0x590ba2[a101_0xc328('0x27')]['mergedAllCharacters']['merged'][a101_0xc328('0x31')]['secondsPlayed'][a101_0xc328('0x18')][a101_0xc328('0x15')],'inline':!![]},{'name':'Highest\x20Light\x20Level','value':_0x590ba2[a101_0xc328('0x27')][a101_0xc328('0x14')][a101_0xc328('0x25')][a101_0xc328('0x31')]['highestLightLevel'][a101_0xc328('0x18')][a101_0xc328('0x15')],'inline':!![]},{'name':a101_0xc328('0x12'),'value':_0x590ba2['stats'][a101_0xc328('0x14')][a101_0xc328('0x25')][a101_0xc328('0x31')]['highestLightLevel'][a101_0xc328('0x18')]['displayValue'],'inline':!![]},{'name':'Combat\x20Rating','value':_0x590ba2[a101_0xc328('0x27')][a101_0xc328('0x14')]['merged'][a101_0xc328('0x31')][a101_0xc328('0x3c')]['basic']['displayValue'],'inline':!![]},{'name':'Score','value':_0x590ba2[a101_0xc328('0x27')][a101_0xc328('0x14')]['merged'][a101_0xc328('0x31')][a101_0xc328('0x39')][a101_0xc328('0x18')][a101_0xc328('0x15')],'inline':!![]},{'name':'Team\x20Score','value':_0x590ba2[a101_0xc328('0x27')][a101_0xc328('0x14')][a101_0xc328('0x25')][a101_0xc328('0x31')][a101_0xc328('0x42')]['basic'][a101_0xc328('0x15')],'inline':!![]},{'name':a101_0xc328('0xc'),'value':_0x590ba2['stats'][a101_0xc328('0x14')]['merged'][a101_0xc328('0x31')]['kills'][a101_0xc328('0x18')][a101_0xc328('0x15')]+'\x20/\x20'+_0x590ba2[a101_0xc328('0x27')]['mergedAllCharacters'][a101_0xc328('0x25')][a101_0xc328('0x31')][a101_0xc328('0x2f')][a101_0xc328('0x18')][a101_0xc328('0x15')]+'\x20Precision\x20Kills','inline':!![]},{'name':a101_0xc328('0x17'),'value':_0x590ba2['stats'][a101_0xc328('0x14')][a101_0xc328('0x25')][a101_0xc328('0x31')][a101_0xc328('0x37')][a101_0xc328('0x18')][a101_0xc328('0x15')],'inline':!![]},{'name':a101_0xc328('0x28'),'value':_0x590ba2[a101_0xc328('0x27')][a101_0xc328('0x14')][a101_0xc328('0x25')][a101_0xc328('0x31')][a101_0xc328('0x2c')]['basic'][a101_0xc328('0x15')]+a101_0xc328('0x47')+_0x590ba2[a101_0xc328('0x27')]['mergedAllCharacters'][a101_0xc328('0x25')][a101_0xc328('0x31')][a101_0xc328('0xb')]['basic'][a101_0xc328('0x15')]+'\x20Suicides','inline':!![]},{'name':a101_0xc328('0x46'),'value':_0x590ba2['stats'][a101_0xc328('0x14')][a101_0xc328('0x25')][a101_0xc328('0x31')]['killsDeathsRatio']['basic'][a101_0xc328('0x15')],'inline':!![]},{'name':a101_0xc328('0x44'),'value':_0x590ba2[a101_0xc328('0x27')]['mergedAllCharacters']['merged'][a101_0xc328('0x31')][a101_0xc328('0x43')][a101_0xc328('0x18')][a101_0xc328('0x15')],'inline':!![]},{'name':a101_0xc328('0x36'),'value':((_0x590ba2[a101_0xc328('0x27')]['mergedAllCharacters']['merged'][a101_0xc328('0x31')][a101_0xc328('0x3e')][a101_0xc328('0x18')][a101_0xc328('0x1d')]+_0x590ba2['stats'][a101_0xc328('0x14')]['merged']['allTime'][a101_0xc328('0x37')][a101_0xc328('0x18')][a101_0xc328('0x1d')])/_0x590ba2[a101_0xc328('0x27')][a101_0xc328('0x14')][a101_0xc328('0x25')]['allTime']['deaths'][a101_0xc328('0x18')][a101_0xc328('0x1d')])['toFixed'](0x2),'inline':!![]},{'name':a101_0xc328('0x41'),'value':_0x590ba2[a101_0xc328('0x27')][a101_0xc328('0x14')]['merged'][a101_0xc328('0x31')][a101_0xc328('0x32')]['basic'][a101_0xc328('0x15')],'inline':!![]},{'name':a101_0xc328('0x8'),'value':_0x590ba2[a101_0xc328('0x27')][a101_0xc328('0x14')]['merged'][a101_0xc328('0x31')][a101_0xc328('0xf')][a101_0xc328('0x18')][a101_0xc328('0x15')],'inline':!![]},{'name':a101_0xc328('0x3d'),'value':_0x590ba2[a101_0xc328('0x27')][a101_0xc328('0x14')]['merged'][a101_0xc328('0x31')][a101_0xc328('0x2')][a101_0xc328('0x18')][a101_0xc328('0x15')],'inline':!![]},{'name':a101_0xc328('0x38'),'value':_0x590ba2['stats'][a101_0xc328('0x14')][a101_0xc328('0x25')][a101_0xc328('0x31')]['objectivesCompleted']['basic'][a101_0xc328('0x15')]+a101_0xc328('0x45')+_0x590ba2[a101_0xc328('0x27')][a101_0xc328('0x14')][a101_0xc328('0x25')][a101_0xc328('0x31')]['adventuresCompleted'][a101_0xc328('0x18')][a101_0xc328('0x15')]+a101_0xc328('0x3f')+_0x590ba2[a101_0xc328('0x27')][a101_0xc328('0x14')][a101_0xc328('0x25')][a101_0xc328('0x31')][a101_0xc328('0xe')][a101_0xc328('0x18')][a101_0xc328('0x15')]+'\x20Heroic\x20Public\x20Events\x20Completed'}],'footer':{'text':this['platforms'][_0x590ba2['membership']['membershipType']][a101_0xc328('0x3a')]()+a101_0xc328('0x1c')}}});},this[a101_0xc328('0x21')]=[null,a101_0xc328('0x40'),'psn',a101_0xc328('0x16'),a101_0xc328('0x11'),a101_0xc328('0x2e')];}}; \ No newline at end of file diff --git a/commands/player_stats/fortnite.js b/commands/player_stats/fortnite.js index 9d473fb4a..4279e4a2c 100644 --- a/commands/player_stats/fortnite.js +++ b/commands/player_stats/fortnite.js @@ -1 +1 @@ -const a102_0xba57=['xbl','value','../../utils/constants','exports','toUpperCase','DiscordError','toLowerCase','epicUserHandle','constructor','Fortnite\x20-\x20Player\x20Stats','COLORS','Command','exec','fortnite\x20USERNAME\x20--platform\x20PLATFORM','/playerstats/fortnite/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','lifeTimeStats','BASTION_ERROR_TYPE','platformNameLong','FORTNITE','@bastion/tesseract','name','platforms','key','map','error','fortnite\x20USERNAME','apply','platform','channel','../../utils/omnic','join','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x59022a,_0xba572c){const _0x3b9e5c=function(_0x2bdde6){while(--_0x2bdde6){_0x59022a['push'](_0x59022a['shift']());}},_0x3d2531=function(){const _0x14ec2b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3f7a94,_0x433b84,_0x318770,_0x1b92ad){_0x1b92ad=_0x1b92ad||{};let _0x2b85ab=_0x433b84+'='+_0x318770,_0x824ff4=0x0;for(let _0x47839d=0x0,_0x482489=_0x3f7a94['length'];_0x47839d<_0x482489;_0x47839d++){const _0x169043=_0x3f7a94[_0x47839d];_0x2b85ab+=';\x20'+_0x169043;const _0x49c52a=_0x3f7a94[_0x169043];_0x3f7a94['push'](_0x49c52a),_0x482489=_0x3f7a94['length'],_0x49c52a!==!![]&&(_0x2b85ab+='='+_0x49c52a);}_0x1b92ad['cookie']=_0x2b85ab;},'removeCookie':function(){return'dev';},'getCookie':function(_0xcdd22a,_0x35fd64){_0xcdd22a=_0xcdd22a||function(_0x350125){return _0x350125;};const _0x5df33a=_0xcdd22a(new RegExp('(?:^|;\x20)'+_0x35fd64['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x35b2f7=function(_0x222056,_0x507d56){_0x222056(++_0x507d56);};return _0x35b2f7(_0x3b9e5c,_0xba572c),_0x5df33a?decodeURIComponent(_0x5df33a[0x1]):undefined;}},_0x27dc66=function(){const _0x5aa8b0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5aa8b0['test'](_0x14ec2b['removeCookie']['toString']());};_0x14ec2b['updateCookie']=_0x27dc66;let _0x3a55b6='';const _0x6a5892=_0x14ec2b['updateCookie']();if(!_0x6a5892)_0x14ec2b['setCookie'](['*'],'counter',0x1);else _0x6a5892?_0x3a55b6=_0x14ec2b['getCookie'](null,'counter'):_0x14ec2b['removeCookie']();};_0x3d2531();}(a102_0xba57,0x1da));const a102_0x3b9e=function(_0x59022a,_0xba572c){_0x59022a=_0x59022a-0x0;let _0x3b9e5c=a102_0xba57[_0x59022a];return _0x3b9e5c;};const a102_0x318770=function(){let _0x19b1e1=!![];return function(_0x47b158,_0x120e32){const _0x1b4fec=_0x19b1e1?function(){if(_0x120e32){const _0x28aad4=_0x120e32[a102_0x3b9e('0x1d')](_0x47b158,arguments);return _0x120e32=null,_0x28aad4;}}:function(){};return _0x19b1e1=![],_0x1b4fec;};}(),a102_0x433b84=a102_0x318770(this,function(){const _0x1f5832=function(){const _0x24aecc=_0x1f5832[a102_0x3b9e('0xa')](a102_0x3b9e('0x1'))()['constructor'](a102_0x3b9e('0x11'));return!_0x24aecc['test'](a102_0x433b84);};return _0x1f5832();});a102_0x433b84();'use strict';const tesseract_1=require(a102_0x3b9e('0x16')),constants=require(a102_0x3b9e('0x4')),errors=require('../../utils/errors'),omnic=require(a102_0x3b9e('0x20'));module[a102_0x3b9e('0x5')]=class FortniteCommand extends tesseract_1[a102_0x3b9e('0xd')]{constructor(){super('fortnite',{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Fortnite\x20player\x20in\x20any\x20supported\x20platform.','triggers':[],'arguments':{'alias':{'platform':['p']},'string':[a102_0x3b9e('0x1e')]},'scope':a102_0x3b9e('0x0'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a102_0x3b9e('0x1c'),a102_0x3b9e('0xf')]}),this[a102_0x3b9e('0xe')]=async(_0x8a27dc,_0x1b18ef)=>{if(!_0x1b18ef['_']['length'])throw new errors[(a102_0x3b9e('0x7'))](errors[a102_0x3b9e('0x13')]['INVALID_COMMAND_SYNTAX'],this[a102_0x3b9e('0x17')]);const _0x38d912=_0x1b18ef['_'][a102_0x3b9e('0x21')]('\x20'),_0x20e099=_0x1b18ef[a102_0x3b9e('0x1e')]&&this[a102_0x3b9e('0x18')]['includes'](_0x1b18ef[a102_0x3b9e('0x1e')]['toLowerCase']())?_0x1b18ef[a102_0x3b9e('0x1e')][a102_0x3b9e('0x8')]():this[a102_0x3b9e('0x18')][0x0],_0xa89c57=await omnic['makeRequest'](a102_0x3b9e('0x10')+_0x20e099+'/'+encodeURIComponent(_0x38d912)),_0xa508c2=await _0xa89c57['json']();if(_0xa508c2[a102_0x3b9e('0x1b')])throw new Error(_0xa508c2[a102_0x3b9e('0x1b')]);await _0x8a27dc[a102_0x3b9e('0x1f')]['send']({'embed':{'color':constants[a102_0x3b9e('0xc')][a102_0x3b9e('0x15')],'author':{'name':_0xa508c2[a102_0x3b9e('0x9')]},'title':a102_0x3b9e('0xb'),'fields':_0xa508c2[a102_0x3b9e('0x12')][a102_0x3b9e('0x1a')](_0xaca61b=>({'name':_0xaca61b[a102_0x3b9e('0x19')],'value':_0xaca61b[a102_0x3b9e('0x3')],'inline':!![]})),'footer':{'text':_0xa508c2[a102_0x3b9e('0x14')][a102_0x3b9e('0x6')]()+'\x20•\x20Powered\x20by\x20Fortnite\x20Tracker'}}});},this[a102_0x3b9e('0x18')]=['pc','psn',a102_0x3b9e('0x2')];}}; \ No newline at end of file +const a102_0x5f2e=['platforms','DiscordError','platformNameLong','../../utils/omnic','lifeTimeStats','epicUserHandle','error','return\x20/\x22\x20+\x20this\x20+\x20\x22/','makeRequest','xbl','FORTNITE','@bastion/tesseract','Fortnite\x20-\x20Player\x20Stats','\x20•\x20Powered\x20by\x20Fortnite\x20Tracker','guild','send','COLORS','join','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','channel','platform','INVALID_COMMAND_SYNTAX','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Fortnite\x20player\x20in\x20any\x20supported\x20platform.','constructor','/playerstats/fortnite/','fortnite\x20USERNAME','../../utils/constants','Command','toLowerCase','BASTION_ERROR_TYPE','fortnite\x20USERNAME\x20--platform\x20PLATFORM','map','value','apply','json','fortnite','psn','test'];(function(_0x3bb530,_0x5f2ef1){const _0x4fad05=function(_0x3480b3){while(--_0x3480b3){_0x3bb530['push'](_0x3bb530['shift']());}},_0x36bbd1=function(){const _0x4800ec={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4b8713,_0x175654,_0x3301a5,_0x17b11c){_0x17b11c=_0x17b11c||{};let _0x32a77c=_0x175654+'='+_0x3301a5,_0xe3e3c9=0x0;for(let _0x13aef8=0x0,_0x1b4473=_0x4b8713['length'];_0x13aef8<_0x1b4473;_0x13aef8++){const _0x12fd4a=_0x4b8713[_0x13aef8];_0x32a77c+=';\x20'+_0x12fd4a;const _0xc4ad6f=_0x4b8713[_0x12fd4a];_0x4b8713['push'](_0xc4ad6f),_0x1b4473=_0x4b8713['length'],_0xc4ad6f!==!![]&&(_0x32a77c+='='+_0xc4ad6f);}_0x17b11c['cookie']=_0x32a77c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x329212,_0x396bef){_0x329212=_0x329212||function(_0x539bf6){return _0x539bf6;};const _0x547bd8=_0x329212(new RegExp('(?:^|;\x20)'+_0x396bef['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x45acff=function(_0x23033f,_0x40a659){_0x23033f(++_0x40a659);};return _0x45acff(_0x4fad05,_0x5f2ef1),_0x547bd8?decodeURIComponent(_0x547bd8[0x1]):undefined;}},_0x2e863b=function(){const _0x469203=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x469203['test'](_0x4800ec['removeCookie']['toString']());};_0x4800ec['updateCookie']=_0x2e863b;let _0x15e556='';const _0x3cd42d=_0x4800ec['updateCookie']();if(!_0x3cd42d)_0x4800ec['setCookie'](['*'],'counter',0x1);else _0x3cd42d?_0x15e556=_0x4800ec['getCookie'](null,'counter'):_0x4800ec['removeCookie']();};_0x36bbd1();}(a102_0x5f2e,0x15f));const a102_0x4fad=function(_0x3bb530,_0x5f2ef1){_0x3bb530=_0x3bb530-0x0;let _0x4fad05=a102_0x5f2e[_0x3bb530];return _0x4fad05;};const a102_0x3301a5=function(){let _0x5d3b29=!![];return function(_0x44754e,_0x1a485){const _0x9dfd0f=_0x5d3b29?function(){if(_0x1a485){const _0x132860=_0x1a485[a102_0x4fad('0x18')](_0x44754e,arguments);return _0x1a485=null,_0x132860;}}:function(){};return _0x5d3b29=![],_0x9dfd0f;};}(),a102_0x175654=a102_0x3301a5(this,function(){const _0x40193b=function(){const _0x1be343=_0x40193b[a102_0x4fad('0xe')](a102_0x4fad('0x24'))()[a102_0x4fad('0xe')](a102_0x4fad('0x9'));return!_0x1be343[a102_0x4fad('0x1c')](a102_0x175654);};return _0x40193b();});a102_0x175654();'use strict';const tesseract_1=require(a102_0x4fad('0x2')),constants=require(a102_0x4fad('0x11')),errors=require('../../utils/errors'),omnic=require(a102_0x4fad('0x20'));module['exports']=class FortniteCommand extends tesseract_1[a102_0x4fad('0x12')]{constructor(){super(a102_0x4fad('0x1a'),{'description':a102_0x4fad('0xd'),'triggers':[],'arguments':{'alias':{'platform':['p']},'string':[a102_0x4fad('0xb')]},'scope':a102_0x4fad('0x5'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a102_0x4fad('0x10'),a102_0x4fad('0x15')]}),this['exec']=async(_0x430fff,_0x5c1a89)=>{if(!_0x5c1a89['_']['length'])throw new errors[(a102_0x4fad('0x1e'))](errors[a102_0x4fad('0x14')][a102_0x4fad('0xc')],this['name']);const _0x2751b4=_0x5c1a89['_'][a102_0x4fad('0x8')]('\x20'),_0x4f2d9e=_0x5c1a89['platform']&&this[a102_0x4fad('0x1d')]['includes'](_0x5c1a89[a102_0x4fad('0xb')][a102_0x4fad('0x13')]())?_0x5c1a89[a102_0x4fad('0xb')][a102_0x4fad('0x13')]():this['platforms'][0x0],_0x7e8de2=await omnic[a102_0x4fad('0x25')](a102_0x4fad('0xf')+_0x4f2d9e+'/'+encodeURIComponent(_0x2751b4)),_0x17cc1d=await _0x7e8de2[a102_0x4fad('0x19')]();if(_0x17cc1d[a102_0x4fad('0x23')])throw new Error(_0x17cc1d[a102_0x4fad('0x23')]);await _0x430fff[a102_0x4fad('0xa')][a102_0x4fad('0x6')]({'embed':{'color':constants[a102_0x4fad('0x7')][a102_0x4fad('0x1')],'author':{'name':_0x17cc1d[a102_0x4fad('0x22')]},'title':a102_0x4fad('0x3'),'fields':_0x17cc1d[a102_0x4fad('0x21')][a102_0x4fad('0x16')](_0x470cad=>({'name':_0x470cad['key'],'value':_0x470cad[a102_0x4fad('0x17')],'inline':!![]})),'footer':{'text':_0x17cc1d[a102_0x4fad('0x1f')]['toUpperCase']()+a102_0x4fad('0x4')}}});},this[a102_0x4fad('0x1d')]=['pc',a102_0x4fad('0x1b'),a102_0x4fad('0x0')];}}; \ No newline at end of file diff --git a/commands/player_stats/overwatch.js b/commands/player_stats/overwatch.js index 61a3a9d70..24c33800b 100644 --- a/commands/player_stats/overwatch.js +++ b/commands/player_stats/overwatch.js @@ -1 +1 @@ -const a103_0x3eae=['medals','concat','overwatch\x20USERNAME\x20--platform\x20PLATFORM','timePlayed','endorsement','level','Competitive','length','matchAwards','role','Tank\x20Skill\x20Rating','support','Quick\x20Play','exports','combat','Endorsement','nintendo-switch','cards','message','send','apply','map','platform','toLowerCase','**\x20Silver\x20Medals\x0a','Assists','careerStats','competitiveStats','BASTION_ERROR_TYPE','allHeroes','Combat','Command','constructor','gamesWon','name','Damage\x20Skill\x20Rating','../../utils/constants','medalsBronze','**\x20Gold\x20Medals\x0a','levelIcon','DiscordError','medalsSilver','json','test','makeRequest','find','INVALID_COMMAND_SYNTAX','**\x20Cards\x0a','keys','Overwatch\x20-\x20Player\x20Stats','exec','\x20•\x20Powered\x20by\x20Overwatch','Level','ratings','Games\x20Won','join','Stats\x20of\x20private\x20profiles\x20can\x27t\x20be\x20shown.\x0aYou\x20can\x20modify\x20this\x20setting\x20in\x20Overwatch\x20under\x20Options\x20–\x20Social.','channel','**\x20Medals\x0a','quickPlayStats','guild','private','tank','overwatch','\x20Casual\x20matches\x20in\x20','/playerstats/overwatch/','psn','Match\x20Awards','platforms','camelToTitleCase','**\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Overwatch\x20player\x20in\x20any\x20supported\x20platform.','medalsGold','**\x20Bronze\x20Medals\x0a','prestige','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x43572,_0x3eaee4){const _0x515f70=function(_0x57b3e8){while(--_0x57b3e8){_0x43572['push'](_0x43572['shift']());}},_0x56a2d1=function(){const _0x477833={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4cff4f,_0x2ec4e5,_0x2d68f9,_0x2a96db){_0x2a96db=_0x2a96db||{};let _0x112ccf=_0x2ec4e5+'='+_0x2d68f9,_0x872edb=0x0;for(let _0x24dfc9=0x0,_0x4910a3=_0x4cff4f['length'];_0x24dfc9<_0x4910a3;_0x24dfc9++){const _0x379ad8=_0x4cff4f[_0x24dfc9];_0x112ccf+=';\x20'+_0x379ad8;const _0xcb0540=_0x4cff4f[_0x379ad8];_0x4cff4f['push'](_0xcb0540),_0x4910a3=_0x4cff4f['length'],_0xcb0540!==!![]&&(_0x112ccf+='='+_0xcb0540);}_0x2a96db['cookie']=_0x112ccf;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4fee38,_0x1fed3b){_0x4fee38=_0x4fee38||function(_0x5aad42){return _0x5aad42;};const _0x517348=_0x4fee38(new RegExp('(?:^|;\x20)'+_0x1fed3b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d6c3a=function(_0x439496,_0x3920d4){_0x439496(++_0x3920d4);};return _0x4d6c3a(_0x515f70,_0x3eaee4),_0x517348?decodeURIComponent(_0x517348[0x1]):undefined;}},_0x391b11=function(){const _0x26719f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x26719f['test'](_0x477833['removeCookie']['toString']());};_0x477833['updateCookie']=_0x391b11;let _0x437881='';const _0x2eca94=_0x477833['updateCookie']();if(!_0x2eca94)_0x477833['setCookie'](['*'],'counter',0x1);else _0x2eca94?_0x437881=_0x477833['getCookie'](null,'counter'):_0x477833['removeCookie']();};_0x56a2d1();}(a103_0x3eae,0x65));const a103_0x515f=function(_0x43572,_0x3eaee4){_0x43572=_0x43572-0x0;let _0x515f70=a103_0x3eae[_0x43572];return _0x515f70;};const a103_0x2d68f9=function(){let _0x10e293=!![];return function(_0x2bbf90,_0x5c100b){const _0x2b2b2d=_0x10e293?function(){if(_0x5c100b){const _0x198df2=_0x5c100b[a103_0x515f('0x49')](_0x2bbf90,arguments);return _0x5c100b=null,_0x198df2;}}:function(){};return _0x10e293=![],_0x2b2b2d;};}(),a103_0x2ec4e5=a103_0x2d68f9(this,function(){const _0x3c62b8=function(){const _0xba575b=_0x3c62b8[a103_0x515f('0x8')](a103_0x515f('0x2f'))()['constructor'](a103_0x515f('0x34'));return!_0xba575b[a103_0x515f('0x13')](a103_0x2ec4e5);};return _0x3c62b8();});a103_0x2ec4e5();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a103_0x515f('0xc')),errors=require('../../utils/errors'),omnic=require('../../utils/omnic'),strings=require('../../utils/strings');module[a103_0x515f('0x42')]=class OverwatchCommand extends tesseract_1[a103_0x515f('0x7')]{constructor(){super(a103_0x515f('0x27'),{'description':a103_0x515f('0x30'),'triggers':['ow'],'arguments':{'alias':{'platform':['p']},'string':[a103_0x515f('0x4b')]},'scope':a103_0x515f('0x24'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['overwatch\x20USERNAME',a103_0x515f('0x37')]}),this[a103_0x515f('0x1a')]=async(_0x59a20a,_0x19ffe4)=>{if(!_0x19ffe4['_'][a103_0x515f('0x3c')])throw new errors[(a103_0x515f('0x10'))](errors[a103_0x515f('0x4')][a103_0x515f('0x16')],this['name']);const _0x5e5487=_0x19ffe4['_'][a103_0x515f('0x1f')]('\x20'),_0x2a7f24=_0x19ffe4[a103_0x515f('0x4b')]&&this[a103_0x515f('0x2c')]['includes'](_0x19ffe4['platform'][a103_0x515f('0x4c')]())?_0x19ffe4[a103_0x515f('0x4b')]['toLowerCase']():this['platforms'][0x0],_0x18ba51=await omnic[a103_0x515f('0x14')](a103_0x515f('0x29')+_0x2a7f24+'/'+encodeURIComponent(_0x5e5487)),_0x1ef2c9=await _0x18ba51[a103_0x515f('0x12')]();if(_0x1ef2c9[a103_0x515f('0x47')])throw new Error(_0x1ef2c9[a103_0x515f('0x47')]);if(_0x1ef2c9[a103_0x515f('0x25')])throw new Error(a103_0x515f('0x20'));const _0x4347dc=_0x1ef2c9[a103_0x515f('0x23')]&&_0x1ef2c9['quickPlayStats'][a103_0x515f('0x2')]&&_0x1ef2c9[a103_0x515f('0x23')][a103_0x515f('0x2')][a103_0x515f('0x5')]?[{'name':a103_0x515f('0x41'),'value':'Won\x20'+(_0x1ef2c9[a103_0x515f('0x23')]['careerStats'][a103_0x515f('0x5')]['game']['gamesWon']||0x0)+a103_0x515f('0x28')+_0x1ef2c9[a103_0x515f('0x23')][a103_0x515f('0x2')]['allHeroes']['game'][a103_0x515f('0x38')]},{'name':'Match\x20Awards','value':'**'+(_0x1ef2c9[a103_0x515f('0x23')][a103_0x515f('0x2')][a103_0x515f('0x5')][a103_0x515f('0x3d')][a103_0x515f('0x46')]||0x0)+a103_0x515f('0x17')+'**'+(_0x1ef2c9['quickPlayStats']['careerStats'][a103_0x515f('0x5')][a103_0x515f('0x3d')]['medals']||0x0)+a103_0x515f('0x22')+'**'+(_0x1ef2c9[a103_0x515f('0x23')][a103_0x515f('0x2')][a103_0x515f('0x5')][a103_0x515f('0x3d')][a103_0x515f('0x31')]||0x0)+a103_0x515f('0xe')+'**'+(_0x1ef2c9['quickPlayStats'][a103_0x515f('0x2')][a103_0x515f('0x5')][a103_0x515f('0x3d')][a103_0x515f('0x11')]||0x0)+a103_0x515f('0x0')+'**'+(_0x1ef2c9[a103_0x515f('0x23')]['careerStats'][a103_0x515f('0x5')]['matchAwards'][a103_0x515f('0xd')]||0x0)+a103_0x515f('0x32'),'inline':!![]},{'name':a103_0x515f('0x6'),'value':Object[a103_0x515f('0x18')](_0x1ef2c9['quickPlayStats']['careerStats'][a103_0x515f('0x5')][a103_0x515f('0x43')])[a103_0x515f('0x4a')](_0x139f35=>'**'+_0x1ef2c9[a103_0x515f('0x23')]['careerStats'][a103_0x515f('0x5')][a103_0x515f('0x43')][_0x139f35]+a103_0x515f('0x2e')+strings[a103_0x515f('0x2d')](_0x139f35)),'inline':!![]},{'name':a103_0x515f('0x1'),'value':Object[a103_0x515f('0x18')](_0x1ef2c9[a103_0x515f('0x23')][a103_0x515f('0x2')][a103_0x515f('0x5')]['combat'])['map'](_0x4f51de=>'**'+_0x1ef2c9['quickPlayStats']['careerStats'][a103_0x515f('0x5')]['combat'][_0x4f51de]+a103_0x515f('0x2e')+strings[a103_0x515f('0x2d')](_0x4f51de)),'inline':!![]}]:[],_0x20398e=_0x1ef2c9[a103_0x515f('0x3')]&&_0x1ef2c9['competitiveStats'][a103_0x515f('0x2')]&&_0x1ef2c9[a103_0x515f('0x3')][a103_0x515f('0x2')][a103_0x515f('0x5')]?[{'name':a103_0x515f('0x3b'),'value':'Won\x20'+(_0x1ef2c9[a103_0x515f('0x3')][a103_0x515f('0x2')][a103_0x515f('0x5')]['game'][a103_0x515f('0x9')]||0x0)+'\x20Competitive\x20matches\x20in\x20'+_0x1ef2c9['competitiveStats'][a103_0x515f('0x2')]['allHeroes']['game'][a103_0x515f('0x38')]},{'name':a103_0x515f('0x2b'),'value':'**'+(_0x1ef2c9[a103_0x515f('0x3')][a103_0x515f('0x2')][a103_0x515f('0x5')][a103_0x515f('0x3d')][a103_0x515f('0x46')]||0x0)+a103_0x515f('0x17')+'**'+(_0x1ef2c9[a103_0x515f('0x3')][a103_0x515f('0x2')][a103_0x515f('0x5')][a103_0x515f('0x3d')][a103_0x515f('0x35')]||0x0)+'**\x20Medals\x0a'+'**'+(_0x1ef2c9['competitiveStats'][a103_0x515f('0x2')][a103_0x515f('0x5')]['matchAwards'][a103_0x515f('0x31')]||0x0)+a103_0x515f('0xe')+'**'+(_0x1ef2c9[a103_0x515f('0x3')][a103_0x515f('0x2')][a103_0x515f('0x5')][a103_0x515f('0x3d')]['medalsSilver']||0x0)+'**\x20Silver\x20Medals\x0a'+'**'+(_0x1ef2c9[a103_0x515f('0x3')][a103_0x515f('0x2')][a103_0x515f('0x5')][a103_0x515f('0x3d')][a103_0x515f('0xd')]||0x0)+a103_0x515f('0x32'),'inline':!![]},{'name':a103_0x515f('0x6'),'value':Object[a103_0x515f('0x18')](_0x1ef2c9['competitiveStats'][a103_0x515f('0x2')][a103_0x515f('0x5')][a103_0x515f('0x43')])[a103_0x515f('0x4a')](_0x485cb4=>'**'+_0x1ef2c9[a103_0x515f('0x3')][a103_0x515f('0x2')][a103_0x515f('0x5')]['combat'][_0x485cb4]+a103_0x515f('0x2e')+strings[a103_0x515f('0x2d')](_0x485cb4)),'inline':!![]},{'name':a103_0x515f('0x1'),'value':Object['keys'](_0x1ef2c9['competitiveStats']['careerStats'][a103_0x515f('0x5')][a103_0x515f('0x43')])['map'](_0x38dbe3=>'**'+_0x1ef2c9[a103_0x515f('0x3')][a103_0x515f('0x2')]['allHeroes'][a103_0x515f('0x43')][_0x38dbe3]+a103_0x515f('0x2e')+strings[a103_0x515f('0x2d')](_0x38dbe3)),'inline':!![]}]:[];await _0x59a20a[a103_0x515f('0x21')][a103_0x515f('0x48')]({'embed':{'color':constants['COLORS']['OVERWATCH'],'author':{'name':_0x1ef2c9[a103_0x515f('0xa')],'iconURL':_0x1ef2c9[a103_0x515f('0xf')]},'title':a103_0x515f('0x19'),'fields':[{'name':a103_0x515f('0x1e'),'value':_0x1ef2c9['gamesWon'],'inline':!![]},{'name':a103_0x515f('0x1c'),'value':_0x1ef2c9[a103_0x515f('0x33')]*0x64+_0x1ef2c9[a103_0x515f('0x3a')],'inline':!![]},{'name':a103_0x515f('0x44'),'value':_0x1ef2c9[a103_0x515f('0x39')],'inline':!![]},{'name':a103_0x515f('0x3f'),'value':_0x1ef2c9[a103_0x515f('0x1d')]&&_0x1ef2c9[a103_0x515f('0x1d')][a103_0x515f('0x3c')]?_0x1ef2c9['ratings'][a103_0x515f('0x15')](_0x4eedfd=>_0x4eedfd[a103_0x515f('0x3e')]===a103_0x515f('0x26'))['level']:'-','inline':!![]},{'name':a103_0x515f('0xb'),'value':_0x1ef2c9[a103_0x515f('0x1d')]&&_0x1ef2c9[a103_0x515f('0x1d')][a103_0x515f('0x3c')]?_0x1ef2c9[a103_0x515f('0x1d')][a103_0x515f('0x15')](_0x552fcc=>_0x552fcc[a103_0x515f('0x3e')]==='damage')['level']:'-','inline':!![]},{'name':'Support\x20Skill\x20Rating','value':_0x1ef2c9[a103_0x515f('0x1d')]&&_0x1ef2c9['ratings'][a103_0x515f('0x3c')]?_0x1ef2c9[a103_0x515f('0x1d')][a103_0x515f('0x15')](_0x46c871=>_0x46c871[a103_0x515f('0x3e')]===a103_0x515f('0x40'))[a103_0x515f('0x3a')]:'-','inline':!![]}][a103_0x515f('0x36')](_0x4347dc)[a103_0x515f('0x36')](_0x20398e),'thumbnail':{'url':_0x1ef2c9['icon']},'footer':{'text':_0x2a7f24['toUpperCase']()+a103_0x515f('0x1b')}}});},this['platforms']=['pc',a103_0x515f('0x2a'),'xbl',a103_0x515f('0x45')];}}; \ No newline at end of file +const a103_0x5391=['icon','quickPlayStats','xbl','../../utils/strings','test','ratings','Combat','Tank\x20Skill\x20Rating','apply','../../utils/constants','makeRequest','medalsBronze','medalsSilver','Won\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/','/playerstats/overwatch/','platform','overwatch\x20USERNAME\x20--platform\x20PLATFORM','role','Support\x20Skill\x20Rating','camelToTitleCase','Games\x20Won','exec','name','\x20•\x20Powered\x20by\x20Overwatch','exports','medals','Match\x20Awards','Assists','**\x20Gold\x20Medals\x0a','send','damage','find','support','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Overwatch\x20player\x20in\x20any\x20supported\x20platform.','channel','length','\x20Competitive\x20matches\x20in\x20','prestige','competitiveStats','Command','gamesWon','../../utils/errors','platforms','keys','Level','json','\x20Casual\x20matches\x20in\x20','toLowerCase','Quick\x20Play','careerStats','**\x20Cards\x0a','message','concat','overwatch','cards','../../utils/omnic','includes','**\x20Medals\x0a','medalsGold','endorsement','combat','OVERWATCH','matchAwards','**\x20Silver\x20Medals\x0a','timePlayed','nintendo-switch','INVALID_COMMAND_SYNTAX','toUpperCase','game','level','**\x20','constructor','allHeroes','tank','map','join'];(function(_0x2419dc,_0x53913e){const _0x1ae2ee=function(_0x4c36dd){while(--_0x4c36dd){_0x2419dc['push'](_0x2419dc['shift']());}},_0xe9a767=function(){const _0x4ee745={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x520ad0,_0xa49ebe,_0xf2af24,_0x116968){_0x116968=_0x116968||{};let _0x3a2858=_0xa49ebe+'='+_0xf2af24,_0xd48be2=0x0;for(let _0x9675a8=0x0,_0x2d792a=_0x520ad0['length'];_0x9675a8<_0x2d792a;_0x9675a8++){const _0x52349e=_0x520ad0[_0x9675a8];_0x3a2858+=';\x20'+_0x52349e;const _0x25bb8c=_0x520ad0[_0x52349e];_0x520ad0['push'](_0x25bb8c),_0x2d792a=_0x520ad0['length'],_0x25bb8c!==!![]&&(_0x3a2858+='='+_0x25bb8c);}_0x116968['cookie']=_0x3a2858;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4952fa,_0x47198e){_0x4952fa=_0x4952fa||function(_0x39213a){return _0x39213a;};const _0x6f9a73=_0x4952fa(new RegExp('(?:^|;\x20)'+_0x47198e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2a02f5=function(_0x30086e,_0x15bbd8){_0x30086e(++_0x15bbd8);};return _0x2a02f5(_0x1ae2ee,_0x53913e),_0x6f9a73?decodeURIComponent(_0x6f9a73[0x1]):undefined;}},_0x2963b9=function(){const _0x20ac2d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x20ac2d['test'](_0x4ee745['removeCookie']['toString']());};_0x4ee745['updateCookie']=_0x2963b9;let _0x53c57c='';const _0x18e552=_0x4ee745['updateCookie']();if(!_0x18e552)_0x4ee745['setCookie'](['*'],'counter',0x1);else _0x18e552?_0x53c57c=_0x4ee745['getCookie'](null,'counter'):_0x4ee745['removeCookie']();};_0xe9a767();}(a103_0x5391,0xfb));const a103_0x1ae2=function(_0x2419dc,_0x53913e){_0x2419dc=_0x2419dc-0x0;let _0x1ae2ee=a103_0x5391[_0x2419dc];return _0x1ae2ee;};const a103_0xf2af24=function(){let _0x354058=!![];return function(_0xee567a,_0x26337f){const _0x25b6df=_0x354058?function(){if(_0x26337f){const _0x45dfb7=_0x26337f[a103_0x1ae2('0x41')](_0xee567a,arguments);return _0x26337f=null,_0x45dfb7;}}:function(){};return _0x354058=![],_0x25b6df;};}(),a103_0xa49ebe=a103_0xf2af24(this,function(){const _0x8e04ca=function(){const _0x19082d=_0x8e04ca[a103_0x1ae2('0x34')](a103_0x1ae2('0x47'))()[a103_0x1ae2('0x34')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x19082d[a103_0x1ae2('0x3d')](a103_0xa49ebe);};return _0x8e04ca();});a103_0xa49ebe();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a103_0x1ae2('0x42')),errors=require(a103_0x1ae2('0x16')),omnic=require(a103_0x1ae2('0x24')),strings=require(a103_0x1ae2('0x3c'));module[a103_0x1ae2('0x5')]=class OverwatchCommand extends tesseract_1[a103_0x1ae2('0x14')]{constructor(){super(a103_0x1ae2('0x22'),{'description':a103_0x1ae2('0xe'),'triggers':['ow'],'arguments':{'alias':{'platform':['p']},'string':[a103_0x1ae2('0x49')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['overwatch\x20USERNAME',a103_0x1ae2('0x4a')]}),this[a103_0x1ae2('0x2')]=async(_0x3054ca,_0xa94cbd)=>{if(!_0xa94cbd['_'][a103_0x1ae2('0x10')])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a103_0x1ae2('0x2f')],this[a103_0x1ae2('0x3')]);const _0x590fa7=_0xa94cbd['_'][a103_0x1ae2('0x38')]('\x20'),_0x14c928=_0xa94cbd[a103_0x1ae2('0x49')]&&this[a103_0x1ae2('0x17')][a103_0x1ae2('0x25')](_0xa94cbd[a103_0x1ae2('0x49')][a103_0x1ae2('0x1c')]())?_0xa94cbd['platform'][a103_0x1ae2('0x1c')]():this[a103_0x1ae2('0x17')][0x0],_0x367a6a=await omnic[a103_0x1ae2('0x43')](a103_0x1ae2('0x48')+_0x14c928+'/'+encodeURIComponent(_0x590fa7)),_0xed2af5=await _0x367a6a[a103_0x1ae2('0x1a')]();if(_0xed2af5['message'])throw new Error(_0xed2af5[a103_0x1ae2('0x20')]);if(_0xed2af5['private'])throw new Error('Stats\x20of\x20private\x20profiles\x20can\x27t\x20be\x20shown.\x0aYou\x20can\x20modify\x20this\x20setting\x20in\x20Overwatch\x20under\x20Options\x20–\x20Social.');const _0x18c482=_0xed2af5['quickPlayStats']&&_0xed2af5[a103_0x1ae2('0x3a')][a103_0x1ae2('0x1e')]&&_0xed2af5['quickPlayStats'][a103_0x1ae2('0x1e')]['allHeroes']?[{'name':a103_0x1ae2('0x1d'),'value':'Won\x20'+(_0xed2af5['quickPlayStats']['careerStats'][a103_0x1ae2('0x35')][a103_0x1ae2('0x31')]['gamesWon']||0x0)+a103_0x1ae2('0x1b')+_0xed2af5[a103_0x1ae2('0x3a')][a103_0x1ae2('0x1e')][a103_0x1ae2('0x35')][a103_0x1ae2('0x31')][a103_0x1ae2('0x2d')]},{'name':a103_0x1ae2('0x7'),'value':'**'+(_0xed2af5['quickPlayStats'][a103_0x1ae2('0x1e')][a103_0x1ae2('0x35')][a103_0x1ae2('0x2b')][a103_0x1ae2('0x23')]||0x0)+a103_0x1ae2('0x1f')+'**'+(_0xed2af5['quickPlayStats'][a103_0x1ae2('0x1e')][a103_0x1ae2('0x35')][a103_0x1ae2('0x2b')]['medals']||0x0)+a103_0x1ae2('0x26')+'**'+(_0xed2af5[a103_0x1ae2('0x3a')]['careerStats'][a103_0x1ae2('0x35')]['matchAwards'][a103_0x1ae2('0x27')]||0x0)+a103_0x1ae2('0x9')+'**'+(_0xed2af5[a103_0x1ae2('0x3a')]['careerStats'][a103_0x1ae2('0x35')][a103_0x1ae2('0x2b')][a103_0x1ae2('0x45')]||0x0)+a103_0x1ae2('0x2c')+'**'+(_0xed2af5[a103_0x1ae2('0x3a')][a103_0x1ae2('0x1e')][a103_0x1ae2('0x35')][a103_0x1ae2('0x2b')][a103_0x1ae2('0x44')]||0x0)+'**\x20Bronze\x20Medals\x0a','inline':!![]},{'name':'Combat','value':Object['keys'](_0xed2af5[a103_0x1ae2('0x3a')]['careerStats'][a103_0x1ae2('0x35')]['combat'])[a103_0x1ae2('0x37')](_0x40ce71=>'**'+_0xed2af5[a103_0x1ae2('0x3a')]['careerStats']['allHeroes'][a103_0x1ae2('0x29')][_0x40ce71]+a103_0x1ae2('0x33')+strings['camelToTitleCase'](_0x40ce71)),'inline':!![]},{'name':a103_0x1ae2('0x8'),'value':Object[a103_0x1ae2('0x18')](_0xed2af5[a103_0x1ae2('0x3a')][a103_0x1ae2('0x1e')]['allHeroes'][a103_0x1ae2('0x29')])[a103_0x1ae2('0x37')](_0x136ca6=>'**'+_0xed2af5['quickPlayStats'][a103_0x1ae2('0x1e')]['allHeroes'][a103_0x1ae2('0x29')][_0x136ca6]+a103_0x1ae2('0x33')+strings[a103_0x1ae2('0x0')](_0x136ca6)),'inline':!![]}]:[],_0x48b7a0=_0xed2af5[a103_0x1ae2('0x13')]&&_0xed2af5[a103_0x1ae2('0x13')]['careerStats']&&_0xed2af5[a103_0x1ae2('0x13')]['careerStats'][a103_0x1ae2('0x35')]?[{'name':'Competitive','value':a103_0x1ae2('0x46')+(_0xed2af5[a103_0x1ae2('0x13')]['careerStats'][a103_0x1ae2('0x35')][a103_0x1ae2('0x31')][a103_0x1ae2('0x15')]||0x0)+a103_0x1ae2('0x11')+_0xed2af5[a103_0x1ae2('0x13')]['careerStats'][a103_0x1ae2('0x35')][a103_0x1ae2('0x31')][a103_0x1ae2('0x2d')]},{'name':a103_0x1ae2('0x7'),'value':'**'+(_0xed2af5[a103_0x1ae2('0x13')][a103_0x1ae2('0x1e')][a103_0x1ae2('0x35')][a103_0x1ae2('0x2b')][a103_0x1ae2('0x23')]||0x0)+a103_0x1ae2('0x1f')+'**'+(_0xed2af5[a103_0x1ae2('0x13')][a103_0x1ae2('0x1e')][a103_0x1ae2('0x35')][a103_0x1ae2('0x2b')][a103_0x1ae2('0x6')]||0x0)+a103_0x1ae2('0x26')+'**'+(_0xed2af5['competitiveStats']['careerStats'][a103_0x1ae2('0x35')][a103_0x1ae2('0x2b')][a103_0x1ae2('0x27')]||0x0)+a103_0x1ae2('0x9')+'**'+(_0xed2af5[a103_0x1ae2('0x13')]['careerStats'][a103_0x1ae2('0x35')][a103_0x1ae2('0x2b')][a103_0x1ae2('0x45')]||0x0)+a103_0x1ae2('0x2c')+'**'+(_0xed2af5[a103_0x1ae2('0x13')][a103_0x1ae2('0x1e')]['allHeroes'][a103_0x1ae2('0x2b')][a103_0x1ae2('0x44')]||0x0)+'**\x20Bronze\x20Medals\x0a','inline':!![]},{'name':a103_0x1ae2('0x3f'),'value':Object['keys'](_0xed2af5[a103_0x1ae2('0x13')][a103_0x1ae2('0x1e')]['allHeroes']['combat'])[a103_0x1ae2('0x37')](_0x3d814b=>'**'+_0xed2af5['competitiveStats'][a103_0x1ae2('0x1e')][a103_0x1ae2('0x35')][a103_0x1ae2('0x29')][_0x3d814b]+a103_0x1ae2('0x33')+strings[a103_0x1ae2('0x0')](_0x3d814b)),'inline':!![]},{'name':a103_0x1ae2('0x8'),'value':Object[a103_0x1ae2('0x18')](_0xed2af5[a103_0x1ae2('0x13')][a103_0x1ae2('0x1e')][a103_0x1ae2('0x35')]['combat'])['map'](_0x56f656=>'**'+_0xed2af5['competitiveStats'][a103_0x1ae2('0x1e')][a103_0x1ae2('0x35')][a103_0x1ae2('0x29')][_0x56f656]+a103_0x1ae2('0x33')+strings[a103_0x1ae2('0x0')](_0x56f656)),'inline':!![]}]:[];await _0x3054ca[a103_0x1ae2('0xf')][a103_0x1ae2('0xa')]({'embed':{'color':constants['COLORS'][a103_0x1ae2('0x2a')],'author':{'name':_0xed2af5['name'],'iconURL':_0xed2af5['levelIcon']},'title':'Overwatch\x20-\x20Player\x20Stats','fields':[{'name':a103_0x1ae2('0x1'),'value':_0xed2af5['gamesWon'],'inline':!![]},{'name':a103_0x1ae2('0x19'),'value':_0xed2af5[a103_0x1ae2('0x12')]*0x64+_0xed2af5[a103_0x1ae2('0x32')],'inline':!![]},{'name':'Endorsement','value':_0xed2af5[a103_0x1ae2('0x28')],'inline':!![]},{'name':a103_0x1ae2('0x40'),'value':_0xed2af5[a103_0x1ae2('0x3e')]&&_0xed2af5['ratings']['length']?_0xed2af5[a103_0x1ae2('0x3e')]['find'](_0x379aab=>_0x379aab[a103_0x1ae2('0x4b')]===a103_0x1ae2('0x36'))[a103_0x1ae2('0x32')]:'-','inline':!![]},{'name':'Damage\x20Skill\x20Rating','value':_0xed2af5[a103_0x1ae2('0x3e')]&&_0xed2af5[a103_0x1ae2('0x3e')][a103_0x1ae2('0x10')]?_0xed2af5[a103_0x1ae2('0x3e')][a103_0x1ae2('0xc')](_0x5c4769=>_0x5c4769[a103_0x1ae2('0x4b')]===a103_0x1ae2('0xb'))[a103_0x1ae2('0x32')]:'-','inline':!![]},{'name':a103_0x1ae2('0x4c'),'value':_0xed2af5['ratings']&&_0xed2af5[a103_0x1ae2('0x3e')]['length']?_0xed2af5[a103_0x1ae2('0x3e')][a103_0x1ae2('0xc')](_0x488f42=>_0x488f42[a103_0x1ae2('0x4b')]===a103_0x1ae2('0xd'))[a103_0x1ae2('0x32')]:'-','inline':!![]}][a103_0x1ae2('0x21')](_0x18c482)['concat'](_0x48b7a0),'thumbnail':{'url':_0xed2af5[a103_0x1ae2('0x39')]},'footer':{'text':_0x14c928[a103_0x1ae2('0x30')]()+a103_0x1ae2('0x4')}}});},this[a103_0x1ae2('0x17')]=['pc','psn',a103_0x1ae2('0x3b'),a103_0x1ae2('0x2e')];}}; \ No newline at end of file diff --git a/commands/player_stats/pubg.js b/commands/player_stats/pubg.js index 063681cc3..42ab1586e 100644 --- a/commands/player_stats/pubg.js +++ b/commands/player_stats/pubg.js @@ -1 +1 @@ -const a104_0x5a22=['min\x20/\x20','toUpperCase','channel','exports','send','pubg','roundsPlayed','\x20vehicles,\x20during\x20that\x20period.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','PUBG','\x20/\x20','Kills','losses','weaponsAcquired','\x20weapons\x20and\x20destroyed\x20','squad-fpp','psn','Command','Longest\x20Kill','duo','@bastion/tesseract','min\x20longest','Damage\x20Dealt','guild','xbox','rideDistance','duo-fpp','stats','Assists','exec','mode','attributes','toLowerCase','constructor','platform','/playerstats/pubg/','solo-fpp','COLORS','Win\x20Points','\x20•\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/','toFixed','json','PLAYER_NOT_FOUND','vehicleDestroys','name','wins','damageDealt','\x20has\x20played\x20for\x20','../../utils/omnic','days','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Playerunknown\x27s\x20Battlegrounds\x20player\x20in\x20any\x20supported\x20platform.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20stats\x20in\x20separate\x20game\x20modes.','Playerunknown\x27s\x20Battlegrounds\x20-\x20Player\x20Stats','steam','Overall\x20Points','gameModeStats','squad','makeRequest','profile','winPoints','platforms','roundMostKills','heals','\x20•\x20Powered\x20by\x20Tracker\x20Network','longestKill','INVALID_COMMAND_SYNTAX','suicides','killPoints','Revives','\x20days,\x20in\x20which\x20they\x20have\x20traveled\x20','../../utils/errors','Heals','Best\x20Kill\x20Streak','DiscordError','apply','Time\x20Survived','kills','modes','pubg\x20USERNAME\x20--platform\x20PLATFORM','BASTION_ERROR_TYPE','\x20suicides'];(function(_0x502059,_0x5a222d){const _0x3608c8=function(_0x3567a3){while(--_0x3567a3){_0x502059['push'](_0x502059['shift']());}},_0x111e52=function(){const _0xb1251e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x100fce,_0x45f49a,_0x3cbdd7,_0x153d55){_0x153d55=_0x153d55||{};let _0x3e060b=_0x45f49a+'='+_0x3cbdd7,_0x5b5791=0x0;for(let _0xd38c36=0x0,_0x23832a=_0x100fce['length'];_0xd38c36<_0x23832a;_0xd38c36++){const _0x2e3a92=_0x100fce[_0xd38c36];_0x3e060b+=';\x20'+_0x2e3a92;const _0x506493=_0x100fce[_0x2e3a92];_0x100fce['push'](_0x506493),_0x23832a=_0x100fce['length'],_0x506493!==!![]&&(_0x3e060b+='='+_0x506493);}_0x153d55['cookie']=_0x3e060b;},'removeCookie':function(){return'dev';},'getCookie':function(_0xc1273a,_0x5e89a1){_0xc1273a=_0xc1273a||function(_0x24fc10){return _0x24fc10;};const _0x73c63c=_0xc1273a(new RegExp('(?:^|;\x20)'+_0x5e89a1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2aff38=function(_0x34f60e,_0x1e8fcb){_0x34f60e(++_0x1e8fcb);};return _0x2aff38(_0x3608c8,_0x5a222d),_0x73c63c?decodeURIComponent(_0x73c63c[0x1]):undefined;}},_0x31f675=function(){const _0x227800=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x227800['test'](_0xb1251e['removeCookie']['toString']());};_0xb1251e['updateCookie']=_0x31f675;let _0x83e970='';const _0x5a34fa=_0xb1251e['updateCookie']();if(!_0x5a34fa)_0xb1251e['setCookie'](['*'],'counter',0x1);else _0x5a34fa?_0x83e970=_0xb1251e['getCookie'](null,'counter'):_0xb1251e['removeCookie']();};_0x111e52();}(a104_0x5a22,0x1b4));const a104_0x3608=function(_0x502059,_0x5a222d){_0x502059=_0x502059-0x0;let _0x3608c8=a104_0x5a22[_0x502059];return _0x3608c8;};const a104_0x3cbdd7=function(){let _0x17c369=!![];return function(_0x2b3b00,_0x55390c){const _0x54196b=_0x17c369?function(){if(_0x55390c){const _0x11a20f=_0x55390c[a104_0x3608('0x2b')](_0x2b3b00,arguments);return _0x55390c=null,_0x11a20f;}}:function(){};return _0x17c369=![],_0x54196b;};}(),a104_0x45f49a=a104_0x3cbdd7(this,function(){const _0x4120aa=function(){const _0x42fc02=_0x4120aa['constructor'](a104_0x3608('0x9'))()[a104_0x3608('0x2')](a104_0x3608('0x3a'));return!_0x42fc02['test'](a104_0x45f49a);};return _0x4120aa();});a104_0x45f49a();'use strict';const tesseract_1=require(a104_0x3608('0x46')),constants=require('../../utils/constants'),errors=require(a104_0x3608('0x27')),omnic=require(a104_0x3608('0x12'));module[a104_0x3608('0x35')]=class PUBGCommand extends tesseract_1[a104_0x3608('0x43')]{constructor(){super(a104_0x3608('0x37'),{'description':a104_0x3608('0x14'),'triggers':[],'arguments':{'alias':{'platform':['p'],'mode':['m']},'string':[a104_0x3608('0x3'),a104_0x3608('0x50')]},'scope':a104_0x3608('0x49'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['pubg\x20USERNAME',a104_0x3608('0x2f'),'pubg\x20USERNAME\x20--platform\x20PLATFORM\x20--mode\x20MODE']}),this[a104_0x3608('0x4f')]=async(_0x451ffc,_0x44d340)=>{if(!_0x44d340['_']['length'])throw new errors[(a104_0x3608('0x2a'))](errors[a104_0x3608('0x30')][a104_0x3608('0x22')],this[a104_0x3608('0xe')]);const _0xf4fbba=_0x44d340['_']['join']('\x20'),_0x291de4=_0x44d340[a104_0x3608('0x3')]&&this[a104_0x3608('0x1d')]['includes'](_0x44d340[a104_0x3608('0x3')][a104_0x3608('0x1')]())?_0x44d340[a104_0x3608('0x3')][a104_0x3608('0x1')]():this['platforms'][0x0],_0x87de12=_0x44d340[a104_0x3608('0x50')]&&this[a104_0x3608('0x2e')]['includes'](_0x44d340[a104_0x3608('0x50')][a104_0x3608('0x1')]())?_0x44d340[a104_0x3608('0x50')][a104_0x3608('0x1')]():this[a104_0x3608('0x2e')][0x0],_0x12244f=await omnic[a104_0x3608('0x1a')](a104_0x3608('0x4')+_0x291de4+'/'+encodeURIComponent(_0xf4fbba)),_0x398d44=await _0x12244f[a104_0x3608('0xb')]();if(!Object['keys'](_0x398d44)['length'])throw new Error(a104_0x3608('0xc'));await _0x451ffc[a104_0x3608('0x34')][a104_0x3608('0x36')]({'embed':{'color':constants[a104_0x3608('0x6')][a104_0x3608('0x3b')],'author':{'name':_0x398d44[a104_0x3608('0x1b')]['attributes'][a104_0x3608('0xe')]},'title':a104_0x3608('0x15'),'description':_0x398d44[a104_0x3608('0x1b')][a104_0x3608('0x0')]['name']+a104_0x3608('0x11')+_0x398d44['stats'][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x13')]+a104_0x3608('0x26')+_0x398d44[a104_0x3608('0x4d')]['attributes'][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x4b')]['toFixed'](0x2)+'m\x20on\x20vehicle\x20and\x20'+_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12]['walkDistance'][a104_0x3608('0xa')](0x2)+'m\x20on\x20foot.'+'\x20They\x27ve\x20acquired\x20'+_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x3f')]+a104_0x3608('0x40')+_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0xd')]+a104_0x3608('0x39'),'fields':[{'name':a104_0x3608('0x17'),'value':(_0x398d44[a104_0x3608('0x4d')]['attributes'][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x1c')]+_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x24')]*0.2)[a104_0x3608('0xa')](0x2),'inline':!![]},{'name':a104_0x3608('0x7'),'value':_0x398d44['stats'][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x1c')][a104_0x3608('0xa')](0x2),'inline':!![]},{'name':'Kill\x20Points','value':_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x24')][a104_0x3608('0xa')](0x2),'inline':!![]},{'name':'Matches','value':_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x38')],'inline':!![]},{'name':'Wins','value':_0x398d44['stats'][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0xf')],'inline':!![]},{'name':'Losses','value':_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x3e')],'inline':!![]},{'name':a104_0x3608('0x3d'),'value':_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x2d')]+a104_0x3608('0x3c')+_0x398d44['stats'][a104_0x3608('0x0')]['gameModeStats'][_0x87de12]['headshotKills']+'\x20headshots','inline':!![]},{'name':a104_0x3608('0x4e'),'value':_0x398d44['stats'][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12]['assists'],'inline':!![]},{'name':a104_0x3608('0x2c'),'value':(_0x398d44[a104_0x3608('0x4d')]['attributes'][a104_0x3608('0x18')][_0x87de12]['timeSurvived']/0x3c)[a104_0x3608('0xa')](0x2)+a104_0x3608('0x32')+(_0x398d44[a104_0x3608('0x4d')]['attributes'][a104_0x3608('0x18')][_0x87de12]['longestTimeSurvived']/0x3c)[a104_0x3608('0xa')](0x2)+a104_0x3608('0x47'),'inline':!![]},{'name':a104_0x3608('0x28'),'value':_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x1f')],'inline':!![]},{'name':a104_0x3608('0x25'),'value':_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12]['revives'],'inline':!![]},{'name':a104_0x3608('0x48'),'value':_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')]['gameModeStats'][_0x87de12][a104_0x3608('0x10')]['toFixed'](0x2)+'\x20/\x20'+_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x23')]+a104_0x3608('0x31'),'inline':!![]},{'name':'Most\x20Kills\x20/\x20Round','value':_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x1e')],'inline':!![]},{'name':a104_0x3608('0x29'),'value':_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12]['maxKillStreaks'],'inline':!![]},{'name':a104_0x3608('0x44'),'value':_0x398d44[a104_0x3608('0x4d')][a104_0x3608('0x0')][a104_0x3608('0x18')][_0x87de12][a104_0x3608('0x21')][a104_0x3608('0xa')](0x2)+'s','inline':!![]}],'footer':{'text':_0x87de12[a104_0x3608('0x33')]()+a104_0x3608('0x8')+_0x291de4[a104_0x3608('0x33')]()+a104_0x3608('0x20')}}});},this[a104_0x3608('0x1d')]=[a104_0x3608('0x16'),a104_0x3608('0x42'),a104_0x3608('0x4a'),'stadia'],this[a104_0x3608('0x2e')]=['solo',a104_0x3608('0x5'),a104_0x3608('0x45'),a104_0x3608('0x4c'),a104_0x3608('0x19'),a104_0x3608('0x41')];}}; \ No newline at end of file +const a104_0x330e=['heals','attributes','Matches','join','pubg\x20USERNAME','stats','Best\x20Kill\x20Streak','PLAYER_NOT_FOUND','Most\x20Kills\x20/\x20Round','Revives','squad','constructor','Win\x20Points','includes','\x20days,\x20in\x20which\x20they\x20have\x20traveled\x20','longestKill','DiscordError','\x20has\x20played\x20for\x20','kills','\x20/\x20','Assists','steam','COLORS','rideDistance','pubg\x20USERNAME\x20--platform\x20PLATFORM\x20--mode\x20MODE','\x20suicides','walkDistance','platforms','BASTION_ERROR_TYPE','min\x20/\x20','min\x20longest','\x20•\x20Powered\x20by\x20Tracker\x20Network','assists','\x20•\x20','Wins','duo','Heals','damageDealt','Kill\x20Points','Losses','xbox','../../utils/errors','timeSurvived','toLowerCase','revives','Time\x20Survived','solo-fpp','days','length','/playerstats/pubg/','pubg\x20USERNAME\x20--platform\x20PLATFORM','Longest\x20Kill','losses','modes','@bastion/tesseract','channel','exports','guild','stadia','toUpperCase','exec','toFixed','mode','send','platform','name','squad-fpp','wins','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','\x20weapons\x20and\x20destroyed\x20','Kills','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','profile','Command','headshotKills','gameModeStats','vehicleDestroys','maxKillStreaks','winPoints','killPoints','Damage\x20Dealt','../../utils/omnic','json','pubg','suicides','longestTimeSurvived'];(function(_0x985bb6,_0x330e60){const _0x5ad307=function(_0x585f64){while(--_0x585f64){_0x985bb6['push'](_0x985bb6['shift']());}},_0x2f86c5=function(){const _0x17da89={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4b970f,_0x68023d,_0x31d8e5,_0x155561){_0x155561=_0x155561||{};let _0x1f8126=_0x68023d+'='+_0x31d8e5,_0x4c7cd1=0x0;for(let _0x1ea7ad=0x0,_0x1acda8=_0x4b970f['length'];_0x1ea7ad<_0x1acda8;_0x1ea7ad++){const _0x31b715=_0x4b970f[_0x1ea7ad];_0x1f8126+=';\x20'+_0x31b715;const _0x5ec461=_0x4b970f[_0x31b715];_0x4b970f['push'](_0x5ec461),_0x1acda8=_0x4b970f['length'],_0x5ec461!==!![]&&(_0x1f8126+='='+_0x5ec461);}_0x155561['cookie']=_0x1f8126;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3d6634,_0x569cd5){_0x3d6634=_0x3d6634||function(_0x3e7581){return _0x3e7581;};const _0x45cab8=_0x3d6634(new RegExp('(?:^|;\x20)'+_0x569cd5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x25d6a5=function(_0x113c05,_0x2f2c86){_0x113c05(++_0x2f2c86);};return _0x25d6a5(_0x5ad307,_0x330e60),_0x45cab8?decodeURIComponent(_0x45cab8[0x1]):undefined;}},_0x1ec701=function(){const _0x5766b1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5766b1['test'](_0x17da89['removeCookie']['toString']());};_0x17da89['updateCookie']=_0x1ec701;let _0x52f310='';const _0x7c953a=_0x17da89['updateCookie']();if(!_0x7c953a)_0x17da89['setCookie'](['*'],'counter',0x1);else _0x7c953a?_0x52f310=_0x17da89['getCookie'](null,'counter'):_0x17da89['removeCookie']();};_0x2f86c5();}(a104_0x330e,0x8c));const a104_0x5ad3=function(_0x985bb6,_0x330e60){_0x985bb6=_0x985bb6-0x0;let _0x5ad307=a104_0x330e[_0x985bb6];return _0x5ad307;};const a104_0x31d8e5=function(){let _0x4d5855=!![];return function(_0x32e82a,_0x3d5405){const _0xb3cdd1=_0x4d5855?function(){if(_0x3d5405){const _0x1965b8=_0x3d5405[a104_0x5ad3('0x10')](_0x32e82a,arguments);return _0x3d5405=null,_0x1965b8;}}:function(){};return _0x4d5855=![],_0xb3cdd1;};}(),a104_0x68023d=a104_0x31d8e5(this,function(){const _0x5a6def=function(){const _0x307d0a=_0x5a6def['constructor'](a104_0x5ad3('0xf'))()[a104_0x5ad3('0x2d')](a104_0x5ad3('0x13'));return!_0x307d0a['test'](a104_0x68023d);};return _0x5a6def();});a104_0x68023d();'use strict';const tesseract_1=require(a104_0x5ad3('0x1')),constants=require('../../utils/constants'),errors=require(a104_0x5ad3('0x4b')),omnic=require(a104_0x5ad3('0x1d'));module[a104_0x5ad3('0x3')]=class PUBGCommand extends tesseract_1[a104_0x5ad3('0x15')]{constructor(){super(a104_0x5ad3('0x1f'),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Playerunknown\x27s\x20Battlegrounds\x20player\x20in\x20any\x20supported\x20platform.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20stats\x20in\x20separate\x20game\x20modes.','triggers':[],'arguments':{'alias':{'platform':['p'],'mode':['m']},'string':['platform','mode']},'scope':a104_0x5ad3('0x4'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a104_0x5ad3('0x26'),a104_0x5ad3('0x54'),a104_0x5ad3('0x3a')]}),this[a104_0x5ad3('0x7')]=async(_0x4813ad,_0x5e1564)=>{if(!_0x5e1564['_'][a104_0x5ad3('0x52')])throw new errors[(a104_0x5ad3('0x32'))](errors[a104_0x5ad3('0x3e')]['INVALID_COMMAND_SYNTAX'],this[a104_0x5ad3('0xc')]);const _0x180ed2=_0x5e1564['_'][a104_0x5ad3('0x25')]('\x20'),_0xfdc74a=_0x5e1564[a104_0x5ad3('0xb')]&&this['platforms']['includes'](_0x5e1564['platform'][a104_0x5ad3('0x4d')]())?_0x5e1564[a104_0x5ad3('0xb')]['toLowerCase']():this[a104_0x5ad3('0x3d')][0x0],_0x3a7201=_0x5e1564[a104_0x5ad3('0x9')]&&this[a104_0x5ad3('0x0')][a104_0x5ad3('0x2f')](_0x5e1564[a104_0x5ad3('0x9')][a104_0x5ad3('0x4d')]())?_0x5e1564[a104_0x5ad3('0x9')][a104_0x5ad3('0x4d')]():this[a104_0x5ad3('0x0')][0x0],_0x3addc4=await omnic['makeRequest'](a104_0x5ad3('0x53')+_0xfdc74a+'/'+encodeURIComponent(_0x180ed2)),_0x5bb55e=await _0x3addc4[a104_0x5ad3('0x1e')]();if(!Object['keys'](_0x5bb55e)['length'])throw new Error(a104_0x5ad3('0x29'));await _0x4813ad[a104_0x5ad3('0x2')][a104_0x5ad3('0xa')]({'embed':{'color':constants[a104_0x5ad3('0x38')]['PUBG'],'author':{'name':_0x5bb55e[a104_0x5ad3('0x14')][a104_0x5ad3('0x23')]['name']},'title':'Playerunknown\x27s\x20Battlegrounds\x20-\x20Player\x20Stats','description':_0x5bb55e[a104_0x5ad3('0x14')]['attributes'][a104_0x5ad3('0xc')]+a104_0x5ad3('0x33')+_0x5bb55e['stats'][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x51')]+a104_0x5ad3('0x30')+_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x39')][a104_0x5ad3('0x8')](0x2)+'m\x20on\x20vehicle\x20and\x20'+_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x3c')][a104_0x5ad3('0x8')](0x2)+'m\x20on\x20foot.'+'\x20They\x27ve\x20acquired\x20'+_0x5bb55e[a104_0x5ad3('0x27')]['attributes'][a104_0x5ad3('0x17')][_0x3a7201]['weaponsAcquired']+a104_0x5ad3('0x11')+_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x18')]+'\x20vehicles,\x20during\x20that\x20period.','fields':[{'name':'Overall\x20Points','value':(_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201]['winPoints']+_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x1b')]*0.2)[a104_0x5ad3('0x8')](0x2),'inline':!![]},{'name':a104_0x5ad3('0x2e'),'value':_0x5bb55e['stats']['attributes'][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x1a')][a104_0x5ad3('0x8')](0x2),'inline':!![]},{'name':a104_0x5ad3('0x48'),'value':_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')]['gameModeStats'][_0x3a7201][a104_0x5ad3('0x1b')][a104_0x5ad3('0x8')](0x2),'inline':!![]},{'name':a104_0x5ad3('0x24'),'value':_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201]['roundsPlayed'],'inline':!![]},{'name':a104_0x5ad3('0x44'),'value':_0x5bb55e[a104_0x5ad3('0x27')]['attributes'][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0xe')],'inline':!![]},{'name':a104_0x5ad3('0x49'),'value':_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')]['gameModeStats'][_0x3a7201][a104_0x5ad3('0x56')],'inline':!![]},{'name':a104_0x5ad3('0x12'),'value':_0x5bb55e['stats'][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x34')]+a104_0x5ad3('0x35')+_0x5bb55e['stats'][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x16')]+'\x20headshots','inline':!![]},{'name':a104_0x5ad3('0x36'),'value':_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x42')],'inline':!![]},{'name':a104_0x5ad3('0x4f'),'value':(_0x5bb55e['stats'][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x4c')]/0x3c)[a104_0x5ad3('0x8')](0x2)+a104_0x5ad3('0x3f')+(_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')]['gameModeStats'][_0x3a7201][a104_0x5ad3('0x21')]/0x3c)[a104_0x5ad3('0x8')](0x2)+a104_0x5ad3('0x40'),'inline':!![]},{'name':a104_0x5ad3('0x46'),'value':_0x5bb55e['stats'][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x22')],'inline':!![]},{'name':a104_0x5ad3('0x2b'),'value':_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')]['gameModeStats'][_0x3a7201][a104_0x5ad3('0x4e')],'inline':!![]},{'name':a104_0x5ad3('0x1c'),'value':_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x47')][a104_0x5ad3('0x8')](0x2)+a104_0x5ad3('0x35')+_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')]['gameModeStats'][_0x3a7201][a104_0x5ad3('0x20')]+a104_0x5ad3('0x3b'),'inline':!![]},{'name':a104_0x5ad3('0x2a'),'value':_0x5bb55e[a104_0x5ad3('0x27')]['attributes'][a104_0x5ad3('0x17')][_0x3a7201]['roundMostKills'],'inline':!![]},{'name':a104_0x5ad3('0x28'),'value':_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x19')],'inline':!![]},{'name':a104_0x5ad3('0x55'),'value':_0x5bb55e[a104_0x5ad3('0x27')][a104_0x5ad3('0x23')][a104_0x5ad3('0x17')][_0x3a7201][a104_0x5ad3('0x31')][a104_0x5ad3('0x8')](0x2)+'s','inline':!![]}],'footer':{'text':_0x3a7201[a104_0x5ad3('0x6')]()+a104_0x5ad3('0x43')+_0xfdc74a['toUpperCase']()+a104_0x5ad3('0x41')}}});},this['platforms']=[a104_0x5ad3('0x37'),'psn',a104_0x5ad3('0x4a'),a104_0x5ad3('0x5')],this[a104_0x5ad3('0x0')]=['solo',a104_0x5ad3('0x50'),a104_0x5ad3('0x45'),'duo-fpp',a104_0x5ad3('0x2c'),a104_0x5ad3('0xd')];}}; \ No newline at end of file diff --git a/commands/player_stats/rainbow6.js b/commands/player_stats/rainbow6.js index 53859cc2c..8dd11d8f7 100644 --- a/commands/player_stats/rainbow6.js +++ b/commands/player_stats/rainbow6.js @@ -1 +1 @@ -const a105_0x216e=['Command','../../utils/constants','../../utils/errors','ncsa','toFixed','Matches','psn','channel','general','Losses','xbl','user','Season\x20-\x20','skillMean','../../utils/omnic','deaths','pvp','apply','image','push','\x20±\x20','name','json','RAINBOW6','playtime','values','wins','matches','WLR','rainbow6','apac','BASTION_ERROR_TYPE','level','exec','\x20kills\x20/\x20','toLowerCase','DiscordError','PvP','skillStdev','INVALID_COMMAND_SYNTAX','rainbow6\x20USERNAME','stats','assists','@bastion/tesseract','regions','Wins','seasons','keys','rank','username','\x20wins\x20/\x20','Level','platform','America','Europe','map','constructor','uplay','rainbow6\x20USERNAME\x20--platform\x20PLATFORM','resolveRegion','pve','losses','\x0a**SKILL**\x20','\x20has\x20played\x20PvP\x20matches\x20for\x20','includes','test','length','Assists','steam','guild','current','Kills','emea','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Rainbow\x206\x20player\x20in\x20any\x20supported\x20platform.','kills','\x20•\x20Powered\x20by\x20Ubisoft','Deaths','platforms','\x20losses'];(function(_0xa0ac6d,_0x216e89){const _0xeb5781=function(_0x37c765){while(--_0x37c765){_0xa0ac6d['push'](_0xa0ac6d['shift']());}},_0x16de90=function(){const _0x3bee1a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x730402,_0x5d2c6a,_0x11fc04,_0x23a9d9){_0x23a9d9=_0x23a9d9||{};let _0x116eb0=_0x5d2c6a+'='+_0x11fc04,_0x30afe3=0x0;for(let _0x54deba=0x0,_0x345feb=_0x730402['length'];_0x54deba<_0x345feb;_0x54deba++){const _0x5f15e1=_0x730402[_0x54deba];_0x116eb0+=';\x20'+_0x5f15e1;const _0x332750=_0x730402[_0x5f15e1];_0x730402['push'](_0x332750),_0x345feb=_0x730402['length'],_0x332750!==!![]&&(_0x116eb0+='='+_0x332750);}_0x23a9d9['cookie']=_0x116eb0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x114758,_0x2ad096){_0x114758=_0x114758||function(_0x4cafc7){return _0x4cafc7;};const _0x2e8598=_0x114758(new RegExp('(?:^|;\x20)'+_0x2ad096['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3300f5=function(_0x1a6336,_0x3fcfaf){_0x1a6336(++_0x3fcfaf);};return _0x3300f5(_0xeb5781,_0x216e89),_0x2e8598?decodeURIComponent(_0x2e8598[0x1]):undefined;}},_0x3d960c=function(){const _0x251950=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x251950['test'](_0x3bee1a['removeCookie']['toString']());};_0x3bee1a['updateCookie']=_0x3d960c;let _0x26bb24='';const _0x3327f0=_0x3bee1a['updateCookie']();if(!_0x3327f0)_0x3bee1a['setCookie'](['*'],'counter',0x1);else _0x3327f0?_0x26bb24=_0x3bee1a['getCookie'](null,'counter'):_0x3bee1a['removeCookie']();};_0x16de90();}(a105_0x216e,0x8e));const a105_0xeb57=function(_0xa0ac6d,_0x216e89){_0xa0ac6d=_0xa0ac6d-0x0;let _0xeb5781=a105_0x216e[_0xa0ac6d];return _0xeb5781;};const a105_0x11fc04=function(){let _0x53d6f0=!![];return function(_0x1089ce,_0x204ee1){const _0x4a3ef7=_0x53d6f0?function(){if(_0x204ee1){const _0x219a60=_0x204ee1[a105_0xeb57('0x21')](_0x1089ce,arguments);return _0x204ee1=null,_0x219a60;}}:function(){};return _0x53d6f0=![],_0x4a3ef7;};}(),a105_0x5d2c6a=a105_0x11fc04(this,function(){const _0x5c8a7c=function(){const _0x2bb63e=_0x5c8a7c[a105_0xeb57('0x48')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a105_0xeb57('0x48')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2bb63e[a105_0xeb57('0x2')](a105_0x5d2c6a);};return _0x5c8a7c();});a105_0x5d2c6a();'use strict';const tesseract_1=require(a105_0xeb57('0x3b')),constants=require(a105_0xeb57('0x11')),errors=require(a105_0xeb57('0x12')),omnic=require(a105_0xeb57('0x1e'));module['exports']=class Rainbow6Command extends tesseract_1[a105_0xeb57('0x10')]{constructor(){super(a105_0xeb57('0x2d'),{'description':a105_0xeb57('0xa'),'triggers':['r6'],'arguments':{'alias':{'platform':['p']},'string':[a105_0xeb57('0x44')]},'scope':a105_0xeb57('0x6'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a105_0xeb57('0x38'),a105_0xeb57('0x4a')]}),this[a105_0xeb57('0x4b')]=_0x587b99=>{_0x587b99=_0x587b99[a105_0xeb57('0x33')]();switch(_0x587b99){case a105_0xeb57('0x9'):return a105_0xeb57('0x46');case a105_0xeb57('0x13'):return a105_0xeb57('0x45');case a105_0xeb57('0x2e'):return'Asia';default:return _0x587b99;}},this[a105_0xeb57('0x31')]=async(_0x9ce19c,_0x2ce307)=>{if(!_0x2ce307['_'][a105_0xeb57('0x3')])throw new errors[(a105_0xeb57('0x34'))](errors[a105_0xeb57('0x2f')][a105_0xeb57('0x37')],this[a105_0xeb57('0x25')]);const _0x170e5e=_0x2ce307['_']['join']('\x20'),_0x4b563b=_0x2ce307[a105_0xeb57('0x44')]&&this[a105_0xeb57('0xe')][a105_0xeb57('0x1')](_0x2ce307['platform'][a105_0xeb57('0x33')]())?_0x2ce307[a105_0xeb57('0x44')][a105_0xeb57('0x33')]():this[a105_0xeb57('0xe')][0x0],_0x38c70f=await omnic['makeRequest']('/playerstats/rainbow6/'+_0x4b563b+'/'+encodeURIComponent(_0x170e5e)),_0x26612a=await _0x38c70f[a105_0xeb57('0x26')]();if(!Object[a105_0xeb57('0x3f')](_0x26612a)['length'])throw new Error('PLAYER_DOESNT_EXIST');const _0x2881bb=[{'name':a105_0xeb57('0x43'),'value':_0x26612a[a105_0xeb57('0x30')]['level'],'inline':!![]},{'name':'XP','value':_0x26612a['level']['xp'],'inline':!![]}];let _0x44c084;if(_0x26612a[a105_0xeb57('0x40')]){const _0x589330=Object[a105_0xeb57('0x3f')](_0x26612a[a105_0xeb57('0x40')][a105_0xeb57('0x3e')]);if(_0x589330[a105_0xeb57('0x3')]){const _0x463787=_0x26612a[a105_0xeb57('0x40')][a105_0xeb57('0x3e')][_0x589330['pop']()];let _0x5eaff5=-0x1;_0x2881bb[a105_0xeb57('0x23')]({'name':a105_0xeb57('0x1c')+_0x463787['id'],'value':_0x463787[a105_0xeb57('0x25')]},...Object[a105_0xeb57('0x29')](_0x463787[a105_0xeb57('0x3c')])[a105_0xeb57('0x47')](_0x1b0417=>{return _0x1b0417[a105_0xeb57('0x7')]['id']>_0x5eaff5&&(_0x5eaff5=_0x1b0417[a105_0xeb57('0x7')]['id'],_0x44c084=_0x1b0417[a105_0xeb57('0x7')][a105_0xeb57('0x22')]),{'name':this[a105_0xeb57('0x4b')](_0x1b0417['region']),'value':_0x1b0417[a105_0xeb57('0x7')]['name']+'\x20-\x20Rank\x20'+_0x1b0417['current']['id']+a105_0xeb57('0x4e')+_0x1b0417[a105_0xeb57('0x1d')][a105_0xeb57('0x14')](0x2)+a105_0xeb57('0x24')+_0x1b0417[a105_0xeb57('0x36')][a105_0xeb57('0x14')](0x2)+'\x0a'+_0x1b0417[a105_0xeb57('0xb')]+a105_0xeb57('0x32')+_0x1b0417[a105_0xeb57('0x1f')]+'\x20deaths\x0a'+_0x1b0417[a105_0xeb57('0x2a')]+a105_0xeb57('0x42')+_0x1b0417[a105_0xeb57('0x4d')]+a105_0xeb57('0xf'),'inline':!![]};}));}}_0x26612a['stats'][a105_0xeb57('0x20')]&&_0x26612a['stats'][a105_0xeb57('0x20')]['general']&&_0x2881bb[a105_0xeb57('0x23')]({'name':a105_0xeb57('0x35'),'value':_0x26612a[a105_0xeb57('0x1b')][a105_0xeb57('0x41')]+a105_0xeb57('0x0')+(_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x20')][a105_0xeb57('0x18')][a105_0xeb57('0x28')]/0x3c/0x3c)[a105_0xeb57('0x14')](0x2)+'\x20hours.'},{'name':a105_0xeb57('0x15'),'value':_0x26612a['stats'][a105_0xeb57('0x20')][a105_0xeb57('0x18')][a105_0xeb57('0x2b')],'inline':!![]},{'name':a105_0xeb57('0x3d'),'value':_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x20')][a105_0xeb57('0x18')][a105_0xeb57('0x2a')],'inline':!![]},{'name':a105_0xeb57('0x19'),'value':_0x26612a[a105_0xeb57('0x39')]['pvp']['general'][a105_0xeb57('0x4d')],'inline':!![]},{'name':a105_0xeb57('0x8'),'value':_0x26612a[a105_0xeb57('0x39')]['pvp'][a105_0xeb57('0x18')][a105_0xeb57('0xb')],'inline':!![]},{'name':a105_0xeb57('0x4'),'value':_0x26612a[a105_0xeb57('0x39')]['pvp'][a105_0xeb57('0x18')][a105_0xeb57('0x3a')],'inline':!![]},{'name':a105_0xeb57('0xd'),'value':_0x26612a[a105_0xeb57('0x39')]['pvp'][a105_0xeb57('0x18')]['deaths'],'inline':!![]},{'name':'WLR','value':_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x20')][a105_0xeb57('0x18')][a105_0xeb57('0x4d')]?(_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x20')][a105_0xeb57('0x18')]['wins']/_0x26612a[a105_0xeb57('0x39')]['pvp']['general'][a105_0xeb57('0x4d')])[a105_0xeb57('0x14')](0x2):_0x26612a['stats'][a105_0xeb57('0x20')]['general'][a105_0xeb57('0x2a')],'inline':!![]},{'name':'LDR','value':_0x26612a['stats'][a105_0xeb57('0x20')]['general']['deaths']?(_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x20')][a105_0xeb57('0x18')][a105_0xeb57('0xb')]/_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x20')][a105_0xeb57('0x18')]['deaths'])[a105_0xeb57('0x14')](0x2):_0x26612a['stats'][a105_0xeb57('0x20')]['general']['kills'],'inline':!![]}),_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x4c')]&&_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x4c')][a105_0xeb57('0x18')]&&_0x2881bb[a105_0xeb57('0x23')]({'name':'PvE','value':_0x26612a[a105_0xeb57('0x1b')][a105_0xeb57('0x41')]+'\x20has\x20played\x20PvE\x20matches\x20for\x20'+(_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x4c')][a105_0xeb57('0x18')][a105_0xeb57('0x28')]/0x3c/0x3c)[a105_0xeb57('0x14')](0x2)+'\x20hours.'},{'name':a105_0xeb57('0x15'),'value':_0x26612a['stats'][a105_0xeb57('0x4c')][a105_0xeb57('0x18')][a105_0xeb57('0x2b')],'inline':!![]},{'name':a105_0xeb57('0x3d'),'value':_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x4c')]['general'][a105_0xeb57('0x2a')],'inline':!![]},{'name':'Losses','value':_0x26612a['stats'][a105_0xeb57('0x4c')][a105_0xeb57('0x18')][a105_0xeb57('0x4d')],'inline':!![]},{'name':a105_0xeb57('0x8'),'value':_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x4c')]['general'][a105_0xeb57('0xb')],'inline':!![]},{'name':'Assists','value':_0x26612a['stats'][a105_0xeb57('0x4c')][a105_0xeb57('0x18')]['assists'],'inline':!![]},{'name':'Deaths','value':_0x26612a[a105_0xeb57('0x39')]['pve'][a105_0xeb57('0x18')][a105_0xeb57('0x1f')],'inline':!![]},{'name':a105_0xeb57('0x2c'),'value':_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x4c')]['general'][a105_0xeb57('0x4d')]?(_0x26612a['stats']['pve']['general']['wins']/_0x26612a['stats'][a105_0xeb57('0x4c')][a105_0xeb57('0x18')][a105_0xeb57('0x4d')])[a105_0xeb57('0x14')](0x2):_0x26612a['stats']['pve']['general'][a105_0xeb57('0x2a')],'inline':!![]},{'name':'KDR','value':_0x26612a['stats']['pve'][a105_0xeb57('0x18')][a105_0xeb57('0x1f')]?(_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x4c')]['general'][a105_0xeb57('0xb')]/_0x26612a[a105_0xeb57('0x39')][a105_0xeb57('0x4c')][a105_0xeb57('0x18')][a105_0xeb57('0x1f')])[a105_0xeb57('0x14')](0x2):_0x26612a[a105_0xeb57('0x39')]['pve'][a105_0xeb57('0x18')]['kills'],'inline':!![]}),await _0x9ce19c[a105_0xeb57('0x17')]['send']({'embed':{'color':constants['COLORS'][a105_0xeb57('0x27')],'author':{'name':_0x26612a[a105_0xeb57('0x1b')]['username']},'title':'Rainbow\x206\x20-\x20Player\x20Stats','fields':_0x2881bb,'thumbnail':{'url':_0x44c084},'footer':{'text':_0x26612a[a105_0xeb57('0x1b')][a105_0xeb57('0x44')]['toUpperCase']()+a105_0xeb57('0xc')}}});},this[a105_0xeb57('0xe')]=[a105_0xeb57('0x49'),a105_0xeb57('0x5'),a105_0xeb57('0x16'),a105_0xeb57('0x1a')];}}; \ No newline at end of file +const a105_0x3bfe=['toUpperCase','toLowerCase','uplay','rank','\x20losses','region','assists','Rainbow\x206\x20-\x20Player\x20Stats','steam','Kills','test','matches','\x20•\x20Powered\x20by\x20Ubisoft','\x20hours.','WLR','Command','Losses','../../utils/constants','resolveRegion','length','RAINBOW6','pve','apply','xbl','rainbow6\x20USERNAME','\x20kills\x20/\x20','name','general','losses','kills','skillMean','pop','rainbow6','keys','regions','\x0a**SKILL**\x20','LDR','user','Season\x20-\x20','pvp','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','PvE','toFixed','deaths','stats','image','current','wins','constructor','../../utils/omnic','makeRequest','includes','\x20-\x20Rank\x20','channel','Assists','apac','Level','\x20has\x20played\x20PvE\x20matches\x20for\x20','exec','\x20deaths\x0a','platform','map','\x20wins\x20/\x20','send','Deaths','psn','Europe','emea','platforms','Wins','json','\x20±\x20','playtime','join','username','Matches','America','seasons','level','ncsa','COLORS','../../utils/errors'];(function(_0x122d98,_0x3bfed6){const _0x1c1a44=function(_0x1eae17){while(--_0x1eae17){_0x122d98['push'](_0x122d98['shift']());}},_0x2ec40b=function(){const _0x2a0fac={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x12c3e5,_0x2c9109,_0x46bc2e,_0x3626ec){_0x3626ec=_0x3626ec||{};let _0x160dea=_0x2c9109+'='+_0x46bc2e,_0x5b6be8=0x0;for(let _0x4ae1e3=0x0,_0x33e696=_0x12c3e5['length'];_0x4ae1e3<_0x33e696;_0x4ae1e3++){const _0x22cbbe=_0x12c3e5[_0x4ae1e3];_0x160dea+=';\x20'+_0x22cbbe;const _0x1a1390=_0x12c3e5[_0x22cbbe];_0x12c3e5['push'](_0x1a1390),_0x33e696=_0x12c3e5['length'],_0x1a1390!==!![]&&(_0x160dea+='='+_0x1a1390);}_0x3626ec['cookie']=_0x160dea;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5efb34,_0x3be79c){_0x5efb34=_0x5efb34||function(_0x5f3886){return _0x5f3886;};const _0x31936a=_0x5efb34(new RegExp('(?:^|;\x20)'+_0x3be79c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xd5efa6=function(_0x8709b6,_0x354cdc){_0x8709b6(++_0x354cdc);};return _0xd5efa6(_0x1c1a44,_0x3bfed6),_0x31936a?decodeURIComponent(_0x31936a[0x1]):undefined;}},_0x44408b=function(){const _0x48c88e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x48c88e['test'](_0x2a0fac['removeCookie']['toString']());};_0x2a0fac['updateCookie']=_0x44408b;let _0x43374f='';const _0x2ce336=_0x2a0fac['updateCookie']();if(!_0x2ce336)_0x2a0fac['setCookie'](['*'],'counter',0x1);else _0x2ce336?_0x43374f=_0x2a0fac['getCookie'](null,'counter'):_0x2a0fac['removeCookie']();};_0x2ec40b();}(a105_0x3bfe,0xb0));const a105_0x1c1a=function(_0x122d98,_0x3bfed6){_0x122d98=_0x122d98-0x0;let _0x1c1a44=a105_0x3bfe[_0x122d98];return _0x1c1a44;};const a105_0x46bc2e=function(){let _0x1fc0e2=!![];return function(_0x444df0,_0x3ec611){const _0xbf949e=_0x1fc0e2?function(){if(_0x3ec611){const _0x17d374=_0x3ec611[a105_0x1c1a('0xa')](_0x444df0,arguments);return _0x3ec611=null,_0x17d374;}}:function(){};return _0x1fc0e2=![],_0xbf949e;};}(),a105_0x2c9109=a105_0x46bc2e(this,function(){const _0x5cb93c=function(){const _0x310adc=_0x5cb93c[a105_0x1c1a('0x24')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a105_0x1c1a('0x24')](a105_0x1c1a('0x1c'));return!_0x310adc[a105_0x1c1a('0x50')](a105_0x2c9109);};return _0x5cb93c();});a105_0x2c9109();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a105_0x1c1a('0x5')),errors=require(a105_0x1c1a('0x45')),omnic=require(a105_0x1c1a('0x25'));module['exports']=class Rainbow6Command extends tesseract_1[a105_0x1c1a('0x3')]{constructor(){super(a105_0x1c1a('0x14'),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Rainbow\x206\x20player\x20in\x20any\x20supported\x20platform.','triggers':['r6'],'arguments':{'alias':{'platform':['p']},'string':[a105_0x1c1a('0x30')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a105_0x1c1a('0xc'),'rainbow6\x20USERNAME\x20--platform\x20PLATFORM']}),this[a105_0x1c1a('0x6')]=_0x4f8ac1=>{_0x4f8ac1=_0x4f8ac1['toLowerCase']();switch(_0x4f8ac1){case a105_0x1c1a('0x37'):return a105_0x1c1a('0x36');case a105_0x1c1a('0x43'):return a105_0x1c1a('0x40');case a105_0x1c1a('0x2b'):return'Asia';default:return _0x4f8ac1;}},this[a105_0x1c1a('0x2e')]=async(_0x3ff053,_0x43f759)=>{if(!_0x43f759['_'][a105_0x1c1a('0x7')])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX'],this[a105_0x1c1a('0xe')]);const _0x16ded1=_0x43f759['_'][a105_0x1c1a('0x3d')]('\x20'),_0x31f2bf=_0x43f759[a105_0x1c1a('0x30')]&&this[a105_0x1c1a('0x38')][a105_0x1c1a('0x27')](_0x43f759['platform'][a105_0x1c1a('0x47')]())?_0x43f759[a105_0x1c1a('0x30')][a105_0x1c1a('0x47')]():this[a105_0x1c1a('0x38')][0x0],_0x335100=await omnic[a105_0x1c1a('0x26')]('/playerstats/rainbow6/'+_0x31f2bf+'/'+encodeURIComponent(_0x16ded1)),_0x3d574d=await _0x335100[a105_0x1c1a('0x3a')]();if(!Object[a105_0x1c1a('0x15')](_0x3d574d)[a105_0x1c1a('0x7')])throw new Error('PLAYER_DOESNT_EXIST');const _0x1c81a0=[{'name':a105_0x1c1a('0x2c'),'value':_0x3d574d[a105_0x1c1a('0x42')][a105_0x1c1a('0x42')],'inline':!![]},{'name':'XP','value':_0x3d574d[a105_0x1c1a('0x42')]['xp'],'inline':!![]}];let _0x4ee8e5;if(_0x3d574d[a105_0x1c1a('0x49')]){const _0x458aba=Object['keys'](_0x3d574d['rank'][a105_0x1c1a('0x41')]);if(_0x458aba[a105_0x1c1a('0x7')]){const _0x456cdd=_0x3d574d[a105_0x1c1a('0x49')][a105_0x1c1a('0x41')][_0x458aba[a105_0x1c1a('0x13')]()];let _0x2780ef=-0x1;_0x1c81a0['push']({'name':a105_0x1c1a('0x1a')+_0x456cdd['id'],'value':_0x456cdd['name']},...Object['values'](_0x456cdd[a105_0x1c1a('0x16')])[a105_0x1c1a('0x31')](_0x55853b=>{return _0x55853b[a105_0x1c1a('0x22')]['id']>_0x2780ef&&(_0x2780ef=_0x55853b[a105_0x1c1a('0x22')]['id'],_0x4ee8e5=_0x55853b[a105_0x1c1a('0x22')][a105_0x1c1a('0x21')]),{'name':this['resolveRegion'](_0x55853b[a105_0x1c1a('0x4b')]),'value':_0x55853b[a105_0x1c1a('0x22')]['name']+a105_0x1c1a('0x28')+_0x55853b[a105_0x1c1a('0x22')]['id']+a105_0x1c1a('0x17')+_0x55853b[a105_0x1c1a('0x12')][a105_0x1c1a('0x1e')](0x2)+a105_0x1c1a('0x3b')+_0x55853b['skillStdev'][a105_0x1c1a('0x1e')](0x2)+'\x0a'+_0x55853b['kills']+a105_0x1c1a('0xd')+_0x55853b[a105_0x1c1a('0x1f')]+a105_0x1c1a('0x2f')+_0x55853b[a105_0x1c1a('0x23')]+a105_0x1c1a('0x32')+_0x55853b['losses']+a105_0x1c1a('0x4a'),'inline':!![]};}));}}_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x1b')]&&_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x1b')][a105_0x1c1a('0xf')]&&_0x1c81a0['push']({'name':'PvP','value':_0x3d574d[a105_0x1c1a('0x19')][a105_0x1c1a('0x3e')]+'\x20has\x20played\x20PvP\x20matches\x20for\x20'+(_0x3d574d[a105_0x1c1a('0x20')]['pvp'][a105_0x1c1a('0xf')][a105_0x1c1a('0x3c')]/0x3c/0x3c)['toFixed'](0x2)+a105_0x1c1a('0x1')},{'name':a105_0x1c1a('0x3f'),'value':_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x1b')][a105_0x1c1a('0xf')][a105_0x1c1a('0x51')],'inline':!![]},{'name':a105_0x1c1a('0x39'),'value':_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x1b')][a105_0x1c1a('0xf')][a105_0x1c1a('0x23')],'inline':!![]},{'name':a105_0x1c1a('0x4'),'value':_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x1b')][a105_0x1c1a('0xf')][a105_0x1c1a('0x10')],'inline':!![]},{'name':a105_0x1c1a('0x4f'),'value':_0x3d574d[a105_0x1c1a('0x20')]['pvp'][a105_0x1c1a('0xf')][a105_0x1c1a('0x11')],'inline':!![]},{'name':a105_0x1c1a('0x2a'),'value':_0x3d574d['stats'][a105_0x1c1a('0x1b')][a105_0x1c1a('0xf')]['assists'],'inline':!![]},{'name':a105_0x1c1a('0x34'),'value':_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x1b')][a105_0x1c1a('0xf')][a105_0x1c1a('0x1f')],'inline':!![]},{'name':a105_0x1c1a('0x2'),'value':_0x3d574d[a105_0x1c1a('0x20')]['pvp'][a105_0x1c1a('0xf')][a105_0x1c1a('0x10')]?(_0x3d574d['stats'][a105_0x1c1a('0x1b')][a105_0x1c1a('0xf')][a105_0x1c1a('0x23')]/_0x3d574d['stats'][a105_0x1c1a('0x1b')]['general']['losses'])[a105_0x1c1a('0x1e')](0x2):_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x1b')][a105_0x1c1a('0xf')]['wins'],'inline':!![]},{'name':a105_0x1c1a('0x18'),'value':_0x3d574d['stats'][a105_0x1c1a('0x1b')][a105_0x1c1a('0xf')]['deaths']?(_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x1b')][a105_0x1c1a('0xf')]['kills']/_0x3d574d['stats'][a105_0x1c1a('0x1b')]['general'][a105_0x1c1a('0x1f')])[a105_0x1c1a('0x1e')](0x2):_0x3d574d['stats']['pvp'][a105_0x1c1a('0xf')]['kills'],'inline':!![]}),_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x9')]&&_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x9')][a105_0x1c1a('0xf')]&&_0x1c81a0['push']({'name':a105_0x1c1a('0x1d'),'value':_0x3d574d[a105_0x1c1a('0x19')][a105_0x1c1a('0x3e')]+a105_0x1c1a('0x2d')+(_0x3d574d['stats'][a105_0x1c1a('0x9')][a105_0x1c1a('0xf')][a105_0x1c1a('0x3c')]/0x3c/0x3c)[a105_0x1c1a('0x1e')](0x2)+a105_0x1c1a('0x1')},{'name':'Matches','value':_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x9')][a105_0x1c1a('0xf')][a105_0x1c1a('0x51')],'inline':!![]},{'name':a105_0x1c1a('0x39'),'value':_0x3d574d['stats'][a105_0x1c1a('0x9')][a105_0x1c1a('0xf')][a105_0x1c1a('0x23')],'inline':!![]},{'name':a105_0x1c1a('0x4'),'value':_0x3d574d['stats'][a105_0x1c1a('0x9')][a105_0x1c1a('0xf')]['losses'],'inline':!![]},{'name':a105_0x1c1a('0x4f'),'value':_0x3d574d['stats'][a105_0x1c1a('0x9')]['general']['kills'],'inline':!![]},{'name':a105_0x1c1a('0x2a'),'value':_0x3d574d[a105_0x1c1a('0x20')]['pve'][a105_0x1c1a('0xf')][a105_0x1c1a('0x4c')],'inline':!![]},{'name':a105_0x1c1a('0x34'),'value':_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x9')][a105_0x1c1a('0xf')][a105_0x1c1a('0x1f')],'inline':!![]},{'name':'WLR','value':_0x3d574d['stats'][a105_0x1c1a('0x9')][a105_0x1c1a('0xf')][a105_0x1c1a('0x10')]?(_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x9')]['general'][a105_0x1c1a('0x23')]/_0x3d574d['stats']['pve'][a105_0x1c1a('0xf')][a105_0x1c1a('0x10')])[a105_0x1c1a('0x1e')](0x2):_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x9')]['general']['wins'],'inline':!![]},{'name':'KDR','value':_0x3d574d['stats'][a105_0x1c1a('0x9')][a105_0x1c1a('0xf')][a105_0x1c1a('0x1f')]?(_0x3d574d['stats']['pve'][a105_0x1c1a('0xf')][a105_0x1c1a('0x11')]/_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x9')][a105_0x1c1a('0xf')]['deaths'])[a105_0x1c1a('0x1e')](0x2):_0x3d574d[a105_0x1c1a('0x20')][a105_0x1c1a('0x9')][a105_0x1c1a('0xf')][a105_0x1c1a('0x11')],'inline':!![]}),await _0x3ff053[a105_0x1c1a('0x29')][a105_0x1c1a('0x33')]({'embed':{'color':constants[a105_0x1c1a('0x44')][a105_0x1c1a('0x8')],'author':{'name':_0x3d574d[a105_0x1c1a('0x19')][a105_0x1c1a('0x3e')]},'title':a105_0x1c1a('0x4d'),'fields':_0x1c81a0,'thumbnail':{'url':_0x4ee8e5},'footer':{'text':_0x3d574d[a105_0x1c1a('0x19')][a105_0x1c1a('0x30')][a105_0x1c1a('0x46')]()+a105_0x1c1a('0x0')}}});},this[a105_0x1c1a('0x38')]=[a105_0x1c1a('0x48'),a105_0x1c1a('0x4e'),a105_0x1c1a('0x35'),a105_0x1c1a('0xb')];}}; \ No newline at end of file diff --git a/commands/player_stats/rocketLeague.js b/commands/player_stats/rocketLeague.js index 29c423d6c..85d09584d 100644 --- a/commands/player_stats/rocketLeague.js +++ b/commands/player_stats/rocketLeague.js @@ -1 +1 @@ -const a106_0x3788=['rocketLeague','PLAYER_NOT_FOUND','makeRequest','map','ROCKET_LEAGUE','level','season_rewards','test','../../utils/omnic','channel','json','guild','wins','steam','\x20/\x20','../../utils/constants','apply','send','join','name','xboxone','ps4','stats','\x20Wins','rocketLeague\x20USERNAME\x20--platform\x20PLATFORM','toLowerCase','exec','\x20•\x20Powered\x20by\x20Rocket\x20League','user_name','Season\x20Reward','length','/playerstats/rocketleague/','COLORS','@bastion/tesseract','platforms','toTitleCase','constructor','Rocket\x20League\x20-\x20Player\x20Stats','INVALID_COMMAND_SYNTAX','platform','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Rocket\x20League\x20player\x20in\x20any\x20supported\x20platform.'];(function(_0x275abe,_0x378853){const _0x193b38=function(_0x2fe9c6){while(--_0x2fe9c6){_0x275abe['push'](_0x275abe['shift']());}},_0x22448a=function(){const _0x5e038f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x28c475,_0x5a2768,_0x845588,_0x2832cc){_0x2832cc=_0x2832cc||{};let _0x404f9b=_0x5a2768+'='+_0x845588,_0x44107c=0x0;for(let _0x548849=0x0,_0x43526d=_0x28c475['length'];_0x548849<_0x43526d;_0x548849++){const _0x5eca5e=_0x28c475[_0x548849];_0x404f9b+=';\x20'+_0x5eca5e;const _0x4566f3=_0x28c475[_0x5eca5e];_0x28c475['push'](_0x4566f3),_0x43526d=_0x28c475['length'],_0x4566f3!==!![]&&(_0x404f9b+='='+_0x4566f3);}_0x2832cc['cookie']=_0x404f9b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3f159c,_0x41d681){_0x3f159c=_0x3f159c||function(_0x582ba1){return _0x582ba1;};const _0x5765b5=_0x3f159c(new RegExp('(?:^|;\x20)'+_0x41d681['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x27f490=function(_0x5ddd36,_0x50a754){_0x5ddd36(++_0x50a754);};return _0x27f490(_0x193b38,_0x378853),_0x5765b5?decodeURIComponent(_0x5765b5[0x1]):undefined;}},_0x168671=function(){const _0x452040=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x452040['test'](_0x5e038f['removeCookie']['toString']());};_0x5e038f['updateCookie']=_0x168671;let _0xd37664='';const _0x194633=_0x5e038f['updateCookie']();if(!_0x194633)_0x5e038f['setCookie'](['*'],'counter',0x1);else _0x194633?_0xd37664=_0x5e038f['getCookie'](null,'counter'):_0x5e038f['removeCookie']();};_0x22448a();}(a106_0x3788,0x109));const a106_0x193b=function(_0x275abe,_0x378853){_0x275abe=_0x275abe-0x0;let _0x193b38=a106_0x3788[_0x275abe];return _0x193b38;};const a106_0x845588=function(){let _0x1fd4f=!![];return function(_0x5d4dab,_0x177c7b){const _0x3410fa=_0x1fd4f?function(){if(_0x177c7b){const _0xcdb74c=_0x177c7b[a106_0x193b('0x26')](_0x5d4dab,arguments);return _0x177c7b=null,_0xcdb74c;}}:function(){};return _0x1fd4f=![],_0x3410fa;};}(),a106_0x5a2768=a106_0x845588(this,function(){const _0x5031bb=function(){const _0x5cfc7b=_0x5031bb[a106_0x193b('0x11')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a106_0x193b('0x11')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5cfc7b[a106_0x193b('0x1d')](a106_0x5a2768);};return _0x5031bb();});a106_0x5a2768();'use strict';const tesseract_1=require(a106_0x193b('0xe')),constants=require(a106_0x193b('0x25')),errors=require('../../utils/errors'),omnic=require(a106_0x193b('0x1e')),strings=require('../../utils/strings');module['exports']=class RocketLeagueCommand extends tesseract_1['Command']{constructor(){super(a106_0x193b('0x16'),{'description':a106_0x193b('0x15'),'triggers':[],'arguments':{'alias':{'platform':['p']},'string':[a106_0x193b('0x14')]},'scope':a106_0x193b('0x21'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['rocketLeague\x20USERNAME',a106_0x193b('0x5')]}),this[a106_0x193b('0x7')]=async(_0x28c3cc,_0x45ea52)=>{if(!_0x45ea52['_'][a106_0x193b('0xb')])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a106_0x193b('0x13')],this[a106_0x193b('0x0')]);const _0x4f870f=_0x45ea52['_'][a106_0x193b('0x28')]('\x20'),_0x4cf731=_0x45ea52['platform']&&this[a106_0x193b('0xf')]['includes'](_0x45ea52[a106_0x193b('0x14')][a106_0x193b('0x6')]())?_0x45ea52[a106_0x193b('0x14')]['toLowerCase']():this[a106_0x193b('0xf')][0x0],_0x290ddc=await omnic[a106_0x193b('0x18')](a106_0x193b('0xc')+_0x4cf731+'/'+encodeURIComponent(_0x4f870f)),_0x5d5532=await _0x290ddc[a106_0x193b('0x20')]();if(!_0x5d5532[a106_0x193b('0x9')])throw new Error(a106_0x193b('0x17'));await _0x28c3cc[a106_0x193b('0x1f')][a106_0x193b('0x27')]({'embed':{'color':constants[a106_0x193b('0xd')][a106_0x193b('0x1a')],'author':{'name':_0x5d5532['user_name']+a106_0x193b('0x24')+_0x4f870f},'title':a106_0x193b('0x12'),'fields':[{'name':a106_0x193b('0xa'),'value':'Level\x20'+_0x5d5532[a106_0x193b('0x1c')]?_0x5d5532[a106_0x193b('0x1c')][a106_0x193b('0x1b')]+(_0x5d5532[a106_0x193b('0x1c')][a106_0x193b('0x22')]?_0x5d5532['season_rewards'][a106_0x193b('0x22')]+a106_0x193b('0x4'):''):'-'},...Object['keys'](_0x5d5532[a106_0x193b('0x3')])[a106_0x193b('0x19')](_0x233e11=>({'name':strings[a106_0x193b('0x10')](_0x233e11),'value':_0x5d5532[a106_0x193b('0x3')][_0x233e11],'inline':!![]}))],'thumbnail':{'url':'https://rocketleague.media.zestyio.com/Rocket-League-Logo-Full_On-Dark-Vertical.f1cb27a519bdb5b6ed34049a5b86e317.png'},'footer':{'text':_0x4cf731['toUpperCase']()+a106_0x193b('0x8')}}});},this['platforms']=[a106_0x193b('0x23'),a106_0x193b('0x2'),a106_0x193b('0x1')];}}; \ No newline at end of file +const a106_0x4a35=['../../utils/constants','Season\x20Reward','makeRequest','apply','@bastion/tesseract','rocketLeague\x20USERNAME','map','ROCKET_LEAGUE','xboxone','Command','COLORS','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','platform','stats','season_rewards','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','keys','DiscordError','\x20/\x20','test','../../utils/errors','guild','name','json','BASTION_ERROR_TYPE','exec','toLowerCase','INVALID_COMMAND_SYNTAX','level','length','wins','user_name','Rocket\x20League\x20-\x20Player\x20Stats','../../utils/strings','PLAYER_NOT_FOUND','\x20•\x20Powered\x20by\x20Rocket\x20League','channel','toTitleCase','ps4','includes','Level\x20','../../utils/omnic'];(function(_0x21920a,_0x4a3516){const _0x49b3ec=function(_0x33acc6){while(--_0x33acc6){_0x21920a['push'](_0x21920a['shift']());}},_0x408616=function(){const _0x3c1b9d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4258be,_0x83680f,_0x476488,_0x59716c){_0x59716c=_0x59716c||{};let _0x18f700=_0x83680f+'='+_0x476488,_0x37f78f=0x0;for(let _0x18e91c=0x0,_0x5e51f6=_0x4258be['length'];_0x18e91c<_0x5e51f6;_0x18e91c++){const _0x24fdd8=_0x4258be[_0x18e91c];_0x18f700+=';\x20'+_0x24fdd8;const _0x2f1a24=_0x4258be[_0x24fdd8];_0x4258be['push'](_0x2f1a24),_0x5e51f6=_0x4258be['length'],_0x2f1a24!==!![]&&(_0x18f700+='='+_0x2f1a24);}_0x59716c['cookie']=_0x18f700;},'removeCookie':function(){return'dev';},'getCookie':function(_0x229015,_0x11992a){_0x229015=_0x229015||function(_0xf7c259){return _0xf7c259;};const _0x3a8978=_0x229015(new RegExp('(?:^|;\x20)'+_0x11992a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x232c5a=function(_0x50ce57,_0x20823b){_0x50ce57(++_0x20823b);};return _0x232c5a(_0x49b3ec,_0x4a3516),_0x3a8978?decodeURIComponent(_0x3a8978[0x1]):undefined;}},_0x112381=function(){const _0x5aa4ce=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5aa4ce['test'](_0x3c1b9d['removeCookie']['toString']());};_0x3c1b9d['updateCookie']=_0x112381;let _0x4fa17d='';const _0x480f86=_0x3c1b9d['updateCookie']();if(!_0x480f86)_0x3c1b9d['setCookie'](['*'],'counter',0x1);else _0x480f86?_0x4fa17d=_0x3c1b9d['getCookie'](null,'counter'):_0x3c1b9d['removeCookie']();};_0x408616();}(a106_0x4a35,0xf1));const a106_0x49b3=function(_0x21920a,_0x4a3516){_0x21920a=_0x21920a-0x0;let _0x49b3ec=a106_0x4a35[_0x21920a];return _0x49b3ec;};const a106_0x476488=function(){let _0x504325=!![];return function(_0x5740c5,_0x1801e9){const _0x2a143a=_0x504325?function(){if(_0x1801e9){const _0x2aad90=_0x1801e9[a106_0x49b3('0x14')](_0x5740c5,arguments);return _0x1801e9=null,_0x2aad90;}}:function(){};return _0x504325=![],_0x2a143a;};}(),a106_0x83680f=a106_0x476488(this,function(){const _0xa3be9e=function(){const _0xe15ae7=_0xa3be9e[a106_0x49b3('0x1c')](a106_0x49b3('0x1d'))()['constructor'](a106_0x49b3('0x21'));return!_0xe15ae7[a106_0x49b3('0x25')](a106_0x83680f);};return _0xa3be9e();});a106_0x83680f();'use strict';const tesseract_1=require(a106_0x49b3('0x15')),constants=require(a106_0x49b3('0x11')),errors=require(a106_0x49b3('0x26')),omnic=require(a106_0x49b3('0x10')),strings=require(a106_0x49b3('0x8'));module['exports']=class RocketLeagueCommand extends tesseract_1[a106_0x49b3('0x1a')]{constructor(){super('rocketLeague',{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Rocket\x20League\x20player\x20in\x20any\x20supported\x20platform.','triggers':[],'arguments':{'alias':{'platform':['p']},'string':[a106_0x49b3('0x1e')]},'scope':a106_0x49b3('0x27'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a106_0x49b3('0x16'),'rocketLeague\x20USERNAME\x20--platform\x20PLATFORM']}),this[a106_0x49b3('0x0')]=async(_0x140003,_0x1b7cfe)=>{if(!_0x1b7cfe['_'][a106_0x49b3('0x4')])throw new errors[(a106_0x49b3('0x23'))](errors[a106_0x49b3('0x2a')][a106_0x49b3('0x2')],this[a106_0x49b3('0x28')]);const _0x5b4666=_0x1b7cfe['_']['join']('\x20'),_0x2ed312=_0x1b7cfe['platform']&&this['platforms'][a106_0x49b3('0xe')](_0x1b7cfe[a106_0x49b3('0x1e')][a106_0x49b3('0x1')]())?_0x1b7cfe['platform']['toLowerCase']():this['platforms'][0x0],_0xc05fed=await omnic[a106_0x49b3('0x13')]('/playerstats/rocketleague/'+_0x2ed312+'/'+encodeURIComponent(_0x5b4666)),_0x9f71be=await _0xc05fed[a106_0x49b3('0x29')]();if(!_0x9f71be[a106_0x49b3('0x6')])throw new Error(a106_0x49b3('0x9'));await _0x140003[a106_0x49b3('0xb')]['send']({'embed':{'color':constants[a106_0x49b3('0x1b')][a106_0x49b3('0x18')],'author':{'name':_0x9f71be[a106_0x49b3('0x6')]+a106_0x49b3('0x24')+_0x5b4666},'title':a106_0x49b3('0x7'),'fields':[{'name':a106_0x49b3('0x12'),'value':a106_0x49b3('0xf')+_0x9f71be['season_rewards']?_0x9f71be[a106_0x49b3('0x20')][a106_0x49b3('0x3')]+(_0x9f71be[a106_0x49b3('0x20')][a106_0x49b3('0x5')]?_0x9f71be[a106_0x49b3('0x20')][a106_0x49b3('0x5')]+'\x20Wins':''):'-'},...Object[a106_0x49b3('0x22')](_0x9f71be[a106_0x49b3('0x1f')])[a106_0x49b3('0x17')](_0x6c185b=>({'name':strings[a106_0x49b3('0xc')](_0x6c185b),'value':_0x9f71be[a106_0x49b3('0x1f')][_0x6c185b],'inline':!![]}))],'thumbnail':{'url':'https://rocketleague.media.zestyio.com/Rocket-League-Logo-Full_On-Dark-Vertical.f1cb27a519bdb5b6ed34049a5b86e317.png'},'footer':{'text':_0x2ed312['toUpperCase']()+a106_0x49b3('0xa')}}});},this['platforms']=['steam',a106_0x49b3('0xd'),a106_0x49b3('0x19')];}}; \ No newline at end of file diff --git a/commands/profile/coins.js b/commands/profile/coins.js index 2ebd5006a..fd16f36ff 100644 --- a/commands/profile/coins.js +++ b/commands/profile/coins.js @@ -1 +1 @@ -const a107_0x266c=['IRIS','send','exports','Bastion\x20Coins','didYouKnowDailyCoins','exec','COLORS','user','language','channel','color','coins','client','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','errors','guild','catch','apply','Constants','balance','test','getString','profileNotFound','locale','member','document','return\x20/\x22\x20+\x20this\x20+\x20\x22/','tag','It\x20allows\x20you\x20to\x20see\x20your\x20Bastion\x20Account.','author'];(function(_0x1c297f,_0x266c6d){const _0x44dd12=function(_0x50e473){while(--_0x50e473){_0x1c297f['push'](_0x1c297f['shift']());}},_0x594e3a=function(){const _0x308982={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4ead2d,_0x158ab2,_0x5a0df2,_0x482acc){_0x482acc=_0x482acc||{};let _0x13c0a5=_0x158ab2+'='+_0x5a0df2,_0x59b03e=0x0;for(let _0x1b21e2=0x0,_0x4ae498=_0x4ead2d['length'];_0x1b21e2<_0x4ae498;_0x1b21e2++){const _0x8f85b0=_0x4ead2d[_0x1b21e2];_0x13c0a5+=';\x20'+_0x8f85b0;const _0x3b84bc=_0x4ead2d[_0x8f85b0];_0x4ead2d['push'](_0x3b84bc),_0x4ae498=_0x4ead2d['length'],_0x3b84bc!==!![]&&(_0x13c0a5+='='+_0x3b84bc);}_0x482acc['cookie']=_0x13c0a5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x505725,_0xa7524d){_0x505725=_0x505725||function(_0x293b7e){return _0x293b7e;};const _0x584958=_0x505725(new RegExp('(?:^|;\x20)'+_0xa7524d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f4ceb=function(_0x8a4950,_0x3944b5){_0x8a4950(++_0x3944b5);};return _0x1f4ceb(_0x44dd12,_0x266c6d),_0x584958?decodeURIComponent(_0x584958[0x1]):undefined;}},_0x104952=function(){const _0x11bc6e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x11bc6e['test'](_0x308982['removeCookie']['toString']());};_0x308982['updateCookie']=_0x104952;let _0x99b392='';const _0x1ca651=_0x308982['updateCookie']();if(!_0x1ca651)_0x308982['setCookie'](['*'],'counter',0x1);else _0x1ca651?_0x99b392=_0x308982['getCookie'](null,'counter'):_0x308982['removeCookie']();};_0x594e3a();}(a107_0x266c,0xda));const a107_0x44dd=function(_0x1c297f,_0x266c6d){_0x1c297f=_0x1c297f-0x0;let _0x44dd12=a107_0x266c[_0x1c297f];return _0x44dd12;};const a107_0x5a0df2=function(){let _0x545fd6=!![];return function(_0xc87260,_0x5bfe98){const _0x3a5f7f=_0x545fd6?function(){if(_0x5bfe98){const _0x145253=_0x5bfe98[a107_0x44dd('0x9')](_0xc87260,arguments);return _0x5bfe98=null,_0x145253;}}:function(){};return _0x545fd6=![],_0x3a5f7f;};}(),a107_0x158ab2=a107_0x5a0df2(this,function(){const _0x2ce01b=function(){const _0x4d7651=_0x2ce01b['constructor'](a107_0x44dd('0x12'))()['constructor'](a107_0x44dd('0x5'));return!_0x4d7651[a107_0x44dd('0xc')](a107_0x158ab2);};return _0x2ce01b();});a107_0x158ab2();'use strict';const tesseract_1=require('@bastion/tesseract');module[a107_0x44dd('0x18')]=class CoinsCommand extends tesseract_1['Command']{constructor(){super(a107_0x44dd('0x3'),{'description':a107_0x44dd('0x14'),'triggers':[a107_0x44dd('0xb')],'arguments':{},'scope':a107_0x44dd('0x7'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a107_0x44dd('0x1b')]=async _0xbafaff=>{const _0x3b3c14=_0xbafaff[a107_0x44dd('0x15')][a107_0x44dd('0x11')],_0x30d54a=_0xbafaff[a107_0x44dd('0x10')][a107_0x44dd('0x11')];if(!_0x3b3c14||!_0x30d54a)throw new Error(this[a107_0x44dd('0x4')][a107_0x44dd('0xf')][a107_0x44dd('0xd')](_0xbafaff['guild']['document'][a107_0x44dd('0x0')],a107_0x44dd('0x6'),a107_0x44dd('0xe')));return _0xbafaff[a107_0x44dd('0x1')][a107_0x44dd('0x17')]({'embed':{'color':_0x3b3c14[a107_0x44dd('0x2')]||tesseract_1[a107_0x44dd('0xa')][a107_0x44dd('0x1c')][a107_0x44dd('0x16')],'author':{'name':_0xbafaff['member'][a107_0x44dd('0x1d')][a107_0x44dd('0x13')]},'title':'Bastion\x20Account','fields':[{'name':a107_0x44dd('0x19'),'value':_0x30d54a[a107_0x44dd('0xb')],'inline':!![]}],'thumbnail':{'url':_0xbafaff[a107_0x44dd('0x10')]['user']['displayAvatarURL']({'dynamic':!![],'size':0x200})},'footer':{'text':this['client']['locale'][a107_0x44dd('0xd')](_0xbafaff[a107_0x44dd('0x7')][a107_0x44dd('0x11')]['language'],'info',a107_0x44dd('0x1a'))}}})[a107_0x44dd('0x8')](()=>{});};}}; \ No newline at end of file +const a107_0x4277=['Bastion\x20Account','exports','getString','tag','Bastion\x20Coins','didYouKnowDailyCoins','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','It\x20allows\x20you\x20to\x20see\x20your\x20Bastion\x20Account.','guild','document','color','displayAvatarURL','author','exec','user','client','@bastion/tesseract','language','balance','test','catch','coins','member','apply','constructor','locale'];(function(_0x44c25f,_0x4277b3){const _0xa180f=function(_0x2b3c28){while(--_0x2b3c28){_0x44c25f['push'](_0x44c25f['shift']());}},_0xea8a89=function(){const _0x3cb374={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x271389,_0x44ef56,_0x24be42,_0x56f7d8){_0x56f7d8=_0x56f7d8||{};let _0x2fab23=_0x44ef56+'='+_0x24be42,_0x5c9bdb=0x0;for(let _0x42e52f=0x0,_0x3334ad=_0x271389['length'];_0x42e52f<_0x3334ad;_0x42e52f++){const _0x35d7cc=_0x271389[_0x42e52f];_0x2fab23+=';\x20'+_0x35d7cc;const _0x160c45=_0x271389[_0x35d7cc];_0x271389['push'](_0x160c45),_0x3334ad=_0x271389['length'],_0x160c45!==!![]&&(_0x2fab23+='='+_0x160c45);}_0x56f7d8['cookie']=_0x2fab23;},'removeCookie':function(){return'dev';},'getCookie':function(_0x25b0cb,_0x4aad20){_0x25b0cb=_0x25b0cb||function(_0x45b8d6){return _0x45b8d6;};const _0x5a8f37=_0x25b0cb(new RegExp('(?:^|;\x20)'+_0x4aad20['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x230148=function(_0x4947ec,_0x18bcde){_0x4947ec(++_0x18bcde);};return _0x230148(_0xa180f,_0x4277b3),_0x5a8f37?decodeURIComponent(_0x5a8f37[0x1]):undefined;}},_0x679a75=function(){const _0x39ea3d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x39ea3d['test'](_0x3cb374['removeCookie']['toString']());};_0x3cb374['updateCookie']=_0x679a75;let _0x240d39='';const _0x5d631b=_0x3cb374['updateCookie']();if(!_0x5d631b)_0x3cb374['setCookie'](['*'],'counter',0x1);else _0x5d631b?_0x240d39=_0x3cb374['getCookie'](null,'counter'):_0x3cb374['removeCookie']();};_0xea8a89();}(a107_0x4277,0x185));const a107_0xa180=function(_0x44c25f,_0x4277b3){_0x44c25f=_0x44c25f-0x0;let _0xa180f=a107_0x4277[_0x44c25f];return _0xa180f;};const a107_0x24be42=function(){let _0x35024d=!![];return function(_0x311f83,_0x17e5f9){const _0x215659=_0x35024d?function(){if(_0x17e5f9){const _0x4c050d=_0x17e5f9[a107_0xa180('0xe')](_0x311f83,arguments);return _0x17e5f9=null,_0x4c050d;}}:function(){};return _0x35024d=![],_0x215659;};}(),a107_0x44ef56=a107_0x24be42(this,function(){const _0x29eabf=function(){const _0x18fa78=_0x29eabf['constructor'](a107_0xa180('0x17'))()[a107_0xa180('0xf')](a107_0xa180('0x19'));return!_0x18fa78[a107_0xa180('0xa')](a107_0x44ef56);};return _0x29eabf();});a107_0x44ef56();'use strict';const tesseract_1=require(a107_0xa180('0x7'));module[a107_0xa180('0x12')]=class CoinsCommand extends tesseract_1['Command']{constructor(){super(a107_0xa180('0xc'),{'description':a107_0xa180('0x1b'),'triggers':['balance'],'arguments':{},'scope':a107_0xa180('0x1c'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a107_0xa180('0x4')]=async _0x46bb22=>{const _0x10ec85=_0x46bb22['author']['document'],_0x2e41fa=_0x46bb22[a107_0xa180('0xd')][a107_0xa180('0x0')];if(!_0x10ec85||!_0x2e41fa)throw new Error(this[a107_0xa180('0x6')][a107_0xa180('0x10')][a107_0xa180('0x13')](_0x46bb22['guild'][a107_0xa180('0x0')][a107_0xa180('0x8')],'errors','profileNotFound',_0x46bb22[a107_0xa180('0x3')]['tag']));return _0x46bb22['channel']['send']({'embed':{'color':_0x10ec85[a107_0xa180('0x1')]||tesseract_1[a107_0xa180('0x18')][a107_0xa180('0x1a')]['IRIS'],'author':{'name':_0x46bb22[a107_0xa180('0xd')][a107_0xa180('0x5')][a107_0xa180('0x14')]},'title':a107_0xa180('0x11'),'fields':[{'name':a107_0xa180('0x15'),'value':_0x2e41fa[a107_0xa180('0x9')],'inline':!![]}],'thumbnail':{'url':_0x46bb22[a107_0xa180('0xd')]['user'][a107_0xa180('0x2')]({'dynamic':!![],'size':0x200})},'footer':{'text':this['client'][a107_0xa180('0x10')][a107_0xa180('0x13')](_0x46bb22[a107_0xa180('0x1c')][a107_0xa180('0x0')][a107_0xa180('0x8')],'info',a107_0xa180('0x16'))}}})[a107_0xa180('0xb')](()=>{});};}}; \ No newline at end of file diff --git a/commands/profile/daily.js b/commands/profile/daily.js index e072ed55e..be97ba83f 100644 --- a/commands/profile/daily.js +++ b/commands/profile/daily.js @@ -1 +1 @@ -const a108_0x1c87=['claimStreakFirst','author','getRandomInt','credit','claimStreakLast','../../utils/numbers','COLORS','premiumSinceTimestamp','exports','joinedTimestamp','document','Daily\x20Reward','Command','claimRewardBooster','catch','getClaimMessageKey','getDate','apply','IRIS','locale','language','info','../../models/Member','claimStreakClaimed','getString','exec','claimStreak','channel','getTime','default','findOne','constructor','It\x20allows\x20you\x20to\x20claim\x20Bastion\x20Coins,\x20that\x20every\x20member\x20receives\x20as\x20a\x20reward\x20for\x20being\x20in\x20the\x20server.\x20You\x20can\x20claim\x20your\x20rewards\x20once\x20every\x2024\x20hours.','daily','toDateString','alreadyClaimed','guild','lastClaimed','member','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','client'];(function(_0x27f85e,_0x1c8792){const _0x5c521f=function(_0x97e576){while(--_0x97e576){_0x27f85e['push'](_0x27f85e['shift']());}},_0x149492=function(){const _0x2b1bce={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4b1e2b,_0x1687fd,_0x53b01b,_0x130fad){_0x130fad=_0x130fad||{};let _0x249ade=_0x1687fd+'='+_0x53b01b,_0x3f78c6=0x0;for(let _0x55d98a=0x0,_0x3138c7=_0x4b1e2b['length'];_0x55d98a<_0x3138c7;_0x55d98a++){const _0x39f37b=_0x4b1e2b[_0x55d98a];_0x249ade+=';\x20'+_0x39f37b;const _0x5c751f=_0x4b1e2b[_0x39f37b];_0x4b1e2b['push'](_0x5c751f),_0x3138c7=_0x4b1e2b['length'],_0x5c751f!==!![]&&(_0x249ade+='='+_0x5c751f);}_0x130fad['cookie']=_0x249ade;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5cfdba,_0x11a3f4){_0x5cfdba=_0x5cfdba||function(_0x3572cf){return _0x3572cf;};const _0x1f6c01=_0x5cfdba(new RegExp('(?:^|;\x20)'+_0x11a3f4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x32c8e7=function(_0x1b4f07,_0x3d1300){_0x1b4f07(++_0x3d1300);};return _0x32c8e7(_0x5c521f,_0x1c8792),_0x1f6c01?decodeURIComponent(_0x1f6c01[0x1]):undefined;}},_0x58a734=function(){const _0x5b64b5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b64b5['test'](_0x2b1bce['removeCookie']['toString']());};_0x2b1bce['updateCookie']=_0x58a734;let _0x237e46='';const _0x27082a=_0x2b1bce['updateCookie']();if(!_0x27082a)_0x2b1bce['setCookie'](['*'],'counter',0x1);else _0x27082a?_0x237e46=_0x2b1bce['getCookie'](null,'counter'):_0x2b1bce['removeCookie']();};_0x149492();}(a108_0x1c87,0x10c));const a108_0x5c52=function(_0x27f85e,_0x1c8792){_0x27f85e=_0x27f85e-0x0;let _0x5c521f=a108_0x1c87[_0x27f85e];return _0x5c521f;};const a108_0x53b01b=function(){let _0x4a528e=!![];return function(_0x1459df,_0x3c614d){const _0x16862e=_0x4a528e?function(){if(_0x3c614d){const _0x32195b=_0x3c614d[a108_0x5c52('0x24')](_0x1459df,arguments);return _0x3c614d=null,_0x32195b;}}:function(){};return _0x4a528e=![],_0x16862e;};}(),a108_0x1687fd=a108_0x53b01b(this,function(){const _0xb01886=function(){const _0x431738=_0xb01886[a108_0x5c52('0x9')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a108_0x5c52('0x9')](a108_0x5c52('0x11'));return!_0x431738['test'](a108_0x1687fd);};return _0xb01886();});a108_0x1687fd();'use strict';const tesseract_1=require('@bastion/tesseract'),Member_1=require(a108_0x5c52('0x0')),numbers=require(a108_0x5c52('0x18'));module[a108_0x5c52('0x1b')]=class DailyCommand extends tesseract_1[a108_0x5c52('0x1f')]{constructor(){super(a108_0x5c52('0xb'),{'description':a108_0x5c52('0xa'),'triggers':['claim'],'arguments':{},'scope':a108_0x5c52('0xe'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a108_0x5c52('0x22')]=_0x177c77=>{switch(_0x177c77){case 0x1:return a108_0x5c52('0x13');case 0x6:return a108_0x5c52('0x17');case 0x7:return a108_0x5c52('0x1');default:return'claimStreak';}},this[a108_0x5c52('0x3')]=async _0x3419af=>{const _0xb3c123=await Member_1[a108_0x5c52('0x7')][a108_0x5c52('0x8')]({'user':_0x3419af['author']['id'],'guild':_0x3419af[a108_0x5c52('0xe')]['id']}),_0x22ee48=new Date(),_0x40251d=(_0x3fdd40=>new Date(_0x3fdd40['setDate'](_0x3fdd40[a108_0x5c52('0x23')]()-0x1)))(new Date()),_0x15acb0=new Date(_0xb3c123[a108_0x5c52('0xf')]);if(_0x22ee48[a108_0x5c52('0xc')]()===_0x15acb0['toDateString']())throw new Error(this['client'][a108_0x5c52('0x26')][a108_0x5c52('0x2')](_0x3419af[a108_0x5c52('0xe')][a108_0x5c52('0x1d')][a108_0x5c52('0x27')],'errors',a108_0x5c52('0xd'),_0x3419af[a108_0x5c52('0x14')]['tag']));_0xb3c123[a108_0x5c52('0xf')]=_0x22ee48[a108_0x5c52('0x6')]();let _0x3e6c4f=numbers[a108_0x5c52('0x15')](0x2a,0x80);_0x22ee48['getTime']()-_0x3419af['member'][a108_0x5c52('0x1c')]<0xf731400&&(_0x3e6c4f/=0x2);_0xb3c123[a108_0x5c52('0x4')]=_0x40251d[a108_0x5c52('0xc')]()===_0x15acb0[a108_0x5c52('0xc')]()?_0xb3c123[a108_0x5c52('0x4')]+0x1:0x1;const _0x567ca9=this[a108_0x5c52('0x12')][a108_0x5c52('0x26')][a108_0x5c52('0x2')](_0x3419af[a108_0x5c52('0xe')][a108_0x5c52('0x1d')][a108_0x5c52('0x27')],a108_0x5c52('0x28'),this[a108_0x5c52('0x22')](_0xb3c123[a108_0x5c52('0x4')]),0x7-_0xb3c123['claimStreak']);_0xb3c123[a108_0x5c52('0x4')]===0x7&&(_0xb3c123['claimStreak']=0x0,_0x3e6c4f+=numbers[a108_0x5c52('0x15')](0x200,0x400)),_0x3419af[a108_0x5c52('0x10')][a108_0x5c52('0x1a')]&&(_0x3e6c4f*=0x2),await _0x3419af['member'][a108_0x5c52('0x16')](_0x3e6c4f,a108_0x5c52('0x1e'),_0xb3c123),await _0xb3c123['save'](),_0x3419af[a108_0x5c52('0x5')]['send']({'embed':{'color':tesseract_1['Constants'][a108_0x5c52('0x19')][a108_0x5c52('0x25')],'description':this['client'][a108_0x5c52('0x26')][a108_0x5c52('0x2')](_0x3419af[a108_0x5c52('0xe')][a108_0x5c52('0x1d')][a108_0x5c52('0x27')],a108_0x5c52('0x28'),'claim',_0x3419af[a108_0x5c52('0x14')]['tag'])+'\x0a\x0a'+_0x567ca9,'footer':{'text':_0x3419af['member'][a108_0x5c52('0x1a')]?this[a108_0x5c52('0x12')][a108_0x5c52('0x26')][a108_0x5c52('0x2')](_0x3419af[a108_0x5c52('0xe')]['document'][a108_0x5c52('0x27')],a108_0x5c52('0x28'),a108_0x5c52('0x20')):''}}})[a108_0x5c52('0x21')](()=>{});};}}; \ No newline at end of file +const a108_0x2eb2=['catch','daily','document','author','premiumSinceTimestamp','apply','language','COLORS','constructor','getString','errors','toDateString','save','claimStreakLast','claimStreak','getTime','locale','member','@bastion/tesseract','guild','exec','Command','Daily\x20Reward','client','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','send','info','claim','test','lastClaimed','tag','IRIS','claimRewardBooster','getClaimMessageKey','../../models/Member','joinedTimestamp','setDate','alreadyClaimed','credit','channel'];(function(_0x3bc98a,_0x2eb2d4){const _0x2de2a0=function(_0x13e0fd){while(--_0x13e0fd){_0x3bc98a['push'](_0x3bc98a['shift']());}},_0x4a36da=function(){const _0x537a4c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x55e2a4,_0x1f80cf,_0x4250c9,_0x5119d6){_0x5119d6=_0x5119d6||{};let _0x14015e=_0x1f80cf+'='+_0x4250c9,_0x1150a9=0x0;for(let _0x5f224b=0x0,_0x361887=_0x55e2a4['length'];_0x5f224b<_0x361887;_0x5f224b++){const _0x1fac90=_0x55e2a4[_0x5f224b];_0x14015e+=';\x20'+_0x1fac90;const _0xafdb01=_0x55e2a4[_0x1fac90];_0x55e2a4['push'](_0xafdb01),_0x361887=_0x55e2a4['length'],_0xafdb01!==!![]&&(_0x14015e+='='+_0xafdb01);}_0x5119d6['cookie']=_0x14015e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x435ee0,_0x32dd53){_0x435ee0=_0x435ee0||function(_0x1725ca){return _0x1725ca;};const _0x5871c7=_0x435ee0(new RegExp('(?:^|;\x20)'+_0x32dd53['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5e3e77=function(_0x2a6fd2,_0x50f826){_0x2a6fd2(++_0x50f826);};return _0x5e3e77(_0x2de2a0,_0x2eb2d4),_0x5871c7?decodeURIComponent(_0x5871c7[0x1]):undefined;}},_0xe29467=function(){const _0x52ec87=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x52ec87['test'](_0x537a4c['removeCookie']['toString']());};_0x537a4c['updateCookie']=_0xe29467;let _0xceedd7='';const _0x5eddf5=_0x537a4c['updateCookie']();if(!_0x5eddf5)_0x537a4c['setCookie'](['*'],'counter',0x1);else _0x5eddf5?_0xceedd7=_0x537a4c['getCookie'](null,'counter'):_0x537a4c['removeCookie']();};_0x4a36da();}(a108_0x2eb2,0x15f));const a108_0x2de2=function(_0x3bc98a,_0x2eb2d4){_0x3bc98a=_0x3bc98a-0x0;let _0x2de2a0=a108_0x2eb2[_0x3bc98a];return _0x2de2a0;};const a108_0x4250c9=function(){let _0xbe4c5a=!![];return function(_0x1d46a9,_0xe5610d){const _0x501bad=_0xbe4c5a?function(){if(_0xe5610d){const _0x32ffa8=_0xe5610d[a108_0x2de2('0xe')](_0x1d46a9,arguments);return _0xe5610d=null,_0x32ffa8;}}:function(){};return _0xbe4c5a=![],_0x501bad;};}(),a108_0x1f80cf=a108_0x4250c9(this,function(){const _0x2b111e=function(){const _0x52d562=_0x2b111e[a108_0x2de2('0x11')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a108_0x2de2('0x11')](a108_0x2de2('0x21'));return!_0x52d562[a108_0x2de2('0x25')](a108_0x1f80cf);};return _0x2b111e();});a108_0x1f80cf();'use strict';const tesseract_1=require(a108_0x2de2('0x1b')),Member_1=require(a108_0x2de2('0x3')),numbers=require('../../utils/numbers');module['exports']=class DailyCommand extends tesseract_1[a108_0x2de2('0x1e')]{constructor(){super(a108_0x2de2('0xa'),{'description':'It\x20allows\x20you\x20to\x20claim\x20Bastion\x20Coins,\x20that\x20every\x20member\x20receives\x20as\x20a\x20reward\x20for\x20being\x20in\x20the\x20server.\x20You\x20can\x20claim\x20your\x20rewards\x20once\x20every\x2024\x20hours.','triggers':['claim'],'arguments':{},'scope':a108_0x2de2('0x1c'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a108_0x2de2('0x2')]=_0x20a96a=>{switch(_0x20a96a){case 0x1:return'claimStreakFirst';case 0x6:return a108_0x2de2('0x16');case 0x7:return'claimStreakClaimed';default:return a108_0x2de2('0x17');}},this[a108_0x2de2('0x1d')]=async _0x31b160=>{const _0xa706cf=await Member_1['default']['findOne']({'user':_0x31b160[a108_0x2de2('0xc')]['id'],'guild':_0x31b160[a108_0x2de2('0x1c')]['id']}),_0x145efb=new Date(),_0x38c09f=(_0x3f8876=>new Date(_0x3f8876[a108_0x2de2('0x5')](_0x3f8876['getDate']()-0x1)))(new Date()),_0x18498a=new Date(_0xa706cf[a108_0x2de2('0x26')]);if(_0x145efb[a108_0x2de2('0x14')]()===_0x18498a[a108_0x2de2('0x14')]())throw new Error(this[a108_0x2de2('0x20')][a108_0x2de2('0x19')][a108_0x2de2('0x12')](_0x31b160[a108_0x2de2('0x1c')]['document']['language'],a108_0x2de2('0x13'),a108_0x2de2('0x6'),_0x31b160[a108_0x2de2('0xc')][a108_0x2de2('0x27')]));_0xa706cf[a108_0x2de2('0x26')]=_0x145efb[a108_0x2de2('0x18')]();let _0x4ba321=numbers['getRandomInt'](0x2a,0x80);_0x145efb[a108_0x2de2('0x18')]()-_0x31b160['member'][a108_0x2de2('0x4')]<0xf731400&&(_0x4ba321/=0x2);_0xa706cf[a108_0x2de2('0x17')]=_0x38c09f['toDateString']()===_0x18498a[a108_0x2de2('0x14')]()?_0xa706cf[a108_0x2de2('0x17')]+0x1:0x1;const _0x1604e6=this['client']['locale'][a108_0x2de2('0x12')](_0x31b160[a108_0x2de2('0x1c')][a108_0x2de2('0xb')]['language'],'info',this[a108_0x2de2('0x2')](_0xa706cf['claimStreak']),0x7-_0xa706cf[a108_0x2de2('0x17')]);_0xa706cf[a108_0x2de2('0x17')]===0x7&&(_0xa706cf[a108_0x2de2('0x17')]=0x0,_0x4ba321+=numbers['getRandomInt'](0x200,0x400)),_0x31b160[a108_0x2de2('0x1a')][a108_0x2de2('0xd')]&&(_0x4ba321*=0x2),await _0x31b160[a108_0x2de2('0x1a')][a108_0x2de2('0x7')](_0x4ba321,a108_0x2de2('0x1f'),_0xa706cf),await _0xa706cf[a108_0x2de2('0x15')](),_0x31b160[a108_0x2de2('0x8')][a108_0x2de2('0x22')]({'embed':{'color':tesseract_1['Constants'][a108_0x2de2('0x10')][a108_0x2de2('0x0')],'description':this[a108_0x2de2('0x20')]['locale']['getString'](_0x31b160[a108_0x2de2('0x1c')][a108_0x2de2('0xb')][a108_0x2de2('0xf')],'info',a108_0x2de2('0x24'),_0x31b160[a108_0x2de2('0xc')][a108_0x2de2('0x27')])+'\x0a\x0a'+_0x1604e6,'footer':{'text':_0x31b160[a108_0x2de2('0x1a')]['premiumSinceTimestamp']?this[a108_0x2de2('0x20')]['locale'][a108_0x2de2('0x12')](_0x31b160[a108_0x2de2('0x1c')][a108_0x2de2('0xb')][a108_0x2de2('0xf')],a108_0x2de2('0x23'),a108_0x2de2('0x1')):''}}})[a108_0x2de2('0x9')](()=>{});};}}; \ No newline at end of file diff --git a/commands/profile/karma.js b/commands/profile/karma.js index 73de30391..4a2045549 100644 --- a/commands/profile/karma.js +++ b/commands/profile/karma.js @@ -1 +1 @@ -const a109_0x1fa8=['Command','resolver','tag','karma\x20USER','karma','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','memberNotFound','exports','INVALID_COMMAND_SYNTAX','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../../models/Member','errors','constructor','guild','info','author','apply','NO_SELF_KARMA','DiscordError','join','exec','@bastion/tesseract','length','document','user','test','locale','../../utils/errors','language','send','name','getString','profileNotFound','catch','client'];(function(_0x2cc8fd,_0x1fa8f8){const _0x2f4307=function(_0x180e3f){while(--_0x180e3f){_0x2cc8fd['push'](_0x2cc8fd['shift']());}},_0x25ace8=function(){const _0x25cd0e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x568d94,_0x1db59c,_0x1ba616,_0x1d1cc5){_0x1d1cc5=_0x1d1cc5||{};let _0x371781=_0x1db59c+'='+_0x1ba616,_0x3d1b1c=0x0;for(let _0x340352=0x0,_0x2e2f88=_0x568d94['length'];_0x340352<_0x2e2f88;_0x340352++){const _0x3f7540=_0x568d94[_0x340352];_0x371781+=';\x20'+_0x3f7540;const _0x1241dd=_0x568d94[_0x3f7540];_0x568d94['push'](_0x1241dd),_0x2e2f88=_0x568d94['length'],_0x1241dd!==!![]&&(_0x371781+='='+_0x1241dd);}_0x1d1cc5['cookie']=_0x371781;},'removeCookie':function(){return'dev';},'getCookie':function(_0x312565,_0x34383e){_0x312565=_0x312565||function(_0x4b3745){return _0x4b3745;};const _0x930bfd=_0x312565(new RegExp('(?:^|;\x20)'+_0x34383e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2a9001=function(_0x5bcc12,_0x4debfa){_0x5bcc12(++_0x4debfa);};return _0x2a9001(_0x2f4307,_0x1fa8f8),_0x930bfd?decodeURIComponent(_0x930bfd[0x1]):undefined;}},_0x598f97=function(){const _0x499824=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x499824['test'](_0x25cd0e['removeCookie']['toString']());};_0x25cd0e['updateCookie']=_0x598f97;let _0x326ab8='';const _0xf9e3d=_0x25cd0e['updateCookie']();if(!_0xf9e3d)_0x25cd0e['setCookie'](['*'],'counter',0x1);else _0xf9e3d?_0x326ab8=_0x25cd0e['getCookie'](null,'counter'):_0x25cd0e['removeCookie']();};_0x25ace8();}(a109_0x1fa8,0x6f));const a109_0x2f43=function(_0x2cc8fd,_0x1fa8f8){_0x2cc8fd=_0x2cc8fd-0x0;let _0x2f4307=a109_0x1fa8[_0x2cc8fd];return _0x2f4307;};const a109_0x1ba616=function(){let _0x5067f5=!![];return function(_0x4286bb,_0x15e3e1){const _0x5a4b58=_0x5067f5?function(){if(_0x15e3e1){const _0x5c2e22=_0x15e3e1[a109_0x2f43('0xe')](_0x4286bb,arguments);return _0x15e3e1=null,_0x5c2e22;}}:function(){};return _0x5067f5=![],_0x5a4b58;};}(),a109_0x1db59c=a109_0x1ba616(this,function(){const _0xb62ef9=function(){const _0x25c6a9=_0xb62ef9[a109_0x2f43('0xa')](a109_0x2f43('0x7'))()[a109_0x2f43('0xa')](a109_0x2f43('0x2'));return!_0x25c6a9[a109_0x2f43('0x17')](a109_0x1db59c);};return _0xb62ef9();});a109_0x1db59c();'use strict';const tesseract_1=require(a109_0x2f43('0x13')),Member_1=require(a109_0x2f43('0x8')),errors=require(a109_0x2f43('0x19'));module[a109_0x2f43('0x5')]=class KarmaCommand extends tesseract_1[a109_0x2f43('0x21')]{constructor(){super('karma',{'description':'It\x20allows\x20you\x20to\x20give\x20someone\x20the\x20sweet\x20little\x20internet\x20points,\x20we\x20call\x20karma,\x20if\x20you\x20think\x20they\x27re\x20worth\x20it.\x20You\x20can\x20give\x20up\x20to\x203\x20karmas\x20every\x206\x20hours,\x20so\x20spend\x20it\x20wisely.','triggers':['rep'],'arguments':{},'scope':a109_0x2f43('0xb'),'owner':![],'cooldown':0x5460,'ratelimit':0x3,'clientPermissions':[],'userPermissions':[],'syntax':[a109_0x2f43('0x0')]}),this[a109_0x2f43('0x12')]=async(_0x467b06,_0x2a0344)=>{if(!_0x2a0344['_'][a109_0x2f43('0x14')])throw new errors[(a109_0x2f43('0x10'))](errors['BASTION_ERROR_TYPE'][a109_0x2f43('0x6')],this[a109_0x2f43('0x1c')]);const _0x1fe6c6=this[a109_0x2f43('0x20')][a109_0x2f43('0x22')]['resolveGuildMember'](_0x467b06[a109_0x2f43('0xb')],_0x2a0344['_'][a109_0x2f43('0x11')]('\x20'));if(!_0x1fe6c6)throw new Error(this[a109_0x2f43('0x20')][a109_0x2f43('0x18')]['getString'](_0x467b06[a109_0x2f43('0xb')][a109_0x2f43('0x15')][a109_0x2f43('0x1a')],a109_0x2f43('0x9'),a109_0x2f43('0x4')));if(_0x467b06[a109_0x2f43('0xd')]['id']===_0x1fe6c6['id'])throw new Error(a109_0x2f43('0xf'));const _0x3448ce=await Member_1['default']['findOne']({'user':_0x1fe6c6['id'],'guild':_0x467b06[a109_0x2f43('0xb')]['id']});if(!_0x3448ce)throw new Error(this['client']['locale'][a109_0x2f43('0x1d')](_0x467b06['guild'][a109_0x2f43('0x15')]['language'],a109_0x2f43('0x9'),a109_0x2f43('0x1e'),_0x1fe6c6[a109_0x2f43('0x16')][a109_0x2f43('0x23')]));_0x3448ce[a109_0x2f43('0x1')]+=0x1,await _0x3448ce['save'](),await _0x467b06['channel'][a109_0x2f43('0x1b')]({'embed':{'color':tesseract_1['Constants'][a109_0x2f43('0x3')]['IRIS'],'description':this[a109_0x2f43('0x20')][a109_0x2f43('0x18')]['getString'](_0x467b06[a109_0x2f43('0xb')][a109_0x2f43('0x15')][a109_0x2f43('0x1a')],a109_0x2f43('0xc'),a109_0x2f43('0x1'),_0x467b06['author']['tag'],_0x1fe6c6[a109_0x2f43('0x16')][a109_0x2f43('0x23')])}})[a109_0x2f43('0x1f')](()=>{});};}}; \ No newline at end of file +const a109_0x3ebe=['getString','karma\x20USER','Constants','NO_SELF_KARMA','BASTION_ERROR_TYPE','test','resolveGuildMember','user','memberNotFound','locale','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','language','../../models/Member','name','join','save','DiscordError','rep','author','findOne','errors','Command','@bastion/tesseract','channel','document','INVALID_COMMAND_SYNTAX','default','exports','client','apply','tag','It\x20allows\x20you\x20to\x20give\x20someone\x20the\x20sweet\x20little\x20internet\x20points,\x20we\x20call\x20karma,\x20if\x20you\x20think\x20they\x27re\x20worth\x20it.\x20You\x20can\x20give\x20up\x20to\x203\x20karmas\x20every\x206\x20hours,\x20so\x20spend\x20it\x20wisely.','profileNotFound','info','karma','guild','exec','constructor','../../utils/errors','send'];(function(_0x26c4ab,_0x3ebe4c){const _0xd7acf0=function(_0x545830){while(--_0x545830){_0x26c4ab['push'](_0x26c4ab['shift']());}},_0x52972c=function(){const _0x17dddd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3c71da,_0x328762,_0x5d5866,_0x3ce5b0){_0x3ce5b0=_0x3ce5b0||{};let _0x2e2cb5=_0x328762+'='+_0x5d5866,_0x3e0aa8=0x0;for(let _0x53f6a9=0x0,_0x5b9bd0=_0x3c71da['length'];_0x53f6a9<_0x5b9bd0;_0x53f6a9++){const _0x29b446=_0x3c71da[_0x53f6a9];_0x2e2cb5+=';\x20'+_0x29b446;const _0x2e9dbc=_0x3c71da[_0x29b446];_0x3c71da['push'](_0x2e9dbc),_0x5b9bd0=_0x3c71da['length'],_0x2e9dbc!==!![]&&(_0x2e2cb5+='='+_0x2e9dbc);}_0x3ce5b0['cookie']=_0x2e2cb5;},'removeCookie':function(){return'dev';},'getCookie':function(_0xf2f13f,_0x28da6e){_0xf2f13f=_0xf2f13f||function(_0x2a0e92){return _0x2a0e92;};const _0x24ae65=_0xf2f13f(new RegExp('(?:^|;\x20)'+_0x28da6e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x243f50=function(_0x107c94,_0x13f1d2){_0x107c94(++_0x13f1d2);};return _0x243f50(_0xd7acf0,_0x3ebe4c),_0x24ae65?decodeURIComponent(_0x24ae65[0x1]):undefined;}},_0x280c29=function(){const _0x46c548=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x46c548['test'](_0x17dddd['removeCookie']['toString']());};_0x17dddd['updateCookie']=_0x280c29;let _0x3d8c02='';const _0x23e59e=_0x17dddd['updateCookie']();if(!_0x23e59e)_0x17dddd['setCookie'](['*'],'counter',0x1);else _0x23e59e?_0x3d8c02=_0x17dddd['getCookie'](null,'counter'):_0x17dddd['removeCookie']();};_0x52972c();}(a109_0x3ebe,0x106));const a109_0xd7ac=function(_0x26c4ab,_0x3ebe4c){_0x26c4ab=_0x26c4ab-0x0;let _0xd7acf0=a109_0x3ebe[_0x26c4ab];return _0xd7acf0;};const a109_0x5d5866=function(){let _0x54d553=!![];return function(_0xaa20d3,_0x52f2a7){const _0x2f0c18=_0x54d553?function(){if(_0x52f2a7){const _0xef15b3=_0x52f2a7[a109_0xd7ac('0xe')](_0xaa20d3,arguments);return _0x52f2a7=null,_0xef15b3;}}:function(){};return _0x54d553=![],_0x2f0c18;};}(),a109_0x328762=a109_0x5d5866(this,function(){const _0x58cf91=function(){const _0x1df863=_0x58cf91[a109_0xd7ac('0x16')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a109_0xd7ac('0x23'));return!_0x1df863[a109_0xd7ac('0x1e')](a109_0x328762);};return _0x58cf91();});a109_0x328762();'use strict';const tesseract_1=require(a109_0xd7ac('0x7')),Member_1=require(a109_0xd7ac('0x26')),errors=require(a109_0xd7ac('0x17'));module[a109_0xd7ac('0xc')]=class KarmaCommand extends tesseract_1[a109_0xd7ac('0x6')]{constructor(){super(a109_0xd7ac('0x13'),{'description':a109_0xd7ac('0x10'),'triggers':[a109_0xd7ac('0x2')],'arguments':{},'scope':'guild','owner':![],'cooldown':0x5460,'ratelimit':0x3,'clientPermissions':[],'userPermissions':[],'syntax':[a109_0xd7ac('0x1a')]}),this[a109_0xd7ac('0x15')]=async(_0x3b8bf3,_0x2e9436)=>{if(!_0x2e9436['_']['length'])throw new errors[(a109_0xd7ac('0x1'))](errors[a109_0xd7ac('0x1d')][a109_0xd7ac('0xa')],this[a109_0xd7ac('0x27')]);const _0x485b9d=this[a109_0xd7ac('0xd')]['resolver'][a109_0xd7ac('0x1f')](_0x3b8bf3['guild'],_0x2e9436['_'][a109_0xd7ac('0x28')]('\x20'));if(!_0x485b9d)throw new Error(this[a109_0xd7ac('0xd')][a109_0xd7ac('0x22')]['getString'](_0x3b8bf3['guild']['document']['language'],a109_0xd7ac('0x5'),a109_0xd7ac('0x21')));if(_0x3b8bf3['author']['id']===_0x485b9d['id'])throw new Error(a109_0xd7ac('0x1c'));const _0xa78376=await Member_1[a109_0xd7ac('0xb')][a109_0xd7ac('0x4')]({'user':_0x485b9d['id'],'guild':_0x3b8bf3[a109_0xd7ac('0x14')]['id']});if(!_0xa78376)throw new Error(this[a109_0xd7ac('0xd')]['locale'][a109_0xd7ac('0x19')](_0x3b8bf3[a109_0xd7ac('0x14')]['document'][a109_0xd7ac('0x25')],a109_0xd7ac('0x5'),a109_0xd7ac('0x11'),_0x485b9d[a109_0xd7ac('0x20')]['tag']));_0xa78376['karma']+=0x1,await _0xa78376[a109_0xd7ac('0x0')](),await _0x3b8bf3[a109_0xd7ac('0x8')][a109_0xd7ac('0x18')]({'embed':{'color':tesseract_1[a109_0xd7ac('0x1b')][a109_0xd7ac('0x24')]['IRIS'],'description':this['client'][a109_0xd7ac('0x22')]['getString'](_0x3b8bf3[a109_0xd7ac('0x14')][a109_0xd7ac('0x9')]['language'],a109_0xd7ac('0x12'),a109_0xd7ac('0x13'),_0x3b8bf3[a109_0xd7ac('0x3')][a109_0xd7ac('0xf')],_0x485b9d[a109_0xd7ac('0x20')][a109_0xd7ac('0xf')])}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/profile/leaderboard.js b/commands/profile/leaderboard.js index 103b15417..eac0866fc 100644 --- a/commands/profile/leaderboard.js +++ b/commands/profile/leaderboard.js @@ -1 +1 @@ -const a110_0x5a85=['users','IRIS','balance','COLORS','../../models/Member','guild','find','\x20/\x20','tag','exec','default','user','channel','constructor','Constants','Command','client','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','send','apply','test','level','cache','\x20Bastion\x20Coins','Level','experience','It\x20allows\x20you\x20to\x20see\x20the\x20leaderboard\x20of\x20your\x20server.\x20You\x27re\x20ranked\x20based\x20on\x20your\x20level,\x20experience,\x20karma,\x20and\x20Bastion\x20Coins;\x20in\x20that\x20exact\x20order.','exports','karma','https://i.imgur.com/Kzt8Ldk.png','@bastion/tesseract','Bastion\x20Profiles\x20-\x20Leaderboard'];(function(_0x272145,_0x5a85f1){const _0x570410=function(_0x391f3a){while(--_0x391f3a){_0x272145['push'](_0x272145['shift']());}},_0x45ffa1=function(){const _0x268ed7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3b9a84,_0x107fda,_0x947e18,_0x339495){_0x339495=_0x339495||{};let _0x15fe18=_0x107fda+'='+_0x947e18,_0x44f00d=0x0;for(let _0x4bb055=0x0,_0x4b8c82=_0x3b9a84['length'];_0x4bb055<_0x4b8c82;_0x4bb055++){const _0x2d5d17=_0x3b9a84[_0x4bb055];_0x15fe18+=';\x20'+_0x2d5d17;const _0x2bc004=_0x3b9a84[_0x2d5d17];_0x3b9a84['push'](_0x2bc004),_0x4b8c82=_0x3b9a84['length'],_0x2bc004!==!![]&&(_0x15fe18+='='+_0x2bc004);}_0x339495['cookie']=_0x15fe18;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2b15fc,_0x2e856f){_0x2b15fc=_0x2b15fc||function(_0x5c7b9b){return _0x5c7b9b;};const _0x213c60=_0x2b15fc(new RegExp('(?:^|;\x20)'+_0x2e856f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3df9fe=function(_0x2fecdc,_0x4ce07e){_0x2fecdc(++_0x4ce07e);};return _0x3df9fe(_0x570410,_0x5a85f1),_0x213c60?decodeURIComponent(_0x213c60[0x1]):undefined;}},_0x25d783=function(){const _0x2b789c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2b789c['test'](_0x268ed7['removeCookie']['toString']());};_0x268ed7['updateCookie']=_0x25d783;let _0x2beba4='';const _0x293e61=_0x268ed7['updateCookie']();if(!_0x293e61)_0x268ed7['setCookie'](['*'],'counter',0x1);else _0x293e61?_0x2beba4=_0x268ed7['getCookie'](null,'counter'):_0x268ed7['removeCookie']();};_0x45ffa1();}(a110_0x5a85,0x108));const a110_0x5704=function(_0x272145,_0x5a85f1){_0x272145=_0x272145-0x0;let _0x570410=a110_0x5a85[_0x272145];return _0x570410;};const a110_0x947e18=function(){let _0x30db52=!![];return function(_0xf6eec5,_0x4b4463){const _0x41b47f=_0x30db52?function(){if(_0x4b4463){const _0x48659f=_0x4b4463[a110_0x5704('0xb')](_0xf6eec5,arguments);return _0x4b4463=null,_0x48659f;}}:function(){};return _0x30db52=![],_0x41b47f;};}(),a110_0x107fda=a110_0x947e18(this,function(){const _0x34abc4=function(){const _0xf17b83=_0x34abc4[a110_0x5704('0x5')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a110_0x5704('0x9'));return!_0xf17b83[a110_0x5704('0xc')](a110_0x107fda);};return _0x34abc4();});a110_0x107fda();'use strict';const tesseract_1=require(a110_0x5704('0x16')),Member_1=require(a110_0x5704('0x1c'));module[a110_0x5704('0x13')]=class LeaderboardCommand extends tesseract_1[a110_0x5704('0x7')]{constructor(){super('leaderboard',{'description':a110_0x5704('0x12'),'triggers':['lb'],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a110_0x5704('0x1')]=async _0x552588=>{const _0x56f6de=await Member_1[a110_0x5704('0x2')][a110_0x5704('0x1e')]({'guild':_0x552588[a110_0x5704('0x1d')]['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1},'limit':0x5});_0x552588[a110_0x5704('0x4')][a110_0x5704('0xa')]({'embed':{'color':tesseract_1[a110_0x5704('0x6')][a110_0x5704('0x1b')][a110_0x5704('0x19')],'author':{'name':_0x552588[a110_0x5704('0x1d')]['name']},'title':'Leaderboard','fields':_0x56f6de['map']((_0x55f10e,_0xe09716)=>[{'name':'#'+(_0xe09716+0x1)+'\x20-\x20'+(this['client'][a110_0x5704('0x18')][a110_0x5704('0xe')]['has'](_0x55f10e[a110_0x5704('0x3')])?this[a110_0x5704('0x8')][a110_0x5704('0x18')]['cache']['get'](_0x55f10e[a110_0x5704('0x3')])[a110_0x5704('0x0')]+a110_0x5704('0x1f'):'')+_0x55f10e[a110_0x5704('0x3')],'value':_0x55f10e[a110_0x5704('0x1a')]+a110_0x5704('0xf')},{'name':a110_0x5704('0x10'),'value':_0x55f10e[a110_0x5704('0xd')],'inline':!![]},{'name':'XP','value':_0x55f10e[a110_0x5704('0x11')],'inline':!![]},{'name':'Karma','value':_0x55f10e[a110_0x5704('0x14')],'inline':!![]}]),'thumbnail':{'url':a110_0x5704('0x15')},'footer':{'text':a110_0x5704('0x17')}}});};}}; \ No newline at end of file +const a110_0x1bdf=['constructor','get','find','default','cache','exec','karma','apply','\x20/\x20','map','Bastion\x20Profiles\x20-\x20Leaderboard','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','https://i.imgur.com/Kzt8Ldk.png','guild','@bastion/tesseract','test','COLORS','It\x20allows\x20you\x20to\x20see\x20the\x20leaderboard\x20of\x20your\x20server.\x20You\x27re\x20ranked\x20based\x20on\x20your\x20level,\x20experience,\x20karma,\x20and\x20Bastion\x20Coins;\x20in\x20that\x20exact\x20order.','leaderboard','has','balance','\x20Bastion\x20Coins','user','\x20-\x20','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Command','level','../../models/Member','experience','send','Leaderboard'];(function(_0x3f0818,_0x1bdf88){const _0x935858=function(_0x56e9b1){while(--_0x56e9b1){_0x3f0818['push'](_0x3f0818['shift']());}},_0x5072d6=function(){const _0x4991db={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2e237c,_0x1babda,_0x1115b8,_0x3acce2){_0x3acce2=_0x3acce2||{};let _0x1a46d4=_0x1babda+'='+_0x1115b8,_0x422e3c=0x0;for(let _0x1900cf=0x0,_0x1bcf53=_0x2e237c['length'];_0x1900cf<_0x1bcf53;_0x1900cf++){const _0x435b1c=_0x2e237c[_0x1900cf];_0x1a46d4+=';\x20'+_0x435b1c;const _0xb71f98=_0x2e237c[_0x435b1c];_0x2e237c['push'](_0xb71f98),_0x1bcf53=_0x2e237c['length'],_0xb71f98!==!![]&&(_0x1a46d4+='='+_0xb71f98);}_0x3acce2['cookie']=_0x1a46d4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x28bdbe,_0x41e1e9){_0x28bdbe=_0x28bdbe||function(_0xc4c557){return _0xc4c557;};const _0x3bfdb=_0x28bdbe(new RegExp('(?:^|;\x20)'+_0x41e1e9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x17c807=function(_0x3047e1,_0x3882ec){_0x3047e1(++_0x3882ec);};return _0x17c807(_0x935858,_0x1bdf88),_0x3bfdb?decodeURIComponent(_0x3bfdb[0x1]):undefined;}},_0x4dc1e3=function(){const _0x3dc915=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3dc915['test'](_0x4991db['removeCookie']['toString']());};_0x4991db['updateCookie']=_0x4dc1e3;let _0x12bdaf='';const _0x33a324=_0x4991db['updateCookie']();if(!_0x33a324)_0x4991db['setCookie'](['*'],'counter',0x1);else _0x33a324?_0x12bdaf=_0x4991db['getCookie'](null,'counter'):_0x4991db['removeCookie']();};_0x5072d6();}(a110_0x1bdf,0x16d));const a110_0x9358=function(_0x3f0818,_0x1bdf88){_0x3f0818=_0x3f0818-0x0;let _0x935858=a110_0x1bdf[_0x3f0818];return _0x935858;};const a110_0x1115b8=function(){let _0x4f19e5=!![];return function(_0x4b3abe,_0x4c9338){const _0x484659=_0x4f19e5?function(){if(_0x4c9338){const _0x4d169c=_0x4c9338[a110_0x9358('0x1a')](_0x4b3abe,arguments);return _0x4c9338=null,_0x4d169c;}}:function(){};return _0x4f19e5=![],_0x484659;};}(),a110_0x1babda=a110_0x1115b8(this,function(){const _0x3df555=function(){const _0x552fbe=_0x3df555[a110_0x9358('0x13')](a110_0x9358('0x1f'))()[a110_0x9358('0x13')](a110_0x9358('0xc'));return!_0x552fbe[a110_0x9358('0x3')](a110_0x1babda);};return _0x3df555();});a110_0x1babda();'use strict';const tesseract_1=require(a110_0x9358('0x2')),Member_1=require(a110_0x9358('0xf'));module[a110_0x9358('0x1e')]=class LeaderboardCommand extends tesseract_1[a110_0x9358('0xd')]{constructor(){super(a110_0x9358('0x6'),{'description':a110_0x9358('0x5'),'triggers':['lb'],'arguments':{},'scope':a110_0x9358('0x1'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a110_0x9358('0x18')]=async _0x459276=>{const _0x13c01f=await Member_1[a110_0x9358('0x16')][a110_0x9358('0x15')]({'guild':_0x459276['guild']['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1},'limit':0x5});_0x459276['channel'][a110_0x9358('0x11')]({'embed':{'color':tesseract_1['Constants'][a110_0x9358('0x4')]['IRIS'],'author':{'name':_0x459276[a110_0x9358('0x1')]['name']},'title':a110_0x9358('0x12'),'fields':_0x13c01f[a110_0x9358('0x1c')]((_0x57a926,_0x553477)=>[{'name':'#'+(_0x553477+0x1)+a110_0x9358('0xb')+(this['client']['users'][a110_0x9358('0x17')][a110_0x9358('0x7')](_0x57a926[a110_0x9358('0xa')])?this['client']['users'][a110_0x9358('0x17')][a110_0x9358('0x14')](_0x57a926[a110_0x9358('0xa')])['tag']+a110_0x9358('0x1b'):'')+_0x57a926[a110_0x9358('0xa')],'value':_0x57a926[a110_0x9358('0x8')]+a110_0x9358('0x9')},{'name':'Level','value':_0x57a926[a110_0x9358('0xe')],'inline':!![]},{'name':'XP','value':_0x57a926[a110_0x9358('0x10')],'inline':!![]},{'name':'Karma','value':_0x57a926[a110_0x9358('0x19')],'inline':!![]}]),'thumbnail':{'url':a110_0x9358('0x0')},'footer':{'text':a110_0x9358('0x1d')}}});};}}; \ No newline at end of file diff --git a/commands/profile/profile.js b/commands/profile/profile.js index dac760434..97ed2d2de 100644 --- a/commands/profile/profile.js +++ b/commands/profile/profile.js @@ -1 +1 @@ -const a111_0x52aa=['currentLevel','channel','balance','It\x20allows\x20you\x20to\x20see\x20your\x20(or\x20any\x20of\x20the\x20server\x20member\x27s)\x20Bastion\x20Profile.','level','language','default','constructor','exec','isPublicBastion','guild','location','fetchBadges','profileNotFound','exports','catch','locale','json','../../utils/badges','length','test','client','badgeValue','karma','errors','\x20/\x20','../../models/User','Command','profile','multiplier','author','countDocuments','computeExperience','../../utils/constants','apply','findById','\x20-\x20','../../utils/progress','DEFAUL_LEVELUP_MULTIPLIER','Constants','join','emoji','About','nextLevel','user','Experience','color','findOne','Karma','resolveGuildMember','experience','author.discord.id','getConstant','getString','Progress\x20-\x20','Rank','memberNotFound','COLORS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','map','gamification','resolveBadges','tag','toDateString','member','Cake\x20Day','backdrop','Bastion\x20Profile','displayAvatarURL','document','Location'];(function(_0x132ae6,_0x52aa72){const _0x145d54=function(_0xfc85e0){while(--_0xfc85e0){_0x132ae6['push'](_0x132ae6['shift']());}},_0x4e1931=function(){const _0x31e940={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5906a2,_0x38c28b,_0xb8858b,_0x547a21){_0x547a21=_0x547a21||{};let _0x101569=_0x38c28b+'='+_0xb8858b,_0x4ab940=0x0;for(let _0x70ff1e=0x0,_0x310780=_0x5906a2['length'];_0x70ff1e<_0x310780;_0x70ff1e++){const _0x594d06=_0x5906a2[_0x70ff1e];_0x101569+=';\x20'+_0x594d06;const _0x39af1b=_0x5906a2[_0x594d06];_0x5906a2['push'](_0x39af1b),_0x310780=_0x5906a2['length'],_0x39af1b!==!![]&&(_0x101569+='='+_0x39af1b);}_0x547a21['cookie']=_0x101569;},'removeCookie':function(){return'dev';},'getCookie':function(_0x48333b,_0x4ddeb0){_0x48333b=_0x48333b||function(_0x3e7563){return _0x3e7563;};const _0x3afe4c=_0x48333b(new RegExp('(?:^|;\x20)'+_0x4ddeb0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x12ff7c=function(_0x536669,_0x3ed8c0){_0x536669(++_0x3ed8c0);};return _0x12ff7c(_0x145d54,_0x52aa72),_0x3afe4c?decodeURIComponent(_0x3afe4c[0x1]):undefined;}},_0x1b7f89=function(){const _0x3766bb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3766bb['test'](_0x31e940['removeCookie']['toString']());};_0x31e940['updateCookie']=_0x1b7f89;let _0x8ab6d='';const _0x5da79a=_0x31e940['updateCookie']();if(!_0x5da79a)_0x31e940['setCookie'](['*'],'counter',0x1);else _0x5da79a?_0x8ab6d=_0x31e940['getCookie'](null,'counter'):_0x31e940['removeCookie']();};_0x4e1931();}(a111_0x52aa,0xb4));const a111_0x145d=function(_0x132ae6,_0x52aa72){_0x132ae6=_0x132ae6-0x0;let _0x145d54=a111_0x52aa[_0x132ae6];return _0x145d54;};const a111_0xb8858b=function(){let _0x5c0b2d=!![];return function(_0x1860c7,_0x1b0d25){const _0x2f7bdf=_0x5c0b2d?function(){if(_0x1b0d25){const _0x14730b=_0x1b0d25[a111_0x145d('0x43')](_0x1860c7,arguments);return _0x1b0d25=null,_0x14730b;}}:function(){};return _0x5c0b2d=![],_0x2f7bdf;};}(),a111_0x38c28b=a111_0xb8858b(this,function(){const _0x2bf14e=function(){const _0xa709f1=_0x2bf14e['constructor'](a111_0x145d('0x14'))()[a111_0x145d('0x28')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xa709f1[a111_0x145d('0x35')](a111_0x38c28b);};return _0x2bf14e();});a111_0x38c28b();'use strict';const tesseract_1=require('@bastion/tesseract'),Member_1=require('../../models/Member'),User_1=require(a111_0x145d('0x3b')),badges=require(a111_0x145d('0x33')),constants=require(a111_0x145d('0x42')),gamification=require('../../utils/gamification'),progress_1=require(a111_0x145d('0x46'));module[a111_0x145d('0x2f')]=class ProfileCommand extends tesseract_1[a111_0x145d('0x3c')]{constructor(){super(a111_0x145d('0x3d'),{'description':a111_0x145d('0x24'),'triggers':[],'arguments':{},'scope':a111_0x145d('0x2b'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a111_0x145d('0x3d'),'profile\x20USER']}),this[a111_0x145d('0x29')]=async(_0x278047,_0xc31b28)=>{const _0xf536b3=_0xc31b28['_'][a111_0x145d('0x34')]?_0xc31b28['_'][0x0]:_0x278047[a111_0x145d('0x3f')]['id'],_0x27a3f5=_0xf536b3===_0x278047[a111_0x145d('0x3f')]['id']?_0x278047[a111_0x145d('0x1a')]:this[a111_0x145d('0x36')]['resolver'][a111_0x145d('0xb')](_0x278047[a111_0x145d('0x2b')],_0xf536b3);if(!_0x27a3f5)throw new Error(this[a111_0x145d('0x36')][a111_0x145d('0x31')][a111_0x145d('0xf')](_0x278047[a111_0x145d('0x2b')][a111_0x145d('0x1f')][a111_0x145d('0x26')],a111_0x145d('0x39'),a111_0x145d('0x12')));const _0x445f29=_0xf536b3===_0x278047['author']['id']?_0x278047[a111_0x145d('0x3f')][a111_0x145d('0x1f')]:await User_1[a111_0x145d('0x27')][a111_0x145d('0x44')](_0xf536b3),_0x392b1c=_0xf536b3===_0x278047[a111_0x145d('0x3f')]['id']?_0x27a3f5['document']:await Member_1['default'][a111_0x145d('0x9')]({'user':_0xf536b3,'guild':_0x278047[a111_0x145d('0x2b')]['id']});if(!_0x445f29||!_0x392b1c)throw new Error(this['client'][a111_0x145d('0x31')][a111_0x145d('0xf')](_0x278047['guild'][a111_0x145d('0x1f')]['language'],a111_0x145d('0x39'),a111_0x145d('0x2e')));const _0x561af2=await Member_1['default']['find']({'guild':_0x278047[a111_0x145d('0x2b')]['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1}})[a111_0x145d('0x40')]({'$or':[{'level':{'$gt':_0x392b1c['level']}},{'level':_0x392b1c[a111_0x145d('0x25')],'experience':{'$gt':_0x392b1c[a111_0x145d('0xc')]}},{'level':_0x392b1c[a111_0x145d('0x25')],'experience':_0x392b1c[a111_0x145d('0xc')],'karma':{'$gt':_0x392b1c[a111_0x145d('0x38')]}},{'level':_0x392b1c['level'],'experience':_0x392b1c[a111_0x145d('0xc')],'karma':_0x392b1c[a111_0x145d('0x38')],'balance':{'$gt':_0x392b1c['balance']}}]}),_0x3d2354={'currentLevel':gamification[a111_0x145d('0x41')](_0x392b1c[a111_0x145d('0x25')],_0x278047[a111_0x145d('0x2b')][a111_0x145d('0x1f')][a111_0x145d('0x16')]?_0x278047[a111_0x145d('0x2b')][a111_0x145d('0x1f')][a111_0x145d('0x16')][a111_0x145d('0x3e')]:gamification[a111_0x145d('0x0')]),'nextLevel':gamification[a111_0x145d('0x41')](_0x392b1c['level']+0x1,_0x278047['guild']['document'][a111_0x145d('0x16')]?_0x278047['guild'][a111_0x145d('0x1f')][a111_0x145d('0x16')][a111_0x145d('0x3e')]:gamification[a111_0x145d('0x0')])},_0x1623f5={'currentLevel':_0x392b1c['experience']-_0x3d2354[a111_0x145d('0x21')],'nextLevel':_0x3d2354['nextLevel']-_0x3d2354[a111_0x145d('0x21')]},_0xfd64ce=_0x1623f5[a111_0x145d('0x21')]/_0x1623f5['nextLevel']*0x64,_0x52631c=constants[a111_0x145d('0x2a')](this[a111_0x145d('0x36')][a111_0x145d('0x6')])&&await badges[a111_0x145d('0x2d')](_0x27a3f5['id'])['then'](_0x77a9de=>_0x77a9de[a111_0x145d('0x32')]())[a111_0x145d('0x30')](()=>{});_0x278047[a111_0x145d('0x22')]['send']({'embed':{'color':_0x445f29[a111_0x145d('0x8')]||tesseract_1[a111_0x145d('0x1')][a111_0x145d('0x13')]['IRIS'],'author':{'name':_0x27a3f5['user'][a111_0x145d('0x18')]},'title':a111_0x145d('0x1d'),'description':(_0x52631c&&a111_0x145d('0x37')in _0x52631c?badges[a111_0x145d('0x17')](_0x52631c[a111_0x145d('0x37')]):[])[a111_0x145d('0x15')](_0x4b5be0=>_0x4b5be0[a111_0x145d('0x3')])[a111_0x145d('0x2')]('\x20'),'fields':[{'name':a111_0x145d('0x4'),'value':_0x445f29['info']||'-'},{'name':a111_0x145d('0x11'),'value':_0x561af2+0x1,'inline':!![]},{'name':'Level','value':_0x392b1c[a111_0x145d('0x25')],'inline':!![]},{'name':a111_0x145d('0x7'),'value':_0x392b1c[a111_0x145d('0xc')],'inline':!![]},{'name':a111_0x145d('0xa'),'value':_0x392b1c['karma'],'inline':!![]},{'name':'Bastion\x20Coins','value':_0x392b1c[a111_0x145d('0x23')],'inline':!![]},{'name':a111_0x145d('0x10')+_0x1623f5[a111_0x145d('0x21')]+a111_0x145d('0x3a')+_0x1623f5[a111_0x145d('0x5')]+a111_0x145d('0x45')+Math['round'](_0xfd64ce)+'%','value':'`'+progress_1[a111_0x145d('0x27')](_0xfd64ce,0x23)+'`'},{'name':a111_0x145d('0x1b'),'value':_0x445f29['cakeDay']?_0x445f29['cakeDay'][a111_0x145d('0x19')]():'-','inline':!![]},{'name':a111_0x145d('0x20'),'value':_0x445f29[a111_0x145d('0x2c')]||'-','inline':!![]}],'thumbnail':{'url':_0x27a3f5['user'][a111_0x145d('0x1e')]({'dynamic':!![],'size':0x200})},'image':{'url':_0x445f29[a111_0x145d('0x1c')]},'footer':{'text':_0x27a3f5['id']===this[a111_0x145d('0x36')][a111_0x145d('0x31')][a111_0x145d('0xe')](a111_0x145d('0xd'))?'Oh,\x20hey!\x20Here\x27s\x20my\x20developer!':''}}})[a111_0x145d('0x30')](()=>{});};}}; \ No newline at end of file +const a111_0xa873=['join','then','resolveGuildMember','multiplier','exec','../../utils/badges','level','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Location','profileNotFound','nextLevel','resolver','isPublicBastion','author.discord.id','user','test','location','badgeValue','../../utils/progress','default','\x20-\x20','COLORS','karma','fetchBadges','countDocuments','errors','Command','Experience','About','cakeDay','DEFAUL_LEVELUP_MULTIPLIER','IRIS','getConstant','guild','map','It\x20allows\x20you\x20to\x20see\x20your\x20(or\x20any\x20of\x20the\x20server\x20member\x27s)\x20Bastion\x20Profile.','catch','Rank','@bastion/tesseract','Cake\x20Day','info','currentLevel','memberNotFound','findOne','json','exports','backdrop','return\x20/\x22\x20+\x20this\x20+\x20\x22/','client','\x20/\x20','gamification','Progress\x20-\x20','language','Bastion\x20Coins','Constants','../../utils/constants','../../models/User','locale','profile','computeExperience','resolveBadges','author','toDateString','balance','Karma','member','experience','Level','document','length','send','../../models/Member','find','displayAvatarURL','Bastion\x20Profile','../../utils/gamification','tag','constructor'];(function(_0x48d2c4,_0xa873b6){const _0x155cc5=function(_0x2a7e5e){while(--_0x2a7e5e){_0x48d2c4['push'](_0x48d2c4['shift']());}},_0x39cf33=function(){const _0x1fca10={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5ee10c,_0x432df2,_0x1231fe,_0x246087){_0x246087=_0x246087||{};let _0x5a5c1c=_0x432df2+'='+_0x1231fe,_0x1a165e=0x0;for(let _0x397d61=0x0,_0x1fd0a3=_0x5ee10c['length'];_0x397d61<_0x1fd0a3;_0x397d61++){const _0x12eed6=_0x5ee10c[_0x397d61];_0x5a5c1c+=';\x20'+_0x12eed6;const _0xd25608=_0x5ee10c[_0x12eed6];_0x5ee10c['push'](_0xd25608),_0x1fd0a3=_0x5ee10c['length'],_0xd25608!==!![]&&(_0x5a5c1c+='='+_0xd25608);}_0x246087['cookie']=_0x5a5c1c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x8dca3a,_0xd73490){_0x8dca3a=_0x8dca3a||function(_0x212984){return _0x212984;};const _0x3078d5=_0x8dca3a(new RegExp('(?:^|;\x20)'+_0xd73490['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xb33f84=function(_0x262d96,_0x38670c){_0x262d96(++_0x38670c);};return _0xb33f84(_0x155cc5,_0xa873b6),_0x3078d5?decodeURIComponent(_0x3078d5[0x1]):undefined;}},_0x11e775=function(){const _0x292ee9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x292ee9['test'](_0x1fca10['removeCookie']['toString']());};_0x1fca10['updateCookie']=_0x11e775;let _0x582a6c='';const _0x3cc2ed=_0x1fca10['updateCookie']();if(!_0x3cc2ed)_0x1fca10['setCookie'](['*'],'counter',0x1);else _0x3cc2ed?_0x582a6c=_0x1fca10['getCookie'](null,'counter'):_0x1fca10['removeCookie']();};_0x39cf33();}(a111_0xa873,0x196));const a111_0x155c=function(_0x48d2c4,_0xa873b6){_0x48d2c4=_0x48d2c4-0x0;let _0x155cc5=a111_0xa873[_0x48d2c4];return _0x155cc5;};const a111_0x1231fe=function(){let _0x11ba7d=!![];return function(_0x57c94d,_0x49b81b){const _0x4aaba7=_0x11ba7d?function(){if(_0x49b81b){const _0x5436e2=_0x49b81b['apply'](_0x57c94d,arguments);return _0x49b81b=null,_0x5436e2;}}:function(){};return _0x11ba7d=![],_0x4aaba7;};}(),a111_0x432df2=a111_0x1231fe(this,function(){const _0x2462dc=function(){const _0x168536=_0x2462dc[a111_0x155c('0x3d')](a111_0x155c('0x1f'))()[a111_0x155c('0x3d')](a111_0x155c('0x45'));return!_0x168536[a111_0x155c('0x4d')](a111_0x432df2);};return _0x2462dc();});a111_0x432df2();'use strict';const tesseract_1=require(a111_0x155c('0x16')),Member_1=require(a111_0x155c('0x37')),User_1=require(a111_0x155c('0x28')),badges=require(a111_0x155c('0x43')),constants=require(a111_0x155c('0x27')),gamification=require(a111_0x155c('0x3b')),progress_1=require(a111_0x155c('0x2'));module[a111_0x155c('0x1d')]=class ProfileCommand extends tesseract_1[a111_0x155c('0xa')]{constructor(){super(a111_0x155c('0x2a'),{'description':a111_0x155c('0x13'),'triggers':[],'arguments':{},'scope':a111_0x155c('0x11'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a111_0x155c('0x2a'),'profile\x20USER']}),this[a111_0x155c('0x42')]=async(_0x201cb7,_0x4668b1)=>{const _0x1c330e=_0x4668b1['_'][a111_0x155c('0x35')]?_0x4668b1['_'][0x0]:_0x201cb7['author']['id'],_0x552655=_0x1c330e===_0x201cb7[a111_0x155c('0x2d')]['id']?_0x201cb7[a111_0x155c('0x31')]:this[a111_0x155c('0x20')][a111_0x155c('0x49')][a111_0x155c('0x40')](_0x201cb7[a111_0x155c('0x11')],_0x1c330e);if(!_0x552655)throw new Error(this[a111_0x155c('0x20')][a111_0x155c('0x29')]['getString'](_0x201cb7[a111_0x155c('0x11')][a111_0x155c('0x34')]['language'],a111_0x155c('0x9'),a111_0x155c('0x1a')));const _0x4d0f99=_0x1c330e===_0x201cb7['author']['id']?_0x201cb7[a111_0x155c('0x2d')][a111_0x155c('0x34')]:await User_1[a111_0x155c('0x3')]['findById'](_0x1c330e),_0x2985bd=_0x1c330e===_0x201cb7[a111_0x155c('0x2d')]['id']?_0x552655['document']:await Member_1[a111_0x155c('0x3')][a111_0x155c('0x1b')]({'user':_0x1c330e,'guild':_0x201cb7[a111_0x155c('0x11')]['id']});if(!_0x4d0f99||!_0x2985bd)throw new Error(this['client'][a111_0x155c('0x29')]['getString'](_0x201cb7[a111_0x155c('0x11')][a111_0x155c('0x34')][a111_0x155c('0x24')],'errors',a111_0x155c('0x47'),_0x552655[a111_0x155c('0x4c')][a111_0x155c('0x3c')]));const _0x192fa5=await Member_1['default'][a111_0x155c('0x38')]({'guild':_0x201cb7[a111_0x155c('0x11')]['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1}})[a111_0x155c('0x8')]({'$or':[{'level':{'$gt':_0x2985bd[a111_0x155c('0x44')]}},{'level':_0x2985bd[a111_0x155c('0x44')],'experience':{'$gt':_0x2985bd[a111_0x155c('0x32')]}},{'level':_0x2985bd[a111_0x155c('0x44')],'experience':_0x2985bd['experience'],'karma':{'$gt':_0x2985bd[a111_0x155c('0x6')]}},{'level':_0x2985bd[a111_0x155c('0x44')],'experience':_0x2985bd[a111_0x155c('0x32')],'karma':_0x2985bd[a111_0x155c('0x6')],'balance':{'$gt':_0x2985bd[a111_0x155c('0x2f')]}}]}),_0x2b49fc={'currentLevel':gamification[a111_0x155c('0x2b')](_0x2985bd[a111_0x155c('0x44')],_0x201cb7[a111_0x155c('0x11')][a111_0x155c('0x34')][a111_0x155c('0x22')]?_0x201cb7[a111_0x155c('0x11')][a111_0x155c('0x34')][a111_0x155c('0x22')][a111_0x155c('0x41')]:gamification['DEFAUL_LEVELUP_MULTIPLIER']),'nextLevel':gamification['computeExperience'](_0x2985bd['level']+0x1,_0x201cb7['guild'][a111_0x155c('0x34')][a111_0x155c('0x22')]?_0x201cb7[a111_0x155c('0x11')]['document']['gamification'][a111_0x155c('0x41')]:gamification[a111_0x155c('0xe')])},_0x2b9819={'currentLevel':_0x2985bd['experience']-_0x2b49fc[a111_0x155c('0x19')],'nextLevel':_0x2b49fc[a111_0x155c('0x48')]-_0x2b49fc['currentLevel']},_0x372b00=_0x2b9819[a111_0x155c('0x19')]/_0x2b9819[a111_0x155c('0x48')]*0x64,_0x2ea174=constants[a111_0x155c('0x4a')](this[a111_0x155c('0x20')]['user'])&&await badges[a111_0x155c('0x7')](_0x552655['id'])[a111_0x155c('0x3f')](_0x3b19aa=>_0x3b19aa[a111_0x155c('0x1c')]())[a111_0x155c('0x14')](()=>{});_0x201cb7['channel'][a111_0x155c('0x36')]({'embed':{'color':_0x4d0f99['color']||tesseract_1[a111_0x155c('0x26')][a111_0x155c('0x5')][a111_0x155c('0xf')],'author':{'name':_0x552655[a111_0x155c('0x4c')]['tag']},'title':a111_0x155c('0x3a'),'description':(_0x2ea174&&a111_0x155c('0x1')in _0x2ea174?badges[a111_0x155c('0x2c')](_0x2ea174[a111_0x155c('0x1')]):[])[a111_0x155c('0x12')](_0x206132=>_0x206132['emoji'])[a111_0x155c('0x3e')]('\x20'),'fields':[{'name':a111_0x155c('0xc'),'value':_0x4d0f99[a111_0x155c('0x18')]||'-'},{'name':a111_0x155c('0x15'),'value':_0x192fa5+0x1,'inline':!![]},{'name':a111_0x155c('0x33'),'value':_0x2985bd['level'],'inline':!![]},{'name':a111_0x155c('0xb'),'value':_0x2985bd[a111_0x155c('0x32')],'inline':!![]},{'name':a111_0x155c('0x30'),'value':_0x2985bd['karma'],'inline':!![]},{'name':a111_0x155c('0x25'),'value':_0x2985bd['balance'],'inline':!![]},{'name':a111_0x155c('0x23')+_0x2b9819[a111_0x155c('0x19')]+a111_0x155c('0x21')+_0x2b9819[a111_0x155c('0x48')]+a111_0x155c('0x4')+Math['round'](_0x372b00)+'%','value':'`'+progress_1['default'](_0x372b00,0x23)+'`'},{'name':a111_0x155c('0x17'),'value':_0x4d0f99[a111_0x155c('0xd')]?_0x4d0f99[a111_0x155c('0xd')][a111_0x155c('0x2e')]():'-','inline':!![]},{'name':a111_0x155c('0x46'),'value':_0x4d0f99[a111_0x155c('0x0')]||'-','inline':!![]}],'thumbnail':{'url':_0x552655[a111_0x155c('0x4c')][a111_0x155c('0x39')]({'dynamic':!![],'size':0x200})},'image':{'url':_0x4d0f99[a111_0x155c('0x1e')]},'footer':{'text':_0x552655['id']===this[a111_0x155c('0x20')]['locale'][a111_0x155c('0x10')](a111_0x155c('0x4b'))?'Oh,\x20hey!\x20Here\x27s\x20my\x20developer!':''}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/profile/rank.js b/commands/profile/rank.js index 9b9bb3dd0..8b231b1b3 100644 --- a/commands/profile/rank.js +++ b/commands/profile/rank.js @@ -1 +1 @@ -const a112_0x2c1b=['document','Rank\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','catch','tag','displayAvatarURL','apply','../../models/Member','Command','experience','@bastion/tesseract','Constants','guild','constructor','findById','language','Experience','countDocuments','getString','../../models/User','memberNotFound','client','author','length','Level','locale','channel','karma','checkProfile','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','color','resolver','COLORS','It\x20allows\x20you\x20to\x20see\x20your\x20(or\x20any\x20of\x20the\x20server\x20member\x27s)\x20rank,\x20level,\x20experience,\x20and\x20karma.','level','send','rank','user','exec','find','default','errors'];(function(_0x172ebd,_0x2c1b1c){const _0x30b600=function(_0x560855){while(--_0x560855){_0x172ebd['push'](_0x172ebd['shift']());}},_0x234d6c=function(){const _0x5c7a54={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x57ee4f,_0x46ff3c,_0x5ef67a,_0x28453e){_0x28453e=_0x28453e||{};let _0x4729aa=_0x46ff3c+'='+_0x5ef67a,_0x583b9d=0x0;for(let _0x2e89f1=0x0,_0x3a7f37=_0x57ee4f['length'];_0x2e89f1<_0x3a7f37;_0x2e89f1++){const _0x133297=_0x57ee4f[_0x2e89f1];_0x4729aa+=';\x20'+_0x133297;const _0x496675=_0x57ee4f[_0x133297];_0x57ee4f['push'](_0x496675),_0x3a7f37=_0x57ee4f['length'],_0x496675!==!![]&&(_0x4729aa+='='+_0x496675);}_0x28453e['cookie']=_0x4729aa;},'removeCookie':function(){return'dev';},'getCookie':function(_0x11aed7,_0x29eb8a){_0x11aed7=_0x11aed7||function(_0x351857){return _0x351857;};const _0x12c611=_0x11aed7(new RegExp('(?:^|;\x20)'+_0x29eb8a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xf0b2c3=function(_0x457abc,_0x3da10c){_0x457abc(++_0x3da10c);};return _0xf0b2c3(_0x30b600,_0x2c1b1c),_0x12c611?decodeURIComponent(_0x12c611[0x1]):undefined;}},_0x3591b6=function(){const _0x415695=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x415695['test'](_0x5c7a54['removeCookie']['toString']());};_0x5c7a54['updateCookie']=_0x3591b6;let _0x106a12='';const _0x340842=_0x5c7a54['updateCookie']();if(!_0x340842)_0x5c7a54['setCookie'](['*'],'counter',0x1);else _0x340842?_0x106a12=_0x5c7a54['getCookie'](null,'counter'):_0x5c7a54['removeCookie']();};_0x234d6c();}(a112_0x2c1b,0xc5));const a112_0x30b6=function(_0x172ebd,_0x2c1b1c){_0x172ebd=_0x172ebd-0x0;let _0x30b600=a112_0x2c1b[_0x172ebd];return _0x30b600;};const a112_0x5ef67a=function(){let _0x3edcaf=!![];return function(_0x2a0ffd,_0x246c51){const _0x2d26ad=_0x3edcaf?function(){if(_0x246c51){const _0x26bfcb=_0x246c51[a112_0x30b6('0x19')](_0x2a0ffd,arguments);return _0x246c51=null,_0x26bfcb;}}:function(){};return _0x3edcaf=![],_0x2d26ad;};}(),a112_0x46ff3c=a112_0x5ef67a(this,function(){const _0x8f39c0=function(){const _0x3ab853=_0x8f39c0['constructor'](a112_0x30b6('0x14'))()[a112_0x30b6('0x20')](a112_0x30b6('0x5'));return!_0x3ab853['test'](a112_0x46ff3c);};return _0x8f39c0();});a112_0x46ff3c();'use strict';const tesseract_1=require(a112_0x30b6('0x1d')),Member_1=require(a112_0x30b6('0x1a')),User_1=require(a112_0x30b6('0x26'));module[a112_0x30b6('0x15')]=class RankCommand extends tesseract_1[a112_0x30b6('0x1b')]{constructor(){super(a112_0x30b6('0xc'),{'description':a112_0x30b6('0x9'),'triggers':[a112_0x30b6('0xa'),'xp'],'arguments':{},'scope':a112_0x30b6('0x1f'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a112_0x30b6('0xc'),'rank\x20USER']}),this[a112_0x30b6('0xe')]=async(_0x1f2edc,_0x11df40)=>{const _0x30f152=_0x11df40['_'][a112_0x30b6('0x2a')]?_0x11df40['_'][0x0]:_0x1f2edc['author']['id'],_0x155149=_0x30f152===_0x1f2edc[a112_0x30b6('0x29')]['id']?_0x1f2edc['member']:this[a112_0x30b6('0x28')][a112_0x30b6('0x7')]['resolveGuildMember'](_0x1f2edc[a112_0x30b6('0x1f')],_0x30f152);if(!_0x155149)throw new Error(this['client']['locale'][a112_0x30b6('0x25')](_0x1f2edc[a112_0x30b6('0x1f')][a112_0x30b6('0x12')][a112_0x30b6('0x22')],a112_0x30b6('0x11'),a112_0x30b6('0x27')));const _0x1893ab=_0x30f152===_0x1f2edc[a112_0x30b6('0x29')]['id']?_0x1f2edc['author'][a112_0x30b6('0x12')]:await User_1['default'][a112_0x30b6('0x21')](_0x30f152),_0x4453dc=_0x30f152===_0x1f2edc[a112_0x30b6('0x29')]['id']?_0x155149[a112_0x30b6('0x12')]:await Member_1['default']['findOne']({'user':_0x30f152,'guild':_0x1f2edc[a112_0x30b6('0x1f')]['id']});if(!_0x1893ab||!_0x4453dc)throw new Error(this[a112_0x30b6('0x28')][a112_0x30b6('0x1')]['getString'](_0x1f2edc[a112_0x30b6('0x1f')]['document'][a112_0x30b6('0x22')],a112_0x30b6('0x11'),'profileNotFound'));const _0x5458d0=await Member_1[a112_0x30b6('0x10')][a112_0x30b6('0xf')]({'guild':_0x1f2edc[a112_0x30b6('0x1f')]['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1}})[a112_0x30b6('0x24')]({'$or':[{'level':{'$gt':_0x4453dc[a112_0x30b6('0xa')]}},{'level':_0x4453dc[a112_0x30b6('0xa')],'experience':{'$gt':_0x4453dc[a112_0x30b6('0x1c')]}},{'level':_0x4453dc['level'],'experience':_0x4453dc[a112_0x30b6('0x1c')],'karma':{'$gt':_0x4453dc[a112_0x30b6('0x3')]}},{'level':_0x4453dc[a112_0x30b6('0xa')],'experience':_0x4453dc[a112_0x30b6('0x1c')],'karma':_0x4453dc['karma'],'balance':{'$gt':_0x4453dc['balance']}}]});await _0x1f2edc[a112_0x30b6('0x2')][a112_0x30b6('0xb')]({'embed':{'color':_0x1893ab[a112_0x30b6('0x6')]||tesseract_1[a112_0x30b6('0x1e')][a112_0x30b6('0x8')]['IRIS'],'author':{'name':_0x155149['user'][a112_0x30b6('0x17')]},'title':a112_0x30b6('0x13')+(_0x5458d0+0x1),'description':this[a112_0x30b6('0x28')][a112_0x30b6('0x1')][a112_0x30b6('0x25')](_0x1f2edc[a112_0x30b6('0x1f')][a112_0x30b6('0x12')][a112_0x30b6('0x22')],'info',a112_0x30b6('0x4')),'fields':[{'name':a112_0x30b6('0x0'),'value':_0x4453dc[a112_0x30b6('0xa')],'inline':!![]},{'name':a112_0x30b6('0x23'),'value':_0x4453dc[a112_0x30b6('0x1c')],'inline':!![]},{'name':'Karma','value':_0x4453dc['karma'],'inline':!![]}],'thumbnail':{'url':_0x155149[a112_0x30b6('0xd')][a112_0x30b6('0x18')]({'dynamic':!![],'size':0x200})}}})[a112_0x30b6('0x16')](()=>{});};}}; \ No newline at end of file +const a112_0x329a=['experience','guild','IRIS','channel','profileNotFound','exec','constructor','COLORS','findOne','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','color','tag','Constants','findById','exports','resolver','info','resolveGuildMember','client','../../models/Member','default','locale','displayAvatarURL','catch','user','member','Command','author','Experience','level','Rank\x20','getString','It\x20allows\x20you\x20to\x20see\x20your\x20(or\x20any\x20of\x20the\x20server\x20member\x27s)\x20rank,\x20level,\x20experience,\x20and\x20karma.','@bastion/tesseract','errors','language','rank','memberNotFound','rank\x20USER','karma','countDocuments','../../models/User','apply','Karma','return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','send'];(function(_0xb69d63,_0x329a66){const _0x2a1d69=function(_0x55fd49){while(--_0x55fd49){_0xb69d63['push'](_0xb69d63['shift']());}},_0x3170c4=function(){const _0x260dd0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1bae71,_0x18f3d6,_0x495033,_0x4a55ba){_0x4a55ba=_0x4a55ba||{};let _0x44c37e=_0x18f3d6+'='+_0x495033,_0x34606=0x0;for(let _0x43597f=0x0,_0x6ce2a8=_0x1bae71['length'];_0x43597f<_0x6ce2a8;_0x43597f++){const _0x34203d=_0x1bae71[_0x43597f];_0x44c37e+=';\x20'+_0x34203d;const _0x338a61=_0x1bae71[_0x34203d];_0x1bae71['push'](_0x338a61),_0x6ce2a8=_0x1bae71['length'],_0x338a61!==!![]&&(_0x44c37e+='='+_0x338a61);}_0x4a55ba['cookie']=_0x44c37e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x353401,_0x34ae40){_0x353401=_0x353401||function(_0x197f6e){return _0x197f6e;};const _0xd92a32=_0x353401(new RegExp('(?:^|;\x20)'+_0x34ae40['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x38e850=function(_0x3560c2,_0x7f09c2){_0x3560c2(++_0x7f09c2);};return _0x38e850(_0x2a1d69,_0x329a66),_0xd92a32?decodeURIComponent(_0xd92a32[0x1]):undefined;}},_0x344274=function(){const _0x289453=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x289453['test'](_0x260dd0['removeCookie']['toString']());};_0x260dd0['updateCookie']=_0x344274;let _0x36cf86='';const _0x586156=_0x260dd0['updateCookie']();if(!_0x586156)_0x260dd0['setCookie'](['*'],'counter',0x1);else _0x586156?_0x36cf86=_0x260dd0['getCookie'](null,'counter'):_0x260dd0['removeCookie']();};_0x3170c4();}(a112_0x329a,0x93));const a112_0x2a1d=function(_0xb69d63,_0x329a66){_0xb69d63=_0xb69d63-0x0;let _0x2a1d69=a112_0x329a[_0xb69d63];return _0x2a1d69;};const a112_0x495033=function(){let _0x511e52=!![];return function(_0x245e60,_0x333450){const _0x71a1bf=_0x511e52?function(){if(_0x333450){const _0x1d0718=_0x333450[a112_0x2a1d('0x28')](_0x245e60,arguments);return _0x333450=null,_0x1d0718;}}:function(){};return _0x511e52=![],_0x71a1bf;};}(),a112_0x18f3d6=a112_0x495033(this,function(){const _0x45e392=function(){const _0x1cb7e7=_0x45e392[a112_0x2a1d('0x3')](a112_0x2a1d('0x2a'))()[a112_0x2a1d('0x3')](a112_0x2a1d('0x6'));return!_0x1cb7e7[a112_0x2a1d('0x7')](a112_0x18f3d6);};return _0x45e392();});a112_0x18f3d6();'use strict';const tesseract_1=require(a112_0x2a1d('0x1f')),Member_1=require(a112_0x2a1d('0x11')),User_1=require(a112_0x2a1d('0x27'));module[a112_0x2a1d('0xc')]=class RankCommand extends tesseract_1[a112_0x2a1d('0x18')]{constructor(){super(a112_0x2a1d('0x22'),{'description':a112_0x2a1d('0x1e'),'triggers':[a112_0x2a1d('0x1b'),'xp'],'arguments':{},'scope':a112_0x2a1d('0x2e'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a112_0x2a1d('0x22'),a112_0x2a1d('0x24')]}),this[a112_0x2a1d('0x2')]=async(_0x463c0f,_0xc1d8bf)=>{const _0xd5a4aa=_0xc1d8bf['_']['length']?_0xc1d8bf['_'][0x0]:_0x463c0f['author']['id'],_0x73166f=_0xd5a4aa===_0x463c0f[a112_0x2a1d('0x19')]['id']?_0x463c0f[a112_0x2a1d('0x17')]:this[a112_0x2a1d('0x10')][a112_0x2a1d('0xd')][a112_0x2a1d('0xf')](_0x463c0f['guild'],_0xd5a4aa);if(!_0x73166f)throw new Error(this['client']['locale'][a112_0x2a1d('0x1d')](_0x463c0f[a112_0x2a1d('0x2e')][a112_0x2a1d('0x2b')]['language'],a112_0x2a1d('0x20'),a112_0x2a1d('0x23')));const _0x34c057=_0xd5a4aa===_0x463c0f[a112_0x2a1d('0x19')]['id']?_0x463c0f[a112_0x2a1d('0x19')][a112_0x2a1d('0x2b')]:await User_1[a112_0x2a1d('0x12')][a112_0x2a1d('0xb')](_0xd5a4aa),_0x32b5bb=_0xd5a4aa===_0x463c0f[a112_0x2a1d('0x19')]['id']?_0x73166f[a112_0x2a1d('0x2b')]:await Member_1[a112_0x2a1d('0x12')][a112_0x2a1d('0x5')]({'user':_0xd5a4aa,'guild':_0x463c0f[a112_0x2a1d('0x2e')]['id']});if(!_0x34c057||!_0x32b5bb)throw new Error(this['client'][a112_0x2a1d('0x13')]['getString'](_0x463c0f[a112_0x2a1d('0x2e')][a112_0x2a1d('0x2b')][a112_0x2a1d('0x21')],a112_0x2a1d('0x20'),a112_0x2a1d('0x1'),_0x73166f[a112_0x2a1d('0x16')][a112_0x2a1d('0x9')]));const _0x7404e2=await Member_1[a112_0x2a1d('0x12')]['find']({'guild':_0x463c0f[a112_0x2a1d('0x2e')]['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1}})[a112_0x2a1d('0x26')]({'$or':[{'level':{'$gt':_0x32b5bb[a112_0x2a1d('0x1b')]}},{'level':_0x32b5bb[a112_0x2a1d('0x1b')],'experience':{'$gt':_0x32b5bb['experience']}},{'level':_0x32b5bb[a112_0x2a1d('0x1b')],'experience':_0x32b5bb[a112_0x2a1d('0x2d')],'karma':{'$gt':_0x32b5bb[a112_0x2a1d('0x25')]}},{'level':_0x32b5bb[a112_0x2a1d('0x1b')],'experience':_0x32b5bb[a112_0x2a1d('0x2d')],'karma':_0x32b5bb[a112_0x2a1d('0x25')],'balance':{'$gt':_0x32b5bb['balance']}}]});await _0x463c0f[a112_0x2a1d('0x0')][a112_0x2a1d('0x2c')]({'embed':{'color':_0x34c057[a112_0x2a1d('0x8')]||tesseract_1[a112_0x2a1d('0xa')][a112_0x2a1d('0x4')][a112_0x2a1d('0x2f')],'author':{'name':_0x73166f[a112_0x2a1d('0x16')][a112_0x2a1d('0x9')]},'title':a112_0x2a1d('0x1c')+(_0x7404e2+0x1),'description':this['client']['locale'][a112_0x2a1d('0x1d')](_0x463c0f[a112_0x2a1d('0x2e')][a112_0x2a1d('0x2b')][a112_0x2a1d('0x21')],a112_0x2a1d('0xe'),'checkProfile'),'fields':[{'name':'Level','value':_0x32b5bb[a112_0x2a1d('0x1b')],'inline':!![]},{'name':a112_0x2a1d('0x1a'),'value':_0x32b5bb[a112_0x2a1d('0x2d')],'inline':!![]},{'name':a112_0x2a1d('0x29'),'value':_0x32b5bb[a112_0x2a1d('0x25')],'inline':!![]}],'thumbnail':{'url':_0x73166f[a112_0x2a1d('0x16')][a112_0x2a1d('0x14')]({'dynamic':!![],'size':0x200})}}})[a112_0x2a1d('0x15')](()=>{});};}}; \ No newline at end of file diff --git a/commands/searches/anime.js b/commands/searches/anime.js index 4e2184d8f..ff1cfeffc 100644 --- a/commands/searches/anime.js +++ b/commands/searches/anime.js @@ -1 +1 @@ -const a113_0x2f36=['COLORS','Rating','slug','join','/kitsu/anime/','data','exports','posterImage','Powered\x20by\x20Kitsu','return\x20/\x22\x20+\x20this\x20+\x20\x22/','sanitize','anime','Finished','channel','constructor','length','DiscordError','apply','endDate','Command','https://kitsu.io/anime/','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20anime.','attributes','BASTION_ERROR_TYPE','original','json','send','Anime','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','startDate','\x20-\x20','\x20-\x20Present','anime\x20TITLE','Aired','ageRating','test','name','ageRatingGuide','Airing','INVALID_COMMAND_SYNTAX','Status'];(function(_0x5bf380,_0x2f3618){const _0x52dac0=function(_0x9874a0){while(--_0x9874a0){_0x5bf380['push'](_0x5bf380['shift']());}},_0x56de92=function(){const _0x59966f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x135fae,_0x198810,_0x40730f,_0x445c72){_0x445c72=_0x445c72||{};let _0xbdf036=_0x198810+'='+_0x40730f,_0x2234d1=0x0;for(let _0xe50130=0x0,_0x2527a1=_0x135fae['length'];_0xe50130<_0x2527a1;_0xe50130++){const _0x4252e3=_0x135fae[_0xe50130];_0xbdf036+=';\x20'+_0x4252e3;const _0x1ee8f3=_0x135fae[_0x4252e3];_0x135fae['push'](_0x1ee8f3),_0x2527a1=_0x135fae['length'],_0x1ee8f3!==!![]&&(_0xbdf036+='='+_0x1ee8f3);}_0x445c72['cookie']=_0xbdf036;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ca3b9,_0x58a3b8){_0x4ca3b9=_0x4ca3b9||function(_0x203a76){return _0x203a76;};const _0x56bf45=_0x4ca3b9(new RegExp('(?:^|;\x20)'+_0x58a3b8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x18265e=function(_0xaead5e,_0x59d161){_0xaead5e(++_0x59d161);};return _0x18265e(_0x52dac0,_0x2f3618),_0x56bf45?decodeURIComponent(_0x56bf45[0x1]):undefined;}},_0x3f4e7a=function(){const _0x5b7c2d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b7c2d['test'](_0x59966f['removeCookie']['toString']());};_0x59966f['updateCookie']=_0x3f4e7a;let _0x284178='';const _0x435efa=_0x59966f['updateCookie']();if(!_0x435efa)_0x59966f['setCookie'](['*'],'counter',0x1);else _0x435efa?_0x284178=_0x59966f['getCookie'](null,'counter'):_0x59966f['removeCookie']();};_0x56de92();}(a113_0x2f36,0x1e6));const a113_0x52da=function(_0x5bf380,_0x2f3618){_0x5bf380=_0x5bf380-0x0;let _0x52dac0=a113_0x2f36[_0x5bf380];return _0x52dac0;};const a113_0x40730f=function(){let _0x1da6c5=!![];return function(_0x16e95f,_0x304c9a){const _0x1b8a4e=_0x1da6c5?function(){if(_0x304c9a){const _0x182029=_0x304c9a[a113_0x52da('0x17')](_0x16e95f,arguments);return _0x304c9a=null,_0x182029;}}:function(){};return _0x1da6c5=![],_0x1b8a4e;};}(),a113_0x198810=a113_0x40730f(this,function(){const _0x4ba922=function(){const _0x27e623=_0x4ba922[a113_0x52da('0x14')](a113_0x52da('0xf'))()[a113_0x52da('0x14')](a113_0x52da('0x22'));return!_0x27e623[a113_0x52da('0x0')](a113_0x198810);};return _0x4ba922();});a113_0x198810();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require('../../utils/errors'),omnic=require('../../utils/omnic');module[a113_0x52da('0xc')]=class AnimeCommand extends tesseract_1[a113_0x52da('0x19')]{constructor(){super(a113_0x52da('0x11'),{'description':a113_0x52da('0x1b'),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a113_0x52da('0x26')]}),this[a113_0x52da('0x10')]=_0x166f0a=>{return _0x166f0a[a113_0x52da('0x15')]>0x7d0?_0x166f0a['slice'](0x0,0x7d0)+'\x0a...':_0x166f0a;},this['exec']=async(_0x148df3,_0x57a64)=>{if(!_0x57a64['_'][a113_0x52da('0x15')])throw new errors[(a113_0x52da('0x16'))](errors[a113_0x52da('0x1d')][a113_0x52da('0x4')],this[a113_0x52da('0x1')]);const _0x440f1e=_0x57a64['_'][a113_0x52da('0x9')]('\x20'),_0x9fdb6f=await omnic['makeRequest'](a113_0x52da('0xa')+encodeURIComponent(_0x440f1e)),_0x1d9c33=await _0x9fdb6f[a113_0x52da('0x1f')]();if(!_0x1d9c33||!_0x1d9c33[a113_0x52da('0xb')]||!_0x1d9c33[a113_0x52da('0xb')][a113_0x52da('0x15')])throw new Error('NOT_FOUND');await _0x148df3[a113_0x52da('0x13')][a113_0x52da('0x20')]({'embed':{'color':tesseract_1['Constants'][a113_0x52da('0x6')]['IRIS'],'author':{'name':a113_0x52da('0x21')},'title':Object['values'](_0x1d9c33['data'][0x0][a113_0x52da('0x1c')]['titles'])[0x0],'url':a113_0x52da('0x1a')+_0x1d9c33[a113_0x52da('0xb')][0x0]['attributes'][a113_0x52da('0x8')],'description':this['sanitize'](_0x1d9c33[a113_0x52da('0xb')][0x0][a113_0x52da('0x1c')]['synopsis']),'fields':[{'name':a113_0x52da('0x5'),'value':_0x1d9c33['data'][0x0]['attributes'][a113_0x52da('0x18')]?a113_0x52da('0x12'):a113_0x52da('0x3'),'inline':!![]},{'name':a113_0x52da('0x27'),'value':_0x1d9c33[a113_0x52da('0xb')][0x0]['attributes'][a113_0x52da('0x18')]?_0x1d9c33[a113_0x52da('0xb')][0x0][a113_0x52da('0x1c')]['startDate']+a113_0x52da('0x24')+_0x1d9c33[a113_0x52da('0xb')][0x0]['attributes'][a113_0x52da('0x18')]:_0x1d9c33[a113_0x52da('0xb')][0x0][a113_0x52da('0x1c')][a113_0x52da('0x23')]+a113_0x52da('0x25'),'inline':!![]},{'name':a113_0x52da('0x7'),'value':_0x1d9c33['data'][0x0][a113_0x52da('0x1c')][a113_0x52da('0x28')]+'\x20-\x20'+_0x1d9c33[a113_0x52da('0xb')][0x0][a113_0x52da('0x1c')][a113_0x52da('0x2')]+'\x20'+(_0x1d9c33[a113_0x52da('0xb')][0x0][a113_0x52da('0x1c')]['nsfw']?'[NSFW]':''),'inline':!![]}],'image':{'url':_0x1d9c33[a113_0x52da('0xb')][0x0][a113_0x52da('0x1c')][a113_0x52da('0xd')][a113_0x52da('0x1e')]},'footer':{'text':a113_0x52da('0xe')}}});};}}; \ No newline at end of file +const a113_0x3589=['\x20-\x20Present','startDate','NOT_FOUND','apply','\x0a...','../../utils/errors','@bastion/tesseract','makeRequest','data','json','\x20-\x20','attributes','Rating','endDate','name','synopsis','original','Airing','Anime','length','Finished','anime\x20TITLE','Aired','INVALID_COMMAND_SYNTAX','sanitize','slice','send','ageRatingGuide','constructor','DiscordError','../../utils/omnic','BASTION_ERROR_TYPE','Powered\x20by\x20Kitsu','/kitsu/anime/','ageRating','values','join','Constants','[NSFW]','exports','Status'];(function(_0x3b703f,_0x358967){const _0x49f23e=function(_0x250b0d){while(--_0x250b0d){_0x3b703f['push'](_0x3b703f['shift']());}},_0x3e9743=function(){const _0x61fd55={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x46dd66,_0x39c018,_0x1e91ad,_0x8541ed){_0x8541ed=_0x8541ed||{};let _0x37a465=_0x39c018+'='+_0x1e91ad,_0x3c7d08=0x0;for(let _0x5e236d=0x0,_0x468a21=_0x46dd66['length'];_0x5e236d<_0x468a21;_0x5e236d++){const _0x5700ff=_0x46dd66[_0x5e236d];_0x37a465+=';\x20'+_0x5700ff;const _0x54cd11=_0x46dd66[_0x5700ff];_0x46dd66['push'](_0x54cd11),_0x468a21=_0x46dd66['length'],_0x54cd11!==!![]&&(_0x37a465+='='+_0x54cd11);}_0x8541ed['cookie']=_0x37a465;},'removeCookie':function(){return'dev';},'getCookie':function(_0x34ea65,_0x8477d3){_0x34ea65=_0x34ea65||function(_0x5eb024){return _0x5eb024;};const _0x34877e=_0x34ea65(new RegExp('(?:^|;\x20)'+_0x8477d3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x205735=function(_0x4d4272,_0x5374af){_0x4d4272(++_0x5374af);};return _0x205735(_0x49f23e,_0x358967),_0x34877e?decodeURIComponent(_0x34877e[0x1]):undefined;}},_0x161400=function(){const _0x5eb536=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5eb536['test'](_0x61fd55['removeCookie']['toString']());};_0x61fd55['updateCookie']=_0x161400;let _0x2c1e6c='';const _0x589e43=_0x61fd55['updateCookie']();if(!_0x589e43)_0x61fd55['setCookie'](['*'],'counter',0x1);else _0x589e43?_0x2c1e6c=_0x61fd55['getCookie'](null,'counter'):_0x61fd55['removeCookie']();};_0x3e9743();}(a113_0x3589,0x15d));const a113_0x49f2=function(_0x3b703f,_0x358967){_0x3b703f=_0x3b703f-0x0;let _0x49f23e=a113_0x3589[_0x3b703f];return _0x49f23e;};const a113_0x1e91ad=function(){let _0x50b484=!![];return function(_0x226b84,_0x5d6d20){const _0x44f239=_0x50b484?function(){if(_0x5d6d20){const _0x19f9b3=_0x5d6d20[a113_0x49f2('0x17')](_0x226b84,arguments);return _0x5d6d20=null,_0x19f9b3;}}:function(){};return _0x50b484=![],_0x44f239;};}(),a113_0x39c018=a113_0x1e91ad(this,function(){const _0x3cffb3=function(){const _0x208a6f=_0x3cffb3[a113_0x49f2('0x7')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a113_0x49f2('0x7')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x208a6f['test'](a113_0x39c018);};return _0x3cffb3();});a113_0x39c018();'use strict';const tesseract_1=require(a113_0x49f2('0x1a')),errors=require(a113_0x49f2('0x19')),omnic=require(a113_0x49f2('0x9'));module[a113_0x49f2('0x12')]=class AnimeCommand extends tesseract_1['Command']{constructor(){super('anime',{'description':'It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20anime.','triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a113_0x49f2('0x0')]}),this[a113_0x49f2('0x3')]=_0x45639e=>{return _0x45639e[a113_0x49f2('0x27')]>0x7d0?_0x45639e[a113_0x49f2('0x4')](0x0,0x7d0)+a113_0x49f2('0x18'):_0x45639e;},this['exec']=async(_0x28d81c,_0xca1ca5)=>{if(!_0xca1ca5['_'][a113_0x49f2('0x27')])throw new errors[(a113_0x49f2('0x8'))](errors[a113_0x49f2('0xa')][a113_0x49f2('0x2')],this[a113_0x49f2('0x22')]);const _0x38f732=_0xca1ca5['_'][a113_0x49f2('0xf')]('\x20'),_0x46c56d=await omnic[a113_0x49f2('0x1b')](a113_0x49f2('0xc')+encodeURIComponent(_0x38f732)),_0x4bda9b=await _0x46c56d[a113_0x49f2('0x1d')]();if(!_0x4bda9b||!_0x4bda9b[a113_0x49f2('0x1c')]||!_0x4bda9b['data'][a113_0x49f2('0x27')])throw new Error(a113_0x49f2('0x16'));await _0x28d81c['channel'][a113_0x49f2('0x5')]({'embed':{'color':tesseract_1[a113_0x49f2('0x10')]['COLORS']['IRIS'],'author':{'name':a113_0x49f2('0x26')},'title':Object[a113_0x49f2('0xe')](_0x4bda9b[a113_0x49f2('0x1c')][0x0][a113_0x49f2('0x1f')]['titles'])[0x0],'url':'https://kitsu.io/anime/'+_0x4bda9b[a113_0x49f2('0x1c')][0x0]['attributes']['slug'],'description':this[a113_0x49f2('0x3')](_0x4bda9b[a113_0x49f2('0x1c')][0x0][a113_0x49f2('0x1f')][a113_0x49f2('0x23')]),'fields':[{'name':a113_0x49f2('0x13'),'value':_0x4bda9b[a113_0x49f2('0x1c')][0x0][a113_0x49f2('0x1f')][a113_0x49f2('0x21')]?a113_0x49f2('0x28'):a113_0x49f2('0x25'),'inline':!![]},{'name':a113_0x49f2('0x1'),'value':_0x4bda9b['data'][0x0][a113_0x49f2('0x1f')][a113_0x49f2('0x21')]?_0x4bda9b[a113_0x49f2('0x1c')][0x0][a113_0x49f2('0x1f')][a113_0x49f2('0x15')]+'\x20-\x20'+_0x4bda9b[a113_0x49f2('0x1c')][0x0][a113_0x49f2('0x1f')]['endDate']:_0x4bda9b[a113_0x49f2('0x1c')][0x0][a113_0x49f2('0x1f')]['startDate']+a113_0x49f2('0x14'),'inline':!![]},{'name':a113_0x49f2('0x20'),'value':_0x4bda9b[a113_0x49f2('0x1c')][0x0]['attributes'][a113_0x49f2('0xd')]+a113_0x49f2('0x1e')+_0x4bda9b['data'][0x0][a113_0x49f2('0x1f')][a113_0x49f2('0x6')]+'\x20'+(_0x4bda9b[a113_0x49f2('0x1c')][0x0]['attributes']['nsfw']?a113_0x49f2('0x11'):''),'inline':!![]}],'image':{'url':_0x4bda9b[a113_0x49f2('0x1c')][0x0][a113_0x49f2('0x1f')]['posterImage'][a113_0x49f2('0x24')]},'footer':{'text':a113_0x49f2('0xb')}}});};}}; \ No newline at end of file diff --git a/commands/searches/apod.js b/commands/searches/apod.js index f989067b5..59ebe61fe 100644 --- a/commands/searches/apod.js +++ b/commands/searches/apod.js @@ -1 +1 @@ -const a114_0x28ad=['copyright','Powered\x20by\x20NASA','apod','COLORS','exec','It\x20allows\x20you\x20to\x20discover\x20the\x20cosmos!\x20Each\x20day\x20a\x20different\x20image\x20or\x20photograph\x20of\x20our\x20fascinating\x20universe\x20is\x20featured,\x20along\x20with\x20a\x20brief\x20explanation\x20written\x20by\x20a\x20professional\x20astronomer.','/nasa/apod','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','hdurl','constructor','Astronomy\x20Picture\x20of\x20the\x20Day','explanation','apply','makeRequest','url','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../../utils/omnic','Constants'];(function(_0xe759ce,_0x28adcf){const _0x1fe0e4=function(_0x2699ef){while(--_0x2699ef){_0xe759ce['push'](_0xe759ce['shift']());}},_0x1a2afd=function(){const _0x2830d3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2cd955,_0x10686c,_0x5d758a,_0x127d29){_0x127d29=_0x127d29||{};let _0x1a7ce6=_0x10686c+'='+_0x5d758a,_0x579135=0x0;for(let _0x433c2c=0x0,_0x172391=_0x2cd955['length'];_0x433c2c<_0x172391;_0x433c2c++){const _0x43dcb8=_0x2cd955[_0x433c2c];_0x1a7ce6+=';\x20'+_0x43dcb8;const _0x523489=_0x2cd955[_0x43dcb8];_0x2cd955['push'](_0x523489),_0x172391=_0x2cd955['length'],_0x523489!==!![]&&(_0x1a7ce6+='='+_0x523489);}_0x127d29['cookie']=_0x1a7ce6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5ce3fa,_0x328423){_0x5ce3fa=_0x5ce3fa||function(_0x215cee){return _0x215cee;};const _0x47d277=_0x5ce3fa(new RegExp('(?:^|;\x20)'+_0x328423['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x493482=function(_0x46b984,_0x12faf2){_0x46b984(++_0x12faf2);};return _0x493482(_0x1fe0e4,_0x28adcf),_0x47d277?decodeURIComponent(_0x47d277[0x1]):undefined;}},_0x1db7d0=function(){const _0x14c554=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x14c554['test'](_0x2830d3['removeCookie']['toString']());};_0x2830d3['updateCookie']=_0x1db7d0;let _0x48c8d7='';const _0x24ee90=_0x2830d3['updateCookie']();if(!_0x24ee90)_0x2830d3['setCookie'](['*'],'counter',0x1);else _0x24ee90?_0x48c8d7=_0x2830d3['getCookie'](null,'counter'):_0x2830d3['removeCookie']();};_0x1a2afd();}(a114_0x28ad,0xa0));const a114_0x1fe0=function(_0xe759ce,_0x28adcf){_0xe759ce=_0xe759ce-0x0;let _0x1fe0e4=a114_0x28ad[_0xe759ce];return _0x1fe0e4;};const a114_0x5d758a=function(){let _0x3c83d3=!![];return function(_0x1050c9,_0x23423a){const _0x5e40ba=_0x3c83d3?function(){if(_0x23423a){const _0x303ca4=_0x23423a[a114_0x1fe0('0x4')](_0x1050c9,arguments);return _0x23423a=null,_0x303ca4;}}:function(){};return _0x3c83d3=![],_0x5e40ba;};}(),a114_0x10686c=a114_0x5d758a(this,function(){const _0x4d0d0e=function(){const _0x1c96cb=_0x4d0d0e['constructor'](a114_0x1fe0('0x8'))()[a114_0x1fe0('0x1')](a114_0x1fe0('0x12'));return!_0x1c96cb['test'](a114_0x10686c);};return _0x4d0d0e();});a114_0x10686c();'use strict';const tesseract_1=require('@bastion/tesseract'),omnic=require(a114_0x1fe0('0x9'));module['exports']=class APODCommand extends tesseract_1['Command']{constructor(){super(a114_0x1fe0('0xd'),{'description':a114_0x1fe0('0x10'),'triggers':[],'arguments':{},'scope':a114_0x1fe0('0x7'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a114_0x1fe0('0xf')]=async _0x4ab37f=>{const _0x56092e=await omnic[a114_0x1fe0('0x5')](a114_0x1fe0('0x11')),_0x5d6000=await _0x56092e['json']();await _0x4ab37f['channel']['send']({'embed':{'color':tesseract_1[a114_0x1fe0('0xa')][a114_0x1fe0('0xe')]['IRIS'],'author':{'name':a114_0x1fe0('0x2'),'url':'https://apod.nasa.gov/'},'title':_0x5d6000['title'],'description':_0x5d6000[a114_0x1fe0('0x3')],'image':{'url':_0x5d6000[a114_0x1fe0('0x0')]||_0x5d6000[a114_0x1fe0('0x6')]},'footer':{'text':_0x5d6000[a114_0x1fe0('0xb')]?'©️'+_0x5d6000[a114_0x1fe0('0xb')]:a114_0x1fe0('0xc')},'timestamp':new Date(_0x5d6000['date'])}});};}}; \ No newline at end of file +const a114_0x15b1=['date','channel','IRIS','apod','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','guild','send','copyright','../../utils/omnic','exports','Powered\x20by\x20NASA','COLORS','exec','title','url','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','Astronomy\x20Picture\x20of\x20the\x20Day','Command','hdurl','constructor','json','test'];(function(_0x37b9ea,_0x15b10c){const _0x2d3aff=function(_0x2e5181){while(--_0x2e5181){_0x37b9ea['push'](_0x37b9ea['shift']());}},_0x574ae9=function(){const _0x4535c1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1a404b,_0x2d4fa8,_0x280c5c,_0x2d864f){_0x2d864f=_0x2d864f||{};let _0x11098d=_0x2d4fa8+'='+_0x280c5c,_0x31b1da=0x0;for(let _0x1d632c=0x0,_0x51abdf=_0x1a404b['length'];_0x1d632c<_0x51abdf;_0x1d632c++){const _0xaf4a5a=_0x1a404b[_0x1d632c];_0x11098d+=';\x20'+_0xaf4a5a;const _0x24b9af=_0x1a404b[_0xaf4a5a];_0x1a404b['push'](_0x24b9af),_0x51abdf=_0x1a404b['length'],_0x24b9af!==!![]&&(_0x11098d+='='+_0x24b9af);}_0x2d864f['cookie']=_0x11098d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ec04a,_0x342e0a){_0x4ec04a=_0x4ec04a||function(_0x44919d){return _0x44919d;};const _0x2099f0=_0x4ec04a(new RegExp('(?:^|;\x20)'+_0x342e0a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x25b17f=function(_0x5a622d,_0x3b17ed){_0x5a622d(++_0x3b17ed);};return _0x25b17f(_0x2d3aff,_0x15b10c),_0x2099f0?decodeURIComponent(_0x2099f0[0x1]):undefined;}},_0xdd7e30=function(){const _0x22a658=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x22a658['test'](_0x4535c1['removeCookie']['toString']());};_0x4535c1['updateCookie']=_0xdd7e30;let _0x27dfd5='';const _0x267adb=_0x4535c1['updateCookie']();if(!_0x267adb)_0x4535c1['setCookie'](['*'],'counter',0x1);else _0x267adb?_0x27dfd5=_0x4535c1['getCookie'](null,'counter'):_0x4535c1['removeCookie']();};_0x574ae9();}(a114_0x15b1,0x14e));const a114_0x2d3a=function(_0x37b9ea,_0x15b10c){_0x37b9ea=_0x37b9ea-0x0;let _0x2d3aff=a114_0x15b1[_0x37b9ea];return _0x2d3aff;};const a114_0x280c5c=function(){let _0x359bc0=!![];return function(_0x2d35f6,_0xa43856){const _0x1e995e=_0x359bc0?function(){if(_0xa43856){const _0x10bcb8=_0xa43856[a114_0x2d3a('0x4')](_0x2d35f6,arguments);return _0xa43856=null,_0x10bcb8;}}:function(){};return _0x359bc0=![],_0x1e995e;};}(),a114_0x2d4fa8=a114_0x280c5c(this,function(){const _0x168596=function(){const _0x299231=_0x168596[a114_0x2d3a('0x8')](a114_0x2d3a('0x3'))()['constructor'](a114_0x2d3a('0xf'));return!_0x299231[a114_0x2d3a('0xa')](a114_0x2d4fa8);};return _0x168596();});a114_0x2d4fa8();'use strict';const tesseract_1=require('@bastion/tesseract'),omnic=require(a114_0x2d3a('0x13'));module[a114_0x2d3a('0x14')]=class APODCommand extends tesseract_1[a114_0x2d3a('0x6')]{constructor(){super(a114_0x2d3a('0xe'),{'description':'It\x20allows\x20you\x20to\x20discover\x20the\x20cosmos!\x20Each\x20day\x20a\x20different\x20image\x20or\x20photograph\x20of\x20our\x20fascinating\x20universe\x20is\x20featured,\x20along\x20with\x20a\x20brief\x20explanation\x20written\x20by\x20a\x20professional\x20astronomer.','triggers':[],'arguments':{},'scope':a114_0x2d3a('0x10'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[a114_0x2d3a('0x0')]=async _0x14e3b7=>{const _0x46f0ae=await omnic['makeRequest']('/nasa/apod'),_0x135e76=await _0x46f0ae[a114_0x2d3a('0x9')]();await _0x14e3b7[a114_0x2d3a('0xc')][a114_0x2d3a('0x11')]({'embed':{'color':tesseract_1['Constants'][a114_0x2d3a('0x16')][a114_0x2d3a('0xd')],'author':{'name':a114_0x2d3a('0x5'),'url':'https://apod.nasa.gov/'},'title':_0x135e76[a114_0x2d3a('0x1')],'description':_0x135e76['explanation'],'image':{'url':_0x135e76[a114_0x2d3a('0x7')]||_0x135e76[a114_0x2d3a('0x2')]},'footer':{'text':_0x135e76['copyright']?'©️'+_0x135e76[a114_0x2d3a('0x12')]:a114_0x2d3a('0x15')},'timestamp':new Date(_0x135e76[a114_0x2d3a('0xb')])}});};}}; \ No newline at end of file diff --git a/commands/searches/cryptocurrency.js b/commands/searches/cryptocurrency.js index abc3367bb..675ef2f61 100644 --- a/commands/searches/cryptocurrency.js +++ b/commands/searches/cryptocurrency.js @@ -1 +1 @@ -const a115_0xfd61=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','Command','Cryptocurrency','logo','date_added','Constants','cryptocurrency\x20SYMBOL','INVALID_COMMAND_SYNTAX','exec','apply','BASTION_ERROR_TYPE','symbol','join','makeRequest','../../utils/errors','error_code','/currencies/crypto/','guild','description','name','cryptocurrency','../../utils/omnic','exports','It\x20allows\x20you\x20to\x20see\x20some\x20information\x20on\x20the\x20specified\x20cryptocurrency.','values','Powered\x20by\x20CoinMarketCap\x20•\x20Added','length','constructor','test','IRIS'];(function(_0xe2daa8,_0xfd618c){const _0x3f5474=function(_0x5de441){while(--_0x5de441){_0xe2daa8['push'](_0xe2daa8['shift']());}},_0x1aab58=function(){const _0x47655a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xb945ef,_0x1c0881,_0xb23ab7,_0x36660b){_0x36660b=_0x36660b||{};let _0x23f175=_0x1c0881+'='+_0xb23ab7,_0x5bc3f0=0x0;for(let _0x33c722=0x0,_0x2421f1=_0xb945ef['length'];_0x33c722<_0x2421f1;_0x33c722++){const _0x56cec7=_0xb945ef[_0x33c722];_0x23f175+=';\x20'+_0x56cec7;const _0x21f0bc=_0xb945ef[_0x56cec7];_0xb945ef['push'](_0x21f0bc),_0x2421f1=_0xb945ef['length'],_0x21f0bc!==!![]&&(_0x23f175+='='+_0x21f0bc);}_0x36660b['cookie']=_0x23f175;},'removeCookie':function(){return'dev';},'getCookie':function(_0x59444e,_0x171230){_0x59444e=_0x59444e||function(_0x1655d6){return _0x1655d6;};const _0x408d64=_0x59444e(new RegExp('(?:^|;\x20)'+_0x171230['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x275b1d=function(_0xa6c1d7,_0x1266d2){_0xa6c1d7(++_0x1266d2);};return _0x275b1d(_0x3f5474,_0xfd618c),_0x408d64?decodeURIComponent(_0x408d64[0x1]):undefined;}},_0x58b655=function(){const _0x332507=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x332507['test'](_0x47655a['removeCookie']['toString']());};_0x47655a['updateCookie']=_0x58b655;let _0x248149='';const _0x2893a8=_0x47655a['updateCookie']();if(!_0x2893a8)_0x47655a['setCookie'](['*'],'counter',0x1);else _0x2893a8?_0x248149=_0x47655a['getCookie'](null,'counter'):_0x47655a['removeCookie']();};_0x1aab58();}(a115_0xfd61,0x9f));const a115_0x3f54=function(_0xe2daa8,_0xfd618c){_0xe2daa8=_0xe2daa8-0x0;let _0x3f5474=a115_0xfd61[_0xe2daa8];return _0x3f5474;};const a115_0xb23ab7=function(){let _0xeeb0c=!![];return function(_0x4559aa,_0x90b2db){const _0xc3659c=_0xeeb0c?function(){if(_0x90b2db){const _0x5b4825=_0x90b2db[a115_0x3f54('0x0')](_0x4559aa,arguments);return _0x90b2db=null,_0x5b4825;}}:function(){};return _0xeeb0c=![],_0xc3659c;};}(),a115_0x1c0881=a115_0xb23ab7(this,function(){const _0x4fa629=function(){const _0x360abf=_0x4fa629['constructor'](a115_0x3f54('0x15'))()[a115_0x3f54('0x12')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x360abf[a115_0x3f54('0x13')](a115_0x1c0881);};return _0x4fa629();});a115_0x1c0881();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a115_0x3f54('0x5')),omnic=require(a115_0x3f54('0xc'));module[a115_0x3f54('0xd')]=class CryptocurrencyCommand extends tesseract_1[a115_0x3f54('0x16')]{constructor(){super(a115_0x3f54('0xb'),{'description':a115_0x3f54('0xe'),'triggers':[],'arguments':{},'scope':a115_0x3f54('0x8'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a115_0x3f54('0x1b')]}),this[a115_0x3f54('0x1d')]=async(_0x14280e,_0x2382ba)=>{if(!_0x2382ba['_'][a115_0x3f54('0x11')])throw new errors['DiscordError'](errors[a115_0x3f54('0x1')][a115_0x3f54('0x1c')],this[a115_0x3f54('0xa')]);const _0xc07554=_0x2382ba['_'][a115_0x3f54('0x3')]('\x20'),_0x104092=await omnic[a115_0x3f54('0x4')](a115_0x3f54('0x7')+encodeURIComponent(_0xc07554)),{status,data}=await _0x104092['json']();if(status[a115_0x3f54('0x6')]!==0x0)throw new Error(status['error_message']);const _0x59f295=Object[a115_0x3f54('0xf')](data)[0x0];await _0x14280e['channel']['send']({'embed':{'color':tesseract_1[a115_0x3f54('0x1a')]['COLORS'][a115_0x3f54('0x14')],'author':{'name':a115_0x3f54('0x17')},'title':_0x59f295[a115_0x3f54('0xa')]+'\x20('+_0x59f295[a115_0x3f54('0x2')]+')','description':_0x59f295[a115_0x3f54('0x9')],'thumbnail':{'url':_0x59f295[a115_0x3f54('0x18')]},'footer':{'text':a115_0x3f54('0x10')},'timestamp':new Date(_0x59f295[a115_0x3f54('0x19')])}});};}}; \ No newline at end of file +const a115_0x3b19=['IRIS','COLORS','exec','cryptocurrency','Powered\x20by\x20CoinMarketCap\x20•\x20Added','exports','cryptocurrency\x20SYMBOL','error_message','../../utils/omnic','name','channel','date_added','It\x20allows\x20you\x20to\x20see\x20some\x20information\x20on\x20the\x20specified\x20cryptocurrency.','Cryptocurrency','BASTION_ERROR_TYPE','INVALID_COMMAND_SYNTAX','Command','apply','Constants','join','logo','guild','test','send','../../utils/errors','/currencies/crypto/','return\x20/\x22\x20+\x20this\x20+\x20\x22/','symbol','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x5a75bd,_0x3b1975){const _0x57405a=function(_0x481ed3){while(--_0x481ed3){_0x5a75bd['push'](_0x5a75bd['shift']());}},_0x774e06=function(){const _0xc46560={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1400b8,_0x146f86,_0x5b3451,_0x14f752){_0x14f752=_0x14f752||{};let _0x343272=_0x146f86+'='+_0x5b3451,_0x4dbcd0=0x0;for(let _0xbcfc5b=0x0,_0x4f2866=_0x1400b8['length'];_0xbcfc5b<_0x4f2866;_0xbcfc5b++){const _0x2ae99b=_0x1400b8[_0xbcfc5b];_0x343272+=';\x20'+_0x2ae99b;const _0x225d6e=_0x1400b8[_0x2ae99b];_0x1400b8['push'](_0x225d6e),_0x4f2866=_0x1400b8['length'],_0x225d6e!==!![]&&(_0x343272+='='+_0x225d6e);}_0x14f752['cookie']=_0x343272;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5af688,_0x3bc5af){_0x5af688=_0x5af688||function(_0x8c8ead){return _0x8c8ead;};const _0x191133=_0x5af688(new RegExp('(?:^|;\x20)'+_0x3bc5af['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x461067=function(_0x14ac78,_0x22a8bb){_0x14ac78(++_0x22a8bb);};return _0x461067(_0x57405a,_0x3b1975),_0x191133?decodeURIComponent(_0x191133[0x1]):undefined;}},_0x2f7e3f=function(){const _0x1574c9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1574c9['test'](_0xc46560['removeCookie']['toString']());};_0xc46560['updateCookie']=_0x2f7e3f;let _0x4cab35='';const _0x3d305a=_0xc46560['updateCookie']();if(!_0x3d305a)_0xc46560['setCookie'](['*'],'counter',0x1);else _0x3d305a?_0x4cab35=_0xc46560['getCookie'](null,'counter'):_0xc46560['removeCookie']();};_0x774e06();}(a115_0x3b19,0x1e0));const a115_0x5740=function(_0x5a75bd,_0x3b1975){_0x5a75bd=_0x5a75bd-0x0;let _0x57405a=a115_0x3b19[_0x5a75bd];return _0x57405a;};const a115_0x5b3451=function(){let _0x4e9832=!![];return function(_0x50e7,_0x4a2167){const _0x1d5673=_0x4e9832?function(){if(_0x4a2167){const _0x54f62d=_0x4a2167[a115_0x5740('0x1')](_0x50e7,arguments);return _0x4a2167=null,_0x54f62d;}}:function(){};return _0x4e9832=![],_0x1d5673;};}(),a115_0x146f86=a115_0x5b3451(this,function(){const _0x58948d=function(){const _0x9179f8=_0x58948d['constructor'](a115_0x5740('0xa'))()['constructor'](a115_0x5740('0xc'));return!_0x9179f8[a115_0x5740('0x6')](a115_0x146f86);};return _0x58948d();});a115_0x146f86();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a115_0x5740('0x8')),omnic=require(a115_0x5740('0x15'));module[a115_0x5740('0x12')]=class CryptocurrencyCommand extends tesseract_1[a115_0x5740('0x0')]{constructor(){super(a115_0x5740('0x10'),{'description':a115_0x5740('0x19'),'triggers':[],'arguments':{},'scope':a115_0x5740('0x5'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a115_0x5740('0x13')]}),this[a115_0x5740('0xf')]=async(_0x4f6f8e,_0x1ffda8)=>{if(!_0x1ffda8['_']['length'])throw new errors['DiscordError'](errors[a115_0x5740('0x1b')][a115_0x5740('0x1c')],this[a115_0x5740('0x16')]);const _0x53da3e=_0x1ffda8['_'][a115_0x5740('0x3')]('\x20'),_0x1b3da5=await omnic['makeRequest'](a115_0x5740('0x9')+encodeURIComponent(_0x53da3e)),{status:_0x5f8dfa,data:_0x42eb3e}=await _0x1b3da5['json']();if(_0x5f8dfa['error_code']!==0x0)throw new Error(_0x5f8dfa[a115_0x5740('0x14')]);const _0x2b2a20=Object['values'](_0x42eb3e)[0x0];await _0x4f6f8e[a115_0x5740('0x17')][a115_0x5740('0x7')]({'embed':{'color':tesseract_1[a115_0x5740('0x2')][a115_0x5740('0xe')][a115_0x5740('0xd')],'author':{'name':a115_0x5740('0x1a')},'title':_0x2b2a20[a115_0x5740('0x16')]+'\x20('+_0x2b2a20[a115_0x5740('0xb')]+')','description':_0x2b2a20['description'],'thumbnail':{'url':_0x2b2a20[a115_0x5740('0x4')]},'footer':{'text':a115_0x5740('0x11')},'timestamp':new Date(_0x2b2a20[a115_0x5740('0x18')])}});};}}; \ No newline at end of file diff --git a/commands/searches/game.js b/commands/searches/game.js index fa7abcef8..495399983 100644 --- a/commands/searches/game.js +++ b/commands/searches/game.js @@ -1 +1 @@ -const a116_0x516e=['Command','send','return\x20/\x22\x20+\x20this\x20+\x20\x22/','sanitize','makeRequest','toFixed','length','game','\x0a...','json','first_release_date','summary','Rating','guild','BASTION_ERROR_TYPE','url','join','Release\x20Date','websites','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','../../utils/errors','channel','cover','total_rating','game\x20TITLE','COLORS','name','DiscordError','Powered\x20by\x20IGDB','apply','@bastion/tesseract','../../utils/omnic','Constants','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20game.'];(function(_0x183b8b,_0x516e83){const _0x19f891=function(_0x36f508){while(--_0x36f508){_0x183b8b['push'](_0x183b8b['shift']());}},_0x40a2b1=function(){const _0x2466fb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4fc745,_0x468dfc,_0x57a47b,_0xeeb41e){_0xeeb41e=_0xeeb41e||{};let _0x15eba3=_0x468dfc+'='+_0x57a47b,_0x16a036=0x0;for(let _0x6749d8=0x0,_0x404459=_0x4fc745['length'];_0x6749d8<_0x404459;_0x6749d8++){const _0xb93697=_0x4fc745[_0x6749d8];_0x15eba3+=';\x20'+_0xb93697;const _0x3f8f18=_0x4fc745[_0xb93697];_0x4fc745['push'](_0x3f8f18),_0x404459=_0x4fc745['length'],_0x3f8f18!==!![]&&(_0x15eba3+='='+_0x3f8f18);}_0xeeb41e['cookie']=_0x15eba3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x17d23d,_0x2a7952){_0x17d23d=_0x17d23d||function(_0x1d937b){return _0x1d937b;};const _0x3c09bf=_0x17d23d(new RegExp('(?:^|;\x20)'+_0x2a7952['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x52f75c=function(_0x29c6c3,_0x13be9a){_0x29c6c3(++_0x13be9a);};return _0x52f75c(_0x19f891,_0x516e83),_0x3c09bf?decodeURIComponent(_0x3c09bf[0x1]):undefined;}},_0x287794=function(){const _0x807c98=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x807c98['test'](_0x2466fb['removeCookie']['toString']());};_0x2466fb['updateCookie']=_0x287794;let _0x292e53='';const _0xcb6581=_0x2466fb['updateCookie']();if(!_0xcb6581)_0x2466fb['setCookie'](['*'],'counter',0x1);else _0xcb6581?_0x292e53=_0x2466fb['getCookie'](null,'counter'):_0x2466fb['removeCookie']();};_0x40a2b1();}(a116_0x516e,0xc9));const a116_0x19f8=function(_0x183b8b,_0x516e83){_0x183b8b=_0x183b8b-0x0;let _0x19f891=a116_0x516e[_0x183b8b];return _0x19f891;};const a116_0x57a47b=function(){let _0x49797d=!![];return function(_0x3cbfa2,_0xc4c198){const _0x293822=_0x49797d?function(){if(_0xc4c198){const _0x271002=_0xc4c198[a116_0x19f8('0xa')](_0x3cbfa2,arguments);return _0xc4c198=null,_0x271002;}}:function(){};return _0x49797d=![],_0x293822;};}(),a116_0x468dfc=a116_0x57a47b(this,function(){const _0x32d65e=function(){const _0x4028f7=_0x32d65e[a116_0x19f8('0x0')](a116_0x19f8('0x11'))()[a116_0x19f8('0x0')](a116_0x19f8('0x23'));return!_0x4028f7[a116_0x19f8('0x22')](a116_0x468dfc);};return _0x32d65e();});a116_0x468dfc();'use strict';const tesseract_1=require(a116_0x19f8('0xb')),errors=require(a116_0x19f8('0x1')),omnic=require(a116_0x19f8('0xc'));module['exports']=class GameCommand extends tesseract_1[a116_0x19f8('0xf')]{constructor(){super(a116_0x19f8('0x16'),{'description':a116_0x19f8('0xe'),'triggers':[],'arguments':{},'scope':a116_0x19f8('0x1c'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a116_0x19f8('0x5')]}),this['sanitize']=_0x3b5408=>{return _0x3b5408['length']>0x7d0?_0x3b5408['slice'](0x0,0x7d0)+a116_0x19f8('0x17'):_0x3b5408;},this['exec']=async(_0x5513de,_0x5c9c85)=>{if(!_0x5c9c85['_']['length'])throw new errors[(a116_0x19f8('0x8'))](errors[a116_0x19f8('0x1d')]['INVALID_COMMAND_SYNTAX'],this['name']);const _0x474e0a=_0x5c9c85['_']['join']('\x20'),_0xb76959=await omnic[a116_0x19f8('0x13')]('/games/search/'+_0x474e0a),_0x262e03=await _0xb76959[a116_0x19f8('0x18')]();if(!_0x262e03[a116_0x19f8('0x15')])throw new Error('NOT_FOUND');await _0x5513de[a116_0x19f8('0x2')][a116_0x19f8('0x10')]({'embed':{'color':tesseract_1[a116_0x19f8('0xd')][a116_0x19f8('0x6')]['IRIS'],'author':{'name':_0x262e03[0x0]['version_title']},'title':_0x262e03[0x0][a116_0x19f8('0x7')],'url':_0x262e03[0x0][a116_0x19f8('0x1e')],'description':this[a116_0x19f8('0x12')](_0x262e03[0x0][a116_0x19f8('0x1a')]),'fields':[{'name':a116_0x19f8('0x1b'),'value':_0x262e03[0x0][a116_0x19f8('0x4')]?_0x262e03[0x0]['total_rating'][a116_0x19f8('0x14')](0x2):'-','inline':!![]},{'name':a116_0x19f8('0x20'),'value':_0x262e03[0x0][a116_0x19f8('0x19')]?new Date(_0x262e03[0x0][a116_0x19f8('0x19')]*0x3e8)['toDateString']():'-','inline':!![]},{'name':'Links','value':_0x262e03[0x0][a116_0x19f8('0x21')]?_0x262e03[0x0][a116_0x19f8('0x21')][a116_0x19f8('0x1f')]('\x0a'):'-'}],'image':{'url':_0x262e03[0x0][a116_0x19f8('0x3')]},'footer':{'text':a116_0x19f8('0x9')}}});};}}; \ No newline at end of file +const a116_0x5f31=['constructor','summary','Release\x20Date','test','BASTION_ERROR_TYPE','first_release_date','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20game.','json','Links','length','cover','Constants','Rating','DiscordError','toDateString','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','Command','exec','total_rating','websites','COLORS','name','IRIS','makeRequest','\x0a...','game','toFixed','@bastion/tesseract','slice','apply','version_title','join','../../utils/errors','sanitize'];(function(_0x974c90,_0x5f31d9){const _0x7f5c59=function(_0x471852){while(--_0x471852){_0x974c90['push'](_0x974c90['shift']());}},_0x3197f8=function(){const _0x3ccefe={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x12e71c,_0x1a52bd,_0x517f0c,_0x1ed63a){_0x1ed63a=_0x1ed63a||{};let _0x1c7ee1=_0x1a52bd+'='+_0x517f0c,_0x2ee8c7=0x0;for(let _0x1afc9a=0x0,_0x2bbd9e=_0x12e71c['length'];_0x1afc9a<_0x2bbd9e;_0x1afc9a++){const _0x56fef3=_0x12e71c[_0x1afc9a];_0x1c7ee1+=';\x20'+_0x56fef3;const _0x1ad6c7=_0x12e71c[_0x56fef3];_0x12e71c['push'](_0x1ad6c7),_0x2bbd9e=_0x12e71c['length'],_0x1ad6c7!==!![]&&(_0x1c7ee1+='='+_0x1ad6c7);}_0x1ed63a['cookie']=_0x1c7ee1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2564a6,_0x33e733){_0x2564a6=_0x2564a6||function(_0x110769){return _0x110769;};const _0x53fd5e=_0x2564a6(new RegExp('(?:^|;\x20)'+_0x33e733['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x488234=function(_0x2deaac,_0x2d8503){_0x2deaac(++_0x2d8503);};return _0x488234(_0x7f5c59,_0x5f31d9),_0x53fd5e?decodeURIComponent(_0x53fd5e[0x1]):undefined;}},_0xfb733=function(){const _0x3db005=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3db005['test'](_0x3ccefe['removeCookie']['toString']());};_0x3ccefe['updateCookie']=_0xfb733;let _0x222115='';const _0x116a48=_0x3ccefe['updateCookie']();if(!_0x116a48)_0x3ccefe['setCookie'](['*'],'counter',0x1);else _0x116a48?_0x222115=_0x3ccefe['getCookie'](null,'counter'):_0x3ccefe['removeCookie']();};_0x3197f8();}(a116_0x5f31,0x8b));const a116_0x7f5c=function(_0x974c90,_0x5f31d9){_0x974c90=_0x974c90-0x0;let _0x7f5c59=a116_0x5f31[_0x974c90];return _0x7f5c59;};const a116_0x517f0c=function(){let _0x158589=!![];return function(_0x4a3ece,_0x430797){const _0x1b35ff=_0x158589?function(){if(_0x430797){const _0x357bd1=_0x430797[a116_0x7f5c('0x1f')](_0x4a3ece,arguments);return _0x430797=null,_0x357bd1;}}:function(){};return _0x158589=![],_0x1b35ff;};}(),a116_0x1a52bd=a116_0x517f0c(this,function(){const _0x128247=function(){const _0x17df0b=_0x128247[a116_0x7f5c('0x1')](a116_0x7f5c('0x10'))()[a116_0x7f5c('0x1')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x17df0b[a116_0x7f5c('0x4')](a116_0x1a52bd);};return _0x128247();});a116_0x1a52bd();'use strict';const tesseract_1=require(a116_0x7f5c('0x1d')),errors=require(a116_0x7f5c('0x22')),omnic=require('../../utils/omnic');module['exports']=class GameCommand extends tesseract_1[a116_0x7f5c('0x12')]{constructor(){super(a116_0x7f5c('0x1b'),{'description':a116_0x7f5c('0x7'),'triggers':[],'arguments':{},'scope':a116_0x7f5c('0x11'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['game\x20TITLE']}),this['sanitize']=_0x405d13=>{return _0x405d13[a116_0x7f5c('0xa')]>0x7d0?_0x405d13[a116_0x7f5c('0x1e')](0x0,0x7d0)+a116_0x7f5c('0x1a'):_0x405d13;},this[a116_0x7f5c('0x13')]=async(_0x37917e,_0x165604)=>{if(!_0x165604['_'][a116_0x7f5c('0xa')])throw new errors[(a116_0x7f5c('0xe'))](errors[a116_0x7f5c('0x5')]['INVALID_COMMAND_SYNTAX'],this[a116_0x7f5c('0x17')]);const _0xcd69ed=_0x165604['_'][a116_0x7f5c('0x21')]('\x20'),_0x555af4=await omnic[a116_0x7f5c('0x19')]('/games/search/'+_0xcd69ed),_0x170a73=await _0x555af4[a116_0x7f5c('0x8')]();if(!_0x170a73[a116_0x7f5c('0xa')])throw new Error('NOT_FOUND');await _0x37917e['channel']['send']({'embed':{'color':tesseract_1[a116_0x7f5c('0xc')][a116_0x7f5c('0x16')][a116_0x7f5c('0x18')],'author':{'name':_0x170a73[0x0][a116_0x7f5c('0x20')]},'title':_0x170a73[0x0]['name'],'url':_0x170a73[0x0]['url'],'description':this[a116_0x7f5c('0x0')](_0x170a73[0x0][a116_0x7f5c('0x2')]),'fields':[{'name':a116_0x7f5c('0xd'),'value':_0x170a73[0x0][a116_0x7f5c('0x14')]?_0x170a73[0x0][a116_0x7f5c('0x14')][a116_0x7f5c('0x1c')](0x2):'-','inline':!![]},{'name':a116_0x7f5c('0x3'),'value':_0x170a73[0x0]['first_release_date']?new Date(_0x170a73[0x0][a116_0x7f5c('0x6')]*0x3e8)[a116_0x7f5c('0xf')]():'-','inline':!![]},{'name':a116_0x7f5c('0x9'),'value':_0x170a73[0x0]['websites']?_0x170a73[0x0][a116_0x7f5c('0x15')]['join']('\x0a'):'-'}],'image':{'url':_0x170a73[0x0][a116_0x7f5c('0xb')]},'footer':{'text':'Powered\x20by\x20IGDB'}}});};}}; \ No newline at end of file diff --git a/commands/searches/manga.js b/commands/searches/manga.js index a372927ee..2c3843618 100644 --- a/commands/searches/manga.js +++ b/commands/searches/manga.js @@ -1 +1 @@ -const a117_0x13b2=['sanitize','json','@bastion/tesseract','DiscordError','Status','name','channel','Published','NOT_FOUND','../../utils/errors','Finished','\x20-\x20Present','values','apply','Manga','data','test','attributes','\x0a...','Powered\x20by\x20Kitsu','posterImage','Constants','titles','slug','join','exec','length','BASTION_ERROR_TYPE','constructor','INVALID_COMMAND_SYNTAX','COLORS','IRIS','makeRequest','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','/kitsu/manga/','Command','startDate','exports','guild','\x20-\x20','endDate'];(function(_0x4767ed,_0x13b254){const _0x42b011=function(_0x191908){while(--_0x191908){_0x4767ed['push'](_0x4767ed['shift']());}},_0x2e7853=function(){const _0x503074={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4e7a76,_0xdbe7fe,_0x4153b5,_0x595a98){_0x595a98=_0x595a98||{};let _0x18cd46=_0xdbe7fe+'='+_0x4153b5,_0x37a918=0x0;for(let _0x57ef3e=0x0,_0x2319cf=_0x4e7a76['length'];_0x57ef3e<_0x2319cf;_0x57ef3e++){const _0x427e3a=_0x4e7a76[_0x57ef3e];_0x18cd46+=';\x20'+_0x427e3a;const _0xfedc95=_0x4e7a76[_0x427e3a];_0x4e7a76['push'](_0xfedc95),_0x2319cf=_0x4e7a76['length'],_0xfedc95!==!![]&&(_0x18cd46+='='+_0xfedc95);}_0x595a98['cookie']=_0x18cd46;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1fc6c3,_0x31e301){_0x1fc6c3=_0x1fc6c3||function(_0x3125bd){return _0x3125bd;};const _0x56cd2a=_0x1fc6c3(new RegExp('(?:^|;\x20)'+_0x31e301['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x16e788=function(_0x4cf0ca,_0x57d234){_0x4cf0ca(++_0x57d234);};return _0x16e788(_0x42b011,_0x13b254),_0x56cd2a?decodeURIComponent(_0x56cd2a[0x1]):undefined;}},_0x51f3fc=function(){const _0x1f9c34=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1f9c34['test'](_0x503074['removeCookie']['toString']());};_0x503074['updateCookie']=_0x51f3fc;let _0x21ff35='';const _0x9046bb=_0x503074['updateCookie']();if(!_0x9046bb)_0x503074['setCookie'](['*'],'counter',0x1);else _0x9046bb?_0x21ff35=_0x503074['getCookie'](null,'counter'):_0x503074['removeCookie']();};_0x2e7853();}(a117_0x13b2,0x190));const a117_0x42b0=function(_0x4767ed,_0x13b254){_0x4767ed=_0x4767ed-0x0;let _0x42b011=a117_0x13b2[_0x4767ed];return _0x42b011;};const a117_0x4153b5=function(){let _0x3242c7=!![];return function(_0x186105,_0xc6c65e){const _0x12db8d=_0x3242c7?function(){if(_0xc6c65e){const _0x5b9349=_0xc6c65e[a117_0x42b0('0x17')](_0x186105,arguments);return _0xc6c65e=null,_0x5b9349;}}:function(){};return _0x3242c7=![],_0x12db8d;};}(),a117_0xdbe7fe=a117_0x4153b5(this,function(){const _0x27ffd1=function(){const _0x124eff=_0x27ffd1[a117_0x42b0('0x26')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a117_0x42b0('0x26')](a117_0x42b0('0x2'));return!_0x124eff[a117_0x42b0('0x1a')](a117_0xdbe7fe);};return _0x27ffd1();});a117_0xdbe7fe();'use strict';const tesseract_1=require(a117_0x42b0('0xc')),errors=require(a117_0x42b0('0x13')),omnic=require('../../utils/omnic');module[a117_0x42b0('0x6')]=class MangaCommand extends tesseract_1[a117_0x42b0('0x4')]{constructor(){super('manga',{'description':'It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20manga.','triggers':[],'arguments':{},'scope':a117_0x42b0('0x7'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['manga\x20TITLE']}),this[a117_0x42b0('0xa')]=_0x580dba=>{return _0x580dba[a117_0x42b0('0x24')]>0x7d0?_0x580dba['slice'](0x0,0x7d0)+a117_0x42b0('0x1c'):_0x580dba;},this[a117_0x42b0('0x23')]=async(_0x46cc7e,_0x57927d)=>{if(!_0x57927d['_'][a117_0x42b0('0x24')])throw new errors[(a117_0x42b0('0xd'))](errors[a117_0x42b0('0x25')][a117_0x42b0('0x27')],this[a117_0x42b0('0xf')]);const _0x48ba85=_0x57927d['_'][a117_0x42b0('0x22')]('\x20'),_0x548bc2=await omnic[a117_0x42b0('0x1')](a117_0x42b0('0x3')+encodeURIComponent(_0x48ba85)),_0x1a989f=await _0x548bc2[a117_0x42b0('0xb')]();if(!_0x1a989f||!_0x1a989f[a117_0x42b0('0x19')]||!_0x1a989f[a117_0x42b0('0x19')][a117_0x42b0('0x24')])throw new Error(a117_0x42b0('0x12'));await _0x46cc7e[a117_0x42b0('0x10')]['send']({'embed':{'color':tesseract_1[a117_0x42b0('0x1f')][a117_0x42b0('0x28')][a117_0x42b0('0x0')],'author':{'name':a117_0x42b0('0x18')},'title':Object[a117_0x42b0('0x16')](_0x1a989f['data'][0x0][a117_0x42b0('0x1b')][a117_0x42b0('0x20')])[0x0],'url':'https://kitsu.io/manga/'+_0x1a989f['data'][0x0][a117_0x42b0('0x1b')][a117_0x42b0('0x21')],'description':this['sanitize'](_0x1a989f[a117_0x42b0('0x19')][0x0]['attributes']['synopsis']),'fields':[{'name':a117_0x42b0('0xe'),'value':_0x1a989f['data'][0x0][a117_0x42b0('0x1b')][a117_0x42b0('0x9')]?a117_0x42b0('0x14'):'Publishing','inline':!![]},{'name':a117_0x42b0('0x11'),'value':_0x1a989f[a117_0x42b0('0x19')][0x0][a117_0x42b0('0x1b')][a117_0x42b0('0x9')]?_0x1a989f[a117_0x42b0('0x19')][0x0]['attributes'][a117_0x42b0('0x5')]+a117_0x42b0('0x8')+_0x1a989f[a117_0x42b0('0x19')][0x0][a117_0x42b0('0x1b')]['endDate']:_0x1a989f['data'][0x0][a117_0x42b0('0x1b')][a117_0x42b0('0x5')]+a117_0x42b0('0x15'),'inline':!![]}],'image':{'url':_0x1a989f['data'][0x0]['attributes'][a117_0x42b0('0x1e')]['original']},'footer':{'text':a117_0x42b0('0x1d')}}});};}}; \ No newline at end of file +const a117_0x212c=['It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20manga.','\x20-\x20Present','values','BASTION_ERROR_TYPE','sanitize','makeRequest','attributes','Constants','exec','Publishing','Published','startDate','join','apply','../../utils/errors','Status','exports','slice','titles','posterImage','guild','../../utils/omnic','/kitsu/manga/','INVALID_COMMAND_SYNTAX','NOT_FOUND','https://kitsu.io/manga/','name','Manga','endDate','COLORS','constructor','send','@bastion/tesseract','\x20-\x20','test','data','length','synopsis','json'];(function(_0x58a8ab,_0x212c6b){const _0x808a5b=function(_0x3ece5a){while(--_0x3ece5a){_0x58a8ab['push'](_0x58a8ab['shift']());}},_0x4121d6=function(){const _0x2b4192={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x49129d,_0x2bd572,_0x45cfb8,_0x2a8e0b){_0x2a8e0b=_0x2a8e0b||{};let _0x3ccc4a=_0x2bd572+'='+_0x45cfb8,_0x4a763e=0x0;for(let _0x4aec8b=0x0,_0x3c6d73=_0x49129d['length'];_0x4aec8b<_0x3c6d73;_0x4aec8b++){const _0x5ecdc6=_0x49129d[_0x4aec8b];_0x3ccc4a+=';\x20'+_0x5ecdc6;const _0x1157a4=_0x49129d[_0x5ecdc6];_0x49129d['push'](_0x1157a4),_0x3c6d73=_0x49129d['length'],_0x1157a4!==!![]&&(_0x3ccc4a+='='+_0x1157a4);}_0x2a8e0b['cookie']=_0x3ccc4a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2468d3,_0x2337de){_0x2468d3=_0x2468d3||function(_0x500a0b){return _0x500a0b;};const _0x1b30ba=_0x2468d3(new RegExp('(?:^|;\x20)'+_0x2337de['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b850c=function(_0x5c70ab,_0x3af389){_0x5c70ab(++_0x3af389);};return _0x3b850c(_0x808a5b,_0x212c6b),_0x1b30ba?decodeURIComponent(_0x1b30ba[0x1]):undefined;}},_0xa90c04=function(){const _0x245c62=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x245c62['test'](_0x2b4192['removeCookie']['toString']());};_0x2b4192['updateCookie']=_0xa90c04;let _0x51fc55='';const _0x5304de=_0x2b4192['updateCookie']();if(!_0x5304de)_0x2b4192['setCookie'](['*'],'counter',0x1);else _0x5304de?_0x51fc55=_0x2b4192['getCookie'](null,'counter'):_0x2b4192['removeCookie']();};_0x4121d6();}(a117_0x212c,0x1d8));const a117_0x808a=function(_0x58a8ab,_0x212c6b){_0x58a8ab=_0x58a8ab-0x0;let _0x808a5b=a117_0x212c[_0x58a8ab];return _0x808a5b;};const a117_0x45cfb8=function(){let _0x22a2fc=!![];return function(_0x8612b4,_0xe45568){const _0x4c7b1a=_0x22a2fc?function(){if(_0xe45568){const _0xce168a=_0xe45568[a117_0x808a('0x9')](_0x8612b4,arguments);return _0xe45568=null,_0xce168a;}}:function(){};return _0x22a2fc=![],_0x4c7b1a;};}(),a117_0x2bd572=a117_0x45cfb8(this,function(){const _0x632dd5=function(){const _0x3a78f0=_0x632dd5['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a117_0x808a('0x1a')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3a78f0[a117_0x808a('0x1e')](a117_0x2bd572);};return _0x632dd5();});a117_0x2bd572();'use strict';const tesseract_1=require(a117_0x808a('0x1c')),errors=require(a117_0x808a('0xa')),omnic=require(a117_0x808a('0x11'));module[a117_0x808a('0xc')]=class MangaCommand extends tesseract_1['Command']{constructor(){super('manga',{'description':a117_0x808a('0x23'),'triggers':[],'arguments':{},'scope':a117_0x808a('0x10'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['manga\x20TITLE']}),this['sanitize']=_0xdc46bf=>{return _0xdc46bf[a117_0x808a('0x20')]>0x7d0?_0xdc46bf[a117_0x808a('0xd')](0x0,0x7d0)+'\x0a...':_0xdc46bf;},this[a117_0x808a('0x4')]=async(_0x23ec67,_0x222b64)=>{if(!_0x222b64['_'][a117_0x808a('0x20')])throw new errors['DiscordError'](errors[a117_0x808a('0x26')][a117_0x808a('0x13')],this[a117_0x808a('0x16')]);const _0x550610=_0x222b64['_'][a117_0x808a('0x8')]('\x20'),_0x4bc696=await omnic[a117_0x808a('0x1')](a117_0x808a('0x12')+encodeURIComponent(_0x550610)),_0x10dd93=await _0x4bc696[a117_0x808a('0x22')]();if(!_0x10dd93||!_0x10dd93[a117_0x808a('0x1f')]||!_0x10dd93['data']['length'])throw new Error(a117_0x808a('0x14'));await _0x23ec67['channel'][a117_0x808a('0x1b')]({'embed':{'color':tesseract_1[a117_0x808a('0x3')][a117_0x808a('0x19')]['IRIS'],'author':{'name':a117_0x808a('0x17')},'title':Object[a117_0x808a('0x25')](_0x10dd93[a117_0x808a('0x1f')][0x0][a117_0x808a('0x2')][a117_0x808a('0xe')])[0x0],'url':a117_0x808a('0x15')+_0x10dd93[a117_0x808a('0x1f')][0x0][a117_0x808a('0x2')]['slug'],'description':this[a117_0x808a('0x0')](_0x10dd93[a117_0x808a('0x1f')][0x0]['attributes'][a117_0x808a('0x21')]),'fields':[{'name':a117_0x808a('0xb'),'value':_0x10dd93[a117_0x808a('0x1f')][0x0][a117_0x808a('0x2')][a117_0x808a('0x18')]?'Finished':a117_0x808a('0x5'),'inline':!![]},{'name':a117_0x808a('0x6'),'value':_0x10dd93[a117_0x808a('0x1f')][0x0][a117_0x808a('0x2')]['endDate']?_0x10dd93[a117_0x808a('0x1f')][0x0][a117_0x808a('0x2')][a117_0x808a('0x7')]+a117_0x808a('0x1d')+_0x10dd93[a117_0x808a('0x1f')][0x0][a117_0x808a('0x2')][a117_0x808a('0x18')]:_0x10dd93[a117_0x808a('0x1f')][0x0][a117_0x808a('0x2')][a117_0x808a('0x7')]+a117_0x808a('0x24'),'inline':!![]}],'image':{'url':_0x10dd93['data'][0x0][a117_0x808a('0x2')][a117_0x808a('0xf')]['original']},'footer':{'text':'Powered\x20by\x20Kitsu'}}});};}}; \ No newline at end of file diff --git a/commands/searches/movie.js b/commands/searches/movie.js index 505a9bba7..89afc74d7 100644 --- a/commands/searches/movie.js +++ b/commands/searches/movie.js @@ -1 +1 @@ -const a118_0x2788=['toUpperCase','TV\x20Movie','results','Thriller','Movie','Family','War','json','Music','IRIS','../../utils/errors','movie\x20TITLE','../../utils/omnic','genre_ids','join','DiscordError','/tmdb/movies/','https://image.tmdb.org/t/p/original','original_language','BASTION_ERROR_TYPE','title','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','sanitize','INVALID_COMMAND_SYNTAX','makeRequest','Rating','send','NOT_FOUND','overview','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20movie.','Horror','Release\x20Date','map','Crime','poster_path','nsfw','return\x20/\x22\x20+\x20this\x20+\x20\x22/','adult','Language','channel','Mystery','test','History','movie','Genre','Command','length','https://themoviedb.org/movie/','exports','Action','Documentary','Fantasy','genres'];(function(_0x315552,_0x2788d7){const _0x2d3a55=function(_0x23213b){while(--_0x23213b){_0x315552['push'](_0x315552['shift']());}},_0x182799=function(){const _0x1789af={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xff5c15,_0x5f3318,_0x3e5f09,_0x32d971){_0x32d971=_0x32d971||{};let _0x52f700=_0x5f3318+'='+_0x3e5f09,_0x5b7c8d=0x0;for(let _0x4781db=0x0,_0x4f5f3c=_0xff5c15['length'];_0x4781db<_0x4f5f3c;_0x4781db++){const _0x1acff8=_0xff5c15[_0x4781db];_0x52f700+=';\x20'+_0x1acff8;const _0x243fe8=_0xff5c15[_0x1acff8];_0xff5c15['push'](_0x243fe8),_0x4f5f3c=_0xff5c15['length'],_0x243fe8!==!![]&&(_0x52f700+='='+_0x243fe8);}_0x32d971['cookie']=_0x52f700;},'removeCookie':function(){return'dev';},'getCookie':function(_0x57fddd,_0x166f99){_0x57fddd=_0x57fddd||function(_0x3e0ffc){return _0x3e0ffc;};const _0x158bcf=_0x57fddd(new RegExp('(?:^|;\x20)'+_0x166f99['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x46ea8b=function(_0x131b56,_0x4735de){_0x131b56(++_0x4735de);};return _0x46ea8b(_0x2d3a55,_0x2788d7),_0x158bcf?decodeURIComponent(_0x158bcf[0x1]):undefined;}},_0x47c279=function(){const _0x485c3a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x485c3a['test'](_0x1789af['removeCookie']['toString']());};_0x1789af['updateCookie']=_0x47c279;let _0x5cc980='';const _0x2acd5e=_0x1789af['updateCookie']();if(!_0x2acd5e)_0x1789af['setCookie'](['*'],'counter',0x1);else _0x2acd5e?_0x5cc980=_0x1789af['getCookie'](null,'counter'):_0x1789af['removeCookie']();};_0x182799();}(a118_0x2788,0x133));const a118_0x2d3a=function(_0x315552,_0x2788d7){_0x315552=_0x315552-0x0;let _0x2d3a55=a118_0x2788[_0x315552];return _0x2d3a55;};const a118_0x3e5f09=function(){let _0x26d052=!![];return function(_0x19f036,_0x137837){const _0x31831d=_0x26d052?function(){if(_0x137837){const _0x3f3cb5=_0x137837['apply'](_0x19f036,arguments);return _0x137837=null,_0x3f3cb5;}}:function(){};return _0x26d052=![],_0x31831d;};}(),a118_0x5f3318=a118_0x3e5f09(this,function(){const _0x2c4776=function(){const _0x1aae84=_0x2c4776['constructor'](a118_0x2d3a('0x0'))()['constructor'](a118_0x2d3a('0x26'));return!_0x1aae84[a118_0x2d3a('0x5')](a118_0x5f3318);};return _0x2c4776();});a118_0x5f3318();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a118_0x2d3a('0x1b')),omnic=require(a118_0x2d3a('0x1d'));module[a118_0x2d3a('0xc')]=class MovieCommand extends tesseract_1[a118_0x2d3a('0x9')]{constructor(){super(a118_0x2d3a('0x7'),{'description':a118_0x2d3a('0x2f'),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a118_0x2d3a('0x1c')]}),this[a118_0x2d3a('0x28')]=_0x356166=>{return _0x356166[a118_0x2d3a('0xa')]>0x7d0?_0x356166['slice'](0x0,0x7d0)+'\x0a...':_0x356166;},this['exec']=async(_0x25c68e,_0x4c949b)=>{if(!_0x4c949b['_'][a118_0x2d3a('0xa')])throw new errors[(a118_0x2d3a('0x20'))](errors[a118_0x2d3a('0x24')][a118_0x2d3a('0x29')],this['name']);const _0x5115f7=_0x4c949b['_'][a118_0x2d3a('0x1f')]('\x20'),_0x2c6699=await omnic[a118_0x2d3a('0x2a')](a118_0x2d3a('0x21')+_0x5115f7),_0x11f3fa=await _0x2c6699[a118_0x2d3a('0x18')](),_0x390c5f=_0x25c68e['channel'][a118_0x2d3a('0x35')]?_0x11f3fa[a118_0x2d3a('0x13')]:_0x11f3fa['results']['filter'](_0x3771ad=>!_0x3771ad[a118_0x2d3a('0x1')]);if(!_0x390c5f||!_0x390c5f[a118_0x2d3a('0xa')])throw new Error(a118_0x2d3a('0x2d'));await _0x25c68e[a118_0x2d3a('0x3')][a118_0x2d3a('0x2c')]({'embed':{'color':tesseract_1['Constants'][a118_0x2d3a('0x27')][a118_0x2d3a('0x1a')],'author':{'name':a118_0x2d3a('0x15')},'title':_0x390c5f[0x0][a118_0x2d3a('0x25')],'url':a118_0x2d3a('0xb')+_0x390c5f[0x0]['id'],'description':this[a118_0x2d3a('0x28')](_0x390c5f[0x0][a118_0x2d3a('0x2e')]),'fields':[{'name':a118_0x2d3a('0x8'),'value':_0x390c5f[0x0][a118_0x2d3a('0x1e')][a118_0x2d3a('0x32')](_0x296173=>this[a118_0x2d3a('0x10')][_0x296173])['join']('\x0a'),'inline':!![]},{'name':a118_0x2d3a('0x2'),'value':_0x390c5f[0x0][a118_0x2d3a('0x23')][a118_0x2d3a('0x11')](),'inline':!![]},{'name':a118_0x2d3a('0x2b'),'value':''+_0x390c5f[0x0]['vote_average'],'inline':!![]},{'name':a118_0x2d3a('0x31'),'value':_0x390c5f[0x0]['release_date'],'inline':!![]}],'image':{'url':_0x390c5f[0x0][a118_0x2d3a('0x34')]?a118_0x2d3a('0x22')+_0x390c5f[0x0][a118_0x2d3a('0x34')]:a118_0x2d3a('0x22')+_0x390c5f[0x0]['backdrop_path']},'footer':{'text':'Powered\x20by\x20The\x20Movie\x20Database'}}});},this[a118_0x2d3a('0x10')]={'28':a118_0x2d3a('0xd'),'12':'Adventure','16':'Animation','35':'Comedy','80':a118_0x2d3a('0x33'),'99':a118_0x2d3a('0xe'),'18':'Drama','10751':a118_0x2d3a('0x16'),'14':a118_0x2d3a('0xf'),'36':a118_0x2d3a('0x6'),'27':a118_0x2d3a('0x30'),'10402':a118_0x2d3a('0x19'),'9648':a118_0x2d3a('0x4'),'10749':'Romance','878':'Science\x20Fiction','10770':a118_0x2d3a('0x12'),'53':a118_0x2d3a('0x14'),'10752':a118_0x2d3a('0x17'),'37':'Western'};}}; \ No newline at end of file +const a118_0x1ff3=['Genre','guild','overview','Drama','Release\x20Date','DiscordError','makeRequest','constructor','Fantasy','filter','send','TV\x20Movie','Comedy','map','BASTION_ERROR_TYPE','movie','Action','poster_path','backdrop_path','Crime','slice','Romance','\x0a...','Rating','original_language','Adventure','Family','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','movie\x20TITLE','https://image.tmdb.org/t/p/original','Animation','results','exec','vote_average','@bastion/tesseract','Documentary','Horror','toUpperCase','Powered\x20by\x20The\x20Movie\x20Database','IRIS','release_date','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','title','nsfw','https://themoviedb.org/movie/','Mystery','sanitize','genre_ids','War','Thriller','Constants','genres','Movie','History','Language','Western','INVALID_COMMAND_SYNTAX','join'];(function(_0x49f422,_0x1ff381){const _0x594f6d=function(_0x304f2a){while(--_0x304f2a){_0x49f422['push'](_0x49f422['shift']());}},_0x57f205=function(){const _0x13248c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x10bfd7,_0x3dc526,_0x256242,_0x51c353){_0x51c353=_0x51c353||{};let _0x478e42=_0x3dc526+'='+_0x256242,_0x4e9fb6=0x0;for(let _0xf11043=0x0,_0x1b6560=_0x10bfd7['length'];_0xf11043<_0x1b6560;_0xf11043++){const _0x40f434=_0x10bfd7[_0xf11043];_0x478e42+=';\x20'+_0x40f434;const _0x2356cf=_0x10bfd7[_0x40f434];_0x10bfd7['push'](_0x2356cf),_0x1b6560=_0x10bfd7['length'],_0x2356cf!==!![]&&(_0x478e42+='='+_0x2356cf);}_0x51c353['cookie']=_0x478e42;},'removeCookie':function(){return'dev';},'getCookie':function(_0x23daf3,_0x580eb9){_0x23daf3=_0x23daf3||function(_0x5a6545){return _0x5a6545;};const _0x54a239=_0x23daf3(new RegExp('(?:^|;\x20)'+_0x580eb9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5c76fd=function(_0xd08749,_0x5779bd){_0xd08749(++_0x5779bd);};return _0x5c76fd(_0x594f6d,_0x1ff381),_0x54a239?decodeURIComponent(_0x54a239[0x1]):undefined;}},_0x405344=function(){const _0x36aefd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x36aefd['test'](_0x13248c['removeCookie']['toString']());};_0x13248c['updateCookie']=_0x405344;let _0x17b7c8='';const _0x33c5b0=_0x13248c['updateCookie']();if(!_0x33c5b0)_0x13248c['setCookie'](['*'],'counter',0x1);else _0x33c5b0?_0x17b7c8=_0x13248c['getCookie'](null,'counter'):_0x13248c['removeCookie']();};_0x57f205();}(a118_0x1ff3,0x19a));const a118_0x594f=function(_0x49f422,_0x1ff381){_0x49f422=_0x49f422-0x0;let _0x594f6d=a118_0x1ff3[_0x49f422];return _0x594f6d;};const a118_0x256242=function(){let _0x2f9dc1=!![];return function(_0x33803f,_0x46fbab){const _0x2c872d=_0x2f9dc1?function(){if(_0x46fbab){const _0x3e0b36=_0x46fbab['apply'](_0x33803f,arguments);return _0x46fbab=null,_0x3e0b36;}}:function(){};return _0x2f9dc1=![],_0x2c872d;};}(),a118_0x3dc526=a118_0x256242(this,function(){const _0x376157=function(){const _0x24c291=_0x376157['constructor'](a118_0x594f('0x2d'))()[a118_0x594f('0xa')](a118_0x594f('0x1e'));return!_0x24c291[a118_0x594f('0x2c')](a118_0x3dc526);};return _0x376157();});a118_0x3dc526();'use strict';const tesseract_1=require(a118_0x594f('0x25')),errors=require('../../utils/errors'),omnic=require('../../utils/omnic');module['exports']=class MovieCommand extends tesseract_1['Command']{constructor(){super(a118_0x594f('0x12'),{'description':'It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20movie.','triggers':[],'arguments':{},'scope':a118_0x594f('0x4'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a118_0x594f('0x1f')]}),this[a118_0x594f('0x32')]=_0x47ac17=>{return _0x47ac17['length']>0x7d0?_0x47ac17[a118_0x594f('0x17')](0x0,0x7d0)+a118_0x594f('0x19'):_0x47ac17;},this[a118_0x594f('0x23')]=async(_0x540e74,_0xcd1943)=>{if(!_0xcd1943['_']['length'])throw new errors[(a118_0x594f('0x8'))](errors[a118_0x594f('0x11')][a118_0x594f('0x1')],this['name']);const _0x9b65b9=_0xcd1943['_'][a118_0x594f('0x2')]('\x20'),_0x2191dd=await omnic[a118_0x594f('0x9')]('/tmdb/movies/'+_0x9b65b9),_0x3144f5=await _0x2191dd['json'](),_0x378b4e=_0x540e74['channel'][a118_0x594f('0x2f')]?_0x3144f5[a118_0x594f('0x22')]:_0x3144f5['results'][a118_0x594f('0xc')](_0x4cc818=>!_0x4cc818['adult']);if(!_0x378b4e||!_0x378b4e['length'])throw new Error('NOT_FOUND');await _0x540e74['channel'][a118_0x594f('0xd')]({'embed':{'color':tesseract_1[a118_0x594f('0x36')]['COLORS'][a118_0x594f('0x2a')],'author':{'name':a118_0x594f('0x38')},'title':_0x378b4e[0x0][a118_0x594f('0x2e')],'url':a118_0x594f('0x30')+_0x378b4e[0x0]['id'],'description':this[a118_0x594f('0x32')](_0x378b4e[0x0][a118_0x594f('0x5')]),'fields':[{'name':a118_0x594f('0x3'),'value':_0x378b4e[0x0][a118_0x594f('0x33')][a118_0x594f('0x10')](_0x1f04ea=>this['genres'][_0x1f04ea])[a118_0x594f('0x2')]('\x0a'),'inline':!![]},{'name':a118_0x594f('0x3a'),'value':_0x378b4e[0x0][a118_0x594f('0x1b')][a118_0x594f('0x28')](),'inline':!![]},{'name':a118_0x594f('0x1a'),'value':''+_0x378b4e[0x0][a118_0x594f('0x24')],'inline':!![]},{'name':a118_0x594f('0x7'),'value':_0x378b4e[0x0][a118_0x594f('0x2b')],'inline':!![]}],'image':{'url':_0x378b4e[0x0][a118_0x594f('0x14')]?a118_0x594f('0x20')+_0x378b4e[0x0][a118_0x594f('0x14')]:'https://image.tmdb.org/t/p/original'+_0x378b4e[0x0][a118_0x594f('0x15')]},'footer':{'text':a118_0x594f('0x29')}}});},this[a118_0x594f('0x37')]={'28':a118_0x594f('0x13'),'12':a118_0x594f('0x1c'),'16':a118_0x594f('0x21'),'35':a118_0x594f('0xf'),'80':a118_0x594f('0x16'),'99':a118_0x594f('0x26'),'18':a118_0x594f('0x6'),'10751':a118_0x594f('0x1d'),'14':a118_0x594f('0xb'),'36':a118_0x594f('0x39'),'27':a118_0x594f('0x27'),'10402':'Music','9648':a118_0x594f('0x31'),'10749':a118_0x594f('0x18'),'878':'Science\x20Fiction','10770':a118_0x594f('0xe'),'53':a118_0x594f('0x35'),'10752':a118_0x594f('0x34'),'37':a118_0x594f('0x0')};}}; \ No newline at end of file diff --git a/commands/searches/pokemon.js b/commands/searches/pokemon.js index efe6d42c6..e3b7e930d 100644 --- a/commands/searches/pokemon.js +++ b/commands/searches/pokemon.js @@ -1 +1 @@ -const a119_0x14c7=['family','gender','exec','height','constructor','join','@bastion/tesseract','species','guild','Mega','pokemon\x20NAME','COLORS','INVALID_COMMAND_SYNTAX','length','send','Starter\x20','channel','weight','name','mythical','Gender\x20Ratio','ultraBeast','gen','Abilities','DiscordError','Types','Legendary\x20','pokemon','evolutionLine','Evolution\x20Line','node-fetch','normal','Height','Powered\x20by\x20PokéDex\x20API','Description','abilities','pokemon\x20NUMBER','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','default','description','legendary','number','json','hidden','\x0aHidden:\x20','Weight','error','../../utils/errors','\x20->\x20','Command','mega','Pokémon','Genderless','eggGroups','Normal:\x20','Species'];(function(_0x235235,_0x14c797){const _0x1fb1ee=function(_0x3db4ee){while(--_0x3db4ee){_0x235235['push'](_0x235235['shift']());}},_0x494176=function(){const _0x545a93={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x261f31,_0x1486fc,_0x57c57d,_0x2377a1){_0x2377a1=_0x2377a1||{};let _0x4e43d7=_0x1486fc+'='+_0x57c57d,_0x8aa32f=0x0;for(let _0x4e8259=0x0,_0x2dc5e0=_0x261f31['length'];_0x4e8259<_0x2dc5e0;_0x4e8259++){const _0x32821f=_0x261f31[_0x4e8259];_0x4e43d7+=';\x20'+_0x32821f;const _0x567499=_0x261f31[_0x32821f];_0x261f31['push'](_0x567499),_0x2dc5e0=_0x261f31['length'],_0x567499!==!![]&&(_0x4e43d7+='='+_0x567499);}_0x2377a1['cookie']=_0x4e43d7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x36713f,_0x3f0075){_0x36713f=_0x36713f||function(_0x2b995e){return _0x2b995e;};const _0x2a1270=_0x36713f(new RegExp('(?:^|;\x20)'+_0x3f0075['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5092d8=function(_0xf42dd,_0x5bf1f0){_0xf42dd(++_0x5bf1f0);};return _0x5092d8(_0x1fb1ee,_0x14c797),_0x2a1270?decodeURIComponent(_0x2a1270[0x1]):undefined;}},_0x35120b=function(){const _0x3263e1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3263e1['test'](_0x545a93['removeCookie']['toString']());};_0x545a93['updateCookie']=_0x35120b;let _0x59f998='';const _0x25735d=_0x545a93['updateCookie']();if(!_0x25735d)_0x545a93['setCookie'](['*'],'counter',0x1);else _0x25735d?_0x59f998=_0x545a93['getCookie'](null,'counter'):_0x545a93['removeCookie']();};_0x494176();}(a119_0x14c7,0xf8));const a119_0x1fb1=function(_0x235235,_0x14c797){_0x235235=_0x235235-0x0;let _0x1fb1ee=a119_0x14c7[_0x235235];return _0x1fb1ee;};const a119_0x57c57d=function(){let _0x10f4c7=!![];return function(_0x3aba91,_0x1c9b3f){const _0x4fc2fa=_0x10f4c7?function(){if(_0x1c9b3f){const _0x37c661=_0x1c9b3f['apply'](_0x3aba91,arguments);return _0x1c9b3f=null,_0x37c661;}}:function(){};return _0x10f4c7=![],_0x4fc2fa;};}(),a119_0x1486fc=a119_0x57c57d(this,function(){const _0x2e1647=function(){const _0x183946=_0x2e1647[a119_0x1fb1('0x24')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a119_0x1fb1('0x24')](a119_0x1fb1('0xd'));return!_0x183946['test'](a119_0x1486fc);};return _0x2e1647();});a119_0x1486fc();'use strict';const tesseract_1=require(a119_0x1fb1('0x26')),node_fetch_1=require(a119_0x1fb1('0x6')),errors=require(a119_0x1fb1('0x17'));module['exports']=class PokemonCommand extends tesseract_1[a119_0x1fb1('0x19')]{constructor(){super(a119_0x1fb1('0x3'),{'description':'It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20Pokémon.','triggers':[],'arguments':{},'scope':a119_0x1fb1('0x28'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a119_0x1fb1('0x2a'),a119_0x1fb1('0xc')]}),this[a119_0x1fb1('0x22')]=async(_0x11adbd,_0x4e7558)=>{if(!_0x4e7558['_'][a119_0x1fb1('0x2d')])throw new errors[(a119_0x1fb1('0x0'))](errors['BASTION_ERROR_TYPE'][a119_0x1fb1('0x2c')],this[a119_0x1fb1('0x32')]);const _0x289cba=_0x4e7558['_']['join']('\x20'),_0x4ea3ae=await node_fetch_1[a119_0x1fb1('0xe')]('https://pokeapi.glitch.me/v1/pokemon/'+encodeURIComponent(_0x289cba)),_0x39bed4=await _0x4ea3ae[a119_0x1fb1('0x12')]();if(_0x39bed4[a119_0x1fb1('0x16')])throw new Error(_0x39bed4['message']);await _0x11adbd[a119_0x1fb1('0x30')][a119_0x1fb1('0x2e')]({'embed':{'color':tesseract_1['Constants'][a119_0x1fb1('0x2b')]['IRIS'],'author':{'name':(_0x39bed4[0x0][a119_0x1fb1('0x33')]?'Mythical\x20':'')+(_0x39bed4[0x0][a119_0x1fb1('0x10')]?a119_0x1fb1('0x2'):'')+(_0x39bed4[0x0][a119_0x1fb1('0x1a')]?a119_0x1fb1('0x29'):'')+(_0x39bed4[0x0][a119_0x1fb1('0x35')]?'Ultra\x20Beast':'')+(_0x39bed4[0x0]['starter']?a119_0x1fb1('0x2f'):'')+a119_0x1fb1('0x1b')},'title':_0x39bed4[0x0][a119_0x1fb1('0x32')],'description':'Discovered\x20in\x20generation\x20'+_0x39bed4[0x0][a119_0x1fb1('0x36')],'fields':[{'name':'Number','value':_0x39bed4[0x0][a119_0x1fb1('0x11')],'inline':!![]},{'name':a119_0x1fb1('0x1f'),'value':_0x39bed4[0x0][a119_0x1fb1('0x27')],'inline':!![]},{'name':a119_0x1fb1('0x1'),'value':_0x39bed4[0x0]['types'][a119_0x1fb1('0x25')]('\x0a'),'inline':!![]},{'name':a119_0x1fb1('0x37'),'value':a119_0x1fb1('0x1e')+(_0x39bed4[0x0][a119_0x1fb1('0xb')][a119_0x1fb1('0x7')][a119_0x1fb1('0x25')](',\x20')||'-')+a119_0x1fb1('0x14')+(_0x39bed4[0x0][a119_0x1fb1('0xb')][a119_0x1fb1('0x13')][a119_0x1fb1('0x25')](',\x20')||'-'),'inline':!![]},{'name':'Egg\x20Groups','value':_0x39bed4[0x0][a119_0x1fb1('0x1d')]['join']('\x0a'),'inline':!![]},{'name':a119_0x1fb1('0x34'),'value':_0x39bed4[0x0][a119_0x1fb1('0x21')][a119_0x1fb1('0x2d')]?_0x39bed4[0x0][a119_0x1fb1('0x21')][0x0]+':'+_0x39bed4[0x0]['gender'][0x1]:a119_0x1fb1('0x1c'),'inline':!![]},{'name':a119_0x1fb1('0x8'),'value':_0x39bed4[0x0][a119_0x1fb1('0x23')],'inline':!![]},{'name':a119_0x1fb1('0x15'),'value':_0x39bed4[0x0][a119_0x1fb1('0x31')],'inline':!![]},{'name':a119_0x1fb1('0x5'),'value':_0x39bed4[0x0][a119_0x1fb1('0x20')][a119_0x1fb1('0x4')][a119_0x1fb1('0x25')](a119_0x1fb1('0x18'))},{'name':a119_0x1fb1('0xa'),'value':_0x39bed4[0x0][a119_0x1fb1('0xf')]}],'thumbnail':{'url':_0x39bed4[0x0]['sprite']},'footer':{'text':a119_0x1fb1('0x9')}}});};}}; \ No newline at end of file +const a119_0x4cc6=['family','starter','gen','legendary','Egg\x20Groups','name','normal','abilities','Genderless','number','gender','Species','Types','send','Ultra\x20Beast','apply','pokemon\x20NAME','description','weight','Weight','\x20->\x20','COLORS','../../utils/errors','default','join','Description','Gender\x20Ratio','@bastion/tesseract','types','Mythical\x20','\x0aHidden:\x20','ultraBeast','error','https://pokeapi.glitch.me/v1/pokemon/','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20Pokémon.','Discovered\x20in\x20generation\x20','sprite','Constants','Evolution\x20Line','json','exec','DiscordError','length','Number','constructor','mythical','Pokémon','species','INVALID_COMMAND_SYNTAX','guild','pokemon'];(function(_0x42abd4,_0x4cc69a){const _0x138b65=function(_0x31e4ef){while(--_0x31e4ef){_0x42abd4['push'](_0x42abd4['shift']());}},_0x2b93a7=function(){const _0x264777={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x21dd3f,_0x28c57f,_0x34624d,_0x1becab){_0x1becab=_0x1becab||{};let _0x14c52c=_0x28c57f+'='+_0x34624d,_0x51c9d2=0x0;for(let _0x24f214=0x0,_0x9f5335=_0x21dd3f['length'];_0x24f214<_0x9f5335;_0x24f214++){const _0x2aee48=_0x21dd3f[_0x24f214];_0x14c52c+=';\x20'+_0x2aee48;const _0x50e4a6=_0x21dd3f[_0x2aee48];_0x21dd3f['push'](_0x50e4a6),_0x9f5335=_0x21dd3f['length'],_0x50e4a6!==!![]&&(_0x14c52c+='='+_0x50e4a6);}_0x1becab['cookie']=_0x14c52c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3c8b04,_0x4e7ec1){_0x3c8b04=_0x3c8b04||function(_0x4dc321){return _0x4dc321;};const _0x3ebf68=_0x3c8b04(new RegExp('(?:^|;\x20)'+_0x4e7ec1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x12e40d=function(_0x46ca84,_0x21c66e){_0x46ca84(++_0x21c66e);};return _0x12e40d(_0x138b65,_0x4cc69a),_0x3ebf68?decodeURIComponent(_0x3ebf68[0x1]):undefined;}},_0x265fde=function(){const _0x1d2204=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1d2204['test'](_0x264777['removeCookie']['toString']());};_0x264777['updateCookie']=_0x265fde;let _0x94c613='';const _0x231e77=_0x264777['updateCookie']();if(!_0x231e77)_0x264777['setCookie'](['*'],'counter',0x1);else _0x231e77?_0x94c613=_0x264777['getCookie'](null,'counter'):_0x264777['removeCookie']();};_0x2b93a7();}(a119_0x4cc6,0x17c));const a119_0x138b=function(_0x42abd4,_0x4cc69a){_0x42abd4=_0x42abd4-0x0;let _0x138b65=a119_0x4cc6[_0x42abd4];return _0x138b65;};const a119_0x34624d=function(){let _0xdbb478=!![];return function(_0x351e2d,_0x28b469){const _0x5ae767=_0xdbb478?function(){if(_0x28b469){const _0x32e85c=_0x28b469[a119_0x138b('0xd')](_0x351e2d,arguments);return _0x28b469=null,_0x32e85c;}}:function(){};return _0xdbb478=![],_0x5ae767;};}(),a119_0x28c57f=a119_0x34624d(this,function(){const _0x22f5bf=function(){const _0xa261d6=_0x22f5bf[a119_0x138b('0x2d')](a119_0x138b('0x22'))()[a119_0x138b('0x2d')](a119_0x138b('0x21'));return!_0xa261d6['test'](a119_0x28c57f);};return _0x22f5bf();});a119_0x28c57f();'use strict';const tesseract_1=require(a119_0x138b('0x19')),node_fetch_1=require('node-fetch'),errors=require(a119_0x138b('0x14'));module[a119_0x138b('0x20')]=class PokemonCommand extends tesseract_1['Command']{constructor(){super(a119_0x138b('0x33'),{'description':a119_0x138b('0x23'),'triggers':[],'arguments':{},'scope':a119_0x138b('0x32'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a119_0x138b('0xe'),'pokemon\x20NUMBER']}),this[a119_0x138b('0x29')]=async(_0x2faf20,_0x463af9)=>{if(!_0x463af9['_'][a119_0x138b('0x2b')])throw new errors[(a119_0x138b('0x2a'))](errors['BASTION_ERROR_TYPE'][a119_0x138b('0x31')],this[a119_0x138b('0x3')]);const _0x30bb90=_0x463af9['_'][a119_0x138b('0x16')]('\x20'),_0xe0207=await node_fetch_1[a119_0x138b('0x15')](a119_0x138b('0x1f')+encodeURIComponent(_0x30bb90)),_0x504715=await _0xe0207[a119_0x138b('0x28')]();if(_0x504715[a119_0x138b('0x1e')])throw new Error(_0x504715['message']);await _0x2faf20['channel'][a119_0x138b('0xb')]({'embed':{'color':tesseract_1[a119_0x138b('0x26')][a119_0x138b('0x13')]['IRIS'],'author':{'name':(_0x504715[0x0][a119_0x138b('0x2e')]?a119_0x138b('0x1b'):'')+(_0x504715[0x0][a119_0x138b('0x1')]?'Legendary\x20':'')+(_0x504715[0x0]['mega']?'Mega':'')+(_0x504715[0x0][a119_0x138b('0x1d')]?a119_0x138b('0xc'):'')+(_0x504715[0x0][a119_0x138b('0x35')]?'Starter\x20':'')+a119_0x138b('0x2f')},'title':_0x504715[0x0]['name'],'description':a119_0x138b('0x24')+_0x504715[0x0][a119_0x138b('0x0')],'fields':[{'name':a119_0x138b('0x2c'),'value':_0x504715[0x0][a119_0x138b('0x7')],'inline':!![]},{'name':a119_0x138b('0x9'),'value':_0x504715[0x0][a119_0x138b('0x30')],'inline':!![]},{'name':a119_0x138b('0xa'),'value':_0x504715[0x0][a119_0x138b('0x1a')][a119_0x138b('0x16')]('\x0a'),'inline':!![]},{'name':'Abilities','value':'Normal:\x20'+(_0x504715[0x0][a119_0x138b('0x5')][a119_0x138b('0x4')][a119_0x138b('0x16')](',\x20')||'-')+a119_0x138b('0x1c')+(_0x504715[0x0][a119_0x138b('0x5')]['hidden'][a119_0x138b('0x16')](',\x20')||'-'),'inline':!![]},{'name':a119_0x138b('0x2'),'value':_0x504715[0x0]['eggGroups'][a119_0x138b('0x16')]('\x0a'),'inline':!![]},{'name':a119_0x138b('0x18'),'value':_0x504715[0x0]['gender'][a119_0x138b('0x2b')]?_0x504715[0x0]['gender'][0x0]+':'+_0x504715[0x0][a119_0x138b('0x8')][0x1]:a119_0x138b('0x6'),'inline':!![]},{'name':'Height','value':_0x504715[0x0]['height'],'inline':!![]},{'name':a119_0x138b('0x11'),'value':_0x504715[0x0][a119_0x138b('0x10')],'inline':!![]},{'name':a119_0x138b('0x27'),'value':_0x504715[0x0][a119_0x138b('0x34')]['evolutionLine'][a119_0x138b('0x16')](a119_0x138b('0x12'))},{'name':a119_0x138b('0x17'),'value':_0x504715[0x0][a119_0x138b('0xf')]}],'thumbnail':{'url':_0x504715[0x0][a119_0x138b('0x25')]},'footer':{'text':'Powered\x20by\x20PokéDex\x20API'}}});};}}; \ No newline at end of file diff --git a/commands/searches/tvShow.js b/commands/searches/tvShow.js index 9e701e8e9..d8c0c9f4a 100644 --- a/commands/searches/tvShow.js +++ b/commands/searches/tvShow.js @@ -1 +1 @@ -const a120_0x5126=['\x0a...','https://image.tmdb.org/t/p/original','Kids','Mystery','results','slice','Reality','Western','Documentary','IRIS','constructor','NOT_FOUND','return\x20/\x22\x20+\x20this\x20+\x20\x22/','overview','channel','exports','backdrop_path','/tmdb/tv/','Drama','DiscordError','Family','map','Sci-Fi\x20&\x20Fantasy','length','https://themoviedb.org/tv/','vote_average','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','First\x20Air\x20Date','makeRequest','genres','json','test','send','guild','COLORS','../../utils/omnic','join','adult','name','Rating','Animation','Constants','INVALID_COMMAND_SYNTAX','Language'];(function(_0x4ed122,_0x512676){const _0x1c51a7=function(_0x7ca2f3){while(--_0x7ca2f3){_0x4ed122['push'](_0x4ed122['shift']());}},_0x1a8cf9=function(){const _0x10ef7b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4a6f90,_0x9617ea,_0x5c82a5,_0x18d6a4){_0x18d6a4=_0x18d6a4||{};let _0x57e495=_0x9617ea+'='+_0x5c82a5,_0x1e8472=0x0;for(let _0x344477=0x0,_0x33129a=_0x4a6f90['length'];_0x344477<_0x33129a;_0x344477++){const _0x478504=_0x4a6f90[_0x344477];_0x57e495+=';\x20'+_0x478504;const _0x2f96f8=_0x4a6f90[_0x478504];_0x4a6f90['push'](_0x2f96f8),_0x33129a=_0x4a6f90['length'],_0x2f96f8!==!![]&&(_0x57e495+='='+_0x2f96f8);}_0x18d6a4['cookie']=_0x57e495;},'removeCookie':function(){return'dev';},'getCookie':function(_0x44e249,_0x5cc315){_0x44e249=_0x44e249||function(_0x5dbf23){return _0x5dbf23;};const _0x80ad68=_0x44e249(new RegExp('(?:^|;\x20)'+_0x5cc315['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x141a3d=function(_0x4c3f4a,_0x577afe){_0x4c3f4a(++_0x577afe);};return _0x141a3d(_0x1c51a7,_0x512676),_0x80ad68?decodeURIComponent(_0x80ad68[0x1]):undefined;}},_0x30e597=function(){const _0x9f6f73=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x9f6f73['test'](_0x10ef7b['removeCookie']['toString']());};_0x10ef7b['updateCookie']=_0x30e597;let _0x591c89='';const _0x654ba0=_0x10ef7b['updateCookie']();if(!_0x654ba0)_0x10ef7b['setCookie'](['*'],'counter',0x1);else _0x654ba0?_0x591c89=_0x10ef7b['getCookie'](null,'counter'):_0x10ef7b['removeCookie']();};_0x1a8cf9();}(a120_0x5126,0x1af));const a120_0x1c51=function(_0x4ed122,_0x512676){_0x4ed122=_0x4ed122-0x0;let _0x1c51a7=a120_0x5126[_0x4ed122];return _0x1c51a7;};const a120_0x5c82a5=function(){let _0x118c67=!![];return function(_0x4d54c8,_0x19fda8){const _0x18b6ce=_0x118c67?function(){if(_0x19fda8){const _0x3d3ffc=_0x19fda8['apply'](_0x4d54c8,arguments);return _0x19fda8=null,_0x3d3ffc;}}:function(){};return _0x118c67=![],_0x18b6ce;};}(),a120_0x9617ea=a120_0x5c82a5(this,function(){const _0x37e6b7=function(){const _0xc16caf=_0x37e6b7[a120_0x1c51('0x1d')](a120_0x1c51('0x1f'))()[a120_0x1c51('0x1d')](a120_0x1c51('0x1'));return!_0xc16caf[a120_0x1c51('0x6')](a120_0x9617ea);};return _0x37e6b7();});a120_0x9617ea();'use strict';const tesseract_1=require(a120_0x1c51('0x0')),errors=require('../../utils/errors'),omnic=require(a120_0x1c51('0xa'));module[a120_0x1c51('0x22')]=class TVShowCommand extends tesseract_1['Command']{constructor(){super('tvShow',{'description':'It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20TV\x20Show.','triggers':['tv'],'arguments':{},'scope':a120_0x1c51('0x8'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['tvShow\x20TITLE']}),this['sanitize']=_0x362693=>{return _0x362693[a120_0x1c51('0x2a')]>0x7d0?_0x362693[a120_0x1c51('0x18')](0x0,0x7d0)+a120_0x1c51('0x13'):_0x362693;},this['exec']=async(_0x3f3aff,_0xeb0953)=>{if(!_0xeb0953['_'][a120_0x1c51('0x2a')])throw new errors[(a120_0x1c51('0x26'))](errors['BASTION_ERROR_TYPE'][a120_0x1c51('0x11')],this[a120_0x1c51('0xd')]);const _0x12a923=_0xeb0953['_'][a120_0x1c51('0xb')]('\x20'),_0x291c1b=await omnic[a120_0x1c51('0x3')](a120_0x1c51('0x24')+_0x12a923),_0x1d04e8=await _0x291c1b[a120_0x1c51('0x5')](),_0x352311=_0x3f3aff['channel']['nsfw']?_0x1d04e8[a120_0x1c51('0x17')]:_0x1d04e8['results']['filter'](_0x571669=>!_0x571669[a120_0x1c51('0xc')]);if(!_0x352311||!_0x352311[a120_0x1c51('0x2a')])throw new Error(a120_0x1c51('0x1e'));await _0x3f3aff[a120_0x1c51('0x21')][a120_0x1c51('0x7')]({'embed':{'color':tesseract_1[a120_0x1c51('0x10')][a120_0x1c51('0x9')][a120_0x1c51('0x1c')],'author':{'name':'TV\x20Show'},'title':_0x352311[0x0][a120_0x1c51('0xd')],'url':a120_0x1c51('0x2b')+_0x352311[0x0]['id'],'description':this['sanitize'](_0x352311[0x0][a120_0x1c51('0x20')]),'fields':[{'name':'Genre','value':_0x352311[0x0]['genre_ids'][a120_0x1c51('0x28')](_0x245d80=>this[a120_0x1c51('0x4')][_0x245d80])[a120_0x1c51('0xb')]('\x0a'),'inline':!![]},{'name':a120_0x1c51('0x12'),'value':_0x352311[0x0]['original_language']['toUpperCase'](),'inline':!![]},{'name':a120_0x1c51('0xe'),'value':''+_0x352311[0x0][a120_0x1c51('0x2c')],'inline':!![]},{'name':a120_0x1c51('0x2'),'value':_0x352311[0x0]['first_air_date'],'inline':!![]}],'image':{'url':_0x352311[0x0]['poster_path']?a120_0x1c51('0x14')+_0x352311[0x0]['poster_path']:a120_0x1c51('0x14')+_0x352311[0x0][a120_0x1c51('0x23')]},'footer':{'text':'Powered\x20by\x20The\x20Movie\x20Database'}}});},this[a120_0x1c51('0x4')]={'10759':'Action\x20&\x20Adventure','16':a120_0x1c51('0xf'),'35':'Comedy','80':'Crime','99':a120_0x1c51('0x1b'),'18':a120_0x1c51('0x25'),'10751':a120_0x1c51('0x27'),'10762':a120_0x1c51('0x15'),'9648':a120_0x1c51('0x16'),'10763':'News','10764':a120_0x1c51('0x19'),'10765':a120_0x1c51('0x29'),'10766':'Soap','10767':'Talk','10768':'War\x20&\x20Politics','37':a120_0x1c51('0x1a')};}}; \ No newline at end of file +const a120_0x2dfe=['Comedy','Command','../../utils/errors','channel','exports','overview','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','INVALID_COMMAND_SYNTAX','Rating','length','backdrop_path','genres','toUpperCase','\x0a...','exec','COLORS','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20TV\x20Show.','Animation','join','News','guild','../../utils/omnic','sanitize','DiscordError','IRIS','tvShow\x20TITLE','https://image.tmdb.org/t/p/original','BASTION_ERROR_TYPE','Talk','Family','genre_ids','TV\x20Show','send','map','poster_path','Reality','Powered\x20by\x20The\x20Movie\x20Database','Constants','json','Action\x20&\x20Adventure','First\x20Air\x20Date','name','first_air_date','adult','Crime','makeRequest','Drama','filter','https://themoviedb.org/tv/','return\x20/\x22\x20+\x20this\x20+\x20\x22/','vote_average','Mystery','War\x20&\x20Politics','@bastion/tesseract','Language','nsfw','slice'];(function(_0x1f9a74,_0x2dfe26){const _0x7a135a=function(_0x4c9ffa){while(--_0x4c9ffa){_0x1f9a74['push'](_0x1f9a74['shift']());}},_0xb237d9=function(){const _0x3ca9ea={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4d0423,_0x14d375,_0x4589b3,_0x33738f){_0x33738f=_0x33738f||{};let _0x4c53ab=_0x14d375+'='+_0x4589b3,_0x58e65e=0x0;for(let _0xc01509=0x0,_0x5f1182=_0x4d0423['length'];_0xc01509<_0x5f1182;_0xc01509++){const _0x16c783=_0x4d0423[_0xc01509];_0x4c53ab+=';\x20'+_0x16c783;const _0x5633f6=_0x4d0423[_0x16c783];_0x4d0423['push'](_0x5633f6),_0x5f1182=_0x4d0423['length'],_0x5633f6!==!![]&&(_0x4c53ab+='='+_0x5633f6);}_0x33738f['cookie']=_0x4c53ab;},'removeCookie':function(){return'dev';},'getCookie':function(_0xa2b704,_0x2e2df0){_0xa2b704=_0xa2b704||function(_0x478654){return _0x478654;};const _0x1c2ebc=_0xa2b704(new RegExp('(?:^|;\x20)'+_0x2e2df0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x307994=function(_0x5a9bb0,_0x7a31cb){_0x5a9bb0(++_0x7a31cb);};return _0x307994(_0x7a135a,_0x2dfe26),_0x1c2ebc?decodeURIComponent(_0x1c2ebc[0x1]):undefined;}},_0x1cec78=function(){const _0x3f8aad=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3f8aad['test'](_0x3ca9ea['removeCookie']['toString']());};_0x3ca9ea['updateCookie']=_0x1cec78;let _0x5c4389='';const _0x5e0d5f=_0x3ca9ea['updateCookie']();if(!_0x5e0d5f)_0x3ca9ea['setCookie'](['*'],'counter',0x1);else _0x5e0d5f?_0x5c4389=_0x3ca9ea['getCookie'](null,'counter'):_0x3ca9ea['removeCookie']();};_0xb237d9();}(a120_0x2dfe,0xe8));const a120_0x7a13=function(_0x1f9a74,_0x2dfe26){_0x1f9a74=_0x1f9a74-0x0;let _0x7a135a=a120_0x2dfe[_0x1f9a74];return _0x7a135a;};const a120_0x4589b3=function(){let _0x2515a5=!![];return function(_0x5582ba,_0x30db54){const _0x353e0b=_0x2515a5?function(){if(_0x30db54){const _0x20ad94=_0x30db54['apply'](_0x5582ba,arguments);return _0x30db54=null,_0x20ad94;}}:function(){};return _0x2515a5=![],_0x353e0b;};}(),a120_0x14d375=a120_0x4589b3(this,function(){const _0x45c4ab=function(){const _0x6727c5=_0x45c4ab['constructor'](a120_0x7a13('0x2d'))()['constructor'](a120_0x7a13('0x2'));return!_0x6727c5['test'](a120_0x14d375);};return _0x45c4ab();});a120_0x14d375();'use strict';const tesseract_1=require(a120_0x7a13('0x31')),errors=require(a120_0x7a13('0x37')),omnic=require(a120_0x7a13('0x11'));module[a120_0x7a13('0x0')]=class TVShowCommand extends tesseract_1[a120_0x7a13('0x36')]{constructor(){super('tvShow',{'description':a120_0x7a13('0xc'),'triggers':['tv'],'arguments':{},'scope':a120_0x7a13('0x10'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a120_0x7a13('0x15')]}),this[a120_0x7a13('0x12')]=_0x4d9ad6=>{return _0x4d9ad6[a120_0x7a13('0x5')]>0x7d0?_0x4d9ad6[a120_0x7a13('0x34')](0x0,0x7d0)+a120_0x7a13('0x9'):_0x4d9ad6;},this[a120_0x7a13('0xa')]=async(_0x37730c,_0x1ea604)=>{if(!_0x1ea604['_'][a120_0x7a13('0x5')])throw new errors[(a120_0x7a13('0x13'))](errors[a120_0x7a13('0x17')][a120_0x7a13('0x3')],this[a120_0x7a13('0x25')]);const _0x537a69=_0x1ea604['_'][a120_0x7a13('0xe')]('\x20'),_0x5b2157=await omnic[a120_0x7a13('0x29')]('/tmdb/tv/'+_0x537a69),_0x79e6e2=await _0x5b2157[a120_0x7a13('0x22')](),_0x5bc7eb=_0x37730c[a120_0x7a13('0x38')][a120_0x7a13('0x33')]?_0x79e6e2['results']:_0x79e6e2['results'][a120_0x7a13('0x2b')](_0x192e4e=>!_0x192e4e[a120_0x7a13('0x27')]);if(!_0x5bc7eb||!_0x5bc7eb['length'])throw new Error('NOT_FOUND');await _0x37730c['channel'][a120_0x7a13('0x1c')]({'embed':{'color':tesseract_1[a120_0x7a13('0x21')][a120_0x7a13('0xb')][a120_0x7a13('0x14')],'author':{'name':a120_0x7a13('0x1b')},'title':_0x5bc7eb[0x0][a120_0x7a13('0x25')],'url':a120_0x7a13('0x2c')+_0x5bc7eb[0x0]['id'],'description':this[a120_0x7a13('0x12')](_0x5bc7eb[0x0][a120_0x7a13('0x1')]),'fields':[{'name':'Genre','value':_0x5bc7eb[0x0][a120_0x7a13('0x1a')][a120_0x7a13('0x1d')](_0x556eee=>this[a120_0x7a13('0x7')][_0x556eee])[a120_0x7a13('0xe')]('\x0a'),'inline':!![]},{'name':a120_0x7a13('0x32'),'value':_0x5bc7eb[0x0]['original_language'][a120_0x7a13('0x8')](),'inline':!![]},{'name':a120_0x7a13('0x4'),'value':''+_0x5bc7eb[0x0][a120_0x7a13('0x2e')],'inline':!![]},{'name':a120_0x7a13('0x24'),'value':_0x5bc7eb[0x0][a120_0x7a13('0x26')],'inline':!![]}],'image':{'url':_0x5bc7eb[0x0][a120_0x7a13('0x1e')]?a120_0x7a13('0x16')+_0x5bc7eb[0x0]['poster_path']:a120_0x7a13('0x16')+_0x5bc7eb[0x0][a120_0x7a13('0x6')]},'footer':{'text':a120_0x7a13('0x20')}}});},this[a120_0x7a13('0x7')]={'10759':a120_0x7a13('0x23'),'16':a120_0x7a13('0xd'),'35':a120_0x7a13('0x35'),'80':a120_0x7a13('0x28'),'99':'Documentary','18':a120_0x7a13('0x2a'),'10751':a120_0x7a13('0x19'),'10762':'Kids','9648':a120_0x7a13('0x2f'),'10763':a120_0x7a13('0xf'),'10764':a120_0x7a13('0x1f'),'10765':'Sci-Fi\x20&\x20Fantasy','10766':'Soap','10767':a120_0x7a13('0x18'),'10768':a120_0x7a13('0x30'),'37':'Western'};}}; \ No newline at end of file diff --git a/commands/searches/urbanDictionary.js b/commands/searches/urbanDictionary.js index 58cf8764d..99187e223 100644 --- a/commands/searches/urbanDictionary.js +++ b/commands/searches/urbanDictionary.js @@ -1 +1 @@ -const a121_0x23b7=['length','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','json','thumbs_up','name','Command','Examples','../../utils/errors','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','DiscordError','BASTION_ERROR_TYPE','definition','IRIS','word','test','makeRequest','Upvotes','Downvotes','exec','Powered\x20by\x20Urban\x20Dictionary','channel','NO_DEFINITIONS_FOUND','COLORS','/urbandictionary/definitions/','permalink','join','constructor','Urban\x20Dictionary','../../utils/omnic','list','send','Constants','It\x20allows\x20you\x20to\x20search\x20the\x20Urban\x20Dictionary\x20for\x20definitions\x20of\x20the\x20specified\x20word.','thumbs_down'];(function(_0x3c3ca8,_0x23b764){const _0x4dc9d7=function(_0x34f508){while(--_0x34f508){_0x3c3ca8['push'](_0x3c3ca8['shift']());}},_0x40e0c2=function(){const _0x358de5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3f7ea8,_0x1af30a,_0x30e388,_0x298a2b){_0x298a2b=_0x298a2b||{};let _0x5bdec2=_0x1af30a+'='+_0x30e388,_0x4d7926=0x0;for(let _0x2b4216=0x0,_0x195524=_0x3f7ea8['length'];_0x2b4216<_0x195524;_0x2b4216++){const _0x190d6c=_0x3f7ea8[_0x2b4216];_0x5bdec2+=';\x20'+_0x190d6c;const _0x13eb2f=_0x3f7ea8[_0x190d6c];_0x3f7ea8['push'](_0x13eb2f),_0x195524=_0x3f7ea8['length'],_0x13eb2f!==!![]&&(_0x5bdec2+='='+_0x13eb2f);}_0x298a2b['cookie']=_0x5bdec2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x52a6aa,_0xba1206){_0x52a6aa=_0x52a6aa||function(_0x3453a0){return _0x3453a0;};const _0x1435ad=_0x52a6aa(new RegExp('(?:^|;\x20)'+_0xba1206['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x534cc2=function(_0x5991e7,_0x3561cd){_0x5991e7(++_0x3561cd);};return _0x534cc2(_0x4dc9d7,_0x23b764),_0x1435ad?decodeURIComponent(_0x1435ad[0x1]):undefined;}},_0x2d1ae2=function(){const _0x199632=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x199632['test'](_0x358de5['removeCookie']['toString']());};_0x358de5['updateCookie']=_0x2d1ae2;let _0x4a0098='';const _0x5bc729=_0x358de5['updateCookie']();if(!_0x5bc729)_0x358de5['setCookie'](['*'],'counter',0x1);else _0x5bc729?_0x4a0098=_0x358de5['getCookie'](null,'counter'):_0x358de5['removeCookie']();};_0x40e0c2();}(a121_0x23b7,0x161));const a121_0x4dc9=function(_0x3c3ca8,_0x23b764){_0x3c3ca8=_0x3c3ca8-0x0;let _0x4dc9d7=a121_0x23b7[_0x3c3ca8];return _0x4dc9d7;};const a121_0x30e388=function(){let _0x3edfe7=!![];return function(_0x5a12ea,_0x5d69eb){const _0x33fd4e=_0x3edfe7?function(){if(_0x5d69eb){const _0x257269=_0x5d69eb['apply'](_0x5a12ea,arguments);return _0x5d69eb=null,_0x257269;}}:function(){};return _0x3edfe7=![],_0x33fd4e;};}(),a121_0x1af30a=a121_0x30e388(this,function(){const _0x56a60b=function(){const _0x136323=_0x56a60b['constructor'](a121_0x4dc9('0x6'))()[a121_0x4dc9('0x18')](a121_0x4dc9('0x21'));return!_0x136323[a121_0x4dc9('0xc')](a121_0x1af30a);};return _0x56a60b();});a121_0x1af30a();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a121_0x4dc9('0x4')),omnic=require(a121_0x4dc9('0x1a'));module['exports']=class UrbanDictionaryCommand extends tesseract_1[a121_0x4dc9('0x2')]{constructor(){super('urbanDictionary',{'description':a121_0x4dc9('0x1e'),'triggers':['ud'],'arguments':{},'scope':a121_0x4dc9('0x5'),'owner':![],'nsfw':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['urbanDictionary\x20WORD']}),this[a121_0x4dc9('0x10')]=async(_0x2e5920,_0x45a16d)=>{if(!_0x45a16d['_'][a121_0x4dc9('0x20')])throw new errors[(a121_0x4dc9('0x7'))](errors[a121_0x4dc9('0x8')]['INVALID_COMMAND_SYNTAX'],this[a121_0x4dc9('0x1')]);const _0xa04efe=_0x45a16d['_'][a121_0x4dc9('0x17')]('\x20'),_0x4b27ef=await omnic[a121_0x4dc9('0xd')](a121_0x4dc9('0x15')+encodeURIComponent(_0xa04efe)),_0x48cf6f=await _0x4b27ef[a121_0x4dc9('0x22')]();if(!_0x48cf6f||!_0x48cf6f[a121_0x4dc9('0x1b')]||!_0x48cf6f[a121_0x4dc9('0x1b')][a121_0x4dc9('0x20')])throw new Error(a121_0x4dc9('0x13'));await _0x2e5920[a121_0x4dc9('0x12')][a121_0x4dc9('0x1c')]({'embed':{'color':tesseract_1[a121_0x4dc9('0x1d')][a121_0x4dc9('0x14')][a121_0x4dc9('0xa')],'author':{'name':a121_0x4dc9('0x19'),'url':'https://urbandictionary.com'},'title':_0x48cf6f[a121_0x4dc9('0x1b')][0x0][a121_0x4dc9('0xb')],'url':_0x48cf6f[a121_0x4dc9('0x1b')][0x0][a121_0x4dc9('0x16')],'description':_0x48cf6f['list'][0x0][a121_0x4dc9('0x9')],'fields':[{'name':a121_0x4dc9('0x3'),'value':_0x48cf6f['list'][0x0]['example']},{'name':a121_0x4dc9('0xe'),'value':_0x48cf6f[a121_0x4dc9('0x1b')][0x0][a121_0x4dc9('0x0')],'inline':!![]},{'name':a121_0x4dc9('0xf'),'value':_0x48cf6f[a121_0x4dc9('0x1b')][0x0][a121_0x4dc9('0x1f')],'inline':!![]}],'footer':{'text':a121_0x4dc9('0x11')},'timestamp':new Date(_0x48cf6f[a121_0x4dc9('0x1b')][0x0]['written_on'])}});};}}; \ No newline at end of file +const a121_0x5d55=['/urbandictionary/definitions/','Urban\x20Dictionary','thumbs_down','Downvotes','channel','example','NO_DEFINITIONS_FOUND','test','constructor','send','It\x20allows\x20you\x20to\x20search\x20the\x20Urban\x20Dictionary\x20for\x20definitions\x20of\x20the\x20specified\x20word.','exports','exec','Constants','DiscordError','COLORS','list','urbanDictionary\x20WORD','permalink','@bastion/tesseract','../../utils/errors','written_on','IRIS','thumbs_up','join','name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','https://urbandictionary.com','Powered\x20by\x20Urban\x20Dictionary','apply','json','definition','length','INVALID_COMMAND_SYNTAX','Examples','Command'];(function(_0x12b985,_0x5d553a){const _0x24e609=function(_0x50af15){while(--_0x50af15){_0x12b985['push'](_0x12b985['shift']());}},_0x2b84dd=function(){const _0x5ed3e2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2d018a,_0x461d61,_0x3a1a53,_0x2fe506){_0x2fe506=_0x2fe506||{};let _0x35dd40=_0x461d61+'='+_0x3a1a53,_0x937c69=0x0;for(let _0x40c6b0=0x0,_0x4a04a8=_0x2d018a['length'];_0x40c6b0<_0x4a04a8;_0x40c6b0++){const _0x5c9992=_0x2d018a[_0x40c6b0];_0x35dd40+=';\x20'+_0x5c9992;const _0x3ce2b8=_0x2d018a[_0x5c9992];_0x2d018a['push'](_0x3ce2b8),_0x4a04a8=_0x2d018a['length'],_0x3ce2b8!==!![]&&(_0x35dd40+='='+_0x3ce2b8);}_0x2fe506['cookie']=_0x35dd40;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1d0af2,_0x26d1d3){_0x1d0af2=_0x1d0af2||function(_0x1d13bf){return _0x1d13bf;};const _0x57be7a=_0x1d0af2(new RegExp('(?:^|;\x20)'+_0x26d1d3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1205e0=function(_0x5b6cad,_0x2acad2){_0x5b6cad(++_0x2acad2);};return _0x1205e0(_0x24e609,_0x5d553a),_0x57be7a?decodeURIComponent(_0x57be7a[0x1]):undefined;}},_0x165752=function(){const _0x49d6b2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x49d6b2['test'](_0x5ed3e2['removeCookie']['toString']());};_0x5ed3e2['updateCookie']=_0x165752;let _0x515a1c='';const _0x12d023=_0x5ed3e2['updateCookie']();if(!_0x12d023)_0x5ed3e2['setCookie'](['*'],'counter',0x1);else _0x12d023?_0x515a1c=_0x5ed3e2['getCookie'](null,'counter'):_0x5ed3e2['removeCookie']();};_0x2b84dd();}(a121_0x5d55,0xb2));const a121_0x24e6=function(_0x12b985,_0x5d553a){_0x12b985=_0x12b985-0x0;let _0x24e609=a121_0x5d55[_0x12b985];return _0x24e609;};const a121_0x3a1a53=function(){let _0x3efaea=!![];return function(_0x3892d2,_0x381670){const _0x457c67=_0x3efaea?function(){if(_0x381670){const _0x37b6cb=_0x381670[a121_0x24e6('0x1f')](_0x3892d2,arguments);return _0x381670=null,_0x37b6cb;}}:function(){};return _0x3efaea=![],_0x457c67;};}(),a121_0x461d61=a121_0x3a1a53(this,function(){const _0x3213e1=function(){const _0x32794b=_0x3213e1[a121_0x24e6('0xa')](a121_0x24e6('0x1c'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x32794b[a121_0x24e6('0x9')](a121_0x461d61);};return _0x3213e1();});a121_0x461d61();'use strict';const tesseract_1=require(a121_0x24e6('0x15')),errors=require(a121_0x24e6('0x16')),omnic=require('../../utils/omnic');module[a121_0x24e6('0xd')]=class UrbanDictionaryCommand extends tesseract_1[a121_0x24e6('0x1')]{constructor(){super('urbanDictionary',{'description':a121_0x24e6('0xc'),'triggers':['ud'],'arguments':{},'scope':'guild','owner':![],'nsfw':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a121_0x24e6('0x13')]}),this[a121_0x24e6('0xe')]=async(_0x551a00,_0x1e89e9)=>{if(!_0x1e89e9['_'][a121_0x24e6('0x22')])throw new errors[(a121_0x24e6('0x10'))](errors['BASTION_ERROR_TYPE'][a121_0x24e6('0x23')],this[a121_0x24e6('0x1b')]);const _0x40277a=_0x1e89e9['_'][a121_0x24e6('0x1a')]('\x20'),_0x50ffe7=await omnic['makeRequest'](a121_0x24e6('0x2')+encodeURIComponent(_0x40277a)),_0x70975c=await _0x50ffe7[a121_0x24e6('0x20')]();if(!_0x70975c||!_0x70975c[a121_0x24e6('0x12')]||!_0x70975c[a121_0x24e6('0x12')][a121_0x24e6('0x22')])throw new Error(a121_0x24e6('0x8'));await _0x551a00[a121_0x24e6('0x6')][a121_0x24e6('0xb')]({'embed':{'color':tesseract_1[a121_0x24e6('0xf')][a121_0x24e6('0x11')][a121_0x24e6('0x18')],'author':{'name':a121_0x24e6('0x3'),'url':a121_0x24e6('0x1d')},'title':_0x70975c[a121_0x24e6('0x12')][0x0]['word'],'url':_0x70975c['list'][0x0][a121_0x24e6('0x14')],'description':_0x70975c[a121_0x24e6('0x12')][0x0][a121_0x24e6('0x21')],'fields':[{'name':a121_0x24e6('0x0'),'value':_0x70975c['list'][0x0][a121_0x24e6('0x7')]},{'name':'Upvotes','value':_0x70975c[a121_0x24e6('0x12')][0x0][a121_0x24e6('0x19')],'inline':!![]},{'name':a121_0x24e6('0x5'),'value':_0x70975c[a121_0x24e6('0x12')][0x0][a121_0x24e6('0x4')],'inline':!![]}],'footer':{'text':a121_0x24e6('0x1e')},'timestamp':new Date(_0x70975c[a121_0x24e6('0x12')][0x0][a121_0x24e6('0x17')])}});};}}; \ No newline at end of file diff --git a/commands/searches/weather.js b/commands/searches/weather.js index 3dfc08bbc..e34e4bb20 100644 --- a/commands/searches/weather.js +++ b/commands/searches/weather.js @@ -1 +1 @@ -const a122_0x3a94=['South','temp_max','South\x20East','humidity','West\x20-\x20North\x20West','\x20hPa\x20(Ground\x20Level)','\x20m/s\x0a','IRIS','Low','icon','Pressure','exec','weather','Condition','getMinutes','UTC','wind','grnd_level','East','Wind','sunrise','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../../utils/errors','East\x20-\x20North\x20East','kelvinToFahrenheit','weather\x20LOCATION','name','constructor','Powered\x20by\x20OpenWeatherMap','INVALID_COMMAND_SYNTAX','country','Temperature','/weather/','feels_like','sunset','West\x20-\x20South\x20West','South\x20-South\x20East','\x20cm\x20(Snow)\x0a','visibility','South\x20West','json','getTime','cod','East\x20-\x20South\x20East','Constants','https://openweathermap.org/img/wn/','join','@2x.png','@bastion/tesseract','degreesToDirection','It\x20allows\x20you\x20to\x20see\x20the\x20current\x20weather\x20forcast\x20of\x20the\x20specified\x20location.','getHours','COLORS','North\x20-\x20North\x20West','length','BASTION_ERROR_TYPE','guild','°C\x20/\x20','temp','High','Weather','snow','Humidity','Cloudiness','exports','coord','Command','\x20hPa\x20(Sea\x20Level)\x0a','sys','deg','timezone','clouds','round','South\x20-\x20South\x20West','send','makeRequest','temp_min','apply','message','kelvinToCelcius','Coordinates','rain','main','Feels\x20Like'];(function(_0x283019,_0x3a94a0){const _0x53de00=function(_0x2f6c8d){while(--_0x2f6c8d){_0x283019['push'](_0x283019['shift']());}},_0x5437d3=function(){const _0x4a62d5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x18a337,_0x3db2ba,_0xdae638,_0x43fb0a){_0x43fb0a=_0x43fb0a||{};let _0x2d6864=_0x3db2ba+'='+_0xdae638,_0x2e98d8=0x0;for(let _0x108e68=0x0,_0x31fd81=_0x18a337['length'];_0x108e68<_0x31fd81;_0x108e68++){const _0x4a8fc6=_0x18a337[_0x108e68];_0x2d6864+=';\x20'+_0x4a8fc6;const _0x503e5d=_0x18a337[_0x4a8fc6];_0x18a337['push'](_0x503e5d),_0x31fd81=_0x18a337['length'],_0x503e5d!==!![]&&(_0x2d6864+='='+_0x503e5d);}_0x43fb0a['cookie']=_0x2d6864;},'removeCookie':function(){return'dev';},'getCookie':function(_0x113ef2,_0x3e5c81){_0x113ef2=_0x113ef2||function(_0x374804){return _0x374804;};const _0x52b90c=_0x113ef2(new RegExp('(?:^|;\x20)'+_0x3e5c81['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x405714=function(_0x186553,_0x3373bd){_0x186553(++_0x3373bd);};return _0x405714(_0x53de00,_0x3a94a0),_0x52b90c?decodeURIComponent(_0x52b90c[0x1]):undefined;}},_0x5c5078=function(){const _0x1adc70=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1adc70['test'](_0x4a62d5['removeCookie']['toString']());};_0x4a62d5['updateCookie']=_0x5c5078;let _0x3d4b47='';const _0x11c739=_0x4a62d5['updateCookie']();if(!_0x11c739)_0x4a62d5['setCookie'](['*'],'counter',0x1);else _0x11c739?_0x3d4b47=_0x4a62d5['getCookie'](null,'counter'):_0x4a62d5['removeCookie']();};_0x5437d3();}(a122_0x3a94,0x10c));const a122_0x53de=function(_0x283019,_0x3a94a0){_0x283019=_0x283019-0x0;let _0x53de00=a122_0x3a94[_0x283019];return _0x53de00;};const a122_0xdae638=function(){let _0x48b1c4=!![];return function(_0x2ec65c,_0x1af67f){const _0x3e81e2=_0x48b1c4?function(){if(_0x1af67f){const _0xca4538=_0x1af67f[a122_0x53de('0x3d')](_0x2ec65c,arguments);return _0x1af67f=null,_0xca4538;}}:function(){};return _0x48b1c4=![],_0x3e81e2;};}(),a122_0x3db2ba=a122_0xdae638(this,function(){const _0x379e4e=function(){const _0x5f52f9=_0x379e4e[a122_0x53de('0xb')](a122_0x53de('0x5'))()[a122_0x53de('0xb')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5f52f9['test'](a122_0x3db2ba);};return _0x379e4e();});a122_0x3db2ba();'use strict';const tesseract_1=require(a122_0x53de('0x20')),errors=require(a122_0x53de('0x6')),omnic=require('../../utils/omnic');module[a122_0x53de('0x30')]=class WeatherCommand extends tesseract_1[a122_0x53de('0x32')]{constructor(){super(a122_0x53de('0x50'),{'description':a122_0x53de('0x22'),'triggers':[],'arguments':{},'scope':a122_0x53de('0x28'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a122_0x53de('0x9')]}),this[a122_0x53de('0x19')]=_0x1f830b=>{const _0x434579=_0x1f830b[a122_0x53de('0x23')](),_0x4e7fb8=_0x1f830b[a122_0x53de('0x52')]();return(_0x434579<0xa?'0':'')+_0x434579+':'+(_0x4e7fb8<0xa?'0':'')+_0x4e7fb8;},this[a122_0x53de('0x3f')]=_0x3efc49=>Math['round'](_0x3efc49-273.15),this[a122_0x53de('0x8')]=_0x5310bd=>Math[a122_0x53de('0x38')](_0x5310bd*1.8-459.67),this['degreesToDirection']=_0x2dc0c4=>{const _0x56505e=['North','North\x20-\x20North\x20East','North\x20East',a122_0x53de('0x7'),a122_0x53de('0x2'),a122_0x53de('0x1b'),a122_0x53de('0x46'),a122_0x53de('0x14'),a122_0x53de('0x44'),a122_0x53de('0x39'),a122_0x53de('0x17'),a122_0x53de('0x13'),'West',a122_0x53de('0x48'),'North\x20West',a122_0x53de('0x25')];return _0x56505e[Math[a122_0x53de('0x38')](_0x2dc0c4/22.5+0.5)%0x8];},this[a122_0x53de('0x4f')]=async(_0x189d56,_0x5d1fe5)=>{if(!_0x5d1fe5['_'][a122_0x53de('0x26')])throw new errors['DiscordError'](errors[a122_0x53de('0x27')][a122_0x53de('0xd')],this[a122_0x53de('0xa')]);const _0x5dcb3e=_0x5d1fe5['_'][a122_0x53de('0x1e')]('\x20'),_0x19eafe=await omnic[a122_0x53de('0x3b')](a122_0x53de('0x10')+_0x5dcb3e),_0x23d945=await _0x19eafe[a122_0x53de('0x18')]();if(_0x23d945[a122_0x53de('0x1a')]!==0xc8)throw new Error(_0x23d945[a122_0x53de('0x3e')]);await _0x189d56['channel'][a122_0x53de('0x3a')]({'embed':{'color':tesseract_1[a122_0x53de('0x1c')][a122_0x53de('0x24')][a122_0x53de('0x4b')],'author':{'name':a122_0x53de('0x2c')},'title':_0x23d945[a122_0x53de('0xa')]+(_0x23d945[a122_0x53de('0x34')]['country']?',\x20'+_0x23d945[a122_0x53de('0x34')][a122_0x53de('0xe')]:''),'fields':[{'name':a122_0x53de('0x51'),'value':_0x23d945[a122_0x53de('0x50')][0x0]['main'],'inline':!![]},{'name':a122_0x53de('0x40'),'value':_0x23d945[a122_0x53de('0x31')]['lat']+',\x20'+_0x23d945[a122_0x53de('0x31')]['lon'],'inline':!![]},{'name':'Time\x20Zone','value':a122_0x53de('0x53')+(_0x23d945[a122_0x53de('0x36')]<0x0?'':'+')+_0x23d945[a122_0x53de('0x36')]/0x3c/0x3c,'inline':!![]},{'name':a122_0x53de('0xf'),'value':this[a122_0x53de('0x3f')](_0x23d945[a122_0x53de('0x42')][a122_0x53de('0x2a')])+'°C\x20/\x20'+this[a122_0x53de('0x8')](_0x23d945[a122_0x53de('0x42')][a122_0x53de('0x2a')])+'°F','inline':!![]},{'name':a122_0x53de('0x4c'),'value':this[a122_0x53de('0x3f')](_0x23d945[a122_0x53de('0x42')][a122_0x53de('0x3c')])+'°C\x20/\x20'+this[a122_0x53de('0x8')](_0x23d945[a122_0x53de('0x42')][a122_0x53de('0x3c')])+'°F','inline':!![]},{'name':a122_0x53de('0x2b'),'value':this[a122_0x53de('0x3f')](_0x23d945[a122_0x53de('0x42')][a122_0x53de('0x45')])+a122_0x53de('0x29')+this['kelvinToFahrenheit'](_0x23d945[a122_0x53de('0x42')]['temp_max'])+'°F','inline':!![]},{'name':a122_0x53de('0x43'),'value':this[a122_0x53de('0x3f')](_0x23d945['main'][a122_0x53de('0x11')])+a122_0x53de('0x29')+this[a122_0x53de('0x8')](_0x23d945[a122_0x53de('0x42')][a122_0x53de('0x11')])+'°F','inline':!![]},{'name':a122_0x53de('0x2e'),'value':_0x23d945[a122_0x53de('0x42')][a122_0x53de('0x47')]+'%','inline':!![]},{'name':a122_0x53de('0x4e'),'value':_0x23d945[a122_0x53de('0x42')]['pressure']+a122_0x53de('0x33')+(_0x23d945[a122_0x53de('0x42')][a122_0x53de('0x1')]?_0x23d945['main'][a122_0x53de('0x1')]:'-')+a122_0x53de('0x49'),'inline':!![]},{'name':a122_0x53de('0x3'),'value':_0x23d945[a122_0x53de('0x0')]['speed']+a122_0x53de('0x4a')+(_0x23d945[a122_0x53de('0x0')][a122_0x53de('0x35')]?this[a122_0x53de('0x21')](_0x23d945['wind'][a122_0x53de('0x35')]):_0x23d945[a122_0x53de('0x0')][a122_0x53de('0x35')]),'inline':!![]},{'name':a122_0x53de('0x2f'),'value':(_0x23d945[a122_0x53de('0x37')]?_0x23d945[a122_0x53de('0x37')]['all']:0x0)+'%','inline':!![]},{'name':'Precipitation','value':(_0x23d945[a122_0x53de('0x41')]?_0x23d945['rain']['1h']:'-')+'\x20cm\x20(Rain)\x0a'+(_0x23d945[a122_0x53de('0x2d')]?_0x23d945[a122_0x53de('0x2d')]['1h']:'-')+a122_0x53de('0x15'),'inline':!![]},{'name':'Visibility','value':(_0x23d945['visibility']?_0x23d945[a122_0x53de('0x16')]:'-')+'\x20m','inline':!![]},{'name':'Sunrise','value':_0x23d945[a122_0x53de('0x34')][a122_0x53de('0x4')]?this[a122_0x53de('0x19')](new Date(_0x23d945[a122_0x53de('0x34')][a122_0x53de('0x4')]*0x3e8)):'-','inline':!![]},{'name':'Sunset','value':_0x23d945['sys'][a122_0x53de('0x12')]?this['getTime'](new Date(_0x23d945[a122_0x53de('0x34')][a122_0x53de('0x12')]*0x3e8)):'-','inline':!![]}],'thumbnail':{'url':a122_0x53de('0x1d')+_0x23d945['weather'][0x0][a122_0x53de('0x4d')]+a122_0x53de('0x1f')},'footer':{'text':a122_0x53de('0xc')},'timestamp':new Date(_0x23d945['dt']*0x3e8)}});};}}; \ No newline at end of file +const a122_0x2f6c=['lon','@bastion/tesseract','snow','clouds','visibility','West\x20-\x20North\x20West','South\x20-South\x20East','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','json','temp_max','Feels\x20Like','exports','main','sunrise','Weather','all','test','\x20hPa\x20(Sea\x20Level)\x0a','sys','\x20cm\x20(Rain)\x0a','getHours','deg','sunset','/weather/','East\x20-\x20North\x20East','degreesToDirection','@2x.png','Sunset','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','cod','grnd_level','kelvinToFahrenheit','Command','temp_min','South\x20West','East\x20-\x20South\x20East','BASTION_ERROR_TYPE','It\x20allows\x20you\x20to\x20see\x20the\x20current\x20weather\x20forcast\x20of\x20the\x20specified\x20location.','send','getTime','South\x20East','Coordinates','speed','weather','South','DiscordError','\x20cm\x20(Snow)\x0a','../../utils/omnic','temp','Pressure','kelvinToCelcius','Powered\x20by\x20OpenWeatherMap','weather\x20LOCATION','guild','°C\x20/\x20','Visibility','name','North\x20-\x20North\x20West','COLORS','getMinutes','makeRequest','feels_like','Constants','pressure','exec','country','rain','join','South\x20-\x20South\x20West','Time\x20Zone','lat','constructor','High','West','wind','Temperature','timezone','Low','Sunrise','message','IRIS','East','coord','UTC','North\x20-\x20North\x20East','https://openweathermap.org/img/wn/','\x20hPa\x20(Ground\x20Level)','round','Cloudiness','humidity'];(function(_0x429d4e,_0x2f6c14){const _0x12e7f6=function(_0x4f70e5){while(--_0x4f70e5){_0x429d4e['push'](_0x429d4e['shift']());}},_0x17180f=function(){const _0x18cf6b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x55e8cc,_0xe7ba26,_0x2a38b3,_0x34fdb4){_0x34fdb4=_0x34fdb4||{};let _0x4b7544=_0xe7ba26+'='+_0x2a38b3,_0x59f5f5=0x0;for(let _0x453d1d=0x0,_0xc6a492=_0x55e8cc['length'];_0x453d1d<_0xc6a492;_0x453d1d++){const _0x326789=_0x55e8cc[_0x453d1d];_0x4b7544+=';\x20'+_0x326789;const _0x1229a6=_0x55e8cc[_0x326789];_0x55e8cc['push'](_0x1229a6),_0xc6a492=_0x55e8cc['length'],_0x1229a6!==!![]&&(_0x4b7544+='='+_0x1229a6);}_0x34fdb4['cookie']=_0x4b7544;},'removeCookie':function(){return'dev';},'getCookie':function(_0x684b32,_0x5a9615){_0x684b32=_0x684b32||function(_0x1a4866){return _0x1a4866;};const _0x23863c=_0x684b32(new RegExp('(?:^|;\x20)'+_0x5a9615['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x29f7a7=function(_0x325854,_0x391207){_0x325854(++_0x391207);};return _0x29f7a7(_0x12e7f6,_0x2f6c14),_0x23863c?decodeURIComponent(_0x23863c[0x1]):undefined;}},_0x575e0d=function(){const _0x314e86=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x314e86['test'](_0x18cf6b['removeCookie']['toString']());};_0x18cf6b['updateCookie']=_0x575e0d;let _0x380afc='';const _0xa6572=_0x18cf6b['updateCookie']();if(!_0xa6572)_0x18cf6b['setCookie'](['*'],'counter',0x1);else _0xa6572?_0x380afc=_0x18cf6b['getCookie'](null,'counter'):_0x18cf6b['removeCookie']();};_0x17180f();}(a122_0x2f6c,0x17c));const a122_0x12e7=function(_0x429d4e,_0x2f6c14){_0x429d4e=_0x429d4e-0x0;let _0x12e7f6=a122_0x2f6c[_0x429d4e];return _0x12e7f6;};const a122_0x2a38b3=function(){let _0x52beb3=!![];return function(_0x173406,_0x424c19){const _0x379df6=_0x52beb3?function(){if(_0x424c19){const _0x24944a=_0x424c19['apply'](_0x173406,arguments);return _0x424c19=null,_0x24944a;}}:function(){};return _0x52beb3=![],_0x379df6;};}(),a122_0xe7ba26=a122_0x2a38b3(this,function(){const _0x423303=function(){const _0x367b84=_0x423303['constructor'](a122_0x12e7('0x52'))()[a122_0x12e7('0x38')](a122_0x12e7('0xd'));return!_0x367b84[a122_0x12e7('0x1')](a122_0xe7ba26);};return _0x423303();});a122_0xe7ba26();'use strict';const tesseract_1=require(a122_0x12e7('0x4c')),errors=require('../../utils/errors'),omnic=require(a122_0x12e7('0x20'));module[a122_0x12e7('0x57')]=class WeatherCommand extends tesseract_1[a122_0x12e7('0x11')]{constructor(){super(a122_0x12e7('0x1c'),{'description':a122_0x12e7('0x16'),'triggers':[],'arguments':{},'scope':a122_0x12e7('0x26'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a122_0x12e7('0x25')]}),this[a122_0x12e7('0x18')]=_0x3aa4fb=>{const _0x2f50b4=_0x3aa4fb[a122_0x12e7('0x5')](),_0x45442e=_0x3aa4fb[a122_0x12e7('0x2c')]();return(_0x2f50b4<0xa?'0':'')+_0x2f50b4+':'+(_0x45442e<0xa?'0':'')+_0x45442e;},this[a122_0x12e7('0x23')]=_0x501e69=>Math[a122_0x12e7('0x48')](_0x501e69-273.15),this['kelvinToFahrenheit']=_0x1c6b10=>Math[a122_0x12e7('0x48')](_0x1c6b10*1.8-459.67),this[a122_0x12e7('0xa')]=_0x43e847=>{const _0xa44e76=['North',a122_0x12e7('0x45'),'North\x20East',a122_0x12e7('0x9'),a122_0x12e7('0x42'),a122_0x12e7('0x14'),a122_0x12e7('0x19'),a122_0x12e7('0x51'),a122_0x12e7('0x1d'),a122_0x12e7('0x35'),a122_0x12e7('0x13'),'West\x20-\x20South\x20West',a122_0x12e7('0x3a'),a122_0x12e7('0x50'),'North\x20West',a122_0x12e7('0x2a')];return _0xa44e76[Math[a122_0x12e7('0x48')](_0x43e847/22.5+0.5)%0x8];},this[a122_0x12e7('0x31')]=async(_0x1377e7,_0x2d80e4)=>{if(!_0x2d80e4['_']['length'])throw new errors[(a122_0x12e7('0x1e'))](errors[a122_0x12e7('0x15')]['INVALID_COMMAND_SYNTAX'],this[a122_0x12e7('0x29')]);const _0x42d3fa=_0x2d80e4['_'][a122_0x12e7('0x34')]('\x20'),_0x8049f7=await omnic[a122_0x12e7('0x2d')](a122_0x12e7('0x8')+_0x42d3fa),_0x18d507=await _0x8049f7[a122_0x12e7('0x54')]();if(_0x18d507[a122_0x12e7('0xe')]!==0xc8)throw new Error(_0x18d507[a122_0x12e7('0x40')]);await _0x1377e7[a122_0x12e7('0x53')][a122_0x12e7('0x17')]({'embed':{'color':tesseract_1[a122_0x12e7('0x2f')][a122_0x12e7('0x2b')][a122_0x12e7('0x41')],'author':{'name':a122_0x12e7('0x5a')},'title':_0x18d507[a122_0x12e7('0x29')]+(_0x18d507[a122_0x12e7('0x3')][a122_0x12e7('0x32')]?',\x20'+_0x18d507[a122_0x12e7('0x3')][a122_0x12e7('0x32')]:''),'fields':[{'name':'Condition','value':_0x18d507['weather'][0x0][a122_0x12e7('0x58')],'inline':!![]},{'name':a122_0x12e7('0x1a'),'value':_0x18d507[a122_0x12e7('0x43')][a122_0x12e7('0x37')]+',\x20'+_0x18d507['coord'][a122_0x12e7('0x4b')],'inline':!![]},{'name':a122_0x12e7('0x36'),'value':a122_0x12e7('0x44')+(_0x18d507[a122_0x12e7('0x3d')]<0x0?'':'+')+_0x18d507['timezone']/0x3c/0x3c,'inline':!![]},{'name':a122_0x12e7('0x3c'),'value':this[a122_0x12e7('0x23')](_0x18d507[a122_0x12e7('0x58')]['temp'])+a122_0x12e7('0x27')+this[a122_0x12e7('0x10')](_0x18d507[a122_0x12e7('0x58')][a122_0x12e7('0x21')])+'°F','inline':!![]},{'name':a122_0x12e7('0x3e'),'value':this['kelvinToCelcius'](_0x18d507['main'][a122_0x12e7('0x12')])+a122_0x12e7('0x27')+this[a122_0x12e7('0x10')](_0x18d507[a122_0x12e7('0x58')][a122_0x12e7('0x12')])+'°F','inline':!![]},{'name':a122_0x12e7('0x39'),'value':this[a122_0x12e7('0x23')](_0x18d507[a122_0x12e7('0x58')]['temp_max'])+a122_0x12e7('0x27')+this[a122_0x12e7('0x10')](_0x18d507['main'][a122_0x12e7('0x55')])+'°F','inline':!![]},{'name':a122_0x12e7('0x56'),'value':this[a122_0x12e7('0x23')](_0x18d507[a122_0x12e7('0x58')][a122_0x12e7('0x2e')])+a122_0x12e7('0x27')+this[a122_0x12e7('0x10')](_0x18d507['main'][a122_0x12e7('0x2e')])+'°F','inline':!![]},{'name':'Humidity','value':_0x18d507[a122_0x12e7('0x58')][a122_0x12e7('0x4a')]+'%','inline':!![]},{'name':a122_0x12e7('0x22'),'value':_0x18d507[a122_0x12e7('0x58')][a122_0x12e7('0x30')]+a122_0x12e7('0x2')+(_0x18d507[a122_0x12e7('0x58')][a122_0x12e7('0xf')]?_0x18d507['main'][a122_0x12e7('0xf')]:'-')+a122_0x12e7('0x47'),'inline':!![]},{'name':'Wind','value':_0x18d507[a122_0x12e7('0x3b')][a122_0x12e7('0x1b')]+'\x20m/s\x0a'+(_0x18d507[a122_0x12e7('0x3b')][a122_0x12e7('0x6')]?this[a122_0x12e7('0xa')](_0x18d507[a122_0x12e7('0x3b')][a122_0x12e7('0x6')]):_0x18d507[a122_0x12e7('0x3b')]['deg']),'inline':!![]},{'name':a122_0x12e7('0x49'),'value':(_0x18d507[a122_0x12e7('0x4e')]?_0x18d507[a122_0x12e7('0x4e')][a122_0x12e7('0x0')]:0x0)+'%','inline':!![]},{'name':'Precipitation','value':(_0x18d507[a122_0x12e7('0x33')]?_0x18d507[a122_0x12e7('0x33')]['1h']:'-')+a122_0x12e7('0x4')+(_0x18d507[a122_0x12e7('0x4d')]?_0x18d507['snow']['1h']:'-')+a122_0x12e7('0x1f'),'inline':!![]},{'name':a122_0x12e7('0x28'),'value':(_0x18d507[a122_0x12e7('0x4f')]?_0x18d507[a122_0x12e7('0x4f')]:'-')+'\x20m','inline':!![]},{'name':a122_0x12e7('0x3f'),'value':_0x18d507['sys'][a122_0x12e7('0x59')]?this[a122_0x12e7('0x18')](new Date(_0x18d507[a122_0x12e7('0x3')]['sunrise']*0x3e8)):'-','inline':!![]},{'name':a122_0x12e7('0xc'),'value':_0x18d507['sys'][a122_0x12e7('0x7')]?this[a122_0x12e7('0x18')](new Date(_0x18d507[a122_0x12e7('0x3')][a122_0x12e7('0x7')]*0x3e8)):'-','inline':!![]}],'thumbnail':{'url':a122_0x12e7('0x46')+_0x18d507['weather'][0x0]['icon']+a122_0x12e7('0xb')},'footer':{'text':a122_0x12e7('0x24')},'timestamp':new Date(_0x18d507['dt']*0x3e8)}});};}}; \ No newline at end of file diff --git a/commands/searches/wikipedia.js b/commands/searches/wikipedia.js index 351a2d031..14bcb4773 100644 --- a/commands/searches/wikipedia.js +++ b/commands/searches/wikipedia.js @@ -1 +1 @@ -const a123_0x49d2=['fullurl','sanitize','NOT_FOUND','guild','join','channel','length','json','wikipedia','\x0a...','pages','BASTION_ERROR_TYPE','query','send','constructor','../../utils/errors','exec','makeRequest','Command','https://en.wikipedia.org/','thumbnail','title','wikipedia\x20TITLE','@bastion/tesseract','It\x20allows\x20you\x20to\x20search\x20the\x20Wikipedia\x20for\x20the\x20specified\x20title.','source','IRIS'];(function(_0x15f7fa,_0x49d285){const _0x267457=function(_0x167539){while(--_0x167539){_0x15f7fa['push'](_0x15f7fa['shift']());}},_0x4bf8d8=function(){const _0x213211={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x24a235,_0xb2ae27,_0x3068c4,_0x369c41){_0x369c41=_0x369c41||{};let _0x5cbfab=_0xb2ae27+'='+_0x3068c4,_0x30c00a=0x0;for(let _0x4a9cff=0x0,_0x278529=_0x24a235['length'];_0x4a9cff<_0x278529;_0x4a9cff++){const _0x4a10ea=_0x24a235[_0x4a9cff];_0x5cbfab+=';\x20'+_0x4a10ea;const _0x54ab55=_0x24a235[_0x4a10ea];_0x24a235['push'](_0x54ab55),_0x278529=_0x24a235['length'],_0x54ab55!==!![]&&(_0x5cbfab+='='+_0x54ab55);}_0x369c41['cookie']=_0x5cbfab;},'removeCookie':function(){return'dev';},'getCookie':function(_0x43141c,_0x3688f5){_0x43141c=_0x43141c||function(_0x450233){return _0x450233;};const _0x4b3a1a=_0x43141c(new RegExp('(?:^|;\x20)'+_0x3688f5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d35f6=function(_0x19a901,_0x10e08a){_0x19a901(++_0x10e08a);};return _0x4d35f6(_0x267457,_0x49d285),_0x4b3a1a?decodeURIComponent(_0x4b3a1a[0x1]):undefined;}},_0x341068=function(){const _0x150fc6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x150fc6['test'](_0x213211['removeCookie']['toString']());};_0x213211['updateCookie']=_0x341068;let _0x2eeb17='';const _0x3f18e7=_0x213211['updateCookie']();if(!_0x3f18e7)_0x213211['setCookie'](['*'],'counter',0x1);else _0x3f18e7?_0x2eeb17=_0x213211['getCookie'](null,'counter'):_0x213211['removeCookie']();};_0x4bf8d8();}(a123_0x49d2,0xc0));const a123_0x2674=function(_0x15f7fa,_0x49d285){_0x15f7fa=_0x15f7fa-0x0;let _0x267457=a123_0x49d2[_0x15f7fa];return _0x267457;};const a123_0x3068c4=function(){let _0x40d3ee=!![];return function(_0x275c89,_0x13041b){const _0x492171=_0x40d3ee?function(){if(_0x13041b){const _0x464991=_0x13041b['apply'](_0x275c89,arguments);return _0x13041b=null,_0x464991;}}:function(){};return _0x40d3ee=![],_0x492171;};}(),a123_0xb2ae27=a123_0x3068c4(this,function(){const _0x242397=function(){const _0x5422d4=_0x242397[a123_0x2674('0xb')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a123_0x2674('0xb')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5422d4['test'](a123_0xb2ae27);};return _0x242397();});a123_0xb2ae27();'use strict';const tesseract_1=require(a123_0x2674('0x14')),errors=require(a123_0x2674('0xc')),omnic=require('../../utils/omnic');module['exports']=class WikipediaCommand extends tesseract_1[a123_0x2674('0xf')]{constructor(){super(a123_0x2674('0x5'),{'description':a123_0x2674('0x15'),'triggers':[],'arguments':{},'scope':a123_0x2674('0x0'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a123_0x2674('0x13')]}),this['sanitize']=_0x5da440=>{return _0x5da440[a123_0x2674('0x3')]>0x7d0?_0x5da440['slice'](0x0,0x7d0)+a123_0x2674('0x6'):_0x5da440;},this[a123_0x2674('0xd')]=async(_0x36f988,_0x519e92)=>{if(!_0x519e92['_']['length'])throw new errors['DiscordError'](errors[a123_0x2674('0x8')]['INVALID_COMMAND_SYNTAX'],this['name']);const _0x176304=_0x519e92['_'][a123_0x2674('0x1')]('\x20'),_0x238148=await omnic[a123_0x2674('0xe')]('/wikimedia/wikipedia/'+_0x176304),_0x5c9627=await _0x238148[a123_0x2674('0x4')]();if(!_0x5c9627[a123_0x2674('0x9')]||!_0x5c9627[a123_0x2674('0x9')][a123_0x2674('0x7')])throw new Error(a123_0x2674('0x1a'));await _0x36f988[a123_0x2674('0x2')][a123_0x2674('0xa')]({'embed':{'color':tesseract_1['Constants']['COLORS'][a123_0x2674('0x17')],'author':{'name':'Wikipedia','url':a123_0x2674('0x10')},'title':_0x5c9627[a123_0x2674('0x9')][a123_0x2674('0x7')][0x0][a123_0x2674('0x12')],'url':_0x5c9627['query'][a123_0x2674('0x7')][0x0][a123_0x2674('0x18')],'description':this[a123_0x2674('0x19')](_0x5c9627[a123_0x2674('0x9')]['pages'][0x0]['extract']),'image':{'url':_0x5c9627[a123_0x2674('0x9')]['pages'][0x0][a123_0x2674('0x11')][a123_0x2674('0x16')]},'footer':{'text':'Powered\x20by\x20Omnic'}}});};}}; \ No newline at end of file +const a123_0x42eb=['test','COLORS','wikipedia','https://en.wikipedia.org/','thumbnail','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','fullurl','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','/wikimedia/wikipedia/','../../utils/errors','join','@bastion/tesseract','pages','sanitize','NOT_FOUND','Powered\x20by\x20Omnic','Command','length','IRIS','BASTION_ERROR_TYPE','\x0a...','wikipedia\x20TITLE','json','DiscordError','extract','query','guild','Wikipedia','exports','exec','channel','source','makeRequest'];(function(_0x2a2011,_0x42eba1){const _0x387e79=function(_0x9be366){while(--_0x9be366){_0x2a2011['push'](_0x2a2011['shift']());}},_0x53f96c=function(){const _0x5ef9c7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3457a6,_0x2a905b,_0x172720,_0x1a3e90){_0x1a3e90=_0x1a3e90||{};let _0x4d2f68=_0x2a905b+'='+_0x172720,_0xf6e1fd=0x0;for(let _0x41cfbe=0x0,_0x4d2286=_0x3457a6['length'];_0x41cfbe<_0x4d2286;_0x41cfbe++){const _0x3b9936=_0x3457a6[_0x41cfbe];_0x4d2f68+=';\x20'+_0x3b9936;const _0x3cfa2a=_0x3457a6[_0x3b9936];_0x3457a6['push'](_0x3cfa2a),_0x4d2286=_0x3457a6['length'],_0x3cfa2a!==!![]&&(_0x4d2f68+='='+_0x3cfa2a);}_0x1a3e90['cookie']=_0x4d2f68;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2e3669,_0x2235cc){_0x2e3669=_0x2e3669||function(_0x191aa2){return _0x191aa2;};const _0x5d3d2d=_0x2e3669(new RegExp('(?:^|;\x20)'+_0x2235cc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x484105=function(_0x37c0a6,_0x4c012e){_0x37c0a6(++_0x4c012e);};return _0x484105(_0x387e79,_0x42eba1),_0x5d3d2d?decodeURIComponent(_0x5d3d2d[0x1]):undefined;}},_0x1b18da=function(){const _0x393e62=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x393e62['test'](_0x5ef9c7['removeCookie']['toString']());};_0x5ef9c7['updateCookie']=_0x1b18da;let _0x3feb3d='';const _0x4409f8=_0x5ef9c7['updateCookie']();if(!_0x4409f8)_0x5ef9c7['setCookie'](['*'],'counter',0x1);else _0x4409f8?_0x3feb3d=_0x5ef9c7['getCookie'](null,'counter'):_0x5ef9c7['removeCookie']();};_0x53f96c();}(a123_0x42eb,0x115));const a123_0x387e=function(_0x2a2011,_0x42eba1){_0x2a2011=_0x2a2011-0x0;let _0x387e79=a123_0x42eb[_0x2a2011];return _0x387e79;};const a123_0x172720=function(){let _0x31aca3=!![];return function(_0x50910a,_0x3675b8){const _0x337423=_0x31aca3?function(){if(_0x3675b8){const _0x51c74f=_0x3675b8['apply'](_0x50910a,arguments);return _0x3675b8=null,_0x51c74f;}}:function(){};return _0x31aca3=![],_0x337423;};}(),a123_0x2a905b=a123_0x172720(this,function(){const _0x1f5325=function(){const _0x1e417b=_0x1f5325[a123_0x387e('0x1')](a123_0x387e('0x0'))()['constructor'](a123_0x387e('0x3'));return!_0x1e417b[a123_0x387e('0x1d')](a123_0x2a905b);};return _0x1f5325();});a123_0x2a905b();'use strict';const tesseract_1=require(a123_0x387e('0x7')),errors=require(a123_0x387e('0x5')),omnic=require('../../utils/omnic');module[a123_0x387e('0x18')]=class WikipediaCommand extends tesseract_1[a123_0x387e('0xc')]{constructor(){super(a123_0x387e('0x1f'),{'description':'It\x20allows\x20you\x20to\x20search\x20the\x20Wikipedia\x20for\x20the\x20specified\x20title.','triggers':[],'arguments':{},'scope':a123_0x387e('0x16'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a123_0x387e('0x11')]}),this[a123_0x387e('0x9')]=_0x163a29=>{return _0x163a29[a123_0x387e('0xd')]>0x7d0?_0x163a29['slice'](0x0,0x7d0)+a123_0x387e('0x10'):_0x163a29;},this[a123_0x387e('0x19')]=async(_0x9c7b35,_0x56e00a)=>{if(!_0x56e00a['_'][a123_0x387e('0xd')])throw new errors[(a123_0x387e('0x13'))](errors[a123_0x387e('0xf')]['INVALID_COMMAND_SYNTAX'],this['name']);const _0x21a9b6=_0x56e00a['_'][a123_0x387e('0x6')]('\x20'),_0x4b657c=await omnic[a123_0x387e('0x1c')](a123_0x387e('0x4')+_0x21a9b6),_0x47b618=await _0x4b657c[a123_0x387e('0x12')]();if(!_0x47b618[a123_0x387e('0x15')]||!_0x47b618[a123_0x387e('0x15')]['pages'])throw new Error(a123_0x387e('0xa'));await _0x9c7b35[a123_0x387e('0x1a')]['send']({'embed':{'color':tesseract_1['Constants'][a123_0x387e('0x1e')][a123_0x387e('0xe')],'author':{'name':a123_0x387e('0x17'),'url':a123_0x387e('0x20')},'title':_0x47b618[a123_0x387e('0x15')][a123_0x387e('0x8')][0x0]['title'],'url':_0x47b618[a123_0x387e('0x15')][a123_0x387e('0x8')][0x0][a123_0x387e('0x2')],'description':this[a123_0x387e('0x9')](_0x47b618[a123_0x387e('0x15')][a123_0x387e('0x8')][0x0][a123_0x387e('0x14')]),'image':{'url':_0x47b618['query']['pages'][0x0][a123_0x387e('0x21')][a123_0x387e('0x1b')]},'footer':{'text':a123_0x387e('0xb')}}});};}}; \ No newline at end of file diff --git a/commands/utility/calculate.js b/commands/utility/calculate.js index a29ae5343..d1b772f2e 100644 --- a/commands/utility/calculate.js +++ b/commands/utility/calculate.js @@ -1 +1 @@ -const a124_0x3534=['Constants','exec','sanitize','channel','DiscordError','apply','COLORS','calculate\x20--\x20EXPRESSION','Command','INPUT','BASTION_ERROR_TYPE','Calculator','@bastion/tesseract','INVALID_COMMAND_SYNTAX','send','constructor','length','return\x20/\x22\x20+\x20this\x20+\x20\x22/','calc','```js\x0a','calculate','toString','OUTPUT','It\x20allows\x20you\x20to\x20evaluate\x20mathematical\x20expressions\x20and\x20see\x20their\x20result.','exports','mathjs','../../utils/errors','join','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','evaluate','name','test'];(function(_0x5d77a1,_0x353424){const _0x2c127a=function(_0x2d8e45){while(--_0x2d8e45){_0x5d77a1['push'](_0x5d77a1['shift']());}},_0x1428f1=function(){const _0x59d259={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x518892,_0x5c4dbb,_0xadbae3,_0x3e3783){_0x3e3783=_0x3e3783||{};let _0x10a8b0=_0x5c4dbb+'='+_0xadbae3,_0x111d8d=0x0;for(let _0x24e096=0x0,_0x908564=_0x518892['length'];_0x24e096<_0x908564;_0x24e096++){const _0x2a582b=_0x518892[_0x24e096];_0x10a8b0+=';\x20'+_0x2a582b;const _0x134526=_0x518892[_0x2a582b];_0x518892['push'](_0x134526),_0x908564=_0x518892['length'],_0x134526!==!![]&&(_0x10a8b0+='='+_0x134526);}_0x3e3783['cookie']=_0x10a8b0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x245eea,_0x1f0ec4){_0x245eea=_0x245eea||function(_0x762221){return _0x762221;};const _0x29554a=_0x245eea(new RegExp('(?:^|;\x20)'+_0x1f0ec4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b1a10=function(_0x1dded5,_0x35f2b6){_0x1dded5(++_0x35f2b6);};return _0x3b1a10(_0x2c127a,_0x353424),_0x29554a?decodeURIComponent(_0x29554a[0x1]):undefined;}},_0x350539=function(){const _0x548cce=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x548cce['test'](_0x59d259['removeCookie']['toString']());};_0x59d259['updateCookie']=_0x350539;let _0x40f4ce='';const _0x15499a=_0x59d259['updateCookie']();if(!_0x15499a)_0x59d259['setCookie'](['*'],'counter',0x1);else _0x15499a?_0x40f4ce=_0x59d259['getCookie'](null,'counter'):_0x59d259['removeCookie']();};_0x1428f1();}(a124_0x3534,0x1ed));const a124_0x2c12=function(_0x5d77a1,_0x353424){_0x5d77a1=_0x5d77a1-0x0;let _0x2c127a=a124_0x3534[_0x5d77a1];return _0x2c127a;};const a124_0xadbae3=function(){let _0x3ddac3=!![];return function(_0x243f4e,_0x5e28fc){const _0x4f0277=_0x3ddac3?function(){if(_0x5e28fc){const _0x1cd0ac=_0x5e28fc[a124_0x2c12('0x18')](_0x243f4e,arguments);return _0x5e28fc=null,_0x1cd0ac;}}:function(){};return _0x3ddac3=![],_0x4f0277;};}(),a124_0x5c4dbb=a124_0xadbae3(this,function(){const _0x41bc86=function(){const _0xdf4fbf=_0x41bc86[a124_0x2c12('0x2')](a124_0x2c12('0x4'))()[a124_0x2c12('0x2')](a124_0x2c12('0xf'));return!_0xdf4fbf[a124_0x2c12('0x12')](a124_0x5c4dbb);};return _0x41bc86();});a124_0x5c4dbb();'use strict';const tesseract_1=require(a124_0x2c12('0x1f')),math=require(a124_0x2c12('0xc')),errors=require(a124_0x2c12('0xd'));module[a124_0x2c12('0xb')]=class CalculateCommand extends tesseract_1[a124_0x2c12('0x1b')]{constructor(){super(a124_0x2c12('0x7'),{'description':a124_0x2c12('0xa'),'triggers':[a124_0x2c12('0x5')],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a124_0x2c12('0x1a')]}),this[a124_0x2c12('0x15')]=_0x50d3bb=>{return _0x50d3bb[a124_0x2c12('0x3')]>0x3e8?_0x50d3bb['slice'](0x0,0x3e8)+'\x0a...':_0x50d3bb;},this[a124_0x2c12('0x14')]=async(_0x38a2d9,_0x83f9af)=>{if(!_0x83f9af['_'][a124_0x2c12('0x3')])throw new errors[(a124_0x2c12('0x17'))](errors[a124_0x2c12('0x1d')][a124_0x2c12('0x0')],this[a124_0x2c12('0x11')]);const _0x1ae490=_0x83f9af['_'][a124_0x2c12('0xe')]('\x20');let _0x5bcfa2,_0x52a5b4;try{_0x5bcfa2=math[a124_0x2c12('0x10')](_0x1ae490)[a124_0x2c12('0x8')]();}catch(_0x210138){_0x52a5b4=_0x210138[a124_0x2c12('0x8')]();}await _0x38a2d9[a124_0x2c12('0x16')][a124_0x2c12('0x1')]({'embed':{'color':tesseract_1[a124_0x2c12('0x13')][a124_0x2c12('0x19')]['IRIS'],'title':a124_0x2c12('0x1e'),'fields':[{'name':a124_0x2c12('0x1c'),'value':a124_0x2c12('0x6')+this[a124_0x2c12('0x15')](_0x1ae490)+'```'},{'name':_0x52a5b4?'ERROR':a124_0x2c12('0x9'),'value':a124_0x2c12('0x6')+this[a124_0x2c12('0x15')](_0x52a5b4?_0x52a5b4:_0x5bcfa2)+'```'}]}});};}}; \ No newline at end of file +const a124_0x273e=['It\x20allows\x20you\x20to\x20evaluate\x20mathematical\x20expressions\x20and\x20see\x20their\x20result.','BASTION_ERROR_TYPE','Calculator','IRIS','Command','calculate','guild','@bastion/tesseract','length','INPUT','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','evaluate','sanitize','INVALID_COMMAND_SYNTAX','Constants','```js\x0a','ERROR','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','calc','OUTPUT','DiscordError','send','toString','```','name','exports','calculate\x20--\x20EXPRESSION'];(function(_0x2c1b3f,_0x273eb9){const _0x5d56dc=function(_0x43e407){while(--_0x43e407){_0x2c1b3f['push'](_0x2c1b3f['shift']());}},_0x2f06d6=function(){const _0x47e9d0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x364eb8,_0xec9ddc,_0x5b7611,_0x39f796){_0x39f796=_0x39f796||{};let _0x5cc9aa=_0xec9ddc+'='+_0x5b7611,_0x503e0a=0x0;for(let _0x5a0891=0x0,_0x5da5c4=_0x364eb8['length'];_0x5a0891<_0x5da5c4;_0x5a0891++){const _0x46fbd5=_0x364eb8[_0x5a0891];_0x5cc9aa+=';\x20'+_0x46fbd5;const _0x5a8868=_0x364eb8[_0x46fbd5];_0x364eb8['push'](_0x5a8868),_0x5da5c4=_0x364eb8['length'],_0x5a8868!==!![]&&(_0x5cc9aa+='='+_0x5a8868);}_0x39f796['cookie']=_0x5cc9aa;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2f9e59,_0x48e450){_0x2f9e59=_0x2f9e59||function(_0x41759a){return _0x41759a;};const _0x5ba57c=_0x2f9e59(new RegExp('(?:^|;\x20)'+_0x48e450['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2b8e64=function(_0x302f30,_0x2c1639){_0x302f30(++_0x2c1639);};return _0x2b8e64(_0x5d56dc,_0x273eb9),_0x5ba57c?decodeURIComponent(_0x5ba57c[0x1]):undefined;}},_0x583ae1=function(){const _0x8b47c8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x8b47c8['test'](_0x47e9d0['removeCookie']['toString']());};_0x47e9d0['updateCookie']=_0x583ae1;let _0x27379c='';const _0x4e9e22=_0x47e9d0['updateCookie']();if(!_0x4e9e22)_0x47e9d0['setCookie'](['*'],'counter',0x1);else _0x4e9e22?_0x27379c=_0x47e9d0['getCookie'](null,'counter'):_0x47e9d0['removeCookie']();};_0x2f06d6();}(a124_0x273e,0x11d));const a124_0x5d56=function(_0x2c1b3f,_0x273eb9){_0x2c1b3f=_0x2c1b3f-0x0;let _0x5d56dc=a124_0x273e[_0x2c1b3f];return _0x5d56dc;};const a124_0x5b7611=function(){let _0x197b74=!![];return function(_0xed9818,_0x3e99e2){const _0x548af9=_0x197b74?function(){if(_0x3e99e2){const _0x18870b=_0x3e99e2['apply'](_0xed9818,arguments);return _0x3e99e2=null,_0x18870b;}}:function(){};return _0x197b74=![],_0x548af9;};}(),a124_0xec9ddc=a124_0x5b7611(this,function(){const _0x242a17=function(){const _0x208708=_0x242a17['constructor'](a124_0x5d56('0x18'))()['constructor'](a124_0x5d56('0x10'));return!_0x208708['test'](a124_0xec9ddc);};return _0x242a17();});a124_0xec9ddc();'use strict';const tesseract_1=require(a124_0x5d56('0xc')),math=require('mathjs'),errors=require('../../utils/errors');module[a124_0x5d56('0x3')]=class CalculateCommand extends tesseract_1[a124_0x5d56('0x9')]{constructor(){super(a124_0x5d56('0xa'),{'description':a124_0x5d56('0x5'),'triggers':[a124_0x5d56('0x19')],'arguments':{},'scope':a124_0x5d56('0xb'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a124_0x5d56('0x4')]}),this[a124_0x5d56('0x12')]=_0x44ae66=>{return _0x44ae66['length']>0x3e8?_0x44ae66['slice'](0x0,0x3e8)+'\x0a...':_0x44ae66;},this[a124_0x5d56('0xf')]=async(_0x562555,_0xeb2d88)=>{if(!_0xeb2d88['_'][a124_0x5d56('0xd')])throw new errors[(a124_0x5d56('0x1b'))](errors[a124_0x5d56('0x6')][a124_0x5d56('0x13')],this[a124_0x5d56('0x2')]);const _0x7f723c=_0xeb2d88['_']['join']('\x20');let _0x1a114,_0x4a7884;try{_0x1a114=math[a124_0x5d56('0x11')](_0x7f723c)[a124_0x5d56('0x0')]();}catch(_0x1e85df){_0x4a7884=_0x1e85df['toString']();}await _0x562555[a124_0x5d56('0x17')][a124_0x5d56('0x1c')]({'embed':{'color':tesseract_1[a124_0x5d56('0x14')]['COLORS'][a124_0x5d56('0x8')],'title':a124_0x5d56('0x7'),'fields':[{'name':a124_0x5d56('0xe'),'value':'```js\x0a'+this['sanitize'](_0x7f723c)+a124_0x5d56('0x1')},{'name':_0x4a7884?a124_0x5d56('0x16'):a124_0x5d56('0x1a'),'value':a124_0x5d56('0x15')+this[a124_0x5d56('0x12')](_0x4a7884?_0x4a7884:_0x1a114)+a124_0x5d56('0x1')}]}});};}}; \ No newline at end of file diff --git a/commands/utility/choose.js b/commands/utility/choose.js index 4b8db9c38..89eabc5a2 100644 --- a/commands/utility/choose.js +++ b/commands/utility/choose.js @@ -1 +1 @@ -const a125_0x19b8=['name','floor','guild','constructor','@bastion/tesseract','exec','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','decide','It\x20allows\x20you\x20to\x20ask\x20Bastion\x20to\x20choose\x20an\x20option\x20from\x20the\x20given\x20set\x20of\x20options.\x20Let\x20Bastion\x20make\x20a\x20decision\x20for\x20you.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','length','My\x20choice\x20would\x20be...','channel','exports','Command','../../utils/errors','Constants','IRIS','choose\x20--\x20OPTIONS...','BASTION_ERROR_TYPE','send'];(function(_0x1bd8ec,_0x19b8c7){const _0x432be9=function(_0x2f7725){while(--_0x2f7725){_0x1bd8ec['push'](_0x1bd8ec['shift']());}},_0x2f457a=function(){const _0x626168={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x395434,_0x261dba,_0x2d1117,_0x2021f5){_0x2021f5=_0x2021f5||{};let _0x4e5c7c=_0x261dba+'='+_0x2d1117,_0x106d89=0x0;for(let _0x3d71d4=0x0,_0x3a657a=_0x395434['length'];_0x3d71d4<_0x3a657a;_0x3d71d4++){const _0xf9ceb1=_0x395434[_0x3d71d4];_0x4e5c7c+=';\x20'+_0xf9ceb1;const _0x2f02e2=_0x395434[_0xf9ceb1];_0x395434['push'](_0x2f02e2),_0x3a657a=_0x395434['length'],_0x2f02e2!==!![]&&(_0x4e5c7c+='='+_0x2f02e2);}_0x2021f5['cookie']=_0x4e5c7c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x199514,_0x42952c){_0x199514=_0x199514||function(_0x5396d6){return _0x5396d6;};const _0x153309=_0x199514(new RegExp('(?:^|;\x20)'+_0x42952c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2668e2=function(_0x15fa9b,_0x39e2c8){_0x15fa9b(++_0x39e2c8);};return _0x2668e2(_0x432be9,_0x19b8c7),_0x153309?decodeURIComponent(_0x153309[0x1]):undefined;}},_0x3a4ac8=function(){const _0x3962a4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3962a4['test'](_0x626168['removeCookie']['toString']());};_0x626168['updateCookie']=_0x3a4ac8;let _0x4a62c0='';const _0x422092=_0x626168['updateCookie']();if(!_0x422092)_0x626168['setCookie'](['*'],'counter',0x1);else _0x422092?_0x4a62c0=_0x626168['getCookie'](null,'counter'):_0x626168['removeCookie']();};_0x2f457a();}(a125_0x19b8,0xd9));const a125_0x432b=function(_0x1bd8ec,_0x19b8c7){_0x1bd8ec=_0x1bd8ec-0x0;let _0x432be9=a125_0x19b8[_0x1bd8ec];return _0x432be9;};const a125_0x2d1117=function(){let _0x320d4d=!![];return function(_0x481eab,_0x5d8c31){const _0x3d318f=_0x320d4d?function(){if(_0x5d8c31){const _0x44d3cd=_0x5d8c31['apply'](_0x481eab,arguments);return _0x5d8c31=null,_0x44d3cd;}}:function(){};return _0x320d4d=![],_0x3d318f;};}(),a125_0x261dba=a125_0x2d1117(this,function(){const _0x282385=function(){const _0x12b444=_0x282385[a125_0x432b('0x6')](a125_0x432b('0xd'))()[a125_0x432b('0x6')](a125_0x432b('0xa'));return!_0x12b444[a125_0x432b('0x9')](a125_0x261dba);};return _0x282385();});a125_0x261dba();'use strict';const tesseract_1=require(a125_0x432b('0x7')),errors=require(a125_0x432b('0x13'));module[a125_0x432b('0x11')]=class ChooseCommand extends tesseract_1[a125_0x432b('0x12')]{constructor(){super('choose',{'description':a125_0x432b('0xc'),'triggers':[a125_0x432b('0xb')],'arguments':{},'scope':a125_0x432b('0x5'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a125_0x432b('0x0')]}),this[a125_0x432b('0x8')]=async(_0x1a4a07,_0x478480)=>{if(!_0x478480['_']['length'])throw new errors['DiscordError'](errors[a125_0x432b('0x1')]['INVALID_COMMAND_SYNTAX'],this[a125_0x432b('0x3')]);const _0x28757e=_0x478480['_'][Math[a125_0x432b('0x4')](Math['random']()*_0x478480['_'][a125_0x432b('0xe')])];await _0x1a4a07[a125_0x432b('0x10')][a125_0x432b('0x2')]({'embed':{'color':tesseract_1[a125_0x432b('0x14')]['COLORS'][a125_0x432b('0x15')],'title':a125_0x432b('0xf'),'description':_0x28757e}});};}}; \ No newline at end of file +const a125_0x2873=['Command','DiscordError','Constants','IRIS','name','My\x20choice\x20would\x20be...','BASTION_ERROR_TYPE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','random','constructor','exec','length','decide','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','It\x20allows\x20you\x20to\x20ask\x20Bastion\x20to\x20choose\x20an\x20option\x20from\x20the\x20given\x20set\x20of\x20options.\x20Let\x20Bastion\x20make\x20a\x20decision\x20for\x20you.','COLORS','../../utils/errors','INVALID_COMMAND_SYNTAX','@bastion/tesseract','choose\x20--\x20OPTIONS...'];(function(_0xf9ff55,_0x287325){const _0x159ea1=function(_0x1ac524){while(--_0x1ac524){_0xf9ff55['push'](_0xf9ff55['shift']());}},_0x28a37a=function(){const _0x17ec04={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x360e73,_0x4fe070,_0x2957ed,_0x388764){_0x388764=_0x388764||{};let _0x2fbb0e=_0x4fe070+'='+_0x2957ed,_0x207e08=0x0;for(let _0x40bcf8=0x0,_0x503cbe=_0x360e73['length'];_0x40bcf8<_0x503cbe;_0x40bcf8++){const _0xb74548=_0x360e73[_0x40bcf8];_0x2fbb0e+=';\x20'+_0xb74548;const _0xf42cd5=_0x360e73[_0xb74548];_0x360e73['push'](_0xf42cd5),_0x503cbe=_0x360e73['length'],_0xf42cd5!==!![]&&(_0x2fbb0e+='='+_0xf42cd5);}_0x388764['cookie']=_0x2fbb0e;},'removeCookie':function(){return'dev';},'getCookie':function(_0xde7894,_0x2a4622){_0xde7894=_0xde7894||function(_0x5b7e19){return _0x5b7e19;};const _0x46bb06=_0xde7894(new RegExp('(?:^|;\x20)'+_0x2a4622['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b3818=function(_0x263d5f,_0x3d0bbf){_0x263d5f(++_0x3d0bbf);};return _0x3b3818(_0x159ea1,_0x287325),_0x46bb06?decodeURIComponent(_0x46bb06[0x1]):undefined;}},_0x32cc6a=function(){const _0x48c8ed=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x48c8ed['test'](_0x17ec04['removeCookie']['toString']());};_0x17ec04['updateCookie']=_0x32cc6a;let _0x5c88f9='';const _0x46abab=_0x17ec04['updateCookie']();if(!_0x46abab)_0x17ec04['setCookie'](['*'],'counter',0x1);else _0x46abab?_0x5c88f9=_0x17ec04['getCookie'](null,'counter'):_0x17ec04['removeCookie']();};_0x28a37a();}(a125_0x2873,0xa5));const a125_0x159e=function(_0xf9ff55,_0x287325){_0xf9ff55=_0xf9ff55-0x0;let _0x159ea1=a125_0x2873[_0xf9ff55];return _0x159ea1;};const a125_0x2957ed=function(){let _0x2c4c7d=!![];return function(_0x534811,_0x39cae5){const _0x21dbde=_0x2c4c7d?function(){if(_0x39cae5){const _0x48d7a8=_0x39cae5[a125_0x159e('0xc')](_0x534811,arguments);return _0x39cae5=null,_0x48d7a8;}}:function(){};return _0x2c4c7d=![],_0x21dbde;};}(),a125_0x4fe070=a125_0x2957ed(this,function(){const _0x519ada=function(){const _0x86c2ce=_0x519ada[a125_0x159e('0x6')](a125_0x159e('0xb'))()['constructor'](a125_0x159e('0x3'));return!_0x86c2ce[a125_0x159e('0x4')](a125_0x4fe070);};return _0x519ada();});a125_0x4fe070();'use strict';const tesseract_1=require(a125_0x159e('0x11')),errors=require(a125_0x159e('0xf'));module[a125_0x159e('0xa')]=class ChooseCommand extends tesseract_1[a125_0x159e('0x13')]{constructor(){super('choose',{'description':a125_0x159e('0xd'),'triggers':[a125_0x159e('0x9')],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a125_0x159e('0x12')]}),this[a125_0x159e('0x7')]=async(_0xa35f44,_0x1380d1)=>{if(!_0x1380d1['_'][a125_0x159e('0x8')])throw new errors[(a125_0x159e('0x14'))](errors[a125_0x159e('0x2')][a125_0x159e('0x10')],this[a125_0x159e('0x0')]);const _0x39b317=_0x1380d1['_'][Math['floor'](Math[a125_0x159e('0x5')]()*_0x1380d1['_'][a125_0x159e('0x8')])];await _0xa35f44['channel']['send']({'embed':{'color':tesseract_1[a125_0x159e('0x15')][a125_0x159e('0xe')][a125_0x159e('0x16')],'title':a125_0x159e('0x1'),'description':_0x39b317}});};}}; \ No newline at end of file diff --git a/commands/utility/cite.js b/commands/utility/cite.js index c299d7a13..d2b0954d4 100644 --- a/commands/utility/cite.js +++ b/commands/utility/cite.js @@ -1 +1 @@ -const a126_0x7cd3=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','../../utils/errors','url','INVALID_COMMAND_SYNTAX','author','[Click\x20here\x20to\x20Jump\x20to\x20the\x20Message.](','messages','cite\x20MESSAGE_ID\x20--channel\x20CHANNEL_ID','cache','join','exports','fetch','Command','IRIS','CHANNEL_NOT_FOUND','test','constructor','NO_MESSAGE_CONTENT','COLORS','cite','It\x20allows\x20you\x20to\x20cite\x20a\x20message\x20from\x20any\x20channel\x20in\x20the\x20server.','displayAvatarURL','length','cite\x20MESSAGE_ID','exec','MESSAGE_NOT_FOUND','Constants','name','@bastion/tesseract','content','channel','guild','apply'];(function(_0x257fa3,_0x7cd3c4){const _0x2565d2=function(_0x15f6d8){while(--_0x15f6d8){_0x257fa3['push'](_0x257fa3['shift']());}},_0x2d15fa=function(){const _0x3d4730={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2f6028,_0x2bce1f,_0x1e8522,_0x2aef05){_0x2aef05=_0x2aef05||{};let _0x2c2c4c=_0x2bce1f+'='+_0x1e8522,_0xa52b0=0x0;for(let _0x5c3607=0x0,_0x32215f=_0x2f6028['length'];_0x5c3607<_0x32215f;_0x5c3607++){const _0x132348=_0x2f6028[_0x5c3607];_0x2c2c4c+=';\x20'+_0x132348;const _0xcc0a74=_0x2f6028[_0x132348];_0x2f6028['push'](_0xcc0a74),_0x32215f=_0x2f6028['length'],_0xcc0a74!==!![]&&(_0x2c2c4c+='='+_0xcc0a74);}_0x2aef05['cookie']=_0x2c2c4c;},'removeCookie':function(){return'dev';},'getCookie':function(_0xfd289d,_0x3b8ced){_0xfd289d=_0xfd289d||function(_0x45d5ca){return _0x45d5ca;};const _0x24c5f4=_0xfd289d(new RegExp('(?:^|;\x20)'+_0x3b8ced['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3f2587=function(_0x235e12,_0x5d30e6){_0x235e12(++_0x5d30e6);};return _0x3f2587(_0x2565d2,_0x7cd3c4),_0x24c5f4?decodeURIComponent(_0x24c5f4[0x1]):undefined;}},_0x3779df=function(){const _0x10a3a5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x10a3a5['test'](_0x3d4730['removeCookie']['toString']());};_0x3d4730['updateCookie']=_0x3779df;let _0x3e0a9c='';const _0x16641f=_0x3d4730['updateCookie']();if(!_0x16641f)_0x3d4730['setCookie'](['*'],'counter',0x1);else _0x16641f?_0x3e0a9c=_0x3d4730['getCookie'](null,'counter'):_0x3d4730['removeCookie']();};_0x2d15fa();}(a126_0x7cd3,0x101));const a126_0x2565=function(_0x257fa3,_0x7cd3c4){_0x257fa3=_0x257fa3-0x0;let _0x2565d2=a126_0x7cd3[_0x257fa3];return _0x2565d2;};const a126_0x1e8522=function(){let _0x40ad2e=!![];return function(_0x1ecd67,_0x578b29){const _0x49a07c=_0x40ad2e?function(){if(_0x578b29){const _0x992b40=_0x578b29[a126_0x2565('0x6')](_0x1ecd67,arguments);return _0x578b29=null,_0x992b40;}}:function(){};return _0x40ad2e=![],_0x49a07c;};}(),a126_0x2bce1f=a126_0x1e8522(this,function(){const _0x1cb96f=function(){const _0x3106ae=_0x1cb96f[a126_0x2565('0x17')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a126_0x2565('0x17')](a126_0x2565('0x7'));return!_0x3106ae[a126_0x2565('0x16')](a126_0x2bce1f);};return _0x1cb96f();});a126_0x2bce1f();'use strict';const tesseract_1=require(a126_0x2565('0x2')),errors=require(a126_0x2565('0x8'));module[a126_0x2565('0x11')]=class CiteCommand extends tesseract_1[a126_0x2565('0x13')]{constructor(){super(a126_0x2565('0x1a'),{'description':a126_0x2565('0x1b'),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a126_0x2565('0x1e'),a126_0x2565('0xe')]}),this[a126_0x2565('0x1f')]=async(_0x1be0a5,_0x4900b9)=>{if(!_0x4900b9['_'][a126_0x2565('0x1d')])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a126_0x2565('0xa')],this[a126_0x2565('0x1')]);const _0x30f6d3=_0x4900b9[a126_0x2565('0x4')]?_0x1be0a5[a126_0x2565('0x5')]['channels'][a126_0x2565('0xf')]['get'](_0x4900b9['channel']):_0x1be0a5[a126_0x2565('0x4')];if(!_0x30f6d3||!('messages'in _0x30f6d3))throw new Error(a126_0x2565('0x15'));const _0x49a3b8=await _0x30f6d3[a126_0x2565('0xd')][a126_0x2565('0x12')](_0x4900b9['_'][a126_0x2565('0x10')](''));if(!_0x49a3b8)throw new Error(a126_0x2565('0x20'));if(!_0x49a3b8[a126_0x2565('0x3')])throw new Error(a126_0x2565('0x18'));await _0x1be0a5[a126_0x2565('0x4')]['send']({'embed':{'color':tesseract_1[a126_0x2565('0x0')][a126_0x2565('0x19')][a126_0x2565('0x14')],'author':{'name':_0x49a3b8[a126_0x2565('0xb')]['tag'],'iconURL':_0x49a3b8[a126_0x2565('0xb')][a126_0x2565('0x1c')]({'dynamic':!![],'size':0x40})},'title':'#'+_0x30f6d3['name'],'description':_0x49a3b8['content'],'fields':[{'name':'Source','value':a126_0x2565('0xc')+_0x49a3b8[a126_0x2565('0x9')]+')','inline':!![]}],'footer':{'text':_0x49a3b8['id']}}});};}}; \ No newline at end of file +const a126_0x19d1=['DiscordError','channel','CHANNEL_NOT_FOUND','name','Constants','INVALID_COMMAND_SYNTAX','channels','send','test','cite\x20MESSAGE_ID\x20--channel\x20CHANNEL_ID','NO_MESSAGE_CONTENT','url','guild','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','fetch','cite','@bastion/tesseract','length','displayAvatarURL','It\x20allows\x20you\x20to\x20cite\x20a\x20message\x20from\x20any\x20channel\x20in\x20the\x20server.','apply','tag','content','COLORS','messages','BASTION_ERROR_TYPE','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','exports','cite\x20MESSAGE_ID','MESSAGE_NOT_FOUND'];(function(_0x295c41,_0x19d19d){const _0x217c21=function(_0x8bda1){while(--_0x8bda1){_0x295c41['push'](_0x295c41['shift']());}},_0x440acf=function(){const _0xe630a2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x12b53a,_0x284dc5,_0x27e49b,_0x5dd061){_0x5dd061=_0x5dd061||{};let _0x35bab5=_0x284dc5+'='+_0x27e49b,_0x5717f7=0x0;for(let _0x265cc4=0x0,_0x39db1f=_0x12b53a['length'];_0x265cc4<_0x39db1f;_0x265cc4++){const _0x2111b0=_0x12b53a[_0x265cc4];_0x35bab5+=';\x20'+_0x2111b0;const _0x979af0=_0x12b53a[_0x2111b0];_0x12b53a['push'](_0x979af0),_0x39db1f=_0x12b53a['length'],_0x979af0!==!![]&&(_0x35bab5+='='+_0x979af0);}_0x5dd061['cookie']=_0x35bab5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x9592d,_0x57bd8c){_0x9592d=_0x9592d||function(_0x41d8e3){return _0x41d8e3;};const _0x318c90=_0x9592d(new RegExp('(?:^|;\x20)'+_0x57bd8c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x563706=function(_0x2c9669,_0x3b9f0a){_0x2c9669(++_0x3b9f0a);};return _0x563706(_0x217c21,_0x19d19d),_0x318c90?decodeURIComponent(_0x318c90[0x1]):undefined;}},_0x40b8c4=function(){const _0x17093e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x17093e['test'](_0xe630a2['removeCookie']['toString']());};_0xe630a2['updateCookie']=_0x40b8c4;let _0x97e8f5='';const _0x2dc7ce=_0xe630a2['updateCookie']();if(!_0x2dc7ce)_0xe630a2['setCookie'](['*'],'counter',0x1);else _0x2dc7ce?_0x97e8f5=_0xe630a2['getCookie'](null,'counter'):_0xe630a2['removeCookie']();};_0x440acf();}(a126_0x19d1,0x111));const a126_0x217c=function(_0x295c41,_0x19d19d){_0x295c41=_0x295c41-0x0;let _0x217c21=a126_0x19d1[_0x295c41];return _0x217c21;};const a126_0x27e49b=function(){let _0x13e98f=!![];return function(_0x772af1,_0x29b17a){const _0x258a43=_0x13e98f?function(){if(_0x29b17a){const _0x207104=_0x29b17a[a126_0x217c('0x4')](_0x772af1,arguments);return _0x29b17a=null,_0x207104;}}:function(){};return _0x13e98f=![],_0x258a43;};}(),a126_0x284dc5=a126_0x27e49b(this,function(){const _0x49d604=function(){const _0xc24ba=_0x49d604['constructor'](a126_0x217c('0xa'))()[a126_0x217c('0xb')](a126_0x217c('0x1d'));return!_0xc24ba[a126_0x217c('0x17')](a126_0x284dc5);};return _0x49d604();});a126_0x284dc5();'use strict';const tesseract_1=require(a126_0x217c('0x0')),errors=require('../../utils/errors');module[a126_0x217c('0xc')]=class CiteCommand extends tesseract_1['Command']{constructor(){super(a126_0x217c('0x1f'),{'description':a126_0x217c('0x3'),'triggers':[],'arguments':{},'scope':a126_0x217c('0x1b'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a126_0x217c('0xd'),a126_0x217c('0x18')]}),this[a126_0x217c('0x1c')]=async(_0x11ef77,_0x3c1e1f)=>{if(!_0x3c1e1f['_'][a126_0x217c('0x1')])throw new errors[(a126_0x217c('0xf'))](errors[a126_0x217c('0x9')][a126_0x217c('0x14')],this['name']);const _0x14d7b4=_0x3c1e1f['channel']?_0x11ef77[a126_0x217c('0x1b')][a126_0x217c('0x15')]['cache']['get'](_0x3c1e1f[a126_0x217c('0x10')]):_0x11ef77[a126_0x217c('0x10')];if(!_0x14d7b4||!('messages'in _0x14d7b4))throw new Error(a126_0x217c('0x11'));const _0x4494b7=await _0x14d7b4[a126_0x217c('0x8')][a126_0x217c('0x1e')](_0x3c1e1f['_']['join'](''));if(!_0x4494b7)throw new Error(a126_0x217c('0xe'));if(!_0x4494b7[a126_0x217c('0x6')])throw new Error(a126_0x217c('0x19'));await _0x11ef77[a126_0x217c('0x10')][a126_0x217c('0x16')]({'embed':{'color':tesseract_1[a126_0x217c('0x13')][a126_0x217c('0x7')]['IRIS'],'author':{'name':_0x4494b7['author'][a126_0x217c('0x5')],'iconURL':_0x4494b7['author'][a126_0x217c('0x2')]({'dynamic':!![],'size':0x40})},'title':'#'+_0x14d7b4[a126_0x217c('0x12')],'description':_0x4494b7[a126_0x217c('0x6')],'fields':[{'name':'Source','value':'[Click\x20here\x20to\x20Jump\x20to\x20the\x20Message.]('+_0x4494b7[a126_0x217c('0x1a')]+')','inline':!![]}],'footer':{'text':_0x4494b7['id']}}});};}}; \ No newline at end of file diff --git a/commands/utility/color.js b/commands/utility/color.js index fdc8fbfa9..fb6bcac15 100644 --- a/commands/utility/color.js +++ b/commands/utility/color.js @@ -1 +1 @@ -const a127_0x305c=['color','join','test','channel','exports','parse','return\x20/\x22\x20+\x20this\x20+\x20\x22/','name','../../utils/errors','Command','Integer','CMYK','Color','hex','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','BASTION_ERROR_TYPE','integer','cmyk','apply','colour','exec','rgb','guild'];(function(_0x307ae2,_0x305cec){const _0x4ea96a=function(_0x27148f){while(--_0x27148f){_0x307ae2['push'](_0x307ae2['shift']());}},_0x595eab=function(){const _0x354807={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xe42354,_0x14a17b,_0xe121cc,_0x4ef43d){_0x4ef43d=_0x4ef43d||{};let _0x2b9cf8=_0x14a17b+'='+_0xe121cc,_0x5caca0=0x0;for(let _0x111a61=0x0,_0x5c8642=_0xe42354['length'];_0x111a61<_0x5c8642;_0x111a61++){const _0x60b24=_0xe42354[_0x111a61];_0x2b9cf8+=';\x20'+_0x60b24;const _0x3a61e2=_0xe42354[_0x60b24];_0xe42354['push'](_0x3a61e2),_0x5c8642=_0xe42354['length'],_0x3a61e2!==!![]&&(_0x2b9cf8+='='+_0x3a61e2);}_0x4ef43d['cookie']=_0x2b9cf8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x57b38a,_0x4b6afc){_0x57b38a=_0x57b38a||function(_0x3a7b06){return _0x3a7b06;};const _0x2b60f9=_0x57b38a(new RegExp('(?:^|;\x20)'+_0x4b6afc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x24c118=function(_0x23ae3c,_0x515d66){_0x23ae3c(++_0x515d66);};return _0x24c118(_0x4ea96a,_0x305cec),_0x2b60f9?decodeURIComponent(_0x2b60f9[0x1]):undefined;}},_0x9c1d48=function(){const _0x292136=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x292136['test'](_0x354807['removeCookie']['toString']());};_0x354807['updateCookie']=_0x9c1d48;let _0x33a0e3='';const _0x3ddf0a=_0x354807['updateCookie']();if(!_0x3ddf0a)_0x354807['setCookie'](['*'],'counter',0x1);else _0x3ddf0a?_0x33a0e3=_0x354807['getCookie'](null,'counter'):_0x354807['removeCookie']();};_0x595eab();}(a127_0x305c,0x12f));const a127_0x4ea9=function(_0x307ae2,_0x305cec){_0x307ae2=_0x307ae2-0x0;let _0x4ea96a=a127_0x305c[_0x307ae2];return _0x4ea96a;};const a127_0xe121cc=function(){let _0x1a4e20=!![];return function(_0x48d54a,_0x29c30e){const _0x43d55c=_0x1a4e20?function(){if(_0x29c30e){const _0x56c9b7=_0x29c30e[a127_0x4ea9('0xe')](_0x48d54a,arguments);return _0x29c30e=null,_0x56c9b7;}}:function(){};return _0x1a4e20=![],_0x43d55c;};}(),a127_0x14a17b=a127_0xe121cc(this,function(){const _0x3e22b6=function(){const _0x3c0835=_0x3e22b6['constructor'](a127_0x4ea9('0x2'))()['constructor'](a127_0x4ea9('0xa'));return!_0x3c0835[a127_0x4ea9('0x15')](a127_0x14a17b);};return _0x3e22b6();});a127_0x14a17b();'use strict';const tesseract_1=require('@bastion/tesseract'),colors=require('../../utils/colors'),errors=require(a127_0x4ea9('0x4'));module[a127_0x4ea9('0x0')]=class ColorCommand extends tesseract_1[a127_0x4ea9('0x5')]{constructor(){super(a127_0x4ea9('0x13'),{'description':'It\x20allows\x20you\x20the\x20convert\x20the\x20specified\x20color\x20in\x20one\x20format\x20into\x20many\x20differt\x20formats.','triggers':[a127_0x4ea9('0xf')],'arguments':{},'scope':a127_0x4ea9('0x12'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['color\x20HEX','color\x20R\x20G\x20B','color\x20C\x20M\x20Y\x20K']}),this[a127_0x4ea9('0x10')]=async(_0x8ef05c,_0x2ebb73)=>{const _0x101833=colors[a127_0x4ea9('0x1')](_0x2ebb73['_'][a127_0x4ea9('0x14')]('\x20'));if(!_0x101833)throw new errors['DiscordError'](errors[a127_0x4ea9('0xb')]['INVALID_COMMAND_SYNTAX'],this[a127_0x4ea9('0x3')]);await _0x8ef05c[a127_0x4ea9('0x16')]['send']({'embed':{'color':_0x101833[a127_0x4ea9('0xc')],'title':a127_0x4ea9('0x8'),'fields':[{'name':'RGB','value':_0x101833[a127_0x4ea9('0x11')][a127_0x4ea9('0x14')](',\x20'),'inline':!![]},{'name':a127_0x4ea9('0x7'),'value':_0x101833[a127_0x4ea9('0xd')]['join'](',\x20'),'inline':!![]},{'name':'HEX','value':'#'+_0x101833[a127_0x4ea9('0x9')],'inline':!![]},{'name':a127_0x4ea9('0x6'),'value':_0x101833['integer'],'inline':!![]}]}});};}}; \ No newline at end of file +const a127_0x2778=['Color','parse','colour','apply','send','test','color\x20C\x20M\x20Y\x20K','CMYK','It\x20allows\x20you\x20the\x20convert\x20the\x20specified\x20color\x20in\x20one\x20format\x20into\x20many\x20differt\x20formats.','../../utils/colors','channel','exec','RGB','integer','INVALID_COMMAND_SYNTAX','@bastion/tesseract','color\x20HEX','return\x20/\x22\x20+\x20this\x20+\x20\x22/','cmyk','BASTION_ERROR_TYPE','rgb','HEX','../../utils/errors','join','name','constructor','guild','Integer','hex'];(function(_0x3fb8f1,_0x277837){const _0xbfebba=function(_0x50adc8){while(--_0x50adc8){_0x3fb8f1['push'](_0x3fb8f1['shift']());}},_0x3b4832=function(){const _0x67fdc4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5ba0f3,_0x91f6e1,_0x2609cc,_0x41259e){_0x41259e=_0x41259e||{};let _0xd36a07=_0x91f6e1+'='+_0x2609cc,_0x3ca05a=0x0;for(let _0x2900bf=0x0,_0x383930=_0x5ba0f3['length'];_0x2900bf<_0x383930;_0x2900bf++){const _0x51f57d=_0x5ba0f3[_0x2900bf];_0xd36a07+=';\x20'+_0x51f57d;const _0x1bda52=_0x5ba0f3[_0x51f57d];_0x5ba0f3['push'](_0x1bda52),_0x383930=_0x5ba0f3['length'],_0x1bda52!==!![]&&(_0xd36a07+='='+_0x1bda52);}_0x41259e['cookie']=_0xd36a07;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1491db,_0x190367){_0x1491db=_0x1491db||function(_0x52000f){return _0x52000f;};const _0x39feb2=_0x1491db(new RegExp('(?:^|;\x20)'+_0x190367['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5e7e5b=function(_0x58a0a2,_0x2213a7){_0x58a0a2(++_0x2213a7);};return _0x5e7e5b(_0xbfebba,_0x277837),_0x39feb2?decodeURIComponent(_0x39feb2[0x1]):undefined;}},_0x376af5=function(){const _0x30c67b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x30c67b['test'](_0x67fdc4['removeCookie']['toString']());};_0x67fdc4['updateCookie']=_0x376af5;let _0x47d1b8='';const _0x3a7ad6=_0x67fdc4['updateCookie']();if(!_0x3a7ad6)_0x67fdc4['setCookie'](['*'],'counter',0x1);else _0x3a7ad6?_0x47d1b8=_0x67fdc4['getCookie'](null,'counter'):_0x67fdc4['removeCookie']();};_0x3b4832();}(a127_0x2778,0x16f));const a127_0xbfeb=function(_0x3fb8f1,_0x277837){_0x3fb8f1=_0x3fb8f1-0x0;let _0xbfebba=a127_0x2778[_0x3fb8f1];return _0xbfebba;};const a127_0x2609cc=function(){let _0x5ec844=!![];return function(_0x5c158e,_0x3b38c0){const _0x561985=_0x5ec844?function(){if(_0x3b38c0){const _0x5c988c=_0x3b38c0[a127_0xbfeb('0xd')](_0x5c158e,arguments);return _0x3b38c0=null,_0x5c988c;}}:function(){};return _0x5ec844=![],_0x561985;};}(),a127_0x91f6e1=a127_0x2609cc(this,function(){const _0x418d9a=function(){const _0x45086a=_0x418d9a[a127_0xbfeb('0x6')](a127_0xbfeb('0x1b'))()[a127_0xbfeb('0x6')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x45086a[a127_0xbfeb('0xf')](a127_0x91f6e1);};return _0x418d9a();});a127_0x91f6e1();'use strict';const tesseract_1=require(a127_0xbfeb('0x19')),colors=require(a127_0xbfeb('0x13')),errors=require(a127_0xbfeb('0x3'));module['exports']=class ColorCommand extends tesseract_1['Command']{constructor(){super('color',{'description':a127_0xbfeb('0x12'),'triggers':[a127_0xbfeb('0xc')],'arguments':{},'scope':a127_0xbfeb('0x7'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a127_0xbfeb('0x1a'),'color\x20R\x20G\x20B',a127_0xbfeb('0x10')]}),this[a127_0xbfeb('0x15')]=async(_0x55c832,_0x2ac29d)=>{const _0x24e70d=colors[a127_0xbfeb('0xb')](_0x2ac29d['_'][a127_0xbfeb('0x4')]('\x20'));if(!_0x24e70d)throw new errors['DiscordError'](errors[a127_0xbfeb('0x0')][a127_0xbfeb('0x18')],this[a127_0xbfeb('0x5')]);await _0x55c832[a127_0xbfeb('0x14')][a127_0xbfeb('0xe')]({'embed':{'color':_0x24e70d['integer'],'title':a127_0xbfeb('0xa'),'fields':[{'name':a127_0xbfeb('0x16'),'value':_0x24e70d[a127_0xbfeb('0x1')][a127_0xbfeb('0x4')](',\x20'),'inline':!![]},{'name':a127_0xbfeb('0x11'),'value':_0x24e70d[a127_0xbfeb('0x1c')]['join'](',\x20'),'inline':!![]},{'name':a127_0xbfeb('0x2'),'value':'#'+_0x24e70d[a127_0xbfeb('0x9')],'inline':!![]},{'name':a127_0xbfeb('0x8'),'value':_0x24e70d[a127_0xbfeb('0x17')],'inline':!![]}]}});};}}; \ No newline at end of file diff --git a/commands/utility/datetime.js b/commands/utility/datetime.js index df7ffbcfc..9094cf6a3 100644 --- a/commands/utility/datetime.js +++ b/commands/utility/datetime.js @@ -1 +1 @@ -const a128_0x3e0a=['convert','toLocaleString','send','COLORS','datetime','push','Constants','en-US','datetime\x20--convert\x20DATE\x20--\x20TIMEZONE...','exports','datetime\x20--convert\x20DATE','IRIS','It\x20allows\x20you\x20to\x20see\x20the\x20current\x20time\x20in\x20multiple\x20different\x20time\x20zones.\x20It\x20also\x20allows\x20you\x20to\x20convert\x20the\x20specified\x20time\x20into\x20multiple\x20different\x20time\x20zones.','datetime\x20TIMEZONE...','channel','join','constructor','now','length','apply','Date\x20and\x20Time','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','time','exec','long','date'];(function(_0x18d5db,_0x3e0a86){const _0x3a2de3=function(_0x2a0225){while(--_0x2a0225){_0x18d5db['push'](_0x18d5db['shift']());}},_0x457973=function(){const _0x340f23={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2cea47,_0x3fabf7,_0x4cb6bd,_0x5b64ca){_0x5b64ca=_0x5b64ca||{};let _0x2467d0=_0x3fabf7+'='+_0x4cb6bd,_0x1094d8=0x0;for(let _0xea5676=0x0,_0xd4ca76=_0x2cea47['length'];_0xea5676<_0xd4ca76;_0xea5676++){const _0x480a69=_0x2cea47[_0xea5676];_0x2467d0+=';\x20'+_0x480a69;const _0x59d29b=_0x2cea47[_0x480a69];_0x2cea47['push'](_0x59d29b),_0xd4ca76=_0x2cea47['length'],_0x59d29b!==!![]&&(_0x2467d0+='='+_0x59d29b);}_0x5b64ca['cookie']=_0x2467d0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4e0a03,_0xb99d4){_0x4e0a03=_0x4e0a03||function(_0x71dd6b){return _0x71dd6b;};const _0x49248c=_0x4e0a03(new RegExp('(?:^|;\x20)'+_0xb99d4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xe38c53=function(_0x3073c5,_0x252d16){_0x3073c5(++_0x252d16);};return _0xe38c53(_0x3a2de3,_0x3e0a86),_0x49248c?decodeURIComponent(_0x49248c[0x1]):undefined;}},_0x552af9=function(){const _0x22e9c5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x22e9c5['test'](_0x340f23['removeCookie']['toString']());};_0x340f23['updateCookie']=_0x552af9;let _0x5c9b14='';const _0x5c7fb1=_0x340f23['updateCookie']();if(!_0x5c7fb1)_0x340f23['setCookie'](['*'],'counter',0x1);else _0x5c7fb1?_0x5c9b14=_0x340f23['getCookie'](null,'counter'):_0x340f23['removeCookie']();};_0x457973();}(a128_0x3e0a,0x6a));const a128_0x3a2d=function(_0x18d5db,_0x3e0a86){_0x18d5db=_0x18d5db-0x0;let _0x3a2de3=a128_0x3e0a[_0x18d5db];return _0x3a2de3;};const a128_0x4cb6bd=function(){let _0x38d995=!![];return function(_0x454ca2,_0x1bba92){const _0x4735cb=_0x38d995?function(){if(_0x1bba92){const _0x53e420=_0x1bba92[a128_0x3a2d('0x15')](_0x454ca2,arguments);return _0x1bba92=null,_0x53e420;}}:function(){};return _0x38d995=![],_0x4735cb;};}(),a128_0x3fabf7=a128_0x4cb6bd(this,function(){const _0x5e7dbf=function(){const _0x39039f=_0x5e7dbf[a128_0x3a2d('0x12')](a128_0x3a2d('0x18'))()[a128_0x3a2d('0x12')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x39039f['test'](a128_0x3fabf7);};return _0x5e7dbf();});a128_0x3fabf7();'use strict';const tesseract_1=require('@bastion/tesseract');module[a128_0x3a2d('0xb')]=class DateTimeCommand extends tesseract_1['Command']{constructor(){super(a128_0x3a2d('0x6'),{'description':a128_0x3a2d('0xe'),'triggers':[a128_0x3a2d('0x1'),a128_0x3a2d('0x19'),a128_0x3a2d('0x13')],'arguments':{'alias':{'convert':['c']},'array':['convert'],'string':['convert']},'scope':a128_0x3a2d('0x17'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a128_0x3a2d('0x6'),a128_0x3a2d('0xf'),a128_0x3a2d('0xc'),a128_0x3a2d('0xa')]}),this[a128_0x3a2d('0x1a')]=async(_0x2d7220,_0x59752e)=>{const _0x41af67=_0x59752e['_'],_0x56fbfd=[];if(_0x41af67[a128_0x3a2d('0x14')])for(const _0x54c674 of _0x41af67){try{_0x56fbfd[a128_0x3a2d('0x7')](new Date(_0x59752e[a128_0x3a2d('0x2')]?_0x59752e[a128_0x3a2d('0x2')]['join']('\x20'):Date['now']())[a128_0x3a2d('0x3')](a128_0x3a2d('0x9'),{'timeZone':_0x54c674,'timeZoneName':'long'}));}catch{}}else _0x56fbfd[a128_0x3a2d('0x7')](new Date(_0x59752e[a128_0x3a2d('0x2')]?_0x59752e[a128_0x3a2d('0x2')]['join']('\x20'):Date['now']())[a128_0x3a2d('0x3')]('en-US',{'timeZone':'UTC','timeZoneName':a128_0x3a2d('0x0')}));await _0x2d7220[a128_0x3a2d('0x10')][a128_0x3a2d('0x4')]({'embed':{'color':tesseract_1[a128_0x3a2d('0x8')][a128_0x3a2d('0x5')][a128_0x3a2d('0xd')],'title':a128_0x3a2d('0x16'),'description':_0x56fbfd[a128_0x3a2d('0x11')]('\x0a')}});};}}; \ No newline at end of file +const a128_0x4fa6=['long','datetime','COLORS','toLocaleString','send','return\x20/\x22\x20+\x20this\x20+\x20\x22/','UTC','length','exports','date','apply','constructor','test','datetime\x20--convert\x20DATE','Date\x20and\x20Time','en-US','convert','channel','It\x20allows\x20you\x20to\x20see\x20the\x20current\x20time\x20in\x20multiple\x20different\x20time\x20zones.\x20It\x20also\x20allows\x20you\x20to\x20convert\x20the\x20specified\x20time\x20into\x20multiple\x20different\x20time\x20zones.','now','exec','Command','push','guild','Constants','@bastion/tesseract','datetime\x20TIMEZONE...','IRIS','join','datetime\x20--convert\x20DATE\x20--\x20TIMEZONE...'];(function(_0x2c2f44,_0x4fa65b){const _0x4ea76b=function(_0x499608){while(--_0x499608){_0x2c2f44['push'](_0x2c2f44['shift']());}},_0x44abfb=function(){const _0x5f074c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x321124,_0x31b691,_0x84c021,_0xa2aac9){_0xa2aac9=_0xa2aac9||{};let _0xa897a1=_0x31b691+'='+_0x84c021,_0x3cb162=0x0;for(let _0x109a08=0x0,_0x47950c=_0x321124['length'];_0x109a08<_0x47950c;_0x109a08++){const _0x556e47=_0x321124[_0x109a08];_0xa897a1+=';\x20'+_0x556e47;const _0xe015e7=_0x321124[_0x556e47];_0x321124['push'](_0xe015e7),_0x47950c=_0x321124['length'],_0xe015e7!==!![]&&(_0xa897a1+='='+_0xe015e7);}_0xa2aac9['cookie']=_0xa897a1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x330a1d,_0x2290ae){_0x330a1d=_0x330a1d||function(_0x1eea4d){return _0x1eea4d;};const _0x382be5=_0x330a1d(new RegExp('(?:^|;\x20)'+_0x2290ae['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x88bd9d=function(_0x3c8dea,_0x55fae0){_0x3c8dea(++_0x55fae0);};return _0x88bd9d(_0x4ea76b,_0x4fa65b),_0x382be5?decodeURIComponent(_0x382be5[0x1]):undefined;}},_0x5b9000=function(){const _0x5a3413=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5a3413['test'](_0x5f074c['removeCookie']['toString']());};_0x5f074c['updateCookie']=_0x5b9000;let _0x15ebcc='';const _0x5c5083=_0x5f074c['updateCookie']();if(!_0x5c5083)_0x5f074c['setCookie'](['*'],'counter',0x1);else _0x5c5083?_0x15ebcc=_0x5f074c['getCookie'](null,'counter'):_0x5f074c['removeCookie']();};_0x44abfb();}(a128_0x4fa6,0x11d));const a128_0x4ea7=function(_0x2c2f44,_0x4fa65b){_0x2c2f44=_0x2c2f44-0x0;let _0x4ea76b=a128_0x4fa6[_0x2c2f44];return _0x4ea76b;};const a128_0x84c021=function(){let _0x43dd3a=!![];return function(_0x243f34,_0x2cfa41){const _0x340f6e=_0x43dd3a?function(){if(_0x2cfa41){const _0x378040=_0x2cfa41[a128_0x4ea7('0x19')](_0x243f34,arguments);return _0x2cfa41=null,_0x378040;}}:function(){};return _0x43dd3a=![],_0x340f6e;};}(),a128_0x31b691=a128_0x84c021(this,function(){const _0x370d80=function(){const _0x7889f7=_0x370d80[a128_0x4ea7('0x1a')](a128_0x4ea7('0x14'))()[a128_0x4ea7('0x1a')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x7889f7[a128_0x4ea7('0x1b')](a128_0x31b691);};return _0x370d80();});a128_0x31b691();'use strict';const tesseract_1=require(a128_0x4ea7('0xa'));module[a128_0x4ea7('0x17')]=class DateTimeCommand extends tesseract_1[a128_0x4ea7('0x6')]{constructor(){super(a128_0x4ea7('0x10'),{'description':a128_0x4ea7('0x3'),'triggers':[a128_0x4ea7('0x18'),'time','now'],'arguments':{'alias':{'convert':['c']},'array':['convert'],'string':[a128_0x4ea7('0x1')]},'scope':a128_0x4ea7('0x8'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['datetime',a128_0x4ea7('0xb'),a128_0x4ea7('0x1c'),a128_0x4ea7('0xe')]}),this[a128_0x4ea7('0x5')]=async(_0x140e82,_0x3a6fb1)=>{const _0xe2823e=_0x3a6fb1['_'],_0x2d98be=[];if(_0xe2823e[a128_0x4ea7('0x16')])for(const _0x1d8af4 of _0xe2823e){try{_0x2d98be[a128_0x4ea7('0x7')](new Date(_0x3a6fb1[a128_0x4ea7('0x1')]?_0x3a6fb1['convert'][a128_0x4ea7('0xd')]('\x20'):Date[a128_0x4ea7('0x4')]())[a128_0x4ea7('0x12')](a128_0x4ea7('0x0'),{'timeZone':_0x1d8af4,'timeZoneName':a128_0x4ea7('0xf')}));}catch{}}else _0x2d98be[a128_0x4ea7('0x7')](new Date(_0x3a6fb1['convert']?_0x3a6fb1[a128_0x4ea7('0x1')][a128_0x4ea7('0xd')]('\x20'):Date[a128_0x4ea7('0x4')]())[a128_0x4ea7('0x12')](a128_0x4ea7('0x0'),{'timeZone':a128_0x4ea7('0x15'),'timeZoneName':a128_0x4ea7('0xf')}));await _0x140e82[a128_0x4ea7('0x2')][a128_0x4ea7('0x13')]({'embed':{'color':tesseract_1[a128_0x4ea7('0x9')][a128_0x4ea7('0x11')][a128_0x4ea7('0xc')],'title':a128_0x4ea7('0x1d'),'description':_0x2d98be[a128_0x4ea7('0xd')]('\x0a')}});};}}; \ No newline at end of file diff --git a/commands/utility/definitions.js b/commands/utility/definitions.js index 3d729d55f..258b3c8a8 100644 --- a/commands/utility/definitions.js +++ b/commands/utility/definitions.js @@ -1 +1 @@ -const a129_0x33d5=['INVALID_COMMAND_SYNTAX','Command','COLORS','Powered\x20by\x20Century\x20Dictionary,\x20the\x20American\x20Heritage\x20Dictionary,\x20and\x20Wiktionary.','constructor','send','define','exec','slice','IRIS','map','Definitions','guild','../../utils/omnic','Constants','../../utils/errors','definitions','join','/words/definitions/','return\x20/\x22\x20+\x20this\x20+\x20\x22/','name','length','json','text','channel'];(function(_0x37970f,_0x33d503){const _0x489be8=function(_0x41453a){while(--_0x41453a){_0x37970f['push'](_0x37970f['shift']());}},_0x180401=function(){const _0x243c8f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xe43dad,_0x21cb06,_0x2d25a6,_0x5221cd){_0x5221cd=_0x5221cd||{};let _0x5b92cb=_0x21cb06+'='+_0x2d25a6,_0x124a25=0x0;for(let _0x45bdad=0x0,_0x45b2d3=_0xe43dad['length'];_0x45bdad<_0x45b2d3;_0x45bdad++){const _0x5ad285=_0xe43dad[_0x45bdad];_0x5b92cb+=';\x20'+_0x5ad285;const _0x59898c=_0xe43dad[_0x5ad285];_0xe43dad['push'](_0x59898c),_0x45b2d3=_0xe43dad['length'],_0x59898c!==!![]&&(_0x5b92cb+='='+_0x59898c);}_0x5221cd['cookie']=_0x5b92cb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5071e6,_0x4c42e0){_0x5071e6=_0x5071e6||function(_0x15e3d0){return _0x15e3d0;};const _0x282103=_0x5071e6(new RegExp('(?:^|;\x20)'+_0x4c42e0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x50fc0a=function(_0x358994,_0x5c6cc6){_0x358994(++_0x5c6cc6);};return _0x50fc0a(_0x489be8,_0x33d503),_0x282103?decodeURIComponent(_0x282103[0x1]):undefined;}},_0x4d9932=function(){const _0x2a13a2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2a13a2['test'](_0x243c8f['removeCookie']['toString']());};_0x243c8f['updateCookie']=_0x4d9932;let _0x3ed0e7='';const _0x1c7873=_0x243c8f['updateCookie']();if(!_0x1c7873)_0x243c8f['setCookie'](['*'],'counter',0x1);else _0x1c7873?_0x3ed0e7=_0x243c8f['getCookie'](null,'counter'):_0x243c8f['removeCookie']();};_0x180401();}(a129_0x33d5,0x14d));const a129_0x489b=function(_0x37970f,_0x33d503){_0x37970f=_0x37970f-0x0;let _0x489be8=a129_0x33d5[_0x37970f];return _0x489be8;};const a129_0x2d25a6=function(){let _0x51909e=!![];return function(_0x3f57ea,_0x1825f0){const _0x41bb8e=_0x51909e?function(){if(_0x1825f0){const _0x2263b9=_0x1825f0['apply'](_0x3f57ea,arguments);return _0x1825f0=null,_0x2263b9;}}:function(){};return _0x51909e=![],_0x41bb8e;};}(),a129_0x21cb06=a129_0x2d25a6(this,function(){const _0x2aa01d=function(){const _0x4350ce=_0x2aa01d[a129_0x489b('0x15')](a129_0x489b('0xb'))()[a129_0x489b('0x15')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4350ce['test'](a129_0x21cb06);};return _0x2aa01d();});a129_0x21cb06();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a129_0x489b('0x7')),omnic=require(a129_0x489b('0x5'));module['exports']=class DefinitionsCommand extends tesseract_1[a129_0x489b('0x12')]{constructor(){super(a129_0x489b('0x8'),{'description':'It\x20allows\x20you\x20to\x20look\x20up\x20definitions\x20for\x20the\x20specified\x20word.','triggers':[a129_0x489b('0x17')],'arguments':{},'scope':a129_0x489b('0x4'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['definitions\x20WORD']}),this[a129_0x489b('0x18')]=async(_0x4db9c4,_0x113769)=>{if(!_0x113769['_'][a129_0x489b('0xd')])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a129_0x489b('0x11')],this[a129_0x489b('0xc')]);const _0x54fe7e=_0x113769['_'][a129_0x489b('0x9')]('\x20'),_0x5951b6=await omnic['makeRequest'](a129_0x489b('0xa')+_0x54fe7e),_0x3ae7a1=await _0x5951b6[a129_0x489b('0xe')]();await _0x4db9c4[a129_0x489b('0x10')][a129_0x489b('0x16')]({'embed':{'color':tesseract_1[a129_0x489b('0x6')][a129_0x489b('0x13')][a129_0x489b('0x1')],'author':{'name':_0x54fe7e['toLowerCase']()},'title':a129_0x489b('0x3'),'fields':_0x3ae7a1['filter'](_0x35fa48=>_0x35fa48[a129_0x489b('0xf')])['slice'](0x0,0x5)[a129_0x489b('0x2')]((_0x50682c,_0x52a8f0)=>({'name':_0x52a8f0+0x1+'.\x20'+(_0x50682c['partOfSpeech']||''),'value':_0x50682c[a129_0x489b('0xf')][a129_0x489b('0x0')](0x0,0x400)})),'footer':{'text':a129_0x489b('0x14')}}});};}}; \ No newline at end of file +const a129_0x52cf=['text','json','exports','length','Command','DiscordError','partOfSpeech','guild','exec','name','Definitions','apply','definitions','Constants','COLORS','INVALID_COMMAND_SYNTAX','test','filter','constructor','BASTION_ERROR_TYPE','Powered\x20by\x20Century\x20Dictionary,\x20the\x20American\x20Heritage\x20Dictionary,\x20and\x20Wiktionary.','../../utils/omnic','channel','makeRequest','slice'];(function(_0x1ff892,_0x52cfb4){const _0x5f8173=function(_0x622369){while(--_0x622369){_0x1ff892['push'](_0x1ff892['shift']());}},_0x1f467f=function(){const _0x1da2d5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x298548,_0x36a2c5,_0x12859b,_0x258b17){_0x258b17=_0x258b17||{};let _0x3d5310=_0x36a2c5+'='+_0x12859b,_0x1ec2d3=0x0;for(let _0x4c8497=0x0,_0xbf2e56=_0x298548['length'];_0x4c8497<_0xbf2e56;_0x4c8497++){const _0x4976b0=_0x298548[_0x4c8497];_0x3d5310+=';\x20'+_0x4976b0;const _0x2fad2e=_0x298548[_0x4976b0];_0x298548['push'](_0x2fad2e),_0xbf2e56=_0x298548['length'],_0x2fad2e!==!![]&&(_0x3d5310+='='+_0x2fad2e);}_0x258b17['cookie']=_0x3d5310;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4921d5,_0x4824d4){_0x4921d5=_0x4921d5||function(_0x28784b){return _0x28784b;};const _0x17d170=_0x4921d5(new RegExp('(?:^|;\x20)'+_0x4824d4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x27859d=function(_0x40b76e,_0x5d8d2a){_0x40b76e(++_0x5d8d2a);};return _0x27859d(_0x5f8173,_0x52cfb4),_0x17d170?decodeURIComponent(_0x17d170[0x1]):undefined;}},_0x973784=function(){const _0x5ae129=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5ae129['test'](_0x1da2d5['removeCookie']['toString']());};_0x1da2d5['updateCookie']=_0x973784;let _0x144241='';const _0x507a37=_0x1da2d5['updateCookie']();if(!_0x507a37)_0x1da2d5['setCookie'](['*'],'counter',0x1);else _0x507a37?_0x144241=_0x1da2d5['getCookie'](null,'counter'):_0x1da2d5['removeCookie']();};_0x1f467f();}(a129_0x52cf,0xea));const a129_0x5f81=function(_0x1ff892,_0x52cfb4){_0x1ff892=_0x1ff892-0x0;let _0x5f8173=a129_0x52cf[_0x1ff892];return _0x5f8173;};const a129_0x12859b=function(){let _0x1a120e=!![];return function(_0x31bd09,_0x43cacb){const _0x4b2f6e=_0x1a120e?function(){if(_0x43cacb){const _0x1c7599=_0x43cacb[a129_0x5f81('0x2')](_0x31bd09,arguments);return _0x43cacb=null,_0x1c7599;}}:function(){};return _0x1a120e=![],_0x4b2f6e;};}(),a129_0x36a2c5=a129_0x12859b(this,function(){const _0x312d3c=function(){const _0x1cfa2a=_0x312d3c[a129_0x5f81('0x9')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a129_0x5f81('0x9')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1cfa2a[a129_0x5f81('0x7')](a129_0x36a2c5);};return _0x312d3c();});a129_0x36a2c5();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require('../../utils/errors'),omnic=require(a129_0x5f81('0xc'));module[a129_0x5f81('0x12')]=class DefinitionsCommand extends tesseract_1[a129_0x5f81('0x14')]{constructor(){super(a129_0x5f81('0x3'),{'description':'It\x20allows\x20you\x20to\x20look\x20up\x20definitions\x20for\x20the\x20specified\x20word.','triggers':['define'],'arguments':{},'scope':a129_0x5f81('0x17'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['definitions\x20WORD']}),this[a129_0x5f81('0x18')]=async(_0x3e220a,_0x240208)=>{if(!_0x240208['_'][a129_0x5f81('0x13')])throw new errors[(a129_0x5f81('0x15'))](errors[a129_0x5f81('0xa')][a129_0x5f81('0x6')],this[a129_0x5f81('0x0')]);const _0x125370=_0x240208['_']['join']('\x20'),_0x18d299=await omnic[a129_0x5f81('0xe')]('/words/definitions/'+_0x125370),_0x16ca29=await _0x18d299[a129_0x5f81('0x11')]();await _0x3e220a[a129_0x5f81('0xd')]['send']({'embed':{'color':tesseract_1[a129_0x5f81('0x4')][a129_0x5f81('0x5')]['IRIS'],'author':{'name':_0x125370['toLowerCase']()},'title':a129_0x5f81('0x1'),'fields':_0x16ca29[a129_0x5f81('0x8')](_0x30013e=>_0x30013e[a129_0x5f81('0x10')])[a129_0x5f81('0xf')](0x0,0x5)['map']((_0x162b96,_0x1980bd)=>({'name':_0x1980bd+0x1+'.\x20'+(_0x162b96[a129_0x5f81('0x16')]||''),'value':_0x162b96[a129_0x5f81('0x10')]['slice'](0x0,0x400)})),'footer':{'text':a129_0x5f81('0xb')}}});};}}; \ No newline at end of file diff --git a/commands/utility/echo.js b/commands/utility/echo.js index 1806a5835..c7852d40d 100644 --- a/commands/utility/echo.js +++ b/commands/utility/echo.js @@ -1 +1 @@ -const a130_0xa5a9=['guild','echo','Command','name','test','exports','generateEmbed','../../utils/errors','INVALID_BASTION_EMBED','INVALID_COMMAND_SYNTAX','apply','channel','MANAGE_MESSAGES','../../utils/embeds','@bastion/tesseract','exec','echo\x20--\x20MESSAGE','send','isValidBastionEmbed','join'];(function(_0x19da77,_0xa5a9b9){const _0x9404a2=function(_0x512de9){while(--_0x512de9){_0x19da77['push'](_0x19da77['shift']());}},_0x375f3a=function(){const _0x2f9dcd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x725c92,_0x30a5d3,_0x16c4e2,_0x6eaf49){_0x6eaf49=_0x6eaf49||{};let _0x40e8fd=_0x30a5d3+'='+_0x16c4e2,_0x50d1dd=0x0;for(let _0x48d969=0x0,_0x4c2576=_0x725c92['length'];_0x48d969<_0x4c2576;_0x48d969++){const _0x527b79=_0x725c92[_0x48d969];_0x40e8fd+=';\x20'+_0x527b79;const _0x27d66a=_0x725c92[_0x527b79];_0x725c92['push'](_0x27d66a),_0x4c2576=_0x725c92['length'],_0x27d66a!==!![]&&(_0x40e8fd+='='+_0x27d66a);}_0x6eaf49['cookie']=_0x40e8fd;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4154c3,_0x24b38f){_0x4154c3=_0x4154c3||function(_0x2821c8){return _0x2821c8;};const _0x2938ba=_0x4154c3(new RegExp('(?:^|;\x20)'+_0x24b38f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2a80c5=function(_0x45362e,_0x5cdfff){_0x45362e(++_0x5cdfff);};return _0x2a80c5(_0x9404a2,_0xa5a9b9),_0x2938ba?decodeURIComponent(_0x2938ba[0x1]):undefined;}},_0x5cdb0f=function(){const _0x4e96d6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4e96d6['test'](_0x2f9dcd['removeCookie']['toString']());};_0x2f9dcd['updateCookie']=_0x5cdb0f;let _0xa2a183='';const _0x3e7c71=_0x2f9dcd['updateCookie']();if(!_0x3e7c71)_0x2f9dcd['setCookie'](['*'],'counter',0x1);else _0x3e7c71?_0xa2a183=_0x2f9dcd['getCookie'](null,'counter'):_0x2f9dcd['removeCookie']();};_0x375f3a();}(a130_0xa5a9,0xd0));const a130_0x9404=function(_0x19da77,_0xa5a9b9){_0x19da77=_0x19da77-0x0;let _0x9404a2=a130_0xa5a9[_0x19da77];return _0x9404a2;};const a130_0x16c4e2=function(){let _0x54783=!![];return function(_0x3b0acf,_0x59454f){const _0x534c01=_0x54783?function(){if(_0x59454f){const _0x37605c=_0x59454f[a130_0x9404('0x2')](_0x3b0acf,arguments);return _0x59454f=null,_0x37605c;}}:function(){};return _0x54783=![],_0x534c01;};}(),a130_0x30a5d3=a130_0x16c4e2(this,function(){const _0x5e8ced=function(){const _0x26e6da=_0x5e8ced['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x26e6da[a130_0x9404('0x10')](a130_0x30a5d3);};return _0x5e8ced();});a130_0x30a5d3();'use strict';const tesseract_1=require(a130_0x9404('0x6')),errors=require(a130_0x9404('0x13')),embeds=require(a130_0x9404('0x5'));module[a130_0x9404('0x11')]=class EchoCommand extends tesseract_1[a130_0x9404('0xe')]{constructor(){super(a130_0x9404('0xd'),{'description':'It\x20allows\x20you\x20to\x20echo\x20a\x20message\x20through\x20Bastion.\x20It\x20also\x20supports\x20Bastion\x20embed\x20objects.','triggers':[],'arguments':{},'scope':a130_0x9404('0xc'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a130_0x9404('0x4')],'syntax':[a130_0x9404('0x8')]}),this[a130_0x9404('0x7')]=async(_0x9d7733,_0x9c1d10)=>{if(!_0x9c1d10['_']['length'])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a130_0x9404('0x1')],this[a130_0x9404('0xf')]);const _0x54ad10=_0x9c1d10['_'][a130_0x9404('0xb')]('\x20');let _0x45a03f;try{_0x45a03f=JSON['parse'](_0x54ad10);if(!embeds[a130_0x9404('0xa')](_0x45a03f))throw new Error(a130_0x9404('0x0'));}catch{_0x45a03f=_0x54ad10;}await _0x9d7733[a130_0x9404('0x3')][a130_0x9404('0x9')]({'embed':embeds[a130_0x9404('0x12')](_0x45a03f)});};}}; \ No newline at end of file +const a130_0x439d=['apply','DiscordError','INVALID_COMMAND_SYNTAX','return\x20/\x22\x20+\x20this\x20+\x20\x22/','name','channel','../../utils/errors','INVALID_BASTION_EMBED','isValidBastionEmbed','test','exports','send','../../utils/embeds','join','Command','exec','echo\x20--\x20MESSAGE','BASTION_ERROR_TYPE'];(function(_0x4dc805,_0x439d68){const _0x323dc0=function(_0x290bd5){while(--_0x290bd5){_0x4dc805['push'](_0x4dc805['shift']());}},_0x4f9490=function(){const _0x177973={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2eb876,_0x4391f8,_0x3d7344,_0x19fea9){_0x19fea9=_0x19fea9||{};let _0x825542=_0x4391f8+'='+_0x3d7344,_0x48c6a4=0x0;for(let _0x2f3751=0x0,_0x4efc72=_0x2eb876['length'];_0x2f3751<_0x4efc72;_0x2f3751++){const _0x4f941f=_0x2eb876[_0x2f3751];_0x825542+=';\x20'+_0x4f941f;const _0x405203=_0x2eb876[_0x4f941f];_0x2eb876['push'](_0x405203),_0x4efc72=_0x2eb876['length'],_0x405203!==!![]&&(_0x825542+='='+_0x405203);}_0x19fea9['cookie']=_0x825542;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5695fe,_0x26f396){_0x5695fe=_0x5695fe||function(_0x2f3755){return _0x2f3755;};const _0x420881=_0x5695fe(new RegExp('(?:^|;\x20)'+_0x26f396['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1cbcc9=function(_0x4d0491,_0x58fbdb){_0x4d0491(++_0x58fbdb);};return _0x1cbcc9(_0x323dc0,_0x439d68),_0x420881?decodeURIComponent(_0x420881[0x1]):undefined;}},_0x275cd7=function(){const _0x566796=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x566796['test'](_0x177973['removeCookie']['toString']());};_0x177973['updateCookie']=_0x275cd7;let _0x2b0e21='';const _0x1f7b5b=_0x177973['updateCookie']();if(!_0x1f7b5b)_0x177973['setCookie'](['*'],'counter',0x1);else _0x1f7b5b?_0x2b0e21=_0x177973['getCookie'](null,'counter'):_0x177973['removeCookie']();};_0x4f9490();}(a130_0x439d,0x1ab));const a130_0x323d=function(_0x4dc805,_0x439d68){_0x4dc805=_0x4dc805-0x0;let _0x323dc0=a130_0x439d[_0x4dc805];return _0x323dc0;};const a130_0x3d7344=function(){let _0x4abf3c=!![];return function(_0x4d413e,_0x3ce94c){const _0x5d760c=_0x4abf3c?function(){if(_0x3ce94c){const _0x10511c=_0x3ce94c[a130_0x323d('0x5')](_0x4d413e,arguments);return _0x3ce94c=null,_0x10511c;}}:function(){};return _0x4abf3c=![],_0x5d760c;};}(),a130_0x4391f8=a130_0x3d7344(this,function(){const _0x4c3d16=function(){const _0x59995d=_0x4c3d16['constructor'](a130_0x323d('0x8'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x59995d[a130_0x323d('0xe')](a130_0x4391f8);};return _0x4c3d16();});a130_0x4391f8();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a130_0x323d('0xb')),embeds=require(a130_0x323d('0x11'));module[a130_0x323d('0xf')]=class EchoCommand extends tesseract_1[a130_0x323d('0x1')]{constructor(){super('echo',{'description':'It\x20allows\x20you\x20to\x20echo\x20a\x20message\x20through\x20Bastion.\x20It\x20also\x20supports\x20Bastion\x20embed\x20objects.','triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_MESSAGES'],'syntax':[a130_0x323d('0x3')]}),this[a130_0x323d('0x2')]=async(_0x2ddcf0,_0x2e3ae7)=>{if(!_0x2e3ae7['_']['length'])throw new errors[(a130_0x323d('0x6'))](errors[a130_0x323d('0x4')][a130_0x323d('0x7')],this[a130_0x323d('0x9')]);const _0x1dd4dc=_0x2e3ae7['_'][a130_0x323d('0x0')]('\x20');let _0x5cd09d;try{_0x5cd09d=JSON['parse'](_0x1dd4dc);if(!embeds[a130_0x323d('0xd')](_0x5cd09d))throw new Error(a130_0x323d('0xc'));}catch{_0x5cd09d=_0x1dd4dc;}await _0x2ddcf0[a130_0x323d('0xa')][a130_0x323d('0x10')]({'embed':embeds['generateEmbed'](_0x5cd09d)});};}}; \ No newline at end of file diff --git a/commands/utility/followRedirects.js b/commands/utility/followRedirects.js index f95946c17..8930fbc80 100644 --- a/commands/utility/followRedirects.js +++ b/commands/utility/followRedirects.js @@ -1 +1 @@ -const a131_0x362f=['INVALID_COMMAND_SYNTAX','default','node-fetch','COLORS','exports','followURL','BASTION_ERROR_TYPE','@bastion/tesseract','guild','name','URL','exec','length','Original\x20URL','send','followRedirects','../../utils/errors','It\x20follows\x20all\x20the\x20redirects\x20in\x20the\x20specified\x20URL\x20and\x20allows\x20you\x20to\x20see\x20the\x20final\x20URL.','join','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','HEAD','Constants','follow','constructor','DiscordError','return\x20/\x22\x20+\x20this\x20+\x20\x22/','followRedirects\x20URL'];(function(_0x3138bc,_0x362fcc){const _0x48ddc6=function(_0x4e7e82){while(--_0x4e7e82){_0x3138bc['push'](_0x3138bc['shift']());}},_0x2f4b5a=function(){const _0x10c05a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x359d9d,_0x2ffa6b,_0x3c4dd5,_0x411d6f){_0x411d6f=_0x411d6f||{};let _0x59a01e=_0x2ffa6b+'='+_0x3c4dd5,_0x50ba56=0x0;for(let _0x21f9a2=0x0,_0x278aee=_0x359d9d['length'];_0x21f9a2<_0x278aee;_0x21f9a2++){const _0x12fb8b=_0x359d9d[_0x21f9a2];_0x59a01e+=';\x20'+_0x12fb8b;const _0x5d77d2=_0x359d9d[_0x12fb8b];_0x359d9d['push'](_0x5d77d2),_0x278aee=_0x359d9d['length'],_0x5d77d2!==!![]&&(_0x59a01e+='='+_0x5d77d2);}_0x411d6f['cookie']=_0x59a01e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x45259e,_0xae6168){_0x45259e=_0x45259e||function(_0x591118){return _0x591118;};const _0x26362c=_0x45259e(new RegExp('(?:^|;\x20)'+_0xae6168['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x50b609=function(_0x3871ce,_0x103eb1){_0x3871ce(++_0x103eb1);};return _0x50b609(_0x48ddc6,_0x362fcc),_0x26362c?decodeURIComponent(_0x26362c[0x1]):undefined;}},_0x1d1574=function(){const _0x3467bb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3467bb['test'](_0x10c05a['removeCookie']['toString']());};_0x10c05a['updateCookie']=_0x1d1574;let _0x3ba7a2='';const _0x4b2ba8=_0x10c05a['updateCookie']();if(!_0x4b2ba8)_0x10c05a['setCookie'](['*'],'counter',0x1);else _0x4b2ba8?_0x3ba7a2=_0x10c05a['getCookie'](null,'counter'):_0x10c05a['removeCookie']();};_0x2f4b5a();}(a131_0x362f,0x132));const a131_0x48dd=function(_0x3138bc,_0x362fcc){_0x3138bc=_0x3138bc-0x0;let _0x48ddc6=a131_0x362f[_0x3138bc];return _0x48ddc6;};const a131_0x3c4dd5=function(){let _0x403fe7=!![];return function(_0x2492ad,_0x520622){const _0x3f75ec=_0x403fe7?function(){if(_0x520622){const _0x1ee974=_0x520622['apply'](_0x2492ad,arguments);return _0x520622=null,_0x1ee974;}}:function(){};return _0x403fe7=![],_0x3f75ec;};}(),a131_0x2ffa6b=a131_0x3c4dd5(this,function(){const _0xeb3792=function(){const _0x5cffbd=_0xeb3792['constructor'](a131_0x48dd('0x10'))()[a131_0x48dd('0xe')](a131_0x48dd('0xa'));return!_0x5cffbd['test'](a131_0x2ffa6b);};return _0xeb3792();});a131_0x2ffa6b();'use strict';const tesseract_1=require(a131_0x48dd('0x19')),node_fetch_1=require(a131_0x48dd('0x14')),errors=require(a131_0x48dd('0x7'));module[a131_0x48dd('0x16')]=class FollowRedirectsCommand extends tesseract_1['Command']{constructor(){super(a131_0x48dd('0x6'),{'description':a131_0x48dd('0x8'),'triggers':[a131_0x48dd('0x17')],'arguments':{},'scope':a131_0x48dd('0x1a'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a131_0x48dd('0x11')]}),this[a131_0x48dd('0x2')]=async(_0x1ee44f,_0x8def60)=>{if(!_0x8def60['_'][a131_0x48dd('0x3')])throw new errors[(a131_0x48dd('0xf'))](errors[a131_0x48dd('0x18')][a131_0x48dd('0x12')],this[a131_0x48dd('0x0')]);const _0x5b8050=_0x8def60['_'][a131_0x48dd('0x9')]('\x20'),_0x106fb4=await node_fetch_1[a131_0x48dd('0x13')](_0x5b8050,{'method':a131_0x48dd('0xb'),'redirect':a131_0x48dd('0xd')});await _0x1ee44f['channel'][a131_0x48dd('0x5')]({'embed':{'color':tesseract_1[a131_0x48dd('0xc')][a131_0x48dd('0x15')]['IRIS'],'fields':[{'name':a131_0x48dd('0x1'),'value':_0x5b8050},{'name':a131_0x48dd('0x4'),'value':_0x106fb4['url']}]}});};}}; \ No newline at end of file +const a131_0x35aa=['Constants','length','default','INVALID_COMMAND_SYNTAX','It\x20follows\x20all\x20the\x20redirects\x20in\x20the\x20specified\x20URL\x20and\x20allows\x20you\x20to\x20see\x20the\x20final\x20URL.','Command','apply','COLORS','exports','Original\x20URL','DiscordError','IRIS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','url','BASTION_ERROR_TYPE','guild','follow','join','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','HEAD','@bastion/tesseract','send'];(function(_0x20dee,_0x35aa70){const _0x28b469=function(_0x426d79){while(--_0x426d79){_0x20dee['push'](_0x20dee['shift']());}},_0x574eca=function(){const _0x29d702={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1350a4,_0x25d046,_0xb58036,_0xf2abb0){_0xf2abb0=_0xf2abb0||{};let _0x3e1f51=_0x25d046+'='+_0xb58036,_0x56d61b=0x0;for(let _0x2fa7bf=0x0,_0x50d340=_0x1350a4['length'];_0x2fa7bf<_0x50d340;_0x2fa7bf++){const _0xbd803b=_0x1350a4[_0x2fa7bf];_0x3e1f51+=';\x20'+_0xbd803b;const _0x50b94d=_0x1350a4[_0xbd803b];_0x1350a4['push'](_0x50b94d),_0x50d340=_0x1350a4['length'],_0x50b94d!==!![]&&(_0x3e1f51+='='+_0x50b94d);}_0xf2abb0['cookie']=_0x3e1f51;},'removeCookie':function(){return'dev';},'getCookie':function(_0x26b1df,_0x4a7fe1){_0x26b1df=_0x26b1df||function(_0x2d3653){return _0x2d3653;};const _0x5f57e2=_0x26b1df(new RegExp('(?:^|;\x20)'+_0x4a7fe1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x31a0d4=function(_0x479f07,_0x26dff1){_0x479f07(++_0x26dff1);};return _0x31a0d4(_0x28b469,_0x35aa70),_0x5f57e2?decodeURIComponent(_0x5f57e2[0x1]):undefined;}},_0x515b28=function(){const _0x55c999=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x55c999['test'](_0x29d702['removeCookie']['toString']());};_0x29d702['updateCookie']=_0x515b28;let _0x380520='';const _0x27b6df=_0x29d702['updateCookie']();if(!_0x27b6df)_0x29d702['setCookie'](['*'],'counter',0x1);else _0x27b6df?_0x380520=_0x29d702['getCookie'](null,'counter'):_0x29d702['removeCookie']();};_0x574eca();}(a131_0x35aa,0x64));const a131_0x28b4=function(_0x20dee,_0x35aa70){_0x20dee=_0x20dee-0x0;let _0x28b469=a131_0x35aa[_0x20dee];return _0x28b469;};const a131_0xb58036=function(){let _0x28e060=!![];return function(_0x422898,_0x439a19){const _0x53ba40=_0x28e060?function(){if(_0x439a19){const _0x5cfcf5=_0x439a19[a131_0x28b4('0x10')](_0x422898,arguments);return _0x439a19=null,_0x5cfcf5;}}:function(){};return _0x28e060=![],_0x53ba40;};}(),a131_0x25d046=a131_0xb58036(this,function(){const _0x12271a=function(){const _0x233ad7=_0x12271a['constructor'](a131_0x28b4('0x0'))()['constructor'](a131_0x28b4('0x6'));return!_0x233ad7['test'](a131_0x25d046);};return _0x12271a();});a131_0x25d046();'use strict';const tesseract_1=require(a131_0x28b4('0x8')),node_fetch_1=require('node-fetch'),errors=require('../../utils/errors');module[a131_0x28b4('0x12')]=class FollowRedirectsCommand extends tesseract_1[a131_0x28b4('0xf')]{constructor(){super('followRedirects',{'description':a131_0x28b4('0xe'),'triggers':['followURL'],'arguments':{},'scope':a131_0x28b4('0x3'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['followRedirects\x20URL']}),this['exec']=async(_0x4e5daf,_0x57bc4e)=>{if(!_0x57bc4e['_'][a131_0x28b4('0xb')])throw new errors[(a131_0x28b4('0x14'))](errors[a131_0x28b4('0x2')][a131_0x28b4('0xd')],this['name']);const _0x15b809=_0x57bc4e['_'][a131_0x28b4('0x5')]('\x20'),_0x3c67de=await node_fetch_1[a131_0x28b4('0xc')](_0x15b809,{'method':a131_0x28b4('0x7'),'redirect':a131_0x28b4('0x4')});await _0x4e5daf['channel'][a131_0x28b4('0x9')]({'embed':{'color':tesseract_1[a131_0x28b4('0xa')][a131_0x28b4('0x11')][a131_0x28b4('0x15')],'fields':[{'name':'URL','value':_0x15b809},{'name':a131_0x28b4('0x13'),'value':_0x3c67de[a131_0x28b4('0x1')]}]}});};}}; \ No newline at end of file diff --git a/commands/utility/invite.js b/commands/utility/invite.js index fe7c111b9..572f02073 100644 --- a/commands/utility/invite.js +++ b/commands/utility/invite.js @@ -1 +1 @@ -const a132_0x2302=['constructor','owners','send','temporary','author','exports','widgetChannel','client','createInvite','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','locale','url','Command','../../utils/constants','Hello.\x20Beep.\x20Boop.\x0aIf\x20you\x20wanna\x20invite\x20friends\x20to\x20this\x20server,\x20share\x20the\x20following\x20invite\x20link\x20with\x20your\x20friends.\x0aBeep!\x0a','@bastion/tesseract','exec','has','permissionsFor','isPublicBastion','guild','CREATE_INSTANT_INVITE','invite','You\x20don\x27t\x20have\x20perms\x20to\x20create\x20an\x20instant\x20invite\x20for\x20the\x20channel.','credentials','user','apply','Requested\x20by\x20','It\x20allows\x20you\x20to\x20generate\x20an\x20instant\x20invite\x20for\x20the\x20server.\x20Optionally,\x20the\x20invite\x20can\x20be\x20a\x20temporary\x20which\x20will\x20kick\x20the\x20members\x20from\x20the\x20server\x20if\x20they\x20aren\x27t\x20assigned\x20a\x20role\x20within\x2024\x20hours.\x20It\x20also\x20shows\x20you\x20the\x20invite\x20link\x20to\x20invite\x20Bastion\x20to\x20your\x20server.','channel','getConstant'];(function(_0x221c57,_0x2302df){const _0xfc1ca8=function(_0x33938b){while(--_0x33938b){_0x221c57['push'](_0x221c57['shift']());}},_0x48db3f=function(){const _0x2410f0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x37a451,_0x3edd81,_0x2236d3,_0x1d9083){_0x1d9083=_0x1d9083||{};let _0x300ad0=_0x3edd81+'='+_0x2236d3,_0x1c3162=0x0;for(let _0x4e95e2=0x0,_0x345972=_0x37a451['length'];_0x4e95e2<_0x345972;_0x4e95e2++){const _0x453730=_0x37a451[_0x4e95e2];_0x300ad0+=';\x20'+_0x453730;const _0x485f5b=_0x37a451[_0x453730];_0x37a451['push'](_0x485f5b),_0x345972=_0x37a451['length'],_0x485f5b!==!![]&&(_0x300ad0+='='+_0x485f5b);}_0x1d9083['cookie']=_0x300ad0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x224437,_0xada203){_0x224437=_0x224437||function(_0x2d3c68){return _0x2d3c68;};const _0x1f7210=_0x224437(new RegExp('(?:^|;\x20)'+_0xada203['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x685156=function(_0x197330,_0x499c6e){_0x197330(++_0x499c6e);};return _0x685156(_0xfc1ca8,_0x2302df),_0x1f7210?decodeURIComponent(_0x1f7210[0x1]):undefined;}},_0x90f9af=function(){const _0x26b520=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x26b520['test'](_0x2410f0['removeCookie']['toString']());};_0x2410f0['updateCookie']=_0x90f9af;let _0x57e415='';const _0x1f4be6=_0x2410f0['updateCookie']();if(!_0x1f4be6)_0x2410f0['setCookie'](['*'],'counter',0x1);else _0x1f4be6?_0x57e415=_0x2410f0['getCookie'](null,'counter'):_0x2410f0['removeCookie']();};_0x48db3f();}(a132_0x2302,0xf3));const a132_0xfc1c=function(_0x221c57,_0x2302df){_0x221c57=_0x221c57-0x0;let _0xfc1ca8=a132_0x2302[_0x221c57];return _0xfc1ca8;};const a132_0x2236d3=function(){let _0x1a12ec=!![];return function(_0x5a9829,_0x28fbd2){const _0x161366=_0x1a12ec?function(){if(_0x28fbd2){const _0x35d0e1=_0x28fbd2[a132_0xfc1c('0x0')](_0x5a9829,arguments);return _0x28fbd2=null,_0x35d0e1;}}:function(){};return _0x1a12ec=![],_0x161366;};}(),a132_0x3edd81=a132_0x2236d3(this,function(){const _0x2b5bc3=function(){const _0x1cb158=_0x2b5bc3[a132_0xfc1c('0x5')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a132_0xfc1c('0x5')](a132_0xfc1c('0xe'));return!_0x1cb158['test'](a132_0x3edd81);};return _0x2b5bc3();});a132_0x3edd81();'use strict';const tesseract_1=require(a132_0xfc1c('0x14')),constants=require(a132_0xfc1c('0x12'));module[a132_0xfc1c('0xa')]=class InviteCommand extends tesseract_1[a132_0xfc1c('0x11')]{constructor(){super(a132_0xfc1c('0x1b'),{'description':a132_0xfc1c('0x2'),'triggers':[],'arguments':{'alias':{'temporary':['t']},'boolean':['temporary']},'scope':a132_0xfc1c('0x19'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a132_0xfc1c('0x1b'),'invite\x20--temporary']}),this[a132_0xfc1c('0x15')]=async(_0x441974,_0x3e0778)=>{const _0x27577f=_0x441974[a132_0xfc1c('0x19')][a132_0xfc1c('0xb')]||_0x441974[a132_0xfc1c('0x3')];let _0x3cd6af;_0x27577f[a132_0xfc1c('0x17')](_0x441974['member'])[a132_0xfc1c('0x16')](a132_0xfc1c('0x1a'))&&(_0x3cd6af=await _0x27577f[a132_0xfc1c('0xd')]({'reason':a132_0xfc1c('0x1')+_0x441974['author']['tag'],'temporary':_0x3e0778[a132_0xfc1c('0x8')]})),await _0x441974[a132_0xfc1c('0x3')][a132_0xfc1c('0x7')]((_0x3cd6af?a132_0xfc1c('0x13')+_0x3cd6af[a132_0xfc1c('0x10')]:a132_0xfc1c('0x1c'))+(constants[a132_0xfc1c('0x18')](this[a132_0xfc1c('0xc')][a132_0xfc1c('0x1e')])||this[a132_0xfc1c('0xc')][a132_0xfc1c('0x1d')][a132_0xfc1c('0x6')]['includes'](_0x441974[a132_0xfc1c('0x9')]['id'])?'\x0a\x0aAnd\x20if\x20you\x20wanna\x20invite\x20me\x20to\x20your\x20server,\x20use\x20the\x20following\x20link.\x0aBeep.\x0a'+this[a132_0xfc1c('0xc')][a132_0xfc1c('0xf')][a132_0xfc1c('0x4')]('bastion.bot.invite')['replace'](this[a132_0xfc1c('0xc')][a132_0xfc1c('0xf')]['getConstant']('bastion.bot.id'),this[a132_0xfc1c('0xc')][a132_0xfc1c('0x1e')]['id']):''));};}}; \ No newline at end of file +const a132_0x216b=['@bastion/tesseract','test','tag','\x0a\x0aAnd\x20if\x20you\x20wanna\x20invite\x20me\x20to\x20your\x20server,\x20use\x20the\x20following\x20link.\x0aBeep.\x0a','bastion.bot.id','owners','includes','replace','guild','widgetChannel','invite','isPublicBastion','createInvite','constructor','credentials','../../utils/constants','Hello.\x20Beep.\x20Boop.\x0aIf\x20you\x20wanna\x20invite\x20friends\x20to\x20this\x20server,\x20share\x20the\x20following\x20invite\x20link\x20with\x20your\x20friends.\x0aBeep!\x0a','exports','It\x20allows\x20you\x20to\x20generate\x20an\x20instant\x20invite\x20for\x20the\x20server.\x20Optionally,\x20the\x20invite\x20can\x20be\x20a\x20temporary\x20which\x20will\x20kick\x20the\x20members\x20from\x20the\x20server\x20if\x20they\x20aren\x27t\x20assigned\x20a\x20role\x20within\x2024\x20hours.\x20It\x20also\x20shows\x20you\x20the\x20invite\x20link\x20to\x20invite\x20Bastion\x20to\x20your\x20server.','author','temporary','url','user','getConstant','permissionsFor','channel','send','bastion.bot.invite','exec','invite\x20--temporary','return\x20/\x22\x20+\x20this\x20+\x20\x22/','client','member','locale','Command'];(function(_0x54b25f,_0x216bd4){const _0x56ad84=function(_0xbea6b7){while(--_0xbea6b7){_0x54b25f['push'](_0x54b25f['shift']());}},_0x2c6dc4=function(){const _0x387f0f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x25eaa7,_0x4580a5,_0xd06a59,_0x4abd0c){_0x4abd0c=_0x4abd0c||{};let _0x511705=_0x4580a5+'='+_0xd06a59,_0x439b89=0x0;for(let _0x7efb73=0x0,_0x4da927=_0x25eaa7['length'];_0x7efb73<_0x4da927;_0x7efb73++){const _0x4ca772=_0x25eaa7[_0x7efb73];_0x511705+=';\x20'+_0x4ca772;const _0x223c77=_0x25eaa7[_0x4ca772];_0x25eaa7['push'](_0x223c77),_0x4da927=_0x25eaa7['length'],_0x223c77!==!![]&&(_0x511705+='='+_0x223c77);}_0x4abd0c['cookie']=_0x511705;},'removeCookie':function(){return'dev';},'getCookie':function(_0xb43ea4,_0x2ef86f){_0xb43ea4=_0xb43ea4||function(_0x2eb5c4){return _0x2eb5c4;};const _0x5f35f9=_0xb43ea4(new RegExp('(?:^|;\x20)'+_0x2ef86f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x11a612=function(_0x1d3728,_0x58c7a1){_0x1d3728(++_0x58c7a1);};return _0x11a612(_0x56ad84,_0x216bd4),_0x5f35f9?decodeURIComponent(_0x5f35f9[0x1]):undefined;}},_0x1dd87a=function(){const _0x3e5eef=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3e5eef['test'](_0x387f0f['removeCookie']['toString']());};_0x387f0f['updateCookie']=_0x1dd87a;let _0x3835f7='';const _0x2da856=_0x387f0f['updateCookie']();if(!_0x2da856)_0x387f0f['setCookie'](['*'],'counter',0x1);else _0x2da856?_0x3835f7=_0x387f0f['getCookie'](null,'counter'):_0x387f0f['removeCookie']();};_0x2c6dc4();}(a132_0x216b,0x1c8));const a132_0x56ad=function(_0x54b25f,_0x216bd4){_0x54b25f=_0x54b25f-0x0;let _0x56ad84=a132_0x216b[_0x54b25f];return _0x56ad84;};const a132_0xd06a59=function(){let _0x3601fd=!![];return function(_0x500aac,_0x5d714d){const _0x1057a7=_0x3601fd?function(){if(_0x5d714d){const _0x409bfa=_0x5d714d['apply'](_0x500aac,arguments);return _0x5d714d=null,_0x409bfa;}}:function(){};return _0x3601fd=![],_0x1057a7;};}(),a132_0x4580a5=a132_0xd06a59(this,function(){const _0xef0435=function(){const _0x181233=_0xef0435[a132_0x56ad('0xc')](a132_0x56ad('0x1d'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x181233[a132_0x56ad('0x0')](a132_0x4580a5);};return _0xef0435();});a132_0x4580a5();'use strict';const tesseract_1=require(a132_0x56ad('0x22')),constants=require(a132_0x56ad('0xe'));module[a132_0x56ad('0x10')]=class InviteCommand extends tesseract_1[a132_0x56ad('0x21')]{constructor(){super(a132_0x56ad('0x9'),{'description':a132_0x56ad('0x11'),'triggers':[],'arguments':{'alias':{'temporary':['t']},'boolean':['temporary']},'scope':a132_0x56ad('0x7'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['invite',a132_0x56ad('0x1c')]}),this[a132_0x56ad('0x1b')]=async(_0xeabb71,_0x222878)=>{const _0x321691=_0xeabb71[a132_0x56ad('0x7')][a132_0x56ad('0x8')]||_0xeabb71[a132_0x56ad('0x18')];let _0x3fad34;_0x321691[a132_0x56ad('0x17')](_0xeabb71[a132_0x56ad('0x1f')])['has']('CREATE_INSTANT_INVITE')&&(_0x3fad34=await _0x321691[a132_0x56ad('0xb')]({'reason':'Requested\x20by\x20'+_0xeabb71[a132_0x56ad('0x12')][a132_0x56ad('0x1')],'temporary':_0x222878[a132_0x56ad('0x13')]})),await _0xeabb71[a132_0x56ad('0x18')][a132_0x56ad('0x19')]((_0x3fad34?a132_0x56ad('0xf')+_0x3fad34[a132_0x56ad('0x14')]:'You\x20don\x27t\x20have\x20perms\x20to\x20create\x20an\x20instant\x20invite\x20for\x20the\x20channel.')+(constants[a132_0x56ad('0xa')](this[a132_0x56ad('0x1e')][a132_0x56ad('0x15')])||this[a132_0x56ad('0x1e')][a132_0x56ad('0xd')][a132_0x56ad('0x4')][a132_0x56ad('0x5')](_0xeabb71[a132_0x56ad('0x12')]['id'])?a132_0x56ad('0x2')+this[a132_0x56ad('0x1e')][a132_0x56ad('0x20')][a132_0x56ad('0x16')](a132_0x56ad('0x1a'))[a132_0x56ad('0x6')](this[a132_0x56ad('0x1e')][a132_0x56ad('0x20')]['getConstant'](a132_0x56ad('0x3')),this[a132_0x56ad('0x1e')][a132_0x56ad('0x15')]['id']):''));};}}; \ No newline at end of file diff --git a/commands/utility/lmstfy.js b/commands/utility/lmstfy.js index 3a505f359..f456c360d 100644 --- a/commands/utility/lmstfy.js +++ b/commands/utility/lmstfy.js @@ -1 +1 @@ -const a133_0x1f17=['length','@bastion/tesseract','apply','DiscordError','lmstfy\x20--duckduckgo\x20QUERY','../../utils/errors','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','join','exec','Command','It\x20allows\x20you\x20to\x20send\x20a\x20LMGTFY\x20link\x20for\x20the\x20specified\x20search\x20query.\x20Use\x20it\x20to\x20teach\x20people\x20how\x20to\x20do\x20an\x20internet\x20search\x20and\x20get\x20answers\x20to\x20their\x20questions.','channel','google','IRIS','exports','duckduckgo','BASTION_ERROR_TYPE','lmstfy','constructor','https://lmgtfy.com/?s=','COLORS','ddg','lmgtfy','lmstfy\x20--google\x20QUERY','&q=','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants'];(function(_0x631c14,_0x1f1725){const _0x1f3094=function(_0x4a05aa){while(--_0x4a05aa){_0x631c14['push'](_0x631c14['shift']());}},_0x4ee6ee=function(){const _0x4a1b50={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x219296,_0x3e5208,_0x4c934d,_0x38b381){_0x38b381=_0x38b381||{};let _0x365d25=_0x3e5208+'='+_0x4c934d,_0x4ff5df=0x0;for(let _0x40c036=0x0,_0x242ed1=_0x219296['length'];_0x40c036<_0x242ed1;_0x40c036++){const _0x2f7c0a=_0x219296[_0x40c036];_0x365d25+=';\x20'+_0x2f7c0a;const _0x48bee7=_0x219296[_0x2f7c0a];_0x219296['push'](_0x48bee7),_0x242ed1=_0x219296['length'],_0x48bee7!==!![]&&(_0x365d25+='='+_0x48bee7);}_0x38b381['cookie']=_0x365d25;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3de37f,_0x40afb4){_0x3de37f=_0x3de37f||function(_0x15b510){return _0x15b510;};const _0x405028=_0x3de37f(new RegExp('(?:^|;\x20)'+_0x40afb4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x20f007=function(_0x41b462,_0x3d5347){_0x41b462(++_0x3d5347);};return _0x20f007(_0x1f3094,_0x1f1725),_0x405028?decodeURIComponent(_0x405028[0x1]):undefined;}},_0x4497e8=function(){const _0x24447b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x24447b['test'](_0x4a1b50['removeCookie']['toString']());};_0x4a1b50['updateCookie']=_0x4497e8;let _0x11bc95='';const _0x2e0781=_0x4a1b50['updateCookie']();if(!_0x2e0781)_0x4a1b50['setCookie'](['*'],'counter',0x1);else _0x2e0781?_0x11bc95=_0x4a1b50['getCookie'](null,'counter'):_0x4a1b50['removeCookie']();};_0x4ee6ee();}(a133_0x1f17,0x7e));const a133_0x1f30=function(_0x631c14,_0x1f1725){_0x631c14=_0x631c14-0x0;let _0x1f3094=a133_0x1f17[_0x631c14];return _0x1f3094;};const a133_0x4c934d=function(){let _0x1a058f=!![];return function(_0xdb1ff0,_0x50b8ac){const _0x8912d0=_0x1a058f?function(){if(_0x50b8ac){const _0x556647=_0x50b8ac[a133_0x1f30('0xb')](_0xdb1ff0,arguments);return _0x50b8ac=null,_0x556647;}}:function(){};return _0x1a058f=![],_0x8912d0;};}(),a133_0x3e5208=a133_0x4c934d(this,function(){const _0x5aa69d=function(){const _0x10eb34=_0x5aa69d[a133_0x1f30('0x0')](a133_0x1f30('0x7'))()[a133_0x1f30('0x0')](a133_0x1f30('0xf'));return!_0x10eb34['test'](a133_0x3e5208);};return _0x5aa69d();});a133_0x3e5208();'use strict';const tesseract_1=require(a133_0x1f30('0xa')),errors=require(a133_0x1f30('0xe'));module[a133_0x1f30('0x17')]=class LMSTFYCommand extends tesseract_1[a133_0x1f30('0x12')]{constructor(){super(a133_0x1f30('0x1a'),{'description':a133_0x1f30('0x13'),'triggers':[a133_0x1f30('0x4')],'arguments':{'alias':{'duckduckgo':[a133_0x1f30('0x3'),'d'],'google':['g']},'boolean':[a133_0x1f30('0x18'),a133_0x1f30('0x15')]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['lmstfy\x20QUERY',a133_0x1f30('0xd'),a133_0x1f30('0x5')]}),this[a133_0x1f30('0x11')]=async(_0x40b7fa,_0x2fd908)=>{if(!_0x2fd908['_'][a133_0x1f30('0x9')])throw new errors[(a133_0x1f30('0xc'))](errors[a133_0x1f30('0x19')]['INVALID_COMMAND_SYNTAX'],this['name']);await _0x40b7fa[a133_0x1f30('0x14')]['send']({'embed':{'color':tesseract_1[a133_0x1f30('0x8')][a133_0x1f30('0x2')][a133_0x1f30('0x16')],'title':'Let\x20me\x20search\x20that\x20for\x20you...','description':a133_0x1f30('0x1')+(_0x2fd908[a133_0x1f30('0x15')]?'g':'d')+a133_0x1f30('0x6')+encodeURIComponent(_0x2fd908['_'][a133_0x1f30('0x10')]('\x20')),'footer':{'text':'Powered\x20by\x20LMGTFY'}}});};}}; \ No newline at end of file +const a133_0x1fbd=['DiscordError','test','Let\x20me\x20search\x20that\x20for\x20you...','lmstfy\x20--duckduckgo\x20QUERY','google','&q=','lmgtfy','lmstfy\x20--google\x20QUERY','ddg','lmstfy\x20QUERY','exports','https://lmgtfy.com/?s=','duckduckgo','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','../../utils/errors','channel','@bastion/tesseract','It\x20allows\x20you\x20to\x20send\x20a\x20LMGTFY\x20link\x20for\x20the\x20specified\x20search\x20query.\x20Use\x20it\x20to\x20teach\x20people\x20how\x20to\x20do\x20an\x20internet\x20search\x20and\x20get\x20answers\x20to\x20their\x20questions.','IRIS','send','apply','Constants','guild','Powered\x20by\x20LMGTFY','constructor'];(function(_0x2508b1,_0x1fbd8c){const _0x1f40f3=function(_0x4b1477){while(--_0x4b1477){_0x2508b1['push'](_0x2508b1['shift']());}},_0x133913=function(){const _0x3a1609={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2efd58,_0x36401c,_0x420b89,_0x53fb6c){_0x53fb6c=_0x53fb6c||{};let _0x3df331=_0x36401c+'='+_0x420b89,_0x133197=0x0;for(let _0x53cdb0=0x0,_0x20b472=_0x2efd58['length'];_0x53cdb0<_0x20b472;_0x53cdb0++){const _0x743e57=_0x2efd58[_0x53cdb0];_0x3df331+=';\x20'+_0x743e57;const _0x2ae3c4=_0x2efd58[_0x743e57];_0x2efd58['push'](_0x2ae3c4),_0x20b472=_0x2efd58['length'],_0x2ae3c4!==!![]&&(_0x3df331+='='+_0x2ae3c4);}_0x53fb6c['cookie']=_0x3df331;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2026ae,_0x11fc09){_0x2026ae=_0x2026ae||function(_0x5c753d){return _0x5c753d;};const _0x26be1b=_0x2026ae(new RegExp('(?:^|;\x20)'+_0x11fc09['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x595213=function(_0x147a9c,_0x46874c){_0x147a9c(++_0x46874c);};return _0x595213(_0x1f40f3,_0x1fbd8c),_0x26be1b?decodeURIComponent(_0x26be1b[0x1]):undefined;}},_0x27da3c=function(){const _0x7e97b3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x7e97b3['test'](_0x3a1609['removeCookie']['toString']());};_0x3a1609['updateCookie']=_0x27da3c;let _0x475798='';const _0x2f75d4=_0x3a1609['updateCookie']();if(!_0x2f75d4)_0x3a1609['setCookie'](['*'],'counter',0x1);else _0x2f75d4?_0x475798=_0x3a1609['getCookie'](null,'counter'):_0x3a1609['removeCookie']();};_0x133913();}(a133_0x1fbd,0xff));const a133_0x1f40=function(_0x2508b1,_0x1fbd8c){_0x2508b1=_0x2508b1-0x0;let _0x1f40f3=a133_0x1fbd[_0x2508b1];return _0x1f40f3;};const a133_0x420b89=function(){let _0x4ed0eb=!![];return function(_0x119024,_0x53dbc2){const _0x43385b=_0x4ed0eb?function(){if(_0x53dbc2){const _0x31ea16=_0x53dbc2[a133_0x1f40('0x0')](_0x119024,arguments);return _0x53dbc2=null,_0x31ea16;}}:function(){};return _0x4ed0eb=![],_0x43385b;};}(),a133_0x36401c=a133_0x420b89(this,function(){const _0x25a57f=function(){const _0x1ede2e=_0x25a57f[a133_0x1f40('0x4')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a133_0x1f40('0x4')](a133_0x1f40('0x12'));return!_0x1ede2e[a133_0x1f40('0x6')](a133_0x36401c);};return _0x25a57f();});a133_0x36401c();'use strict';const tesseract_1=require(a133_0x1f40('0x16')),errors=require(a133_0x1f40('0x14'));module[a133_0x1f40('0xf')]=class LMSTFYCommand extends tesseract_1['Command']{constructor(){super('lmstfy',{'description':a133_0x1f40('0x17'),'triggers':[a133_0x1f40('0xb')],'arguments':{'alias':{'duckduckgo':[a133_0x1f40('0xd'),'d'],'google':['g']},'boolean':[a133_0x1f40('0x11'),a133_0x1f40('0x9')]},'scope':a133_0x1f40('0x2'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a133_0x1f40('0xe'),a133_0x1f40('0x8'),a133_0x1f40('0xc')]}),this[a133_0x1f40('0x13')]=async(_0xbefe84,_0x428b29)=>{if(!_0x428b29['_']['length'])throw new errors[(a133_0x1f40('0x5'))](errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX'],this['name']);await _0xbefe84[a133_0x1f40('0x15')][a133_0x1f40('0x19')]({'embed':{'color':tesseract_1[a133_0x1f40('0x1')]['COLORS'][a133_0x1f40('0x18')],'title':a133_0x1f40('0x7'),'description':a133_0x1f40('0x10')+(_0x428b29[a133_0x1f40('0x9')]?'g':'d')+a133_0x1f40('0xa')+encodeURIComponent(_0x428b29['_']['join']('\x20')),'footer':{'text':a133_0x1f40('0x3')}}});};}}; \ No newline at end of file diff --git a/commands/utility/poll.js b/commands/utility/poll.js index cdc3a8951..bb2b2695c 100644 --- a/commands/utility/poll.js +++ b/commands/utility/poll.js @@ -1 +1 @@ -const a134_0x43c2=['react','messages','LIMITED_PREMIUM_MEMBERSHIP','timeout','cache','status','apply','membershipLimitPolls','poll','filter','PremiumTier','catch','membershipLimitPollTimeout','document','../../utils/numbers','map','fetchPremiumTier','React\x20to\x20this\x20message\x20with\x20the\x20corresponding\x20emoji\x20to\x20vote\x20for\x20that\x20option.','reactions','premiumPollTimeout','now','COLORS','exports','LIMITS','Constants','\x20/\x20','locale','option','embeds','POLLS','poll\x20--status\x20POLL_MESSAGE_ID','channel','poll\x20--timeout\x20HOURS\x20--option\x20OPTIONS...\x20--\x20QUESTION','name','premiumPolls','../../utils/constants','fetch','guild','PREMIUM_MEMBERSHIP_REQUIRED','defaultTimeout','isPublicBastion','GOLD','DiscordError','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','user','default','poll\x20--option\x20OPTIONS...\x20--\x20QUESTION','MANAGE_CHANNELS','length','INVALID_COMMAND_SYNTAX','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract','bot','PLATINUM','Ends','Command','value','findOne','channels','../../utils/omnic','POLL\x20STATUS','client','BASTION_ERROR_TYPE','send','../../utils/errors','errors','POLL','fields','users','exec','get','language','constructor','number','clamp','getString','POLL_NOT_FOUND','\x20votes\x20(','has','IRIS','POLL_TIMEOUT'];(function(_0x932273,_0x43c270){const _0x209fc6=function(_0x3dbf70){while(--_0x3dbf70){_0x932273['push'](_0x932273['shift']());}},_0x11fab0=function(){const _0x341334={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x547bc6,_0x413e44,_0x1df28a,_0x4437e6){_0x4437e6=_0x4437e6||{};let _0x2f7892=_0x413e44+'='+_0x1df28a,_0x14d2fb=0x0;for(let _0x1de4a5=0x0,_0x308129=_0x547bc6['length'];_0x1de4a5<_0x308129;_0x1de4a5++){const _0x2b8548=_0x547bc6[_0x1de4a5];_0x2f7892+=';\x20'+_0x2b8548;const _0x49fa2f=_0x547bc6[_0x2b8548];_0x547bc6['push'](_0x49fa2f),_0x308129=_0x547bc6['length'],_0x49fa2f!==!![]&&(_0x2f7892+='='+_0x49fa2f);}_0x4437e6['cookie']=_0x2f7892;},'removeCookie':function(){return'dev';},'getCookie':function(_0x13dafa,_0x5594c3){_0x13dafa=_0x13dafa||function(_0x2cb78a){return _0x2cb78a;};const _0x233d53=_0x13dafa(new RegExp('(?:^|;\x20)'+_0x5594c3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x39f0bb=function(_0x44d516,_0x18c0bf){_0x44d516(++_0x18c0bf);};return _0x39f0bb(_0x209fc6,_0x43c270),_0x233d53?decodeURIComponent(_0x233d53[0x1]):undefined;}},_0x18ea93=function(){const _0x124e75=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x124e75['test'](_0x341334['removeCookie']['toString']());};_0x341334['updateCookie']=_0x18ea93;let _0xdb61d2='';const _0x1d4ad1=_0x341334['updateCookie']();if(!_0x1d4ad1)_0x341334['setCookie'](['*'],'counter',0x1);else _0x1d4ad1?_0xdb61d2=_0x341334['getCookie'](null,'counter'):_0x341334['removeCookie']();};_0x11fab0();}(a134_0x43c2,0x8a));const a134_0x209f=function(_0x932273,_0x43c270){_0x932273=_0x932273-0x0;let _0x209fc6=a134_0x43c2[_0x932273];return _0x209fc6;};const a134_0x1df28a=function(){let _0x3b324f=!![];return function(_0xc92f1d,_0x249eac){const _0x24423d=_0x3b324f?function(){if(_0x249eac){const _0x48aca0=_0x249eac[a134_0x209f('0x1e')](_0xc92f1d,arguments);return _0x249eac=null,_0x48aca0;}}:function(){};return _0x3b324f=![],_0x24423d;};}(),a134_0x413e44=a134_0x1df28a(this,function(){const _0x598e92=function(){const _0x4d0d4c=_0x598e92[a134_0x209f('0xf')](a134_0x209f('0x4a'))()[a134_0x209f('0xf')](a134_0x209f('0x43'));return!_0x4d0d4c['test'](a134_0x413e44);};return _0x598e92();});a134_0x413e44();'use strict';const tesseract_1=require(a134_0x209f('0x4b')),Poll_1=require('../../models/Poll'),constants=require(a134_0x209f('0x3b')),errors=require(a134_0x209f('0x7')),numbers=require(a134_0x209f('0x26')),omnic=require(a134_0x209f('0x2'));module[a134_0x209f('0x2e')]=class PollCommand extends tesseract_1[a134_0x209f('0x4f')]{constructor(){super(a134_0x209f('0x20'),{'description':'It\x20allows\x20you\x20to\x20run\x20polls\x20in\x20the\x20server\x20for\x20at\x20least\x20an\x20hour\x20and\x20at\x20most\x20a\x20month.\x20You\x20can\x20set\x20at\x20most\x2013\x20options\x20for\x20the\x20poll.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20status\x20of\x20a\x20running\x20poll.','triggers':[],'arguments':{'alias':{'timeout':['t'],'option':['o'],'status':['s']},'number':[a134_0x209f('0x1b')],'string':[a134_0x209f('0x33'),a134_0x209f('0x1d')],'coerce':{'timeout':_0x3e0166=>typeof _0x3e0166===a134_0x209f('0x10')&&numbers[a134_0x209f('0x11')](_0x3e0166,0x1,0x2d0)},'default':{'timeout':0x3}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[a134_0x209f('0x47')],'syntax':[a134_0x209f('0x36'),a134_0x209f('0x46'),a134_0x209f('0x38')]}),this[a134_0x209f('0xc')]=async(_0x413a52,_0x185c48)=>{if(_0x185c48[a134_0x209f('0x1d')]){const _0x53009f=await Poll_1[a134_0x209f('0x45')][a134_0x209f('0x0')]({'_id':_0x185c48[a134_0x209f('0x1d')],'guild':_0x413a52[a134_0x209f('0x3d')]['id']});if(!_0x53009f)throw new Error(a134_0x209f('0x13'));if(!_0x413a52['guild'][a134_0x209f('0x1')]['cache'][a134_0x209f('0x15')](_0x53009f['channel']))throw new Error('POLL_NOT_FOUND');const _0x5b9348=_0x413a52[a134_0x209f('0x3d')][a134_0x209f('0x1')][a134_0x209f('0x1c')]['get'](_0x53009f['channel']),_0x4b3689=await _0x5b9348[a134_0x209f('0x19')][a134_0x209f('0x3c')](_0x53009f['_id'])[a134_0x209f('0x23')](()=>{});if(!_0x4b3689)throw new Error(a134_0x209f('0x13'));const _0x3965c8=_0x4b3689['embeds'][0x0][a134_0x209f('0xa')]['map'](_0x2cf613=>_0x2cf613[a134_0x209f('0x50')]),_0x2891e5={};let _0x3ff994=0x0;for(const _0x141f5f in this[a134_0x209f('0x2a')]['slice'](0x0,_0x3965c8[a134_0x209f('0x48')])){if(_0x4b3689[a134_0x209f('0x2a')][a134_0x209f('0x1c')]['has'](this[a134_0x209f('0x2a')][_0x141f5f])){await _0x4b3689[a134_0x209f('0x2a')][a134_0x209f('0x1c')][a134_0x209f('0xd')](this[a134_0x209f('0x2a')][_0x141f5f])[a134_0x209f('0xb')][a134_0x209f('0x3c')]()['catch'](()=>{});const _0x3b7a56=_0x4b3689[a134_0x209f('0x2a')][a134_0x209f('0x1c')][a134_0x209f('0xd')](this[a134_0x209f('0x2a')][_0x141f5f])[a134_0x209f('0xb')]['cache'][a134_0x209f('0x21')](_0x9492ec=>!_0x9492ec[a134_0x209f('0x4c')])['size'];_0x2891e5[this['reactions'][_0x141f5f]]=_0x3b7a56,_0x3ff994+=_0x3b7a56;}}return await _0x413a52['channel'][a134_0x209f('0x6')]({'embed':{'color':tesseract_1[a134_0x209f('0x30')][a134_0x209f('0x2d')][a134_0x209f('0x16')],'author':{'name':a134_0x209f('0x3')},'title':_0x4b3689[a134_0x209f('0x34')][0x0]['title'],'fields':_0x4b3689[a134_0x209f('0x34')][0x0][a134_0x209f('0xa')][a134_0x209f('0x27')](_0x263245=>({'name':_0x263245[a134_0x209f('0x39')]+'\x20'+_0x263245[a134_0x209f('0x50')],'value':(_0x2891e5[_0x263245[a134_0x209f('0x39')]]||0x0)+a134_0x209f('0x31')+_0x3ff994+a134_0x209f('0x14')+(_0x2891e5[_0x263245['name']]?_0x2891e5[_0x263245[a134_0x209f('0x39')]]/_0x3ff994*0x64:0x0)['toFixed'](0x2)+'%)'})),'footer':{'text':_0x4b3689['id']+'\x20•\x20Ends'},'timestamp':_0x53009f['ends']}});}if(!_0x185c48['_']['length']||!_0x185c48['option']||!(_0x185c48[a134_0x209f('0x33')]instanceof Array))throw new errors['DiscordError'](errors[a134_0x209f('0x5')][a134_0x209f('0x49')],this['name']);const _0x2a19df=_0x185c48['_']['join']('\x20'),_0x1bd2c0=_0x185c48['timeout']?_0x185c48['timeout']:this[a134_0x209f('0x3f')];if(constants[a134_0x209f('0x40')](this[a134_0x209f('0x4')][a134_0x209f('0x44')])){const _0x50b21e=await omnic[a134_0x209f('0x28')](_0x413a52[a134_0x209f('0x3d')])[a134_0x209f('0x23')](()=>{});if(_0x50b21e){if(_0x50b21e===omnic[a134_0x209f('0x22')]['GOLD']&&_0x1bd2c0>constants['LIMITS'][a134_0x209f('0x41')][a134_0x209f('0x17')])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a134_0x209f('0x1a')],this[a134_0x209f('0x4')][a134_0x209f('0x32')][a134_0x209f('0x12')](_0x413a52[a134_0x209f('0x3d')][a134_0x209f('0x25')][a134_0x209f('0xe')],a134_0x209f('0x8'),a134_0x209f('0x24'),constants['LIMITS'][a134_0x209f('0x41')]['POLL_TIMEOUT']));else{if(_0x50b21e===omnic[a134_0x209f('0x22')][a134_0x209f('0x4d')]&&_0x1bd2c0>constants['LIMITS'][a134_0x209f('0x4d')]['POLL_TIMEOUT'])throw new errors[(a134_0x209f('0x42'))](errors['BASTION_ERROR_TYPE'][a134_0x209f('0x1a')],this[a134_0x209f('0x4')][a134_0x209f('0x32')]['getString'](_0x413a52['guild'][a134_0x209f('0x25')][a134_0x209f('0xe')],a134_0x209f('0x8'),a134_0x209f('0x24'),constants['LIMITS'][a134_0x209f('0x4d')]['POLL_TIMEOUT']));}}else{if(_0x1bd2c0>constants['LIMITS'][a134_0x209f('0x17')])throw new errors['DiscordError'](errors[a134_0x209f('0x5')][a134_0x209f('0x3e')],this[a134_0x209f('0x4')][a134_0x209f('0x32')][a134_0x209f('0x12')](_0x413a52['guild']['document'][a134_0x209f('0xe')],'errors',a134_0x209f('0x2b'),constants[a134_0x209f('0x2f')][a134_0x209f('0x17')]));}const _0x58f03c=await Poll_1[a134_0x209f('0x45')]['countDocuments']({'guild':_0x413a52[a134_0x209f('0x3d')]['id'],'ends':{'$gte':new Date()}});if(_0x50b21e){if(_0x50b21e===omnic['PremiumTier'][a134_0x209f('0x41')]&&_0x58f03c>=constants[a134_0x209f('0x2f')][a134_0x209f('0x41')][a134_0x209f('0x35')])throw new errors['DiscordError'](errors[a134_0x209f('0x5')][a134_0x209f('0x1a')],this['client']['locale']['getString'](_0x413a52['guild'][a134_0x209f('0x25')][a134_0x209f('0xe')],a134_0x209f('0x8'),a134_0x209f('0x1f'),constants['LIMITS']['GOLD'][a134_0x209f('0x35')]));else{if(_0x50b21e===omnic[a134_0x209f('0x22')][a134_0x209f('0x4d')]&&_0x58f03c>=constants['LIMITS'][a134_0x209f('0x4d')]['POLLS'])throw new errors[(a134_0x209f('0x42'))](errors[a134_0x209f('0x5')]['LIMITED_PREMIUM_MEMBERSHIP'],this[a134_0x209f('0x4')]['locale']['getString'](_0x413a52[a134_0x209f('0x3d')][a134_0x209f('0x25')][a134_0x209f('0xe')],a134_0x209f('0x8'),a134_0x209f('0x1f'),constants[a134_0x209f('0x2f')][a134_0x209f('0x4d')]['POLLS']));}}else{if(_0x58f03c>=constants[a134_0x209f('0x2f')][a134_0x209f('0x35')])throw new errors[(a134_0x209f('0x42'))](errors[a134_0x209f('0x5')][a134_0x209f('0x3e')],this[a134_0x209f('0x4')][a134_0x209f('0x32')]['getString'](_0x413a52[a134_0x209f('0x3d')][a134_0x209f('0x25')][a134_0x209f('0xe')],a134_0x209f('0x8'),a134_0x209f('0x3a'),constants[a134_0x209f('0x2f')][a134_0x209f('0x35')]));}}const _0x3e5749=new Date(Date[a134_0x209f('0x2c')]()+_0x1bd2c0*0x36ee80),_0x2937ba=await _0x413a52[a134_0x209f('0x37')][a134_0x209f('0x6')]({'embed':{'color':tesseract_1[a134_0x209f('0x30')][a134_0x209f('0x2d')][a134_0x209f('0x16')],'author':{'name':a134_0x209f('0x9')},'title':_0x2a19df,'description':a134_0x209f('0x29'),'fields':_0x185c48['option']['map']((_0x51635a,_0x3528fa)=>({'name':this['reactions'][_0x3528fa],'value':_0x51635a})),'footer':{'text':a134_0x209f('0x4e')},'timestamp':_0x3e5749}});await Poll_1[a134_0x209f('0x45')]['create']({'_id':_0x2937ba['id'],'channel':_0x2937ba[a134_0x209f('0x37')]['id'],'guild':_0x2937ba[a134_0x209f('0x3d')]['id'],'ends':_0x3e5749});for(const _0x5bf2d1 of this[a134_0x209f('0x2a')]['slice'](0x0,_0x185c48[a134_0x209f('0x33')]['length'])){await _0x2937ba[a134_0x209f('0x18')](_0x5bf2d1)['catch'](()=>{});}},this[a134_0x209f('0x2a')]=['🇦','🇧','🇨','🇩','🇪','🇫','🇬','🇭','🇮','🇯','🇰','🇱','🇲'],this[a134_0x209f('0x3f')]=0x3;}}; \ No newline at end of file +const a134_0x5350=['user','react','language','LIMITS','get','ends','React\x20to\x20this\x20message\x20with\x20the\x20corresponding\x20emoji\x20to\x20vote\x20for\x20that\x20option.','getString','apply','defaultTimeout','PremiumTier','Ends','join','poll','exports','now','poll\x20--status\x20POLL_MESSAGE_ID','../../utils/constants','LIMITED_PREMIUM_MEMBERSHIP','toFixed','reactions','messages','@bastion/tesseract','option','\x20•\x20Ends','poll\x20--timeout\x20HOURS\x20--option\x20OPTIONS...\x20--\x20QUESTION','return\x20/\x22\x20+\x20this\x20+\x20\x22/','status','poll\x20--option\x20OPTIONS...\x20--\x20QUESTION','has','number','POLL\x20STATUS','errors','fetch','channel','name','DiscordError','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','locale','countDocuments','exec','guild','POLL_NOT_FOUND','../../utils/omnic','premiumPolls','GOLD','client','title','embeds','membershipLimitPolls','default','Command','\x20votes\x20(','BASTION_ERROR_TYPE','isPublicBastion','POLL_TIMEOUT','PLATINUM','findOne','INVALID_COMMAND_SYNTAX','bot','channels','Constants','size','value','timeout','POLLS','It\x20allows\x20you\x20to\x20run\x20polls\x20in\x20the\x20server\x20for\x20at\x20least\x20an\x20hour\x20and\x20at\x20most\x20a\x20month.\x20You\x20can\x20set\x20at\x20most\x2013\x20options\x20for\x20the\x20poll.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20status\x20of\x20a\x20running\x20poll.','filter','COLORS','length','premiumPollTimeout','create','IRIS','PREMIUM_MEMBERSHIP_REQUIRED','fields','cache','slice','map','\x20/\x20','document','_id','catch'];(function(_0xc4e757,_0x5350e0){const _0x427380=function(_0x2a2fff){while(--_0x2a2fff){_0xc4e757['push'](_0xc4e757['shift']());}},_0x379818=function(){const _0x112d1f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4eee34,_0x3b419f,_0x40d704,_0x101af3){_0x101af3=_0x101af3||{};let _0xd8c27c=_0x3b419f+'='+_0x40d704,_0x4e8352=0x0;for(let _0x3c6648=0x0,_0x4b9a3e=_0x4eee34['length'];_0x3c6648<_0x4b9a3e;_0x3c6648++){const _0x3a9a94=_0x4eee34[_0x3c6648];_0xd8c27c+=';\x20'+_0x3a9a94;const _0x585880=_0x4eee34[_0x3a9a94];_0x4eee34['push'](_0x585880),_0x4b9a3e=_0x4eee34['length'],_0x585880!==!![]&&(_0xd8c27c+='='+_0x585880);}_0x101af3['cookie']=_0xd8c27c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x279981,_0x5c2f68){_0x279981=_0x279981||function(_0x54f318){return _0x54f318;};const _0x324830=_0x279981(new RegExp('(?:^|;\x20)'+_0x5c2f68['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x59e7bb=function(_0x3c8a7c,_0x34e574){_0x3c8a7c(++_0x34e574);};return _0x59e7bb(_0x427380,_0x5350e0),_0x324830?decodeURIComponent(_0x324830[0x1]):undefined;}},_0xb5b666=function(){const _0x45386c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x45386c['test'](_0x112d1f['removeCookie']['toString']());};_0x112d1f['updateCookie']=_0xb5b666;let _0x4b7f8f='';const _0x28b376=_0x112d1f['updateCookie']();if(!_0x28b376)_0x112d1f['setCookie'](['*'],'counter',0x1);else _0x28b376?_0x4b7f8f=_0x112d1f['getCookie'](null,'counter'):_0x112d1f['removeCookie']();};_0x379818();}(a134_0x5350,0x97));const a134_0x4273=function(_0xc4e757,_0x5350e0){_0xc4e757=_0xc4e757-0x0;let _0x427380=a134_0x5350[_0xc4e757];return _0x427380;};const a134_0x40d704=function(){let _0x29c7be=!![];return function(_0x1b3c42,_0x4474d2){const _0x558032=_0x29c7be?function(){if(_0x4474d2){const _0x596d75=_0x4474d2[a134_0x4273('0x15')](_0x1b3c42,arguments);return _0x4474d2=null,_0x596d75;}}:function(){};return _0x29c7be=![],_0x558032;};}(),a134_0x3b419f=a134_0x40d704(this,function(){const _0x3e8d2a=function(){const _0x140fd0=_0x3e8d2a['constructor'](a134_0x4273('0x27'))()['constructor'](a134_0x4273('0x32'));return!_0x140fd0['test'](a134_0x3b419f);};return _0x3e8d2a();});a134_0x3b419f();'use strict';const tesseract_1=require(a134_0x4273('0x23')),Poll_1=require('../../models/Poll'),constants=require(a134_0x4273('0x1e')),errors=require('../../utils/errors'),numbers=require('../../utils/numbers'),omnic=require(a134_0x4273('0x38'));module[a134_0x4273('0x1b')]=class PollCommand extends tesseract_1[a134_0x4273('0x40')]{constructor(){super(a134_0x4273('0x1a'),{'description':a134_0x4273('0x4f'),'triggers':[],'arguments':{'alias':{'timeout':['t'],'option':['o'],'status':['s']},'number':[a134_0x4273('0x4d')],'string':[a134_0x4273('0x24'),a134_0x4273('0x28')],'coerce':{'timeout':_0x2af681=>typeof _0x2af681===a134_0x4273('0x2b')&&numbers['clamp'](_0x2af681,0x1,0x2d0)},'default':{'timeout':0x3}},'scope':a134_0x4273('0x36'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_CHANNELS'],'syntax':[a134_0x4273('0x1d'),a134_0x4273('0x29'),a134_0x4273('0x26')]}),this[a134_0x4273('0x35')]=async(_0x29d15d,_0x466d75)=>{if(_0x466d75[a134_0x4273('0x28')]){const _0x5c4ced=await Poll_1['default'][a134_0x4273('0x46')]({'_id':_0x466d75[a134_0x4273('0x28')],'guild':_0x29d15d[a134_0x4273('0x36')]['id']});if(!_0x5c4ced)throw new Error(a134_0x4273('0x37'));if(!_0x29d15d['guild'][a134_0x4273('0x49')][a134_0x4273('0x6')][a134_0x4273('0x2a')](_0x5c4ced[a134_0x4273('0x2f')]))throw new Error(a134_0x4273('0x37'));const _0x3032e4=_0x29d15d[a134_0x4273('0x36')][a134_0x4273('0x49')][a134_0x4273('0x6')][a134_0x4273('0x11')](_0x5c4ced[a134_0x4273('0x2f')]),_0x27ba14=await _0x3032e4[a134_0x4273('0x22')][a134_0x4273('0x2e')](_0x5c4ced[a134_0x4273('0xb')])[a134_0x4273('0xc')](()=>{});if(!_0x27ba14)throw new Error(a134_0x4273('0x37'));const _0x48555c=_0x27ba14[a134_0x4273('0x3d')][0x0]['fields'][a134_0x4273('0x8')](_0x5d72e0=>_0x5d72e0[a134_0x4273('0x4c')]),_0x40e086={};let _0xeafb92=0x0;for(const _0x33b79c in this[a134_0x4273('0x21')][a134_0x4273('0x7')](0x0,_0x48555c[a134_0x4273('0x0')])){if(_0x27ba14['reactions'][a134_0x4273('0x6')]['has'](this[a134_0x4273('0x21')][_0x33b79c])){await _0x27ba14[a134_0x4273('0x21')]['cache'][a134_0x4273('0x11')](this[a134_0x4273('0x21')][_0x33b79c])['users'][a134_0x4273('0x2e')]()[a134_0x4273('0xc')](()=>{});const _0xbb2b01=_0x27ba14[a134_0x4273('0x21')][a134_0x4273('0x6')]['get'](this[a134_0x4273('0x21')][_0x33b79c])['users'][a134_0x4273('0x6')][a134_0x4273('0x50')](_0x2b2187=>!_0x2b2187[a134_0x4273('0x48')])[a134_0x4273('0x4b')];_0x40e086[this[a134_0x4273('0x21')][_0x33b79c]]=_0xbb2b01,_0xeafb92+=_0xbb2b01;}}return await _0x29d15d[a134_0x4273('0x2f')]['send']({'embed':{'color':tesseract_1[a134_0x4273('0x4a')][a134_0x4273('0x51')][a134_0x4273('0x3')],'author':{'name':a134_0x4273('0x2c')},'title':_0x27ba14[a134_0x4273('0x3d')][0x0][a134_0x4273('0x3c')],'fields':_0x27ba14[a134_0x4273('0x3d')][0x0][a134_0x4273('0x5')][a134_0x4273('0x8')](_0x16c5df=>({'name':_0x16c5df[a134_0x4273('0x30')]+'\x20'+_0x16c5df[a134_0x4273('0x4c')],'value':(_0x40e086[_0x16c5df['name']]||0x0)+a134_0x4273('0x9')+_0xeafb92+a134_0x4273('0x41')+(_0x40e086[_0x16c5df[a134_0x4273('0x30')]]?_0x40e086[_0x16c5df['name']]/_0xeafb92*0x64:0x0)[a134_0x4273('0x20')](0x2)+'%)'})),'footer':{'text':_0x27ba14['id']+a134_0x4273('0x25')},'timestamp':_0x5c4ced[a134_0x4273('0x12')]}});}if(!_0x466d75['_']['length']||!_0x466d75[a134_0x4273('0x24')]||!(_0x466d75['option']instanceof Array))throw new errors[(a134_0x4273('0x31'))](errors[a134_0x4273('0x42')][a134_0x4273('0x47')],this[a134_0x4273('0x30')]);const _0x274494=_0x466d75['_'][a134_0x4273('0x19')]('\x20'),_0x38f06f=_0x466d75[a134_0x4273('0x4d')]?_0x466d75[a134_0x4273('0x4d')]:this[a134_0x4273('0x16')];if(constants[a134_0x4273('0x43')](this[a134_0x4273('0x3b')][a134_0x4273('0xd')])){const _0x25fc3=await omnic['fetchPremiumTier'](_0x29d15d['guild'])['catch'](()=>{});if(_0x25fc3){if(_0x25fc3===omnic[a134_0x4273('0x17')]['GOLD']&&_0x38f06f>constants[a134_0x4273('0x10')][a134_0x4273('0x3a')][a134_0x4273('0x44')])throw new errors[(a134_0x4273('0x31'))](errors['BASTION_ERROR_TYPE'][a134_0x4273('0x1f')],this[a134_0x4273('0x3b')][a134_0x4273('0x33')][a134_0x4273('0x14')](_0x29d15d[a134_0x4273('0x36')][a134_0x4273('0xa')]['language'],a134_0x4273('0x2d'),'membershipLimitPollTimeout',constants[a134_0x4273('0x10')][a134_0x4273('0x3a')]['POLL_TIMEOUT']));else{if(_0x25fc3===omnic[a134_0x4273('0x17')][a134_0x4273('0x45')]&&_0x38f06f>constants[a134_0x4273('0x10')][a134_0x4273('0x45')][a134_0x4273('0x44')])throw new errors[(a134_0x4273('0x31'))](errors[a134_0x4273('0x42')][a134_0x4273('0x1f')],this[a134_0x4273('0x3b')][a134_0x4273('0x33')][a134_0x4273('0x14')](_0x29d15d[a134_0x4273('0x36')][a134_0x4273('0xa')]['language'],a134_0x4273('0x2d'),'membershipLimitPollTimeout',constants[a134_0x4273('0x10')]['PLATINUM'][a134_0x4273('0x44')]));}}else{if(_0x38f06f>constants[a134_0x4273('0x10')][a134_0x4273('0x44')])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][a134_0x4273('0x4')],this[a134_0x4273('0x3b')][a134_0x4273('0x33')]['getString'](_0x29d15d['guild'][a134_0x4273('0xa')][a134_0x4273('0xf')],'errors',a134_0x4273('0x1'),constants[a134_0x4273('0x10')][a134_0x4273('0x44')]));}const _0x2eda40=await Poll_1[a134_0x4273('0x3f')][a134_0x4273('0x34')]({'guild':_0x29d15d[a134_0x4273('0x36')]['id'],'ends':{'$gte':new Date()}});if(_0x25fc3){if(_0x25fc3===omnic[a134_0x4273('0x17')][a134_0x4273('0x3a')]&&_0x2eda40>=constants['LIMITS'][a134_0x4273('0x3a')][a134_0x4273('0x4e')])throw new errors[(a134_0x4273('0x31'))](errors[a134_0x4273('0x42')][a134_0x4273('0x1f')],this['client'][a134_0x4273('0x33')][a134_0x4273('0x14')](_0x29d15d[a134_0x4273('0x36')]['document'][a134_0x4273('0xf')],a134_0x4273('0x2d'),a134_0x4273('0x3e'),constants[a134_0x4273('0x10')]['GOLD'][a134_0x4273('0x4e')]));else{if(_0x25fc3===omnic[a134_0x4273('0x17')][a134_0x4273('0x45')]&&_0x2eda40>=constants[a134_0x4273('0x10')][a134_0x4273('0x45')][a134_0x4273('0x4e')])throw new errors['DiscordError'](errors[a134_0x4273('0x42')]['LIMITED_PREMIUM_MEMBERSHIP'],this[a134_0x4273('0x3b')]['locale'][a134_0x4273('0x14')](_0x29d15d[a134_0x4273('0x36')][a134_0x4273('0xa')]['language'],'errors',a134_0x4273('0x3e'),constants['LIMITS']['PLATINUM'][a134_0x4273('0x4e')]));}}else{if(_0x2eda40>=constants[a134_0x4273('0x10')][a134_0x4273('0x4e')])throw new errors['DiscordError'](errors[a134_0x4273('0x42')]['PREMIUM_MEMBERSHIP_REQUIRED'],this[a134_0x4273('0x3b')][a134_0x4273('0x33')]['getString'](_0x29d15d[a134_0x4273('0x36')][a134_0x4273('0xa')][a134_0x4273('0xf')],'errors',a134_0x4273('0x39'),constants[a134_0x4273('0x10')][a134_0x4273('0x4e')]));}}const _0x51a26b=new Date(Date[a134_0x4273('0x1c')]()+_0x38f06f*0x36ee80),_0x5d39ee=await _0x29d15d[a134_0x4273('0x2f')]['send']({'embed':{'color':tesseract_1['Constants'][a134_0x4273('0x51')][a134_0x4273('0x3')],'author':{'name':'POLL'},'title':_0x274494,'description':a134_0x4273('0x13'),'fields':_0x466d75['option'][a134_0x4273('0x8')]((_0x139974,_0x204a61)=>({'name':this[a134_0x4273('0x21')][_0x204a61],'value':_0x139974})),'footer':{'text':a134_0x4273('0x18')},'timestamp':_0x51a26b}});await Poll_1[a134_0x4273('0x3f')][a134_0x4273('0x2')]({'_id':_0x5d39ee['id'],'channel':_0x5d39ee['channel']['id'],'guild':_0x5d39ee[a134_0x4273('0x36')]['id'],'ends':_0x51a26b});for(const _0x332232 of this[a134_0x4273('0x21')][a134_0x4273('0x7')](0x0,_0x466d75['option'][a134_0x4273('0x0')])){await _0x5d39ee[a134_0x4273('0xe')](_0x332232)[a134_0x4273('0xc')](()=>{});}},this['reactions']=['🇦','🇧','🇨','🇩','🇪','🇫','🇬','🇭','🇮','🇯','🇰','🇱','🇲'],this[a134_0x4273('0x16')]=0x3;}}; \ No newline at end of file diff --git a/commands/utility/translate.js b/commands/utility/translate.js index c5ca4561d..f3e8776af 100644 --- a/commands/utility/translate.js +++ b/commands/utility/translate.js @@ -1 +1 @@ -const a135_0x56dc=['join','@bastion/tesseract','IRIS','name','Constants','exec','auto','test','exports','language','translate\x20--from\x20LANGUAGE\x20--to\x20LANGUAGE\x20--\x20TEXT','translate\x20--\x20TEXT','../../utils/errors','Source\x20Language','Command','apply','constructor','text','@k3rn31p4nic/google-translate-api','translate\x20--to\x20LANGUAGE\x20--\x20TEXT','toUpperCase','toLowerCase','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','It\x20allows\x20you\x20to\x20translate\x20the\x20specified\x20text\x20from\x20one\x20language\x20to\x20another.','iso','translate','from','length','BASTION_ERROR_TYPE','DiscordError'];(function(_0x605f1b,_0x56dc1a){const _0x3b99d6=function(_0x33c286){while(--_0x33c286){_0x605f1b['push'](_0x605f1b['shift']());}},_0x2afeec=function(){const _0x274229={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x45b845,_0x50a0d9,_0x41af5c,_0x45cde5){_0x45cde5=_0x45cde5||{};let _0x3547c8=_0x50a0d9+'='+_0x41af5c,_0x365f99=0x0;for(let _0x585b5e=0x0,_0x240854=_0x45b845['length'];_0x585b5e<_0x240854;_0x585b5e++){const _0x3ad75f=_0x45b845[_0x585b5e];_0x3547c8+=';\x20'+_0x3ad75f;const _0x17d335=_0x45b845[_0x3ad75f];_0x45b845['push'](_0x17d335),_0x240854=_0x45b845['length'],_0x17d335!==!![]&&(_0x3547c8+='='+_0x17d335);}_0x45cde5['cookie']=_0x3547c8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x349aab,_0x1f316e){_0x349aab=_0x349aab||function(_0x576cb9){return _0x576cb9;};const _0x1bb488=_0x349aab(new RegExp('(?:^|;\x20)'+_0x1f316e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f0f9f=function(_0x185ecc,_0x3eeca1){_0x185ecc(++_0x3eeca1);};return _0x1f0f9f(_0x3b99d6,_0x56dc1a),_0x1bb488?decodeURIComponent(_0x1bb488[0x1]):undefined;}},_0x336a91=function(){const _0x51b7f5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x51b7f5['test'](_0x274229['removeCookie']['toString']());};_0x274229['updateCookie']=_0x336a91;let _0x204b00='';const _0x766b20=_0x274229['updateCookie']();if(!_0x766b20)_0x274229['setCookie'](['*'],'counter',0x1);else _0x766b20?_0x204b00=_0x274229['getCookie'](null,'counter'):_0x274229['removeCookie']();};_0x2afeec();}(a135_0x56dc,0x7d));const a135_0x3b99=function(_0x605f1b,_0x56dc1a){_0x605f1b=_0x605f1b-0x0;let _0x3b99d6=a135_0x56dc[_0x605f1b];return _0x3b99d6;};const a135_0x41af5c=function(){let _0x5e7d5a=!![];return function(_0x3c8070,_0x440013){const _0x260592=_0x5e7d5a?function(){if(_0x440013){const _0x10dd3e=_0x440013[a135_0x3b99('0xe')](_0x3c8070,arguments);return _0x440013=null,_0x10dd3e;}}:function(){};return _0x5e7d5a=![],_0x260592;};}(),a135_0x50a0d9=a135_0x41af5c(this,function(){const _0x3cb0ac=function(){const _0x1c98f0=_0x3cb0ac[a135_0x3b99('0xf')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a135_0x3b99('0xf')](a135_0x3b99('0x15'));return!_0x1c98f0[a135_0x3b99('0x6')](a135_0x50a0d9);};return _0x3cb0ac();});a135_0x50a0d9();'use strict';const tesseract_1=require(a135_0x3b99('0x0')),translate=require(a135_0x3b99('0x11')),errors=require(a135_0x3b99('0xb'));module[a135_0x3b99('0x7')]=class TranslateCommand extends tesseract_1[a135_0x3b99('0xd')]{constructor(){super(a135_0x3b99('0x19'),{'description':a135_0x3b99('0x17'),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a135_0x3b99('0xa'),a135_0x3b99('0x12'),a135_0x3b99('0x9')]}),this[a135_0x3b99('0x4')]=async(_0x478adc,_0x126201)=>{if(!_0x126201['_'][a135_0x3b99('0x1b')])throw new errors[(a135_0x3b99('0x1d'))](errors[a135_0x3b99('0x1c')]['INVALID_COMMAND_SYNTAX'],this[a135_0x3b99('0x2')]);const _0x5f33bc=_0x126201['_'][a135_0x3b99('0x1e')]('\x20'),_0x4f1d0f=_0x126201[a135_0x3b99('0x1a')]?_0x126201['from']['toLowerCase']():a135_0x3b99('0x5'),_0x183efa=_0x126201['to']?_0x126201['to'][a135_0x3b99('0x14')]():'en',_0x2fba83=await translate(_0x5f33bc,{'from':_0x4f1d0f,'to':_0x183efa});await _0x478adc['channel']['send']({'embed':{'color':tesseract_1[a135_0x3b99('0x3')][a135_0x3b99('0x16')][a135_0x3b99('0x1')],'title':'Translation','description':_0x2fba83[a135_0x3b99('0x10')],'fields':[{'name':a135_0x3b99('0xc'),'value':_0x2fba83[a135_0x3b99('0x1a')][a135_0x3b99('0x8')][a135_0x3b99('0x18')]['toUpperCase'](),'inline':!![]},{'name':'Target\x20Language','value':_0x183efa[a135_0x3b99('0x13')](),'inline':!![]}],'footer':{'text':'Powered\x20by\x20Google'}}});};}}; \ No newline at end of file +const a135_0x2e00=['toUpperCase','text','It\x20allows\x20you\x20to\x20translate\x20the\x20specified\x20text\x20from\x20one\x20language\x20to\x20another.','@k3rn31p4nic/google-translate-api','IRIS','from','Command','name','test','guild','iso','Target\x20Language','DiscordError','constructor','Powered\x20by\x20Google','translate','return\x20/\x22\x20+\x20this\x20+\x20\x22/','INVALID_COMMAND_SYNTAX','join','auto','apply','send','COLORS','translate\x20--\x20TEXT','toLowerCase','exec'];(function(_0x55d307,_0x2e003a){const _0x3b7ac3=function(_0x30c6d6){while(--_0x30c6d6){_0x55d307['push'](_0x55d307['shift']());}},_0x2bb76b=function(){const _0x5d9e02={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3adcec,_0xdf2259,_0x4fcfee,_0x16c98e){_0x16c98e=_0x16c98e||{};let _0x269881=_0xdf2259+'='+_0x4fcfee,_0x2c98d6=0x0;for(let _0x12854c=0x0,_0x36af06=_0x3adcec['length'];_0x12854c<_0x36af06;_0x12854c++){const _0x49f97b=_0x3adcec[_0x12854c];_0x269881+=';\x20'+_0x49f97b;const _0x3789d9=_0x3adcec[_0x49f97b];_0x3adcec['push'](_0x3789d9),_0x36af06=_0x3adcec['length'],_0x3789d9!==!![]&&(_0x269881+='='+_0x3789d9);}_0x16c98e['cookie']=_0x269881;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5c955a,_0x9e7899){_0x5c955a=_0x5c955a||function(_0x4336a5){return _0x4336a5;};const _0x52dcfb=_0x5c955a(new RegExp('(?:^|;\x20)'+_0x9e7899['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5d8b01=function(_0x2c6d00,_0x3a00f1){_0x2c6d00(++_0x3a00f1);};return _0x5d8b01(_0x3b7ac3,_0x2e003a),_0x52dcfb?decodeURIComponent(_0x52dcfb[0x1]):undefined;}},_0x5d6237=function(){const _0x1daffd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1daffd['test'](_0x5d9e02['removeCookie']['toString']());};_0x5d9e02['updateCookie']=_0x5d6237;let _0x4aa650='';const _0x109b4b=_0x5d9e02['updateCookie']();if(!_0x109b4b)_0x5d9e02['setCookie'](['*'],'counter',0x1);else _0x109b4b?_0x4aa650=_0x5d9e02['getCookie'](null,'counter'):_0x5d9e02['removeCookie']();};_0x2bb76b();}(a135_0x2e00,0x1cc));const a135_0x3b7a=function(_0x55d307,_0x2e003a){_0x55d307=_0x55d307-0x0;let _0x3b7ac3=a135_0x2e00[_0x55d307];return _0x3b7ac3;};const a135_0x4fcfee=function(){let _0x309e2e=!![];return function(_0x16b2ea,_0x3e8bea){const _0x312d13=_0x309e2e?function(){if(_0x3e8bea){const _0x41f3bc=_0x3e8bea[a135_0x3b7a('0x2')](_0x16b2ea,arguments);return _0x3e8bea=null,_0x41f3bc;}}:function(){};return _0x309e2e=![],_0x312d13;};}(),a135_0xdf2259=a135_0x4fcfee(this,function(){const _0x3d44b1=function(){const _0x33cce6=_0x3d44b1[a135_0x3b7a('0x15')](a135_0x3b7a('0x18'))()[a135_0x3b7a('0x15')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x33cce6[a135_0x3b7a('0x10')](a135_0xdf2259);};return _0x3d44b1();});a135_0xdf2259();'use strict';const tesseract_1=require('@bastion/tesseract'),translate=require(a135_0x3b7a('0xb')),errors=require('../../utils/errors');module['exports']=class TranslateCommand extends tesseract_1[a135_0x3b7a('0xe')]{constructor(){super(a135_0x3b7a('0x17'),{'description':a135_0x3b7a('0xa'),'triggers':[],'arguments':{},'scope':a135_0x3b7a('0x11'),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[a135_0x3b7a('0x5'),'translate\x20--to\x20LANGUAGE\x20--\x20TEXT','translate\x20--from\x20LANGUAGE\x20--to\x20LANGUAGE\x20--\x20TEXT']}),this[a135_0x3b7a('0x7')]=async(_0x4deac3,_0x25d509)=>{if(!_0x25d509['_']['length'])throw new errors[(a135_0x3b7a('0x14'))](errors['BASTION_ERROR_TYPE'][a135_0x3b7a('0x19')],this[a135_0x3b7a('0xf')]);const _0x4bb2f5=_0x25d509['_'][a135_0x3b7a('0x0')]('\x20'),_0x40b749=_0x25d509['from']?_0x25d509['from'][a135_0x3b7a('0x6')]():a135_0x3b7a('0x1'),_0x2a42b2=_0x25d509['to']?_0x25d509['to'][a135_0x3b7a('0x6')]():'en',_0x2b9b07=await translate(_0x4bb2f5,{'from':_0x40b749,'to':_0x2a42b2});await _0x4deac3['channel'][a135_0x3b7a('0x3')]({'embed':{'color':tesseract_1['Constants'][a135_0x3b7a('0x4')][a135_0x3b7a('0xc')],'title':'Translation','description':_0x2b9b07[a135_0x3b7a('0x9')],'fields':[{'name':'Source\x20Language','value':_0x2b9b07[a135_0x3b7a('0xd')]['language'][a135_0x3b7a('0x12')][a135_0x3b7a('0x8')](),'inline':!![]},{'name':a135_0x3b7a('0x13'),'value':_0x2a42b2['toUpperCase'](),'inline':!![]}],'footer':{'text':a135_0x3b7a('0x16')}}});};}}; \ No newline at end of file diff --git a/events/commandExecute.js b/events/commandExecute.js index b0dfd2395..ebbab5c9e 100644 --- a/events/commandExecute.js +++ b/events/commandExecute.js @@ -1 +1 @@ -const a136_0x31b6=['Constants','exports','`\x20command.','Logger','\x20--help```\x0aYou\x20can\x20join\x20[Bastion\x20HQ](https://discord.gg/fzx8fkt)\x20to\x20get\x20help\x20from\x20our\x20amazing\x20support\x20staff.','INVALID_COMMAND_SYNTAX','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','DiscordError','COLORS','commandExecute','constructor','message','```html\x0a','That\x27s\x20not\x20how\x20you\x20use\x20the\x20`','BASTION_ERROR_TYPE','ModuleManagerEvent','@bastion/tesseract','../utils/errors','exec','success','catch','send','failed','name','RED','error'];(function(_0x538375,_0x31b64b){const _0xf74d03=function(_0x130baa){while(--_0x130baa){_0x538375['push'](_0x538375['shift']());}},_0x3699=function(){const _0x3d13ef={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1a8263,_0x4697d5,_0x4911bc,_0x3ff0a2){_0x3ff0a2=_0x3ff0a2||{};let _0x55298a=_0x4697d5+'='+_0x4911bc,_0x384eb0=0x0;for(let _0x3a5f68=0x0,_0x6eb764=_0x1a8263['length'];_0x3a5f68<_0x6eb764;_0x3a5f68++){const _0x3ebe59=_0x1a8263[_0x3a5f68];_0x55298a+=';\x20'+_0x3ebe59;const _0x3f3886=_0x1a8263[_0x3ebe59];_0x1a8263['push'](_0x3f3886),_0x6eb764=_0x1a8263['length'],_0x3f3886!==!![]&&(_0x55298a+='='+_0x3f3886);}_0x3ff0a2['cookie']=_0x55298a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x11d497,_0x25f646){_0x11d497=_0x11d497||function(_0x2edadb){return _0x2edadb;};const _0x6236ed=_0x11d497(new RegExp('(?:^|;\x20)'+_0x25f646['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x466b8e=function(_0x124a42,_0x202d2a){_0x124a42(++_0x202d2a);};return _0x466b8e(_0xf74d03,_0x31b64b),_0x6236ed?decodeURIComponent(_0x6236ed[0x1]):undefined;}},_0x3d2c04=function(){const _0x23449c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x23449c['test'](_0x3d13ef['removeCookie']['toString']());};_0x3d13ef['updateCookie']=_0x3d2c04;let _0x4c5814='';const _0x5d89f1=_0x3d13ef['updateCookie']();if(!_0x5d89f1)_0x3d13ef['setCookie'](['*'],'counter',0x1);else _0x5d89f1?_0x4c5814=_0x3d13ef['getCookie'](null,'counter'):_0x3d13ef['removeCookie']();};_0x3699();}(a136_0x31b6,0x1c3));const a136_0xf74d=function(_0x538375,_0x31b64b){_0x538375=_0x538375-0x0;let _0xf74d03=a136_0x31b6[_0x538375];return _0xf74d03;};const a136_0x4911bc=function(){let _0x14b6d9=!![];return function(_0x20f3c7,_0x2e5564){const _0x2558e0=_0x14b6d9?function(){if(_0x2e5564){const _0x4dcc6c=_0x2e5564['apply'](_0x20f3c7,arguments);return _0x2e5564=null,_0x4dcc6c;}}:function(){};return _0x14b6d9=![],_0x2558e0;};}(),a136_0x4697d5=a136_0x4911bc(this,function(){const _0x217606=function(){const _0x356874=_0x217606[a136_0xf74d('0x1a')](a136_0xf74d('0x15'))()[a136_0xf74d('0x1a')](a136_0xf74d('0x13'));return!_0x356874[a136_0xf74d('0x14')](a136_0x4697d5);};return _0x217606();});a136_0x4697d5();'use strict';const tesseract_1=require(a136_0xf74d('0x3')),errors=require(a136_0xf74d('0x4'));module[a136_0xf74d('0xe')]=class CommandExecuteEvent extends tesseract_1[a136_0xf74d('0x2')]{constructor(){super(a136_0xf74d('0x19')),this[a136_0xf74d('0x5')]=async(_0x513fc2,_0x150969,_0x5bdc85,_0x38e954)=>{switch(_0x5bdc85){case a136_0xf74d('0x6'):return;case a136_0xf74d('0x9'):if(_0x38e954 instanceof errors[a136_0xf74d('0x17')])return _0x150969[a136_0xf74d('0x16')][a136_0xf74d('0x8')]({'embed':{'color':tesseract_1[a136_0xf74d('0xd')][a136_0xf74d('0x18')][a136_0xf74d('0xb')],'title':_0x38e954[a136_0xf74d('0xa')],'description':_0x38e954['name']===errors[a136_0xf74d('0x1')][a136_0xf74d('0x12')]?a136_0xf74d('0x0')+_0x513fc2[a136_0xf74d('0xa')]+a136_0xf74d('0xf'):_0x38e954[a136_0xf74d('0x1b')],'fields':_0x38e954['name']===errors[a136_0xf74d('0x1')]['INVALID_COMMAND_SYNTAX']?[{'name':'Need\x20help?','value':a136_0xf74d('0x1c')+_0x513fc2['name']+a136_0xf74d('0x11')}]:[]}})[a136_0xf74d('0x7')](tesseract_1[a136_0xf74d('0x10')][a136_0xf74d('0xc')]);tesseract_1[a136_0xf74d('0x10')][a136_0xf74d('0xc')](_0x38e954);return _0x150969[a136_0xf74d('0x16')][a136_0xf74d('0x8')]({'embed':{'color':tesseract_1[a136_0xf74d('0xd')][a136_0xf74d('0x18')][a136_0xf74d('0xb')],'description':_0x38e954['message']}})[a136_0xf74d('0x7')](tesseract_1[a136_0xf74d('0x10')]['error']);}};}}; \ No newline at end of file +const a136_0x2940=['message','\x20--help```\x0aYou\x20can\x20join\x20[Bastion\x20HQ](https://discord.gg/fzx8fkt)\x20to\x20get\x20help\x20from\x20our\x20amazing\x20support\x20staff.','DiscordError','ModuleManagerEvent','error','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','commandExecute','channel','INVALID_COMMAND_SYNTAX','Logger','name','@bastion/tesseract','catch','constructor','Need\x20help?','Constants','test','apply','send','exec','COLORS','That\x27s\x20not\x20how\x20you\x20use\x20the\x20`','RED','BASTION_ERROR_TYPE'];(function(_0xb37519,_0x294083){const _0x5471e2=function(_0x3436f8){while(--_0x3436f8){_0xb37519['push'](_0xb37519['shift']());}},_0xe4b14e=function(){const _0x33b707={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4cd275,_0x54f67a,_0x4858f2,_0x547409){_0x547409=_0x547409||{};let _0x26af1a=_0x54f67a+'='+_0x4858f2,_0x2273b8=0x0;for(let _0x2ddd84=0x0,_0x193d84=_0x4cd275['length'];_0x2ddd84<_0x193d84;_0x2ddd84++){const _0xa7a742=_0x4cd275[_0x2ddd84];_0x26af1a+=';\x20'+_0xa7a742;const _0x8bd29c=_0x4cd275[_0xa7a742];_0x4cd275['push'](_0x8bd29c),_0x193d84=_0x4cd275['length'],_0x8bd29c!==!![]&&(_0x26af1a+='='+_0x8bd29c);}_0x547409['cookie']=_0x26af1a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x228614,_0x4fddf6){_0x228614=_0x228614||function(_0x411f18){return _0x411f18;};const _0x539cb3=_0x228614(new RegExp('(?:^|;\x20)'+_0x4fddf6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3ecafa=function(_0x29039b,_0x483577){_0x29039b(++_0x483577);};return _0x3ecafa(_0x5471e2,_0x294083),_0x539cb3?decodeURIComponent(_0x539cb3[0x1]):undefined;}},_0x17c224=function(){const _0x4871e5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4871e5['test'](_0x33b707['removeCookie']['toString']());};_0x33b707['updateCookie']=_0x17c224;let _0x432916='';const _0x4776da=_0x33b707['updateCookie']();if(!_0x4776da)_0x33b707['setCookie'](['*'],'counter',0x1);else _0x4776da?_0x432916=_0x33b707['getCookie'](null,'counter'):_0x33b707['removeCookie']();};_0xe4b14e();}(a136_0x2940,0x93));const a136_0x5471=function(_0xb37519,_0x294083){_0xb37519=_0xb37519-0x0;let _0x5471e2=a136_0x2940[_0xb37519];return _0x5471e2;};const a136_0x4858f2=function(){let _0x1915d8=!![];return function(_0x281a73,_0x22dbfb){const _0x3d947f=_0x1915d8?function(){if(_0x22dbfb){const _0x24f304=_0x22dbfb[a136_0x5471('0x15')](_0x281a73,arguments);return _0x22dbfb=null,_0x24f304;}}:function(){};return _0x1915d8=![],_0x3d947f;};}(),a136_0x54f67a=a136_0x4858f2(this,function(){const _0x4e37aa=function(){const _0x4afc13=_0x4e37aa[a136_0x5471('0x11')](a136_0x5471('0x8'))()[a136_0x5471('0x11')](a136_0x5471('0x9'));return!_0x4afc13[a136_0x5471('0x14')](a136_0x54f67a);};return _0x4e37aa();});a136_0x54f67a();'use strict';const tesseract_1=require(a136_0x5471('0xf')),errors=require('../utils/errors');module['exports']=class CommandExecuteEvent extends tesseract_1[a136_0x5471('0x6')]{constructor(){super(a136_0x5471('0xa')),this[a136_0x5471('0x17')]=async(_0x440953,_0x45897e,_0x5c63e6,_0x462211)=>{switch(_0x5c63e6){case'success':return;case'failed':if(_0x462211 instanceof errors[a136_0x5471('0x5')])return _0x45897e[a136_0x5471('0xb')][a136_0x5471('0x16')]({'embed':{'color':tesseract_1[a136_0x5471('0x13')][a136_0x5471('0x18')][a136_0x5471('0x1')],'title':_0x462211[a136_0x5471('0xe')],'description':_0x462211['name']===errors[a136_0x5471('0x2')][a136_0x5471('0xc')]?a136_0x5471('0x0')+_0x440953[a136_0x5471('0xe')]+'`\x20command.':_0x462211['message'],'fields':_0x462211[a136_0x5471('0xe')]===errors[a136_0x5471('0x2')][a136_0x5471('0xc')]?[{'name':a136_0x5471('0x12'),'value':'```html\x0a'+_0x440953[a136_0x5471('0xe')]+a136_0x5471('0x4')}]:[]}})['catch'](tesseract_1[a136_0x5471('0xd')]['error']);tesseract_1[a136_0x5471('0xd')][a136_0x5471('0x7')](_0x462211);return _0x45897e[a136_0x5471('0xb')][a136_0x5471('0x16')]({'embed':{'color':tesseract_1[a136_0x5471('0x13')]['COLORS'][a136_0x5471('0x1')],'description':_0x462211[a136_0x5471('0x3')]}})[a136_0x5471('0x10')](tesseract_1[a136_0x5471('0xd')][a136_0x5471('0x7')]);}};}}; \ No newline at end of file diff --git a/events/commandHelp.js b/events/commandHelp.js index baf3d0d04..1041f3796 100644 --- a/events/commandHelp.js +++ b/events/commandHelp.js @@ -1 +1 @@ -const a137_0x51db=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants','syntax','description','snakeToTitleCase','exec','name','```','apply','Command','length','owner','@bastion/tesseract','channel','Description','join','toString','exports','Bot\x20Owner','constructor','category','commandHelp','clientPermissions','ModuleManagerEvent','Human\x20Permissions','Bastion\x20Permissions','COLORS','send','userPermissions','../utils/arrays','map','Category','triggers','wrap','test','Syntax'];(function(_0x8a9aa2,_0x51db75){const _0x5ecdf7=function(_0x1e22a9){while(--_0x1e22a9){_0x8a9aa2['push'](_0x8a9aa2['shift']());}},_0x42f508=function(){const _0x3a22ec={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x32eaad,_0x16c2a7,_0x10e267,_0x427296){_0x427296=_0x427296||{};let _0x169487=_0x16c2a7+'='+_0x10e267,_0x17e5f6=0x0;for(let _0x2b645b=0x0,_0x1b76dd=_0x32eaad['length'];_0x2b645b<_0x1b76dd;_0x2b645b++){const _0x4d59e3=_0x32eaad[_0x2b645b];_0x169487+=';\x20'+_0x4d59e3;const _0x2a13ea=_0x32eaad[_0x4d59e3];_0x32eaad['push'](_0x2a13ea),_0x1b76dd=_0x32eaad['length'],_0x2a13ea!==!![]&&(_0x169487+='='+_0x2a13ea);}_0x427296['cookie']=_0x169487;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1271d1,_0x2b679e){_0x1271d1=_0x1271d1||function(_0x83c6fc){return _0x83c6fc;};const _0x51711a=_0x1271d1(new RegExp('(?:^|;\x20)'+_0x2b679e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1dac0a=function(_0xb8370d,_0x415d47){_0xb8370d(++_0x415d47);};return _0x1dac0a(_0x5ecdf7,_0x51db75),_0x51711a?decodeURIComponent(_0x51711a[0x1]):undefined;}},_0x25a078=function(){const _0x46dede=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x46dede['test'](_0x3a22ec['removeCookie']['toString']());};_0x3a22ec['updateCookie']=_0x25a078;let _0x2e5523='';const _0x40fa9e=_0x3a22ec['updateCookie']();if(!_0x40fa9e)_0x3a22ec['setCookie'](['*'],'counter',0x1);else _0x40fa9e?_0x2e5523=_0x3a22ec['getCookie'](null,'counter'):_0x3a22ec['removeCookie']();};_0x42f508();}(a137_0x51db,0x88));const a137_0x5ecd=function(_0x8a9aa2,_0x51db75){_0x8a9aa2=_0x8a9aa2-0x0;let _0x5ecdf7=a137_0x51db[_0x8a9aa2];return _0x5ecdf7;};const a137_0x10e267=function(){let _0x40c142=!![];return function(_0x4f1721,_0x451c9b){const _0x11a1d1=_0x40c142?function(){if(_0x451c9b){const _0x369267=_0x451c9b[a137_0x5ecd('0x10')](_0x4f1721,arguments);return _0x451c9b=null,_0x369267;}}:function(){};return _0x40c142=![],_0x11a1d1;};}(),a137_0x16c2a7=a137_0x10e267(this,function(){const _0x5afb69=function(){const _0x203cb0=_0x5afb69[a137_0x5ecd('0x1b')](a137_0x5ecd('0x8'))()[a137_0x5ecd('0x1b')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x203cb0[a137_0x5ecd('0x6')](a137_0x16c2a7);};return _0x5afb69();});a137_0x16c2a7();'use strict';const tesseract_1=require(a137_0x5ecd('0x14')),arrays=require(a137_0x5ecd('0x1')),strings=require('../utils/strings');module[a137_0x5ecd('0x19')]=class CommandHelpEvent extends tesseract_1[a137_0x5ecd('0x1f')]{constructor(){super(a137_0x5ecd('0x1d')),this[a137_0x5ecd('0xd')]=async(_0x4ad178,_0x462b0c)=>{_0x4ad178[a137_0x5ecd('0x15')][a137_0x5ecd('0x23')]({'embed':{'color':tesseract_1[a137_0x5ecd('0x9')][a137_0x5ecd('0x22')]['YELLOW'],'fields':[{'name':a137_0x5ecd('0x11'),'value':'`'+_0x462b0c['name']+'`','inline':!![]},{'name':'Aliases','value':_0x462b0c[a137_0x5ecd('0x4')]['length']?arrays['wrap'](_0x462b0c[a137_0x5ecd('0x4')],'`')[a137_0x5ecd('0x17')]('\x0a'):'-','inline':!![]},{'name':a137_0x5ecd('0x3'),'value':strings['snakeToTitleCase'](_0x462b0c[a137_0x5ecd('0x1c')]),'inline':!![]},{'name':a137_0x5ecd('0x16'),'value':_0x462b0c[a137_0x5ecd('0xb')]||'-'},{'name':a137_0x5ecd('0x21'),'value':_0x462b0c[a137_0x5ecd('0x1e')][a137_0x5ecd('0x12')]?_0x462b0c[a137_0x5ecd('0x1e')][a137_0x5ecd('0x2')](_0xc99ad6=>strings[a137_0x5ecd('0xc')](_0xc99ad6['toString']()))[a137_0x5ecd('0x17')]('\x0a'):'-','inline':!![]},{'name':a137_0x5ecd('0x20'),'value':_0x462b0c[a137_0x5ecd('0x13')]?a137_0x5ecd('0x1a'):_0x462b0c[a137_0x5ecd('0x0')][a137_0x5ecd('0x12')]?_0x462b0c[a137_0x5ecd('0x0')][a137_0x5ecd('0x2')](_0x33d4a4=>strings[a137_0x5ecd('0xc')](_0x33d4a4[a137_0x5ecd('0x18')]()))[a137_0x5ecd('0x17')]('\x0a'):'-','inline':!![]},{'name':a137_0x5ecd('0x7'),'value':_0x462b0c[a137_0x5ecd('0xa')][a137_0x5ecd('0x12')]?arrays[a137_0x5ecd('0x5')](_0x462b0c[a137_0x5ecd('0xa')],'```')[a137_0x5ecd('0x17')](''):a137_0x5ecd('0xf')+_0x462b0c[a137_0x5ecd('0xe')]+a137_0x5ecd('0xf')}]}})['catch'](tesseract_1['Logger']['error']);};}}; \ No newline at end of file +const a137_0x2b56=['triggers','constructor','name','Command','channel','YELLOW','apply','snakeToTitleCase','@bastion/tesseract','Logger','map','toString','exports','Description','return\x20/\x22\x20+\x20this\x20+\x20\x22/','catch','test','Bot\x20Owner','description','```','owner','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','length','category','../utils/arrays','Bastion\x20Permissions','wrap','Constants','join','syntax','send','commandHelp','clientPermissions','Aliases','userPermissions','Syntax'];(function(_0x34e8b4,_0x2b5660){const _0x44c52b=function(_0x1e938f){while(--_0x1e938f){_0x34e8b4['push'](_0x34e8b4['shift']());}},_0x2512ac=function(){const _0x31b997={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4663c0,_0x108821,_0x3cec5c,_0x214157){_0x214157=_0x214157||{};let _0xb88321=_0x108821+'='+_0x3cec5c,_0x20133d=0x0;for(let _0x163b16=0x0,_0x2a7fd1=_0x4663c0['length'];_0x163b16<_0x2a7fd1;_0x163b16++){const _0x2880b0=_0x4663c0[_0x163b16];_0xb88321+=';\x20'+_0x2880b0;const _0x34e573=_0x4663c0[_0x2880b0];_0x4663c0['push'](_0x34e573),_0x2a7fd1=_0x4663c0['length'],_0x34e573!==!![]&&(_0xb88321+='='+_0x34e573);}_0x214157['cookie']=_0xb88321;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3092a3,_0xf5a684){_0x3092a3=_0x3092a3||function(_0x4a1792){return _0x4a1792;};const _0x507782=_0x3092a3(new RegExp('(?:^|;\x20)'+_0xf5a684['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xe9423=function(_0x1f79ba,_0x59ca01){_0x1f79ba(++_0x59ca01);};return _0xe9423(_0x44c52b,_0x2b5660),_0x507782?decodeURIComponent(_0x507782[0x1]):undefined;}},_0x185f2f=function(){const _0xcf29da=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xcf29da['test'](_0x31b997['removeCookie']['toString']());};_0x31b997['updateCookie']=_0x185f2f;let _0x2e6cf5='';const _0x161506=_0x31b997['updateCookie']();if(!_0x161506)_0x31b997['setCookie'](['*'],'counter',0x1);else _0x161506?_0x2e6cf5=_0x31b997['getCookie'](null,'counter'):_0x31b997['removeCookie']();};_0x2512ac();}(a137_0x2b56,0x142));const a137_0x44c5=function(_0x34e8b4,_0x2b5660){_0x34e8b4=_0x34e8b4-0x0;let _0x44c52b=a137_0x2b56[_0x34e8b4];return _0x44c52b;};const a137_0x3cec5c=function(){let _0x1dec8b=!![];return function(_0x2432e9,_0xae9913){const _0x151fc=_0x1dec8b?function(){if(_0xae9913){const _0x39827f=_0xae9913[a137_0x44c5('0x8')](_0x2432e9,arguments);return _0xae9913=null,_0x39827f;}}:function(){};return _0x1dec8b=![],_0x151fc;};}(),a137_0x108821=a137_0x3cec5c(this,function(){const _0x486609=function(){const _0xc3e110=_0x486609[a137_0x44c5('0x3')](a137_0x44c5('0x10'))()[a137_0x44c5('0x3')](a137_0x44c5('0x17'));return!_0xc3e110[a137_0x44c5('0x12')](a137_0x108821);};return _0x486609();});a137_0x108821();'use strict';const tesseract_1=require(a137_0x44c5('0xa')),arrays=require(a137_0x44c5('0x1a')),strings=require('../utils/strings');module[a137_0x44c5('0xe')]=class CommandHelpEvent extends tesseract_1['ModuleManagerEvent']{constructor(){super(a137_0x44c5('0x21')),this['exec']=async(_0x4bbebc,_0x4cfc5c)=>{_0x4bbebc[a137_0x44c5('0x6')][a137_0x44c5('0x20')]({'embed':{'color':tesseract_1[a137_0x44c5('0x1d')]['COLORS'][a137_0x44c5('0x7')],'fields':[{'name':a137_0x44c5('0x5'),'value':'`'+_0x4cfc5c[a137_0x44c5('0x4')]+'`','inline':!![]},{'name':a137_0x44c5('0x23'),'value':_0x4cfc5c[a137_0x44c5('0x2')][a137_0x44c5('0x18')]?arrays[a137_0x44c5('0x1c')](_0x4cfc5c['triggers'],'`')[a137_0x44c5('0x1e')]('\x0a'):'-','inline':!![]},{'name':'Category','value':strings[a137_0x44c5('0x9')](_0x4cfc5c[a137_0x44c5('0x19')]),'inline':!![]},{'name':a137_0x44c5('0xf'),'value':_0x4cfc5c[a137_0x44c5('0x14')]||'-'},{'name':a137_0x44c5('0x1b'),'value':_0x4cfc5c[a137_0x44c5('0x22')]['length']?_0x4cfc5c[a137_0x44c5('0x22')][a137_0x44c5('0xc')](_0x2a6899=>strings[a137_0x44c5('0x9')](_0x2a6899[a137_0x44c5('0xd')]()))[a137_0x44c5('0x1e')]('\x0a'):'-','inline':!![]},{'name':'Human\x20Permissions','value':_0x4cfc5c[a137_0x44c5('0x16')]?a137_0x44c5('0x13'):_0x4cfc5c[a137_0x44c5('0x0')][a137_0x44c5('0x18')]?_0x4cfc5c[a137_0x44c5('0x0')][a137_0x44c5('0xc')](_0x57a401=>strings[a137_0x44c5('0x9')](_0x57a401[a137_0x44c5('0xd')]()))[a137_0x44c5('0x1e')]('\x0a'):'-','inline':!![]},{'name':a137_0x44c5('0x1'),'value':_0x4cfc5c['syntax']['length']?arrays[a137_0x44c5('0x1c')](_0x4cfc5c[a137_0x44c5('0x1f')],a137_0x44c5('0x15'))['join'](''):a137_0x44c5('0x15')+_0x4cfc5c[a137_0x44c5('0x4')]+a137_0x44c5('0x15')}]}})[a137_0x44c5('0x11')](tesseract_1[a137_0x44c5('0xb')]['error']);};}}; \ No newline at end of file diff --git a/events/humanMessage.js b/events/humanMessage.js index de57298f5..45241b2fd 100644 --- a/events/humanMessage.js +++ b/events/humanMessage.js @@ -1 +1 @@ -const a138_0x4a7c=['find','replaceMessageVariables','random','constructor','owner','success','push','multiplier','/chat/instant?message=','parseEmoji','apply','LEVELED\x20UP!','fetchApplication','cache','../models/Role','handleVotingChannels','makeRequest','findById','recentUsers','level','add','has','client','react','../models/TextChannel','computeLevel','responseReaction','get','levelUp','roles','replace','relayDirectMessages','responseMessage','handleDirectMessageRelay','floor','findOne','Logger','setTimeout','_id','set','exports','../models/Config','stringify','content','handleInstantResponses','MAX_EXPERIENCE','reaction','displayAvatarURL','../models/Trigger','Team','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20Trigger','user','info','indexOf','Level-up\x20Reward','remove','author','response','discord.js','locale','channel','../utils/gamification','getConstant','member','map','json','ModuleManagerEvent','Constants','../utils/variables','reply','document','../utils/emojis','language','catch','status','return\x20/\x22\x20+\x20this\x20+\x20\x22/','handleGamification','exec','gamification','bastion.name','error','messages','includes','guild','then','@bastion/tesseract','filter','send','handleTriggers','IRIS','humanMessage','test','tag','length','default','handleLevelRoles'];(function(_0x279879,_0x4a7c19){const _0x5af6c8=function(_0x130097){while(--_0x130097){_0x279879['push'](_0x279879['shift']());}},_0x52314a=function(){const _0x55a88a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x551755,_0x4b62f8,_0xde856a,_0xa47a39){_0xa47a39=_0xa47a39||{};let _0x1de3f3=_0x4b62f8+'='+_0xde856a,_0x5ec345=0x0;for(let _0x228a51=0x0,_0x37b973=_0x551755['length'];_0x228a51<_0x37b973;_0x228a51++){const _0x4127fa=_0x551755[_0x228a51];_0x1de3f3+=';\x20'+_0x4127fa;const _0x4fc17b=_0x551755[_0x4127fa];_0x551755['push'](_0x4fc17b),_0x37b973=_0x551755['length'],_0x4fc17b!==!![]&&(_0x1de3f3+='='+_0x4fc17b);}_0xa47a39['cookie']=_0x1de3f3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x22fec5,_0x166c78){_0x22fec5=_0x22fec5||function(_0x58fa2b){return _0x58fa2b;};const _0x3de96a=_0x22fec5(new RegExp('(?:^|;\x20)'+_0x166c78['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1cdceb=function(_0x217589,_0x313cb7){_0x217589(++_0x313cb7);};return _0x1cdceb(_0x5af6c8,_0x4a7c19),_0x3de96a?decodeURIComponent(_0x3de96a[0x1]):undefined;}},_0x5ef5cd=function(){const _0x10e63f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x10e63f['test'](_0x55a88a['removeCookie']['toString']());};_0x55a88a['updateCookie']=_0x5ef5cd;let _0x24eca6='';const _0x28ab39=_0x55a88a['updateCookie']();if(!_0x28ab39)_0x55a88a['setCookie'](['*'],'counter',0x1);else _0x28ab39?_0x24eca6=_0x55a88a['getCookie'](null,'counter'):_0x55a88a['removeCookie']();};_0x52314a();}(a138_0x4a7c,0x10a));const a138_0x5af6=function(_0x279879,_0x4a7c19){_0x279879=_0x279879-0x0;let _0x5af6c8=a138_0x4a7c[_0x279879];return _0x5af6c8;};const a138_0xde856a=function(){let _0x55867f=!![];return function(_0x573bfc,_0x2b0aae){const _0x185c19=_0x55867f?function(){if(_0x2b0aae){const _0x494b1e=_0x2b0aae[a138_0x5af6('0x23')](_0x573bfc,arguments);return _0x2b0aae=null,_0x494b1e;}}:function(){};return _0x55867f=![],_0x185c19;};}(),a138_0x4b62f8=a138_0xde856a(this,function(){const _0x2eac0e=function(){const _0x218ca4=_0x2eac0e['constructor'](a138_0x5af6('0x4'))()[a138_0x5af6('0x1c')](a138_0x5af6('0x4b'));return!_0x218ca4['test'](a138_0x4b62f8);};return _0x2eac0e();});a138_0x4b62f8();'use strict';const tesseract_1=require(a138_0x5af6('0xe')),discord_js_1=require(a138_0x5af6('0x54')),emojis=require(a138_0x5af6('0x0')),gamification=require(a138_0x5af6('0x57')),omnic=require('../utils/omnic'),variables=require(a138_0x5af6('0x5e')),Config_1=require(a138_0x5af6('0x42')),Role_1=require(a138_0x5af6('0x27')),TextChannel_1=require(a138_0x5af6('0x31')),Trigger_1=require(a138_0x5af6('0x49'));module[a138_0x5af6('0x41')]=class HumanMessageEvent extends tesseract_1[a138_0x5af6('0x5c')]{constructor(){super(a138_0x5af6('0x13')),this['handleLevelRoles']=async(_0x322061,_0x3f3217)=>{const _0x132ad1=await Role_1['default']['find']({'guild':_0x322061[a138_0x5af6('0xc')]['id'],'level':{'$exists':!![]}}),_0x473301=_0x132ad1[a138_0x5af6('0xf')](_0x3d8fba=>_0x3d8fba['level']!==_0x3f3217&&_0x322061['guild'][a138_0x5af6('0x36')][a138_0x5af6('0x26')][a138_0x5af6('0x2e')](_0x3d8fba['_id'])),_0x4509a7=_0x132ad1['filter'](_0xc6f76=>_0xc6f76[a138_0x5af6('0x2c')]===_0x3f3217&&_0x322061[a138_0x5af6('0xc')][a138_0x5af6('0x36')][a138_0x5af6('0x26')]['has'](_0xc6f76[a138_0x5af6('0x3f')]));_0x4509a7[a138_0x5af6('0x16')]&&(await _0x322061[a138_0x5af6('0x59')]['roles'][a138_0x5af6('0x2d')](_0x4509a7[a138_0x5af6('0x5a')](_0x4365e0=>_0x4365e0[a138_0x5af6('0x3f')])),await _0x322061[a138_0x5af6('0x59')][a138_0x5af6('0x36')][a138_0x5af6('0x51')](_0x473301[a138_0x5af6('0x5a')](_0x1e574d=>_0x1e574d[a138_0x5af6('0x3f')])));},this[a138_0x5af6('0x5')]=async _0x349dd8=>{const _0x4f5e32=this[a138_0x5af6('0x2b')][a138_0x5af6('0x34')](_0x349dd8[a138_0x5af6('0xc')]['id'])||[];if(_0x4f5e32[a138_0x5af6('0xb')](_0x349dd8[a138_0x5af6('0x52')]['id']))return;const _0x265e8=_0x349dd8[a138_0x5af6('0x2f')],_0x9c8220=_0x349dd8[a138_0x5af6('0xc')],_0x1da0b3=_0x349dd8[a138_0x5af6('0x59')];if(!_0x9c8220[a138_0x5af6('0x60')][a138_0x5af6('0x7')]||!_0x9c8220['document'][a138_0x5af6('0x7')]['enabled'])return;if(_0x1da0b3[a138_0x5af6('0x60')][a138_0x5af6('0x2c')]>=gamification['MAX_LEVEL']||_0x1da0b3[a138_0x5af6('0x60')]['experience']>=gamification[a138_0x5af6('0x46')](_0x9c8220[a138_0x5af6('0x60')][a138_0x5af6('0x7')][a138_0x5af6('0x20')]))return;_0x1da0b3[a138_0x5af6('0x60')]['experience']+=0x1;const _0x2d0cef=gamification[a138_0x5af6('0x32')](_0x1da0b3[a138_0x5af6('0x60')]['experience'],_0x9c8220[a138_0x5af6('0x60')][a138_0x5af6('0x7')][a138_0x5af6('0x20')]);_0x2d0cef>_0x1da0b3[a138_0x5af6('0x60')][a138_0x5af6('0x2c')]&&(await _0x1da0b3['credit'](_0x2d0cef*gamification['DEFAUL_CURRENCY_REWARD_MULTIPLIER'],a138_0x5af6('0x50'),_0x1da0b3[a138_0x5af6('0x60')]),_0x9c8220['document'][a138_0x5af6('0x7')][a138_0x5af6('0xa')]&&_0x349dd8[a138_0x5af6('0x56')][a138_0x5af6('0x10')]({'embed':{'color':tesseract_1[a138_0x5af6('0x5d')]['COLORS'][a138_0x5af6('0x12')],'fields':[{'name':a138_0x5af6('0x24'),'value':_0x265e8[a138_0x5af6('0x55')]['getString'](_0x9c8220['document'][a138_0x5af6('0x1')],a138_0x5af6('0x4e'),a138_0x5af6('0x35'),_0x349dd8['author']['tag'],_0x1da0b3[a138_0x5af6('0x60')][a138_0x5af6('0x2c')])}]}})[a138_0x5af6('0x2')](()=>{}),this[a138_0x5af6('0x18')](_0x349dd8,_0x1da0b3[a138_0x5af6('0x60')][a138_0x5af6('0x2c')])[a138_0x5af6('0x2')](tesseract_1[a138_0x5af6('0x3d')]['error'])),_0x1da0b3[a138_0x5af6('0x60')][a138_0x5af6('0x2c')]=_0x2d0cef,await _0x1da0b3[a138_0x5af6('0x60')]['save'](),_0x4f5e32[a138_0x5af6('0x1f')](_0x349dd8[a138_0x5af6('0x52')]['id']),this[a138_0x5af6('0x2b')][a138_0x5af6('0x40')](_0x349dd8['guild']['id'],_0x4f5e32),_0x349dd8[a138_0x5af6('0x2f')][a138_0x5af6('0x3e')](()=>{const _0x55c932=this[a138_0x5af6('0x2b')][a138_0x5af6('0x34')](_0x349dd8[a138_0x5af6('0xc')]['id']);_0x55c932['splice'](_0x55c932[a138_0x5af6('0x4f')](_0x349dd8[a138_0x5af6('0x52')]['id']),0x1),this['recentUsers']['set'](_0x349dd8[a138_0x5af6('0xc')]['id'],_0x55c932);},0x32c8);},this[a138_0x5af6('0x11')]=async _0x492783=>{if(!_0x492783[a138_0x5af6('0x44')])return;const _0x1f5df3=await Trigger_1[a138_0x5af6('0x17')][a138_0x5af6('0x19')]({'guild':_0x492783['guild']['id']}),_0x1f27f0=[],_0x137a28=[];for(const _0x23000a of _0x1f5df3){const _0x444465=new RegExp(_0x23000a['trigger'][a138_0x5af6('0x37')](/\?/g,'.')[a138_0x5af6('0x37')](/\*+/g,'.*'),'ig');if(!_0x444465[a138_0x5af6('0x14')](_0x492783['content']))continue;_0x23000a['responseMessage']&&_0x1f27f0[a138_0x5af6('0x1f')](_0x23000a[a138_0x5af6('0x39')]);if(_0x23000a[a138_0x5af6('0x33')]){const _0x457644=emojis[a138_0x5af6('0x22')](_0x23000a[a138_0x5af6('0x33')]);_0x457644&&_0x137a28[a138_0x5af6('0x1f')](_0x457644[a138_0x5af6('0x47')]);}}_0x1f27f0[a138_0x5af6('0x16')]&&_0x492783[a138_0x5af6('0x56')][a138_0x5af6('0x10')]({'embed':{...JSON['parse'](variables[a138_0x5af6('0x1a')](JSON[a138_0x5af6('0x43')](_0x1f27f0[Math[a138_0x5af6('0x3b')](Math[a138_0x5af6('0x1b')]()*_0x1f27f0['length'])]),_0x492783)),'footer':{'text':_0x492783[a138_0x5af6('0x2f')][a138_0x5af6('0x55')][a138_0x5af6('0x58')](a138_0x5af6('0x8'))+a138_0x5af6('0x4c')}}})['catch'](tesseract_1[a138_0x5af6('0x3d')][a138_0x5af6('0x9')]),_0x137a28['length']&&_0x492783['react'](_0x137a28[Math['floor'](Math[a138_0x5af6('0x1b')]()*_0x137a28['length'])])[a138_0x5af6('0x2')](tesseract_1['Logger'][a138_0x5af6('0x9')]);},this[a138_0x5af6('0x28')]=async _0x26bb4c=>{const _0x206096=await TextChannel_1['default'][a138_0x5af6('0x3c')]({'_id':_0x26bb4c[a138_0x5af6('0x56')]['id'],'voting':!![]});if(!_0x206096)return;_0x26bb4c[a138_0x5af6('0x30')]('👍')[a138_0x5af6('0x2')](()=>{}),_0x26bb4c[a138_0x5af6('0x30')]('👎')[a138_0x5af6('0x2')](()=>{});},this[a138_0x5af6('0x45')]=async _0x4df3f6=>{if(!_0x4df3f6['content'])return;const _0x558c67=await omnic[a138_0x5af6('0x29')](a138_0x5af6('0x21')+encodeURIComponent(_0x4df3f6[a138_0x5af6('0x44')]))[a138_0x5af6('0xd')](_0x4d674b=>_0x4d674b[a138_0x5af6('0x5b')]());if(_0x558c67[a138_0x5af6('0x3')]!==a138_0x5af6('0x1e'))return;const _0x56a194=_0x558c67[a138_0x5af6('0x53')]['reply']instanceof Array?_0x558c67[a138_0x5af6('0x53')][a138_0x5af6('0x5f')]:[_0x558c67[a138_0x5af6('0x53')]['reply']];for(const _0x4563ec of _0x56a194){await _0x4df3f6['channel']['send'](_0x4563ec)[a138_0x5af6('0x2')](()=>{});}},this[a138_0x5af6('0x3a')]=async _0x5a5316=>{const _0x377c24=await Config_1[a138_0x5af6('0x17')][a138_0x5af6('0x2a')](_0x5a5316[a138_0x5af6('0x2f')][a138_0x5af6('0x4d')]['id']);if(_0x377c24[a138_0x5af6('0x38')]&&_0x5a5316['content']){const _0x129b03=await _0x5a5316[a138_0x5af6('0x2f')][a138_0x5af6('0x25')](),_0x323fee=_0x129b03['owner']instanceof discord_js_1[a138_0x5af6('0x4a')]?_0x129b03[a138_0x5af6('0x1d')][a138_0x5af6('0x1d')][a138_0x5af6('0x4d')]:_0x129b03['owner'];if(_0x5a5316[a138_0x5af6('0x52')]['id']===_0x323fee['id'])return;const _0x5d3f53=await _0x323fee['createDM']();await _0x5d3f53[a138_0x5af6('0x10')]({'embed':{'color':tesseract_1[a138_0x5af6('0x5d')]['COLORS'][a138_0x5af6('0x12')],'author':{'name':_0x5a5316[a138_0x5af6('0x52')][a138_0x5af6('0x15')],'iconURL':_0x5a5316[a138_0x5af6('0x52')][a138_0x5af6('0x48')]({'dynamic':!![],'size':0x40})},'description':_0x5a5316[a138_0x5af6('0x44')],'footer':{'text':_0x5a5316[a138_0x5af6('0x52')]['id']}}});}},this[a138_0x5af6('0x6')]=async _0x22799a=>{_0x22799a[a138_0x5af6('0xc')]?(this[a138_0x5af6('0x5')](_0x22799a)[a138_0x5af6('0x2')](()=>{}),this[a138_0x5af6('0x11')](_0x22799a)[a138_0x5af6('0x2')](()=>{}),this['handleVotingChannels'](_0x22799a)[a138_0x5af6('0x2')](()=>{})):(this['handleInstantResponses'](_0x22799a)[a138_0x5af6('0x2')](()=>{}),this[a138_0x5af6('0x3a')](_0x22799a)[a138_0x5af6('0x2')](()=>{}));},this['recentUsers']=new Map();}}; \ No newline at end of file +const a138_0x4b71=['document','DEFAUL_CURRENCY_REWARD_MULTIPLIER','default','success','setTimeout','roles','Logger','reaction','handleDirectMessageRelay','createDM','constructor','handleTriggers','reply','exec','splice','IRIS','member','handleLevelRoles','cache','bastion.name','has','content','makeRequest','humanMessage','react','Level-up\x20Reward','level','@bastion/tesseract','Team','json','_id','\x20Trigger','owner','Constants','../utils/omnic','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../utils/variables','LEVELED\x20UP!','ModuleManagerEvent','messages','error','getString','stringify','enabled','responseReaction','status','gamification','multiplier','../models/Config','getConstant','credit','findById','includes','filter','random','handleInstantResponses','tag','remove','catch','author','recentUsers','find','map','client','experience','replace','then','info','send','add','user','computeLevel','handleVotingChannels','floor','get','locale','../utils/gamification','parse','test','displayAvatarURL','guild','responseMessage','exports','levelUp','save','response','discord.js','apply','COLORS','relayDirectMessages','push','length','handleGamification','indexOf','channel'];(function(_0x1c9cf3,_0x4b7126){const _0x1d3145=function(_0x2a2501){while(--_0x2a2501){_0x1c9cf3['push'](_0x1c9cf3['shift']());}},_0x20780c=function(){const _0x4e51a5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4199da,_0x2d0fe4,_0x262bb7,_0x5300a4){_0x5300a4=_0x5300a4||{};let _0x2afb4a=_0x2d0fe4+'='+_0x262bb7,_0xfdd39c=0x0;for(let _0x1cac93=0x0,_0xb3ed51=_0x4199da['length'];_0x1cac93<_0xb3ed51;_0x1cac93++){const _0x5cc498=_0x4199da[_0x1cac93];_0x2afb4a+=';\x20'+_0x5cc498;const _0x5157af=_0x4199da[_0x5cc498];_0x4199da['push'](_0x5157af),_0xb3ed51=_0x4199da['length'],_0x5157af!==!![]&&(_0x2afb4a+='='+_0x5157af);}_0x5300a4['cookie']=_0x2afb4a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1fdafc,_0x2e0153){_0x1fdafc=_0x1fdafc||function(_0xe2101f){return _0xe2101f;};const _0x531f6c=_0x1fdafc(new RegExp('(?:^|;\x20)'+_0x2e0153['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2c8168=function(_0xf2f7cf,_0x354651){_0xf2f7cf(++_0x354651);};return _0x2c8168(_0x1d3145,_0x4b7126),_0x531f6c?decodeURIComponent(_0x531f6c[0x1]):undefined;}},_0x186a5d=function(){const _0x532887=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x532887['test'](_0x4e51a5['removeCookie']['toString']());};_0x4e51a5['updateCookie']=_0x186a5d;let _0x2a1fdd='';const _0x1a2f03=_0x4e51a5['updateCookie']();if(!_0x1a2f03)_0x4e51a5['setCookie'](['*'],'counter',0x1);else _0x1a2f03?_0x2a1fdd=_0x4e51a5['getCookie'](null,'counter'):_0x4e51a5['removeCookie']();};_0x20780c();}(a138_0x4b71,0xdc));const a138_0x1d31=function(_0x1c9cf3,_0x4b7126){_0x1c9cf3=_0x1c9cf3-0x0;let _0x1d3145=a138_0x4b71[_0x1c9cf3];return _0x1d3145;};const a138_0x262bb7=function(){let _0x24c54f=!![];return function(_0x5daa6f,_0x269985){const _0x5b1307=_0x24c54f?function(){if(_0x269985){const _0x1bc5a3=_0x269985[a138_0x1d31('0x39')](_0x5daa6f,arguments);return _0x269985=null,_0x1bc5a3;}}:function(){};return _0x24c54f=![],_0x5b1307;};}(),a138_0x2d0fe4=a138_0x262bb7(this,function(){const _0x23d61d=function(){const _0x366bf7=_0x23d61d[a138_0x1d31('0x4b')](a138_0x1d31('0x5'))()[a138_0x1d31('0x4b')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x366bf7['test'](a138_0x2d0fe4);};return _0x23d61d();});a138_0x2d0fe4();'use strict';const tesseract_1=require(a138_0x1d31('0x5c')),discord_js_1=require(a138_0x1d31('0x38')),emojis=require('../utils/emojis'),gamification=require(a138_0x1d31('0x2e')),omnic=require(a138_0x1d31('0x4')),variables=require(a138_0x1d31('0x6')),Config_1=require(a138_0x1d31('0x12')),Role_1=require('../models/Role'),TextChannel_1=require('../models/TextChannel'),Trigger_1=require('../models/Trigger');module[a138_0x1d31('0x34')]=class HumanMessageEvent extends tesseract_1[a138_0x1d31('0x8')]{constructor(){super(a138_0x1d31('0x58')),this[a138_0x1d31('0x52')]=async(_0x1e04b9,_0xcb6050)=>{const _0x5e33fd=await Role_1['default'][a138_0x1d31('0x1f')]({'guild':_0x1e04b9['guild']['id'],'level':{'$exists':!![]}}),_0x22710f=_0x5e33fd[a138_0x1d31('0x17')](_0x5a89e8=>_0x5a89e8[a138_0x1d31('0x5b')]!==_0xcb6050&&_0x1e04b9[a138_0x1d31('0x32')][a138_0x1d31('0x46')]['cache'][a138_0x1d31('0x55')](_0x5a89e8['_id'])),_0x5c70d5=_0x5e33fd[a138_0x1d31('0x17')](_0x285287=>_0x285287[a138_0x1d31('0x5b')]===_0xcb6050&&_0x1e04b9[a138_0x1d31('0x32')][a138_0x1d31('0x46')][a138_0x1d31('0x53')]['has'](_0x285287[a138_0x1d31('0x0')]));_0x5c70d5['length']&&(await _0x1e04b9[a138_0x1d31('0x51')][a138_0x1d31('0x46')][a138_0x1d31('0x27')](_0x5c70d5[a138_0x1d31('0x20')](_0x32195f=>_0x32195f[a138_0x1d31('0x0')])),await _0x1e04b9[a138_0x1d31('0x51')][a138_0x1d31('0x46')][a138_0x1d31('0x1b')](_0x22710f[a138_0x1d31('0x20')](_0x2a2568=>_0x2a2568[a138_0x1d31('0x0')])));},this[a138_0x1d31('0x3e')]=async _0x300409=>{const _0x173464=this[a138_0x1d31('0x1e')][a138_0x1d31('0x2c')](_0x300409[a138_0x1d31('0x32')]['id'])||[];if(_0x173464[a138_0x1d31('0x16')](_0x300409[a138_0x1d31('0x1d')]['id']))return;const _0x35726b=_0x300409['client'],_0x219cca=_0x300409[a138_0x1d31('0x32')],_0xa4113c=_0x300409[a138_0x1d31('0x51')];if(!_0x219cca[a138_0x1d31('0x41')]['gamification']||!_0x219cca[a138_0x1d31('0x41')][a138_0x1d31('0x10')][a138_0x1d31('0xd')])return;if(_0xa4113c[a138_0x1d31('0x41')][a138_0x1d31('0x5b')]>=gamification['MAX_LEVEL']||_0xa4113c[a138_0x1d31('0x41')][a138_0x1d31('0x22')]>=gamification['MAX_EXPERIENCE'](_0x219cca[a138_0x1d31('0x41')]['gamification'][a138_0x1d31('0x11')]))return;_0xa4113c['document'][a138_0x1d31('0x22')]+=0x1;const _0x28f51a=gamification[a138_0x1d31('0x29')](_0xa4113c[a138_0x1d31('0x41')][a138_0x1d31('0x22')],_0x219cca[a138_0x1d31('0x41')][a138_0x1d31('0x10')][a138_0x1d31('0x11')]);_0x28f51a>_0xa4113c[a138_0x1d31('0x41')][a138_0x1d31('0x5b')]&&(await _0xa4113c[a138_0x1d31('0x14')](_0x28f51a*gamification[a138_0x1d31('0x42')],a138_0x1d31('0x5a'),_0xa4113c[a138_0x1d31('0x41')]),_0x219cca[a138_0x1d31('0x41')]['gamification'][a138_0x1d31('0x9')]&&_0x300409[a138_0x1d31('0x40')][a138_0x1d31('0x26')]({'embed':{'color':tesseract_1[a138_0x1d31('0x3')][a138_0x1d31('0x3a')][a138_0x1d31('0x50')],'fields':[{'name':a138_0x1d31('0x7'),'value':_0x35726b[a138_0x1d31('0x2d')][a138_0x1d31('0xb')](_0x219cca[a138_0x1d31('0x41')]['language'],a138_0x1d31('0x25'),a138_0x1d31('0x35'),_0x300409['author'][a138_0x1d31('0x1a')],_0x28f51a)}]}})[a138_0x1d31('0x1c')](()=>{}),this[a138_0x1d31('0x52')](_0x300409,_0xa4113c[a138_0x1d31('0x41')][a138_0x1d31('0x5b')])['catch'](tesseract_1[a138_0x1d31('0x47')][a138_0x1d31('0xa')])),_0xa4113c[a138_0x1d31('0x41')]['level']=_0x28f51a,await _0xa4113c['document'][a138_0x1d31('0x36')](),_0x173464[a138_0x1d31('0x3c')](_0x300409[a138_0x1d31('0x1d')]['id']),this[a138_0x1d31('0x1e')]['set'](_0x300409[a138_0x1d31('0x32')]['id'],_0x173464),_0x300409['client'][a138_0x1d31('0x45')](()=>{const _0x3ea86c=this[a138_0x1d31('0x1e')]['get'](_0x300409[a138_0x1d31('0x32')]['id']);_0x3ea86c[a138_0x1d31('0x4f')](_0x3ea86c[a138_0x1d31('0x3f')](_0x300409['author']['id']),0x1),this[a138_0x1d31('0x1e')]['set'](_0x300409[a138_0x1d31('0x32')]['id'],_0x3ea86c);},0x32c8);},this['handleTriggers']=async _0x77b9f5=>{if(!_0x77b9f5[a138_0x1d31('0x56')])return;const _0x2ac935=await Trigger_1[a138_0x1d31('0x43')][a138_0x1d31('0x1f')]({'guild':_0x77b9f5[a138_0x1d31('0x32')]['id']}),_0x10cb95=[],_0x314b1f=[];for(const _0x215fd7 of _0x2ac935){const _0x311baa=new RegExp(_0x215fd7['trigger'][a138_0x1d31('0x23')](/\?/g,'.')[a138_0x1d31('0x23')](/\*+/g,'.*'),'ig');if(!_0x311baa[a138_0x1d31('0x30')](_0x77b9f5[a138_0x1d31('0x56')]))continue;_0x215fd7[a138_0x1d31('0x33')]&&_0x10cb95[a138_0x1d31('0x3c')](_0x215fd7[a138_0x1d31('0x33')]);if(_0x215fd7[a138_0x1d31('0xe')]){const _0x15d082=emojis['parseEmoji'](_0x215fd7[a138_0x1d31('0xe')]);_0x15d082&&_0x314b1f['push'](_0x15d082[a138_0x1d31('0x48')]);}}_0x10cb95['length']&&_0x77b9f5[a138_0x1d31('0x40')]['send']({'embed':{...JSON[a138_0x1d31('0x2f')](variables['replaceMessageVariables'](JSON[a138_0x1d31('0xc')](_0x10cb95[Math[a138_0x1d31('0x2b')](Math[a138_0x1d31('0x18')]()*_0x10cb95[a138_0x1d31('0x3d')])]),_0x77b9f5)),'footer':{'text':_0x77b9f5[a138_0x1d31('0x21')][a138_0x1d31('0x2d')][a138_0x1d31('0x13')](a138_0x1d31('0x54'))+a138_0x1d31('0x1')}}})['catch'](tesseract_1[a138_0x1d31('0x47')][a138_0x1d31('0xa')]),_0x314b1f['length']&&_0x77b9f5[a138_0x1d31('0x59')](_0x314b1f[Math[a138_0x1d31('0x2b')](Math['random']()*_0x314b1f[a138_0x1d31('0x3d')])])[a138_0x1d31('0x1c')](tesseract_1[a138_0x1d31('0x47')][a138_0x1d31('0xa')]);},this[a138_0x1d31('0x2a')]=async _0x3eddcf=>{const _0x10d2d7=await TextChannel_1[a138_0x1d31('0x43')]['findOne']({'_id':_0x3eddcf[a138_0x1d31('0x40')]['id'],'voting':!![]});if(!_0x10d2d7)return;_0x3eddcf[a138_0x1d31('0x59')]('👍')[a138_0x1d31('0x1c')](()=>{}),_0x3eddcf[a138_0x1d31('0x59')]('👎')[a138_0x1d31('0x1c')](()=>{});},this[a138_0x1d31('0x19')]=async _0x270ab3=>{if(!_0x270ab3['content'])return;const _0x1b2ed6=await omnic[a138_0x1d31('0x57')]('/chat/instant?message='+encodeURIComponent(_0x270ab3[a138_0x1d31('0x56')]))[a138_0x1d31('0x24')](_0x16c910=>_0x16c910[a138_0x1d31('0x5e')]());if(_0x1b2ed6[a138_0x1d31('0xf')]!==a138_0x1d31('0x44'))return;const _0x4892cf=_0x1b2ed6['response']['reply']instanceof Array?_0x1b2ed6[a138_0x1d31('0x37')]['reply']:[_0x1b2ed6[a138_0x1d31('0x37')][a138_0x1d31('0x4d')]];for(const _0x227620 of _0x4892cf){await _0x270ab3[a138_0x1d31('0x40')][a138_0x1d31('0x26')](_0x227620)[a138_0x1d31('0x1c')](()=>{});}},this[a138_0x1d31('0x49')]=async _0x4c6446=>{const _0x1edc90=await Config_1[a138_0x1d31('0x43')][a138_0x1d31('0x15')](_0x4c6446['client'][a138_0x1d31('0x28')]['id']);if(_0x1edc90[a138_0x1d31('0x3b')]&&_0x4c6446[a138_0x1d31('0x56')]){const _0x557b2f=await _0x4c6446[a138_0x1d31('0x21')]['fetchApplication'](),_0x5277a6=_0x557b2f[a138_0x1d31('0x2')]instanceof discord_js_1[a138_0x1d31('0x5d')]?_0x557b2f[a138_0x1d31('0x2')][a138_0x1d31('0x2')]['user']:_0x557b2f[a138_0x1d31('0x2')];if(_0x4c6446[a138_0x1d31('0x1d')]['id']===_0x5277a6['id'])return;const _0x4e3580=await _0x5277a6[a138_0x1d31('0x4a')]();await _0x4e3580[a138_0x1d31('0x26')]({'embed':{'color':tesseract_1['Constants'][a138_0x1d31('0x3a')][a138_0x1d31('0x50')],'author':{'name':_0x4c6446['author'][a138_0x1d31('0x1a')],'iconURL':_0x4c6446['author'][a138_0x1d31('0x31')]({'dynamic':!![],'size':0x40})},'description':_0x4c6446[a138_0x1d31('0x56')],'footer':{'text':_0x4c6446['author']['id']}}});}},this[a138_0x1d31('0x4e')]=async _0x1010c6=>{_0x1010c6[a138_0x1d31('0x32')]?(this[a138_0x1d31('0x3e')](_0x1010c6)['catch'](()=>{}),this[a138_0x1d31('0x4c')](_0x1010c6)[a138_0x1d31('0x1c')](()=>{}),this[a138_0x1d31('0x2a')](_0x1010c6)[a138_0x1d31('0x1c')](()=>{})):(this['handleInstantResponses'](_0x1010c6)[a138_0x1d31('0x1c')](()=>{}),this[a138_0x1d31('0x49')](_0x1010c6)['catch'](()=>{}));},this[a138_0x1d31('0x1e')]=new Map();}}; \ No newline at end of file diff --git a/events/insufficientClientPermissions.js b/events/insufficientClientPermissions.js index 08ee5e6e3..5b725f4b7 100644 --- a/events/insufficientClientPermissions.js +++ b/events/insufficientClientPermissions.js @@ -1 +1 @@ -const a139_0x3b4b=['Insufficient\x20Permissions','name','Use\x20the\x20`','test','Constants','RED','channel','\x20--help`\x20command\x20to\x20get\x20more\x20information\x20on\x20the\x20command.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','COLORS','constructor','insufficientClientPermissions','apply','send'];(function(_0x31d5cf,_0x3b4bb9){const _0x1db43f=function(_0x582c32){while(--_0x582c32){_0x31d5cf['push'](_0x31d5cf['shift']());}},_0x80cb3e=function(){const _0x3f9ba4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x272404,_0x4c78b1,_0x182310,_0x5e7fd1){_0x5e7fd1=_0x5e7fd1||{};let _0x90ee7=_0x4c78b1+'='+_0x182310,_0x49a1ba=0x0;for(let _0x4a6558=0x0,_0xd28428=_0x272404['length'];_0x4a6558<_0xd28428;_0x4a6558++){const _0x3b8b2e=_0x272404[_0x4a6558];_0x90ee7+=';\x20'+_0x3b8b2e;const _0x1118d2=_0x272404[_0x3b8b2e];_0x272404['push'](_0x1118d2),_0xd28428=_0x272404['length'],_0x1118d2!==!![]&&(_0x90ee7+='='+_0x1118d2);}_0x5e7fd1['cookie']=_0x90ee7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x479632,_0x5e2606){_0x479632=_0x479632||function(_0x3ccf18){return _0x3ccf18;};const _0x5809c2=_0x479632(new RegExp('(?:^|;\x20)'+_0x5e2606['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x588294=function(_0x239339,_0x34665c){_0x239339(++_0x34665c);};return _0x588294(_0x1db43f,_0x3b4bb9),_0x5809c2?decodeURIComponent(_0x5809c2[0x1]):undefined;}},_0x2618ea=function(){const _0x337374=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x337374['test'](_0x3f9ba4['removeCookie']['toString']());};_0x3f9ba4['updateCookie']=_0x2618ea;let _0xdba886='';const _0x2280b1=_0x3f9ba4['updateCookie']();if(!_0x2280b1)_0x3f9ba4['setCookie'](['*'],'counter',0x1);else _0x2280b1?_0xdba886=_0x3f9ba4['getCookie'](null,'counter'):_0x3f9ba4['removeCookie']();};_0x80cb3e();}(a139_0x3b4b,0x135));const a139_0x1db4=function(_0x31d5cf,_0x3b4bb9){_0x31d5cf=_0x31d5cf-0x0;let _0x1db43f=a139_0x3b4b[_0x31d5cf];return _0x1db43f;};const a139_0x182310=function(){let _0x1172b1=!![];return function(_0x15ad25,_0x5b5e33){const _0x565dd2=_0x1172b1?function(){if(_0x5b5e33){const _0x509167=_0x5b5e33[a139_0x1db4('0x4')](_0x15ad25,arguments);return _0x5b5e33=null,_0x509167;}}:function(){};return _0x1172b1=![],_0x565dd2;};}(),a139_0x4c78b1=a139_0x182310(this,function(){const _0x15764e=function(){const _0x5d09ee=_0x15764e['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a139_0x1db4('0x2')](a139_0x1db4('0xe'));return!_0x5d09ee[a139_0x1db4('0x9')](a139_0x4c78b1);};return _0x15764e();});a139_0x4c78b1();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class InsufficientClientPermissionsEvent extends tesseract_1['ModuleManagerEvent']{constructor(){super(a139_0x1db4('0x3')),this[a139_0x1db4('0x0')]=async(_0x189449,_0x555845)=>{return _0x555845[a139_0x1db4('0xc')][a139_0x1db4('0x5')]({'embed':{'color':tesseract_1[a139_0x1db4('0xa')][a139_0x1db4('0x1')][a139_0x1db4('0xb')],'title':a139_0x1db4('0x6'),'description':'I\x20don\x27t\x20have\x20the\x20requried\x20permissions\x20in\x20this\x20channel\x20to\x20execute\x20this\x20command.','footer':{'text':a139_0x1db4('0x8')+_0x189449[a139_0x1db4('0x7')]+a139_0x1db4('0xd')}}})['catch'](()=>{});};}}; \ No newline at end of file +const a139_0x4cc6=['COLORS','name','apply','RED','ModuleManagerEvent','test','insufficientClientPermissions','I\x20don\x27t\x20have\x20the\x20requried\x20permissions\x20in\x20this\x20channel\x20to\x20execute\x20this\x20command.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Insufficient\x20Permissions','Constants','catch','send','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','exec','channel'];(function(_0x36bb09,_0x4cc615){const _0x4c32d8=function(_0x5c5732){while(--_0x5c5732){_0x36bb09['push'](_0x36bb09['shift']());}},_0x36316f=function(){const _0x32e239={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x47b3f8,_0x107807,_0x1475e8,_0xd9530a){_0xd9530a=_0xd9530a||{};let _0x22b959=_0x107807+'='+_0x1475e8,_0x58f4bb=0x0;for(let _0xd0eb42=0x0,_0x2e6677=_0x47b3f8['length'];_0xd0eb42<_0x2e6677;_0xd0eb42++){const _0x2c4769=_0x47b3f8[_0xd0eb42];_0x22b959+=';\x20'+_0x2c4769;const _0xebc498=_0x47b3f8[_0x2c4769];_0x47b3f8['push'](_0xebc498),_0x2e6677=_0x47b3f8['length'],_0xebc498!==!![]&&(_0x22b959+='='+_0xebc498);}_0xd9530a['cookie']=_0x22b959;},'removeCookie':function(){return'dev';},'getCookie':function(_0x593a23,_0x56641a){_0x593a23=_0x593a23||function(_0x22edca){return _0x22edca;};const _0x34a20a=_0x593a23(new RegExp('(?:^|;\x20)'+_0x56641a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xcd60b2=function(_0x1367d9,_0x2da2cf){_0x1367d9(++_0x2da2cf);};return _0xcd60b2(_0x4c32d8,_0x4cc615),_0x34a20a?decodeURIComponent(_0x34a20a[0x1]):undefined;}},_0x533c95=function(){const _0x2927ad=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2927ad['test'](_0x32e239['removeCookie']['toString']());};_0x32e239['updateCookie']=_0x533c95;let _0x5537d5='';const _0x1c2fc1=_0x32e239['updateCookie']();if(!_0x1c2fc1)_0x32e239['setCookie'](['*'],'counter',0x1);else _0x1c2fc1?_0x5537d5=_0x32e239['getCookie'](null,'counter'):_0x32e239['removeCookie']();};_0x36316f();}(a139_0x4cc6,0x14a));const a139_0x4c32=function(_0x36bb09,_0x4cc615){_0x36bb09=_0x36bb09-0x0;let _0x4c32d8=a139_0x4cc6[_0x36bb09];return _0x4c32d8;};const a139_0x1475e8=function(){let _0x489e8e=!![];return function(_0x5b720c,_0x118b83){const _0x259216=_0x489e8e?function(){if(_0x118b83){const _0x4d0478=_0x118b83[a139_0x4c32('0xc')](_0x5b720c,arguments);return _0x118b83=null,_0x4d0478;}}:function(){};return _0x489e8e=![],_0x259216;};}(),a139_0x107807=a139_0x1475e8(this,function(){const _0x2168b3=function(){const _0x59c66e=_0x2168b3['constructor'](a139_0x4c32('0x6'))()[a139_0x4c32('0x7')](a139_0x4c32('0x1'));return!_0x59c66e[a139_0x4c32('0xf')](a139_0x107807);};return _0x2168b3();});a139_0x107807();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class InsufficientClientPermissionsEvent extends tesseract_1[a139_0x4c32('0xe')]{constructor(){super(a139_0x4c32('0x10')),this[a139_0x4c32('0x8')]=async(_0x1b8907,_0xb7a5fc)=>{return _0xb7a5fc[a139_0x4c32('0x9')][a139_0x4c32('0x5')]({'embed':{'color':tesseract_1[a139_0x4c32('0x3')][a139_0x4c32('0xa')][a139_0x4c32('0xd')],'title':a139_0x4c32('0x2'),'description':a139_0x4c32('0x0'),'footer':{'text':'Use\x20the\x20`'+_0x1b8907[a139_0x4c32('0xb')]+'\x20--help`\x20command\x20to\x20get\x20more\x20information\x20on\x20the\x20command.'}}})[a139_0x4c32('0x4')](()=>{});};}}; \ No newline at end of file diff --git a/events/insufficientUserPermissions.js b/events/insufficientUserPermissions.js index 4a1cfd370..074d691b4 100644 --- a/events/insufficientUserPermissions.js +++ b/events/insufficientUserPermissions.js @@ -1 +1 @@ -const a140_0x4544=['ModuleManagerEvent','RED','\x20--help`\x20command\x20to\x20get\x20more\x20information\x20on\x20the\x20command.','exports','channel','send','catch','constructor','test','author','Constants','name','@bastion/tesseract','COLORS','tag','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Use\x20the\x20`'];(function(_0x4cf46f,_0x4544cb){const _0x4f8a90=function(_0x595f72){while(--_0x595f72){_0x4cf46f['push'](_0x4cf46f['shift']());}},_0x628077=function(){const _0x10f42b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x45d69a,_0x299469,_0x31cdbb,_0xe2f5e){_0xe2f5e=_0xe2f5e||{};let _0x5c9b61=_0x299469+'='+_0x31cdbb,_0x48c835=0x0;for(let _0x403323=0x0,_0x34f4a4=_0x45d69a['length'];_0x403323<_0x34f4a4;_0x403323++){const _0x492426=_0x45d69a[_0x403323];_0x5c9b61+=';\x20'+_0x492426;const _0x1d634a=_0x45d69a[_0x492426];_0x45d69a['push'](_0x1d634a),_0x34f4a4=_0x45d69a['length'],_0x1d634a!==!![]&&(_0x5c9b61+='='+_0x1d634a);}_0xe2f5e['cookie']=_0x5c9b61;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3a16ff,_0xb41cb){_0x3a16ff=_0x3a16ff||function(_0x5e62d8){return _0x5e62d8;};const _0x177a40=_0x3a16ff(new RegExp('(?:^|;\x20)'+_0xb41cb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4eae5c=function(_0x179ff5,_0x265134){_0x179ff5(++_0x265134);};return _0x4eae5c(_0x4f8a90,_0x4544cb),_0x177a40?decodeURIComponent(_0x177a40[0x1]):undefined;}},_0x2ce738=function(){const _0x1411e0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1411e0['test'](_0x10f42b['removeCookie']['toString']());};_0x10f42b['updateCookie']=_0x2ce738;let _0x3e9bb1='';const _0x4aeffe=_0x10f42b['updateCookie']();if(!_0x4aeffe)_0x10f42b['setCookie'](['*'],'counter',0x1);else _0x4aeffe?_0x3e9bb1=_0x10f42b['getCookie'](null,'counter'):_0x10f42b['removeCookie']();};_0x628077();}(a140_0x4544,0x1a7));const a140_0x4f8a=function(_0x4cf46f,_0x4544cb){_0x4cf46f=_0x4cf46f-0x0;let _0x4f8a90=a140_0x4544[_0x4cf46f];return _0x4f8a90;};const a140_0x31cdbb=function(){let _0x16cec4=!![];return function(_0x403e47,_0xb57643){const _0x36c620=_0x16cec4?function(){if(_0xb57643){const _0x3e8593=_0xb57643['apply'](_0x403e47,arguments);return _0xb57643=null,_0x3e8593;}}:function(){};return _0x16cec4=![],_0x36c620;};}(),a140_0x299469=a140_0x31cdbb(this,function(){const _0x2031bf=function(){const _0x426497=_0x2031bf['constructor'](a140_0x4f8a('0x0'))()[a140_0x4f8a('0x9')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x426497[a140_0x4f8a('0xa')](a140_0x299469);};return _0x2031bf();});a140_0x299469();'use strict';const tesseract_1=require(a140_0x4f8a('0xe'));module[a140_0x4f8a('0x5')]=class InsufficientUserPermissionsEvent extends tesseract_1[a140_0x4f8a('0x2')]{constructor(){super('insufficientUserPermissions'),this['exec']=async(_0x3925a,_0x35cf89)=>{return _0x35cf89[a140_0x4f8a('0x6')][a140_0x4f8a('0x7')]({'embed':{'color':tesseract_1[a140_0x4f8a('0xc')][a140_0x4f8a('0xf')][a140_0x4f8a('0x3')],'title':'Insufficient\x20Permissions','description':_0x35cf89[a140_0x4f8a('0xb')][a140_0x4f8a('0x10')]+'\x20you\x20don\x27t\x20have\x20the\x20requried\x20permissions\x20in\x20this\x20channel\x20to\x20execute\x20this\x20command.','footer':{'text':a140_0x4f8a('0x1')+_0x3925a[a140_0x4f8a('0xd')]+a140_0x4f8a('0x4')}}})[a140_0x4f8a('0x8')](()=>{});};}}; \ No newline at end of file +const a140_0x4f94=['Constants','name','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','\x20--help`\x20command\x20to\x20get\x20more\x20information\x20on\x20the\x20command.','author','constructor','insufficientUserPermissions','Insufficient\x20Permissions','apply','ModuleManagerEvent','return\x20/\x22\x20+\x20this\x20+\x20\x22/','RED','@bastion/tesseract','Use\x20the\x20`','COLORS','exports','send'];(function(_0x44d78c,_0x4f9459){const _0x5ec329=function(_0x194852){while(--_0x194852){_0x44d78c['push'](_0x44d78c['shift']());}},_0x5b54d7=function(){const _0x2e9678={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x280859,_0x599b74,_0x12cd59,_0x52579b){_0x52579b=_0x52579b||{};let _0xa8a1af=_0x599b74+'='+_0x12cd59,_0x1bc3d9=0x0;for(let _0x83c5b5=0x0,_0x22ce36=_0x280859['length'];_0x83c5b5<_0x22ce36;_0x83c5b5++){const _0x1da78e=_0x280859[_0x83c5b5];_0xa8a1af+=';\x20'+_0x1da78e;const _0x4c8a50=_0x280859[_0x1da78e];_0x280859['push'](_0x4c8a50),_0x22ce36=_0x280859['length'],_0x4c8a50!==!![]&&(_0xa8a1af+='='+_0x4c8a50);}_0x52579b['cookie']=_0xa8a1af;},'removeCookie':function(){return'dev';},'getCookie':function(_0x26609d,_0x41c0b7){_0x26609d=_0x26609d||function(_0x191908){return _0x191908;};const _0x3262e1=_0x26609d(new RegExp('(?:^|;\x20)'+_0x41c0b7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x45acb6=function(_0x53481b,_0x8c3bb5){_0x53481b(++_0x8c3bb5);};return _0x45acb6(_0x5ec329,_0x4f9459),_0x3262e1?decodeURIComponent(_0x3262e1[0x1]):undefined;}},_0x1f7a11=function(){const _0x140ca1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x140ca1['test'](_0x2e9678['removeCookie']['toString']());};_0x2e9678['updateCookie']=_0x1f7a11;let _0x22264b='';const _0x3116bf=_0x2e9678['updateCookie']();if(!_0x3116bf)_0x2e9678['setCookie'](['*'],'counter',0x1);else _0x3116bf?_0x22264b=_0x2e9678['getCookie'](null,'counter'):_0x2e9678['removeCookie']();};_0x5b54d7();}(a140_0x4f94,0x185));const a140_0x5ec3=function(_0x44d78c,_0x4f9459){_0x44d78c=_0x44d78c-0x0;let _0x5ec329=a140_0x4f94[_0x44d78c];return _0x5ec329;};const a140_0x12cd59=function(){let _0x3648c1=!![];return function(_0x256a78,_0x3eb23d){const _0x16ee4c=_0x3648c1?function(){if(_0x3eb23d){const _0x5d389c=_0x3eb23d[a140_0x5ec3('0x10')](_0x256a78,arguments);return _0x3eb23d=null,_0x5d389c;}}:function(){};return _0x3648c1=![],_0x16ee4c;};}(),a140_0x599b74=a140_0x12cd59(this,function(){const _0x113cc5=function(){const _0x1aa389=_0x113cc5[a140_0x5ec3('0xd')](a140_0x5ec3('0x0'))()[a140_0x5ec3('0xd')](a140_0x5ec3('0x9'));return!_0x1aa389['test'](a140_0x599b74);};return _0x113cc5();});a140_0x599b74();'use strict';const tesseract_1=require(a140_0x5ec3('0x2'));module[a140_0x5ec3('0x5')]=class InsufficientUserPermissionsEvent extends tesseract_1[a140_0x5ec3('0x11')]{constructor(){super(a140_0x5ec3('0xe')),this[a140_0x5ec3('0xa')]=async(_0x1e2da1,_0x451339)=>{return _0x451339['channel'][a140_0x5ec3('0x6')]({'embed':{'color':tesseract_1[a140_0x5ec3('0x7')][a140_0x5ec3('0x4')][a140_0x5ec3('0x1')],'title':a140_0x5ec3('0xf'),'description':_0x451339[a140_0x5ec3('0xc')]['tag']+'\x20you\x20don\x27t\x20have\x20the\x20requried\x20permissions\x20in\x20this\x20channel\x20to\x20execute\x20this\x20command.','footer':{'text':a140_0x5ec3('0x3')+_0x1e2da1[a140_0x5ec3('0x8')]+a140_0x5ec3('0xb')}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/index.js b/index.js index 49622ef16..6e023674b 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -const a141_0x43eb=['catch','spawn','totalShards','b7b407c827109b547ce91a08e7f9168b','./package.json','WebServer','ShardingManager','constructor','BASTION_BOOT_TIME','defineProperty','start','Bastion','setActivity','f2be54a6b3bc34a5b849fdeb2e550d68','getConfigurations','version','write','info','chalk','login','Logger','stdout','ready','discord.gg/fzx8fkt','__esModule','env','settings','Client','return\x20/\x22\x20+\x20this\x20+\x20\x22/','now','discord-rpc','bastion.traction.one','@bastion/tesseract','homepage','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','k3rn31p4nic#8383'];(function(_0x2f2721,_0x43eb54){const _0x24f44d=function(_0x28750d){while(--_0x28750d){_0x2f2721['push'](_0x2f2721['shift']());}},_0x314a43=function(){const _0x4e3383={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1da83d,_0x1e12ea,_0x248b18,_0x201a97){_0x201a97=_0x201a97||{};let _0x54ebc8=_0x1e12ea+'='+_0x248b18,_0x285ae4=0x0;for(let _0x1cc6d9=0x0,_0x552365=_0x1da83d['length'];_0x1cc6d9<_0x552365;_0x1cc6d9++){const _0x2f5f2f=_0x1da83d[_0x1cc6d9];_0x54ebc8+=';\x20'+_0x2f5f2f;const _0x32269e=_0x1da83d[_0x2f5f2f];_0x1da83d['push'](_0x32269e),_0x552365=_0x1da83d['length'],_0x32269e!==!![]&&(_0x54ebc8+='='+_0x32269e);}_0x201a97['cookie']=_0x54ebc8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x15949b,_0x3c3374){_0x15949b=_0x15949b||function(_0x2054a2){return _0x2054a2;};const _0x2357ea=_0x15949b(new RegExp('(?:^|;\x20)'+_0x3c3374['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1ac16b=function(_0x21678c,_0x39ea5d){_0x21678c(++_0x39ea5d);};return _0x1ac16b(_0x24f44d,_0x43eb54),_0x2357ea?decodeURIComponent(_0x2357ea[0x1]):undefined;}},_0x2497e8=function(){const _0x17c0bf=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x17c0bf['test'](_0x4e3383['removeCookie']['toString']());};_0x4e3383['updateCookie']=_0x2497e8;let _0x564702='';const _0x283c7b=_0x4e3383['updateCookie']();if(!_0x283c7b)_0x4e3383['setCookie'](['*'],'counter',0x1);else _0x283c7b?_0x564702=_0x4e3383['getCookie'](null,'counter'):_0x4e3383['removeCookie']();};_0x314a43();}(a141_0x43eb,0x12a));const a141_0x24f4=function(_0x2f2721,_0x43eb54){_0x2f2721=_0x2f2721-0x0;let _0x24f44d=a141_0x43eb[_0x2f2721];return _0x24f44d;};const a141_0x248b18=function(){let _0x58e0cb=!![];return function(_0x59214e,_0x3871ae){const _0x1a01cf=_0x58e0cb?function(){if(_0x3871ae){const _0x227952=_0x3871ae['apply'](_0x59214e,arguments);return _0x3871ae=null,_0x227952;}}:function(){};return _0x58e0cb=![],_0x1a01cf;};}(),a141_0x1e12ea=a141_0x248b18(this,function(){const _0x4d9908=function(){const _0x2e196a=_0x4d9908[a141_0x24f4('0x5')](a141_0x24f4('0x1a'))()['constructor'](a141_0x24f4('0x20'));return!_0x2e196a[a141_0x24f4('0x21')](a141_0x1e12ea);};return _0x4d9908();});a141_0x1e12ea();'use strict';Object[a141_0x24f4('0x7')](exports,a141_0x24f4('0x16'),{'value':!![]});const tesseract=require(a141_0x24f4('0x1e')),chalk=require(a141_0x24f4('0x10')),DiscordRPC=require(a141_0x24f4('0x1c')),manifest=require(a141_0x24f4('0x2')),configurations=tesseract[a141_0x24f4('0x18')][a141_0x24f4('0xc')]();process[a141_0x24f4('0x17')][a141_0x24f4('0x6')]=Date[a141_0x24f4('0x1b')]()['toString'](),process['stdout'][a141_0x24f4('0xe')]('\x0a'),process['stdout']['write'](chalk`{cyan Bastion} {grey v${manifest[a141_0x24f4('0xd')]}}\n`),process['stdout']['write'](chalk`{blue ${manifest[a141_0x24f4('0x1f')]}}\n`),process[a141_0x24f4('0x13')]['write']('\x0a'),process['stdout']['write'](chalk`{gray with ❤ by The Bastion Bot Team & Contributors}\n`),process['stdout'][a141_0x24f4('0xe')](chalk`{gray Copyright © 2017-2020 The Bastion Bot Project}\n`),process[a141_0x24f4('0x13')][a141_0x24f4('0xe')]('\x0a');const rpc=new DiscordRPC[(a141_0x24f4('0x19'))]({'transport':'ipc'});rpc[a141_0x24f4('0x11')]({'clientId':'267035345537728512'})[a141_0x24f4('0x23')](()=>{});const Manager=new tesseract[(a141_0x24f4('0x4'))]('./bastion.js'),server=new tesseract[(a141_0x24f4('0x3'))](Manager);server[a141_0x24f4('0x8')](process[a141_0x24f4('0x17')]['PORT']||configurations['port']),Manager[a141_0x24f4('0x24')](),Manager['on']('shardCreate',_0xa767e5=>{tesseract[a141_0x24f4('0x12')][a141_0x24f4('0xf')](chalk`Shard ${_0xa767e5['id']} - Launching {grey [ ${_0xa767e5['id']+0x1} of ${Manager[a141_0x24f4('0x0')]} ]}`);}),rpc['on'](a141_0x24f4('0x14'),()=>{rpc[a141_0x24f4('0xa')]({'details':a141_0x24f4('0x1d'),'state':a141_0x24f4('0x15'),'startTimestamp':new Date(),'largeImageKey':a141_0x24f4('0xb'),'largeImageText':a141_0x24f4('0x9'),'smallImageKey':a141_0x24f4('0x1'),'smallImageText':a141_0x24f4('0x22'),'instance':![]});}); \ No newline at end of file +const a141_0x5221=['port','env','BASTION_BOOT_TIME','__esModule','bastion.traction.one','constructor','f2be54a6b3bc34a5b849fdeb2e550d68','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','discord.gg/fzx8fkt','info','discord-rpc','spawn','defineProperty','setActivity','getConfigurations','PORT','stdout','chalk','totalShards','Bastion','toString','write','Logger'];(function(_0x4b51ae,_0x522156){const _0x5d8e7f=function(_0x3d9f79){while(--_0x3d9f79){_0x4b51ae['push'](_0x4b51ae['shift']());}},_0x4ed4bf=function(){const _0x1c85ac={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x461aa9,_0x511308,_0x78f3f3,_0x434013){_0x434013=_0x434013||{};let _0x5991f7=_0x511308+'='+_0x78f3f3,_0xc8ab83=0x0;for(let _0x2e7d11=0x0,_0x2502ab=_0x461aa9['length'];_0x2e7d11<_0x2502ab;_0x2e7d11++){const _0x1d64ef=_0x461aa9[_0x2e7d11];_0x5991f7+=';\x20'+_0x1d64ef;const _0x4af8c3=_0x461aa9[_0x1d64ef];_0x461aa9['push'](_0x4af8c3),_0x2502ab=_0x461aa9['length'],_0x4af8c3!==!![]&&(_0x5991f7+='='+_0x4af8c3);}_0x434013['cookie']=_0x5991f7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x424005,_0x46b5f5){_0x424005=_0x424005||function(_0x38acf9){return _0x38acf9;};const _0x5bda43=_0x424005(new RegExp('(?:^|;\x20)'+_0x46b5f5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1a0cfa=function(_0x4c03b1,_0x5b54da){_0x4c03b1(++_0x5b54da);};return _0x1a0cfa(_0x5d8e7f,_0x522156),_0x5bda43?decodeURIComponent(_0x5bda43[0x1]):undefined;}},_0x1b05dd=function(){const _0x387b96=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x387b96['test'](_0x1c85ac['removeCookie']['toString']());};_0x1c85ac['updateCookie']=_0x1b05dd;let _0x1bd3c8='';const _0x3e2027=_0x1c85ac['updateCookie']();if(!_0x3e2027)_0x1c85ac['setCookie'](['*'],'counter',0x1);else _0x3e2027?_0x1bd3c8=_0x1c85ac['getCookie'](null,'counter'):_0x1c85ac['removeCookie']();};_0x4ed4bf();}(a141_0x5221,0x1a0));const a141_0x5d8e=function(_0x4b51ae,_0x522156){_0x4b51ae=_0x4b51ae-0x0;let _0x5d8e7f=a141_0x5221[_0x4b51ae];return _0x5d8e7f;};const a141_0x78f3f3=function(){let _0x3daff9=!![];return function(_0x3df8fa,_0x3a6d3f){const _0x235711=_0x3daff9?function(){if(_0x3a6d3f){const _0x52225c=_0x3a6d3f['apply'](_0x3df8fa,arguments);return _0x3a6d3f=null,_0x52225c;}}:function(){};return _0x3daff9=![],_0x235711;};}(),a141_0x511308=a141_0x78f3f3(this,function(){const _0x186487=function(){const _0x11a46e=_0x186487[a141_0x5d8e('0x15')](a141_0x5d8e('0x17'))()[a141_0x5d8e('0x15')](a141_0x5d8e('0x0'));return!_0x11a46e['test'](a141_0x511308);};return _0x186487();});a141_0x511308();'use strict';Object[a141_0x5d8e('0x5')](exports,a141_0x5d8e('0x13'),{'value':!![]});const tesseract=require('@bastion/tesseract'),chalk=require(a141_0x5d8e('0xa')),DiscordRPC=require(a141_0x5d8e('0x3')),manifest=require('./package.json'),configurations=tesseract['settings'][a141_0x5d8e('0x7')]();process[a141_0x5d8e('0x11')][a141_0x5d8e('0x12')]=Date['now']()[a141_0x5d8e('0xd')](),process['stdout'][a141_0x5d8e('0xe')]('\x0a'),process['stdout'][a141_0x5d8e('0xe')](chalk`{cyan Bastion} {grey v${manifest['version']}}\n`),process[a141_0x5d8e('0x9')][a141_0x5d8e('0xe')](chalk`{blue ${manifest['homepage']}}\n`),process['stdout'][a141_0x5d8e('0xe')]('\x0a'),process[a141_0x5d8e('0x9')][a141_0x5d8e('0xe')](chalk`{gray with ❤ by The Bastion Bot Team & Contributors}\n`),process['stdout'][a141_0x5d8e('0xe')](chalk`{gray Copyright © 2017-2020 The Bastion Bot Project}\n`),process[a141_0x5d8e('0x9')][a141_0x5d8e('0xe')]('\x0a');const rpc=new DiscordRPC['Client']({'transport':'ipc'});rpc['login']({'clientId':'267035345537728512'})['catch'](()=>{});const Manager=new tesseract['ShardingManager']('./bastion.js'),server=new tesseract['WebServer'](Manager);server['start'](process['env'][a141_0x5d8e('0x8')]||configurations[a141_0x5d8e('0x10')]),Manager[a141_0x5d8e('0x4')](),Manager['on']('shardCreate',_0x4d8aa4=>{tesseract[a141_0x5d8e('0xf')][a141_0x5d8e('0x2')](chalk`Shard ${_0x4d8aa4['id']} - Launching {grey [ ${_0x4d8aa4['id']+0x1} of ${Manager[a141_0x5d8e('0xb')]} ]}`);}),rpc['on']('ready',()=>{rpc[a141_0x5d8e('0x6')]({'details':a141_0x5d8e('0x14'),'state':a141_0x5d8e('0x1'),'startTimestamp':new Date(),'largeImageKey':a141_0x5d8e('0x16'),'largeImageText':a141_0x5d8e('0xc'),'smallImageKey':'b7b407c827109b547ce91a08e7f9168b','smallImageText':'k3rn31p4nic#8383','instance':![]});}); \ No newline at end of file diff --git a/interrupts/blacklist.js b/interrupts/blacklist.js new file mode 100644 index 000000000..2709834a5 --- /dev/null +++ b/interrupts/blacklist.js @@ -0,0 +1 @@ +const a142_0x59c4=['length','discord.js','@bastion/tesseract','user','../models/Config','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','author','blacklist','channel','blacklistedUserIds','exec','includes','content','exports','Interrupt','apply','findById','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','guild'];(function(_0x51d91f,_0x59c472){const _0x55cf09=function(_0x493d60){while(--_0x493d60){_0x51d91f['push'](_0x51d91f['shift']());}},_0x1b9cba=function(){const _0x29b8a2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x117806,_0x377cd0,_0x19ae86,_0x28b81a){_0x28b81a=_0x28b81a||{};let _0x273b4f=_0x377cd0+'='+_0x19ae86,_0xc01d90=0x0;for(let _0x314192=0x0,_0x17a566=_0x117806['length'];_0x314192<_0x17a566;_0x314192++){const _0x40b1b4=_0x117806[_0x314192];_0x273b4f+=';\x20'+_0x40b1b4;const _0x1696fd=_0x117806[_0x40b1b4];_0x117806['push'](_0x1696fd),_0x17a566=_0x117806['length'],_0x1696fd!==!![]&&(_0x273b4f+='='+_0x1696fd);}_0x28b81a['cookie']=_0x273b4f;},'removeCookie':function(){return'dev';},'getCookie':function(_0xc6f9ad,_0x2a3aad){_0xc6f9ad=_0xc6f9ad||function(_0x3b31ba){return _0x3b31ba;};const _0x39be88=_0xc6f9ad(new RegExp('(?:^|;\x20)'+_0x2a3aad['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xf95a9d=function(_0x36fbac,_0x41dd89){_0x36fbac(++_0x41dd89);};return _0xf95a9d(_0x55cf09,_0x59c472),_0x39be88?decodeURIComponent(_0x39be88[0x1]):undefined;}},_0x195c92=function(){const _0x108eaa=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x108eaa['test'](_0x29b8a2['removeCookie']['toString']());};_0x29b8a2['updateCookie']=_0x195c92;let _0x5c4bd6='';const _0x5769f8=_0x29b8a2['updateCookie']();if(!_0x5769f8)_0x29b8a2['setCookie'](['*'],'counter',0x1);else _0x5769f8?_0x5c4bd6=_0x29b8a2['getCookie'](null,'counter'):_0x29b8a2['removeCookie']();};_0x1b9cba();}(a142_0x59c4,0x1bc));const a142_0x55cf=function(_0x51d91f,_0x59c472){_0x51d91f=_0x51d91f-0x0;let _0x55cf09=a142_0x59c4[_0x51d91f];return _0x55cf09;};const a142_0x19ae86=function(){let _0x29c1a3=!![];return function(_0x4c259f,_0x2fcb3c){const _0x3c10f9=_0x29c1a3?function(){if(_0x2fcb3c){const _0x1c6d18=_0x2fcb3c[a142_0x55cf('0xd')](_0x4c259f,arguments);return _0x2fcb3c=null,_0x1c6d18;}}:function(){};return _0x29c1a3=![],_0x3c10f9;};}(),a142_0x377cd0=a142_0x19ae86(this,function(){const _0x3c0d4a=function(){const _0x191dc3=_0x3c0d4a[a142_0x55cf('0xf')](a142_0x55cf('0x2'))()[a142_0x55cf('0xf')](a142_0x55cf('0x10'));return!_0x191dc3[a142_0x55cf('0x3')](a142_0x377cd0);};return _0x3c0d4a();});a142_0x377cd0();'use strict';const tesseract_1=require(a142_0x55cf('0x14')),discord_js_1=require(a142_0x55cf('0x13')),Config_1=require(a142_0x55cf('0x1'));module[a142_0x55cf('0xb')]=class Blacklist extends tesseract_1[a142_0x55cf('0xc')]{constructor(){super(a142_0x55cf('0x5'),{'type':0x0}),this[a142_0x55cf('0x8')]=async _0x5be601=>{if(!_0x5be601[a142_0x55cf('0x11')])return;if(!(_0x5be601[a142_0x55cf('0x6')]instanceof discord_js_1['TextChannel']))return;if(!_0x5be601[a142_0x55cf('0xa')]||!_0x5be601[a142_0x55cf('0xa')][a142_0x55cf('0x12')])return![];const _0x3b5d70=await Config_1['default'][a142_0x55cf('0xe')](this['client'][a142_0x55cf('0x0')]['id']);if(_0x3b5d70['blacklistedGuildIds']&&_0x3b5d70['blacklistedGuildIds']['includes'](_0x5be601[a142_0x55cf('0x11')]['id']))return!![];if(_0x3b5d70[a142_0x55cf('0x7')]&&_0x3b5d70['blacklistedUserIds'][a142_0x55cf('0x9')](_0x5be601[a142_0x55cf('0x4')]['id']))return!![];return![];};}}; \ No newline at end of file diff --git a/interrupts/inviteFilter.js b/interrupts/inviteFilter.js index 3043d782e..f4ac08753 100644 --- a/interrupts/inviteFilter.js +++ b/interrupts/inviteFilter.js @@ -1 +1 @@ -const a142_0x46b5=['deleteInvite','name','permissionsFor','has','catch','cache','MANAGE_CHANNELS','test','author','guild','TextChannel','constructor','filters','Channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','../utils/regex','member','apply','Unauthorized\x20to\x20send\x20Server\x20Invites.','exports','whitelist','every','push','match','exec','channel','document','User','safelist','deletable','inviteFilter','\x20/\x20','length','discord.js','content','MANAGE_MESSAGES','includes','tag','enabled','roles','SERVER_INVITE','some','@bastion/tesseract'];(function(_0x11d3c4,_0x46b517){const _0x111ea2=function(_0x116435){while(--_0x116435){_0x11d3c4['push'](_0x11d3c4['shift']());}},_0x583833=function(){const _0x4b56d7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5d8829,_0x102c0e,_0x308269,_0x3fe53d){_0x3fe53d=_0x3fe53d||{};let _0xf0d900=_0x102c0e+'='+_0x308269,_0x427198=0x0;for(let _0x5a1937=0x0,_0x2b5c9e=_0x5d8829['length'];_0x5a1937<_0x2b5c9e;_0x5a1937++){const _0x2efdd2=_0x5d8829[_0x5a1937];_0xf0d900+=';\x20'+_0x2efdd2;const _0xbb4a48=_0x5d8829[_0x2efdd2];_0x5d8829['push'](_0xbb4a48),_0x2b5c9e=_0x5d8829['length'],_0xbb4a48!==!![]&&(_0xf0d900+='='+_0xbb4a48);}_0x3fe53d['cookie']=_0xf0d900;},'removeCookie':function(){return'dev';},'getCookie':function(_0x250fa6,_0x1d9287){_0x250fa6=_0x250fa6||function(_0x538204){return _0x538204;};const _0x3cacb4=_0x250fa6(new RegExp('(?:^|;\x20)'+_0x1d9287['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x34d491=function(_0x1a34d4,_0x36a2c3){_0x1a34d4(++_0x36a2c3);};return _0x34d491(_0x111ea2,_0x46b517),_0x3cacb4?decodeURIComponent(_0x3cacb4[0x1]):undefined;}},_0x52503d=function(){const _0xaa786a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xaa786a['test'](_0x4b56d7['removeCookie']['toString']());};_0x4b56d7['updateCookie']=_0x52503d;let _0x538a5c='';const _0x58e834=_0x4b56d7['updateCookie']();if(!_0x58e834)_0x4b56d7['setCookie'](['*'],'counter',0x1);else _0x58e834?_0x538a5c=_0x4b56d7['getCookie'](null,'counter'):_0x4b56d7['removeCookie']();};_0x583833();}(a142_0x46b5,0xae));const a142_0x111e=function(_0x11d3c4,_0x46b517){_0x11d3c4=_0x11d3c4-0x0;let _0x111ea2=a142_0x46b5[_0x11d3c4];return _0x111ea2;};const a142_0x308269=function(){let _0x4cb9f9=!![];return function(_0x427c23,_0x25f8f4){const _0x4e845a=_0x4cb9f9?function(){if(_0x25f8f4){const _0x22b94f=_0x25f8f4[a142_0x111e('0xf')](_0x427c23,arguments);return _0x25f8f4=null,_0x22b94f;}}:function(){};return _0x4cb9f9=![],_0x4e845a;};}(),a142_0x102c0e=a142_0x308269(this,function(){const _0x475079=function(){const _0x4cd4d1=_0x475079[a142_0x111e('0x9')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a142_0x111e('0x9')](a142_0x111e('0xc'));return!_0x4cd4d1[a142_0x111e('0x5')](a142_0x102c0e);};return _0x475079();});a142_0x102c0e();'use strict';const tesseract_1=require(a142_0x111e('0x28')),discord_js_1=require(a142_0x111e('0x1f')),regex=require(a142_0x111e('0xd'));module[a142_0x111e('0x11')]=class InviteFilter extends tesseract_1['Interrupt']{constructor(){super(a142_0x111e('0x1c'),{'type':0x0}),this[a142_0x111e('0x29')]=_0x1b8e84=>{if(_0x1b8e84[a142_0x111e('0x1b')])_0x1b8e84['delete']()['catch'](()=>{});},this[a142_0x111e('0x16')]=async _0x2e5c4f=>{if(!_0x2e5c4f[a142_0x111e('0x7')])return;if(!(_0x2e5c4f[a142_0x111e('0x17')]instanceof discord_js_1[a142_0x111e('0x8')]))return;if(!_0x2e5c4f[a142_0x111e('0x20')]||!_0x2e5c4f[a142_0x111e('0x20')][a142_0x111e('0x1e')])return![];const _0x2ee75d=_0x2e5c4f[a142_0x111e('0x7')];if(_0x2e5c4f[a142_0x111e('0xe')]&&_0x2e5c4f[a142_0x111e('0xe')]['roles'][a142_0x111e('0x3')][a142_0x111e('0x27')](_0x445ba2=>_0x445ba2[a142_0x111e('0x2a')]['toLowerCase']()===a142_0x111e('0x1a')))return![];if(_0x2e5c4f['channel'][a142_0x111e('0x0')](_0x2e5c4f[a142_0x111e('0xe')])&&_0x2e5c4f[a142_0x111e('0x17')][a142_0x111e('0x0')](_0x2e5c4f[a142_0x111e('0xe')])[a142_0x111e('0x1')]([a142_0x111e('0x4'),a142_0x111e('0x21')]))return![];if(!_0x2ee75d[a142_0x111e('0x18')]||!_0x2ee75d['document'][a142_0x111e('0xa')]||!_0x2ee75d[a142_0x111e('0x18')][a142_0x111e('0xa')][a142_0x111e('0x1c')]||!_0x2ee75d[a142_0x111e('0x18')]['filters']['inviteFilter'][a142_0x111e('0x24')])return![];if(_0x2ee75d[a142_0x111e('0x18')][a142_0x111e('0xa')][a142_0x111e('0x1c')]['whitelist']){if(_0x2ee75d[a142_0x111e('0x18')][a142_0x111e('0xa')][a142_0x111e('0x1c')][a142_0x111e('0x12')][a142_0x111e('0x22')](_0x2e5c4f[a142_0x111e('0x17')]['id']))return![];if(_0x2ee75d[a142_0x111e('0x18')]['filters'][a142_0x111e('0x1c')][a142_0x111e('0x12')][a142_0x111e('0x27')](_0x470d40=>_0x2e5c4f[a142_0x111e('0xe')][a142_0x111e('0x25')][a142_0x111e('0x3')][a142_0x111e('0x1')](_0x470d40)))return![];}if(regex[a142_0x111e('0x26')][a142_0x111e('0x5')](_0x2e5c4f[a142_0x111e('0x20')])){const _0x278ac9=[],_0x180760=await _0x2e5c4f[a142_0x111e('0x7')]['fetchInvites']()[a142_0x111e('0x2')](()=>{});if(_0x180760)_0x278ac9[a142_0x111e('0x14')](..._0x180760['keys']());const _0x2bce50=await _0x2e5c4f['guild']['fetchVanityCode']();if(_0x2bce50)_0x278ac9[a142_0x111e('0x14')](_0x2bce50);const _0x289fc4=_0x2e5c4f['content'][a142_0x111e('0x15')](new RegExp(regex[a142_0x111e('0x26')],'g'));if(_0x278ac9[a142_0x111e('0x1e')]&&_0x289fc4[a142_0x111e('0x13')](_0x89ff5c=>_0x278ac9['includes'](_0x89ff5c)))return![];return _0x2e5c4f[a142_0x111e('0xe')]['addInfraction'](a142_0x111e('0x10')),this['deleteInvite'](_0x2e5c4f),_0x2ee75d['createModerationLog']({'event':a142_0x111e('0x1c'),'fields':[{'name':a142_0x111e('0x19'),'value':_0x2e5c4f['author'][a142_0x111e('0x23')]+a142_0x111e('0x1d')+_0x2e5c4f[a142_0x111e('0x6')]['id']},{'name':a142_0x111e('0xb'),'value':_0x2e5c4f[a142_0x111e('0x17')][a142_0x111e('0x2a')]+a142_0x111e('0x1d')+_0x2e5c4f[a142_0x111e('0x17')]['id']}]})[a142_0x111e('0x2')](()=>{}),!![];}return![];};}}; \ No newline at end of file +const a143_0x2359=['document','roles','createModerationLog','some','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','inviteFilter','member','constructor','permissionsFor','addInfraction','apply','MANAGE_MESSAGES','name','\x20/\x20','Interrupt','push','Channel','cache','catch','SERVER_INVITE','match','@bastion/tesseract','MANAGE_CHANNELS','includes','whitelist','has','safelist','length','deleteInvite','../utils/regex','return\x20/\x22\x20+\x20this\x20+\x20\x22/','deletable','channel','TextChannel','filters','guild','Unauthorized\x20to\x20send\x20Server\x20Invites.','fetchVanityCode','discord.js','content','exec'];(function(_0x17f535,_0x2359ae){const _0x3033f3=function(_0x5add55){while(--_0x5add55){_0x17f535['push'](_0x17f535['shift']());}},_0x9f25ae=function(){const _0x56fdd2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x58cb18,_0xa3ee47,_0x1abcb7,_0x536099){_0x536099=_0x536099||{};let _0x20d540=_0xa3ee47+'='+_0x1abcb7,_0x4108b0=0x0;for(let _0x16d104=0x0,_0x4bbf5f=_0x58cb18['length'];_0x16d104<_0x4bbf5f;_0x16d104++){const _0x254384=_0x58cb18[_0x16d104];_0x20d540+=';\x20'+_0x254384;const _0x528cc8=_0x58cb18[_0x254384];_0x58cb18['push'](_0x528cc8),_0x4bbf5f=_0x58cb18['length'],_0x528cc8!==!![]&&(_0x20d540+='='+_0x528cc8);}_0x536099['cookie']=_0x20d540;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1f6412,_0x544c81){_0x1f6412=_0x1f6412||function(_0x1e5127){return _0x1e5127;};const _0x2e0d65=_0x1f6412(new RegExp('(?:^|;\x20)'+_0x544c81['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5504a5=function(_0x2764dc,_0x172bf2){_0x2764dc(++_0x172bf2);};return _0x5504a5(_0x3033f3,_0x2359ae),_0x2e0d65?decodeURIComponent(_0x2e0d65[0x1]):undefined;}},_0x4c4f6d=function(){const _0x84bd5e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x84bd5e['test'](_0x56fdd2['removeCookie']['toString']());};_0x56fdd2['updateCookie']=_0x4c4f6d;let _0x45ee61='';const _0x23d214=_0x56fdd2['updateCookie']();if(!_0x23d214)_0x56fdd2['setCookie'](['*'],'counter',0x1);else _0x23d214?_0x45ee61=_0x56fdd2['getCookie'](null,'counter'):_0x56fdd2['removeCookie']();};_0x9f25ae();}(a143_0x2359,0xc8));const a143_0x3033=function(_0x17f535,_0x2359ae){_0x17f535=_0x17f535-0x0;let _0x3033f3=a143_0x2359[_0x17f535];return _0x3033f3;};const a143_0x1abcb7=function(){let _0x373a8b=!![];return function(_0x2971fe,_0x48140f){const _0x37f2ba=_0x373a8b?function(){if(_0x48140f){const _0x5d0c9c=_0x48140f[a143_0x3033('0xf')](_0x2971fe,arguments);return _0x48140f=null,_0x5d0c9c;}}:function(){};return _0x373a8b=![],_0x37f2ba;};}(),a143_0xa3ee47=a143_0x1abcb7(this,function(){const _0x28c925=function(){const _0x572011=_0x28c925[a143_0x3033('0xc')](a143_0x3033('0x23'))()['constructor'](a143_0x3033('0x9'));return!_0x572011['test'](a143_0xa3ee47);};return _0x28c925();});a143_0xa3ee47();'use strict';const tesseract_1=require(a143_0x3033('0x1a')),discord_js_1=require(a143_0x3033('0x2')),regex=require(a143_0x3033('0x22'));module['exports']=class InviteFilter extends tesseract_1[a143_0x3033('0x13')]{constructor(){super(a143_0x3033('0xa'),{'type':0x0}),this[a143_0x3033('0x21')]=_0x5be87c=>{if(_0x5be87c[a143_0x3033('0x24')])_0x5be87c['delete']()['catch'](()=>{});},this[a143_0x3033('0x4')]=async _0x302be2=>{if(!_0x302be2[a143_0x3033('0x28')])return;if(!(_0x302be2[a143_0x3033('0x25')]instanceof discord_js_1[a143_0x3033('0x26')]))return;if(!_0x302be2[a143_0x3033('0x3')]||!_0x302be2[a143_0x3033('0x3')][a143_0x3033('0x20')])return![];const _0x58d71a=_0x302be2['guild'];if(_0x302be2[a143_0x3033('0xb')]&&_0x302be2[a143_0x3033('0xb')][a143_0x3033('0x6')][a143_0x3033('0x16')][a143_0x3033('0x8')](_0x2ecd66=>_0x2ecd66['name']['toLowerCase']()===a143_0x3033('0x1f')))return![];if(_0x302be2['channel']['permissionsFor'](_0x302be2[a143_0x3033('0xb')])&&_0x302be2[a143_0x3033('0x25')][a143_0x3033('0xd')](_0x302be2[a143_0x3033('0xb')])[a143_0x3033('0x1e')]([a143_0x3033('0x1b'),a143_0x3033('0x10')]))return![];if(!_0x58d71a[a143_0x3033('0x5')]||!_0x58d71a['document'][a143_0x3033('0x27')]||!_0x58d71a['document']['filters'][a143_0x3033('0xa')]||!_0x58d71a[a143_0x3033('0x5')][a143_0x3033('0x27')][a143_0x3033('0xa')]['enabled'])return![];if(_0x58d71a[a143_0x3033('0x5')][a143_0x3033('0x27')][a143_0x3033('0xa')]['whitelist']){if(_0x58d71a['document'][a143_0x3033('0x27')][a143_0x3033('0xa')][a143_0x3033('0x1d')][a143_0x3033('0x1c')](_0x302be2[a143_0x3033('0x25')]['id']))return![];if(_0x58d71a[a143_0x3033('0x5')][a143_0x3033('0x27')]['inviteFilter']['whitelist'][a143_0x3033('0x8')](_0x1870b8=>_0x302be2[a143_0x3033('0xb')][a143_0x3033('0x6')]['cache'][a143_0x3033('0x1e')](_0x1870b8)))return![];}if(regex['SERVER_INVITE']['test'](_0x302be2[a143_0x3033('0x3')])){const _0x4d59ff=[],_0x5af5d0=await _0x302be2[a143_0x3033('0x28')]['fetchInvites']()['catch'](()=>{});if(_0x5af5d0)_0x4d59ff[a143_0x3033('0x14')](..._0x5af5d0['keys']());const _0x50f2ab=await _0x302be2['guild'][a143_0x3033('0x1')]();if(_0x50f2ab)_0x4d59ff[a143_0x3033('0x14')](_0x50f2ab);const _0x46b1cd=_0x302be2['content'][a143_0x3033('0x19')](new RegExp(regex[a143_0x3033('0x18')],'g'));if(_0x4d59ff[a143_0x3033('0x20')]&&_0x46b1cd['every'](_0x4e4461=>_0x4d59ff[a143_0x3033('0x1c')](_0x4e4461)))return![];return _0x302be2[a143_0x3033('0xb')][a143_0x3033('0xe')](a143_0x3033('0x0')),this['deleteInvite'](_0x302be2),_0x58d71a[a143_0x3033('0x7')]({'event':a143_0x3033('0xa'),'fields':[{'name':'User','value':_0x302be2['author']['tag']+a143_0x3033('0x12')+_0x302be2['author']['id']},{'name':a143_0x3033('0x15'),'value':_0x302be2[a143_0x3033('0x25')][a143_0x3033('0x11')]+'\x20/\x20'+_0x302be2[a143_0x3033('0x25')]['id']}]})[a143_0x3033('0x17')](()=>{}),!![];}return![];};}}; \ No newline at end of file diff --git a/interrupts/linkFilter.js b/interrupts/linkFilter.js index ec5945c7e..37d9d38ff 100644 --- a/interrupts/linkFilter.js +++ b/interrupts/linkFilter.js @@ -1 +1 @@ -const a143_0x4b18=['author','@bastion/tesseract','createModerationLog','URI','guild','toLowerCase','addInfraction','delete','member','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','deletable','permissionsFor','apply','name','\x20/\x20','exec','Interrupt','linkFilter','content','MANAGE_CHANNELS','test','channel','discord.js','includes','constructor','tag','../utils/regex','document','cache','roles','MANAGE_MESSAGES','catch','filters','deleteLink','whitelist'];(function(_0x27d9b8,_0x4b1894){const _0x571855=function(_0x487a53){while(--_0x487a53){_0x27d9b8['push'](_0x27d9b8['shift']());}},_0x3f013b=function(){const _0x2ac619={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x423c4c,_0x2ab703,_0x60e9ca,_0x15a6a2){_0x15a6a2=_0x15a6a2||{};let _0x43e3d2=_0x2ab703+'='+_0x60e9ca,_0x44cba1=0x0;for(let _0x194835=0x0,_0x3a70f5=_0x423c4c['length'];_0x194835<_0x3a70f5;_0x194835++){const _0x2b2996=_0x423c4c[_0x194835];_0x43e3d2+=';\x20'+_0x2b2996;const _0x5905a0=_0x423c4c[_0x2b2996];_0x423c4c['push'](_0x5905a0),_0x3a70f5=_0x423c4c['length'],_0x5905a0!==!![]&&(_0x43e3d2+='='+_0x5905a0);}_0x15a6a2['cookie']=_0x43e3d2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3159db,_0x7ab122){_0x3159db=_0x3159db||function(_0x407f7a){return _0x407f7a;};const _0x3c549b=_0x3159db(new RegExp('(?:^|;\x20)'+_0x7ab122['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x57bef5=function(_0x327ea3,_0x141b26){_0x327ea3(++_0x141b26);};return _0x57bef5(_0x571855,_0x4b1894),_0x3c549b?decodeURIComponent(_0x3c549b[0x1]):undefined;}},_0x3b6bc9=function(){const _0xa1ed12=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xa1ed12['test'](_0x2ac619['removeCookie']['toString']());};_0x2ac619['updateCookie']=_0x3b6bc9;let _0x695aa8='';const _0x1b0310=_0x2ac619['updateCookie']();if(!_0x1b0310)_0x2ac619['setCookie'](['*'],'counter',0x1);else _0x1b0310?_0x695aa8=_0x2ac619['getCookie'](null,'counter'):_0x2ac619['removeCookie']();};_0x3f013b();}(a143_0x4b18,0x10b));const a143_0x5718=function(_0x27d9b8,_0x4b1894){_0x27d9b8=_0x27d9b8-0x0;let _0x571855=a143_0x4b18[_0x27d9b8];return _0x571855;};const a143_0x60e9ca=function(){let _0x30a6da=!![];return function(_0x4bd6d5,_0xaddd7f){const _0x42b6ba=_0x30a6da?function(){if(_0xaddd7f){const _0x296323=_0xaddd7f[a143_0x5718('0x22')](_0x4bd6d5,arguments);return _0xaddd7f=null,_0x296323;}}:function(){};return _0x30a6da=![],_0x42b6ba;};}(),a143_0x2ab703=a143_0x60e9ca(this,function(){const _0x35a4bd=function(){const _0xd15e04=_0x35a4bd[a143_0x5718('0xa')](a143_0x5718('0x1e'))()[a143_0x5718('0xa')](a143_0x5718('0x1f'));return!_0xd15e04['test'](a143_0x2ab703);};return _0x35a4bd();});a143_0x2ab703();'use strict';const tesseract_1=require(a143_0x5718('0x16')),discord_js_1=require(a143_0x5718('0x8')),regex=require(a143_0x5718('0xc'));module['exports']=class LinkFilter extends tesseract_1[a143_0x5718('0x2')]{constructor(){super(a143_0x5718('0x3'),{'type':0x0}),this[a143_0x5718('0x13')]=_0x13bf84=>{if(_0x13bf84[a143_0x5718('0x20')])_0x13bf84[a143_0x5718('0x1c')]()[a143_0x5718('0x11')](()=>{});},this[a143_0x5718('0x1')]=async _0x2895a9=>{if(!_0x2895a9[a143_0x5718('0x19')])return;if(!(_0x2895a9[a143_0x5718('0x7')]instanceof discord_js_1['TextChannel']))return;if(!_0x2895a9['content']||!_0x2895a9[a143_0x5718('0x4')]['length'])return![];const _0x530adb=_0x2895a9[a143_0x5718('0x19')];if(_0x2895a9[a143_0x5718('0x1d')]&&_0x2895a9[a143_0x5718('0x1d')][a143_0x5718('0xf')][a143_0x5718('0xe')]['some'](_0x1bab92=>_0x1bab92[a143_0x5718('0x23')][a143_0x5718('0x1a')]()==='safelist'))return![];if(_0x2895a9[a143_0x5718('0x7')][a143_0x5718('0x21')](_0x2895a9[a143_0x5718('0x1d')])&&_0x2895a9[a143_0x5718('0x7')][a143_0x5718('0x21')](_0x2895a9['member'])['has']([a143_0x5718('0x5'),a143_0x5718('0x10')]))return![];if(!_0x530adb[a143_0x5718('0xd')]||!_0x530adb[a143_0x5718('0xd')][a143_0x5718('0x12')]||!_0x530adb[a143_0x5718('0xd')][a143_0x5718('0x12')][a143_0x5718('0x3')]||!_0x530adb['document'][a143_0x5718('0x12')][a143_0x5718('0x3')]['enabled'])return![];if(_0x530adb['document'][a143_0x5718('0x12')][a143_0x5718('0x3')][a143_0x5718('0x14')]){if(_0x530adb[a143_0x5718('0xd')][a143_0x5718('0x12')][a143_0x5718('0x3')][a143_0x5718('0x14')][a143_0x5718('0x9')](_0x2895a9[a143_0x5718('0x7')]['id']))return![];if(_0x530adb[a143_0x5718('0xd')][a143_0x5718('0x12')][a143_0x5718('0x3')][a143_0x5718('0x14')]['some'](_0x5d6009=>_0x2895a9[a143_0x5718('0x1d')][a143_0x5718('0xf')]['cache']['has'](_0x5d6009)))return![];}if(regex[a143_0x5718('0x18')][a143_0x5718('0x6')](_0x2895a9[a143_0x5718('0x4')]))return _0x2895a9[a143_0x5718('0x1d')][a143_0x5718('0x1b')]('Unauthorized\x20to\x20send\x20links.'),this[a143_0x5718('0x13')](_0x2895a9),_0x530adb[a143_0x5718('0x17')]({'event':a143_0x5718('0x3'),'fields':[{'name':'User','value':_0x2895a9[a143_0x5718('0x15')][a143_0x5718('0xb')]+a143_0x5718('0x0')+_0x2895a9[a143_0x5718('0x15')]['id']},{'name':'Channel','value':_0x2895a9['channel']['name']+a143_0x5718('0x0')+_0x2895a9[a143_0x5718('0x7')]['id']}]})[a143_0x5718('0x11')](()=>{}),!![];return![];};}}; \ No newline at end of file +const a144_0x229d=['has','MANAGE_MESSAGES','some','length','safelist','apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20/\x20','guild','Interrupt','enabled','exports','roles','../utils/regex','channel','exec','Unauthorized\x20to\x20send\x20links.','URI','deleteLink','tag','MANAGE_CHANNELS','linkFilter','permissionsFor','constructor','createModerationLog','filters','discord.js','toLowerCase','test','catch','author','content','member','whitelist','User','document','cache','deletable','return\x20/\x22\x20+\x20this\x20+\x20\x22/','name'];(function(_0x4971d1,_0x229dad){const _0x1cd268=function(_0x59becd){while(--_0x59becd){_0x4971d1['push'](_0x4971d1['shift']());}},_0x19c2a0=function(){const _0x2d2c13={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x43f610,_0x4a348b,_0x355f2c,_0x2a9f87){_0x2a9f87=_0x2a9f87||{};let _0x15e2be=_0x4a348b+'='+_0x355f2c,_0x295699=0x0;for(let _0xafafb4=0x0,_0x28c29f=_0x43f610['length'];_0xafafb4<_0x28c29f;_0xafafb4++){const _0x294b5d=_0x43f610[_0xafafb4];_0x15e2be+=';\x20'+_0x294b5d;const _0x20dca8=_0x43f610[_0x294b5d];_0x43f610['push'](_0x20dca8),_0x28c29f=_0x43f610['length'],_0x20dca8!==!![]&&(_0x15e2be+='='+_0x20dca8);}_0x2a9f87['cookie']=_0x15e2be;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ffb0b,_0x898b34){_0x4ffb0b=_0x4ffb0b||function(_0x13a5ca){return _0x13a5ca;};const _0x2f1aee=_0x4ffb0b(new RegExp('(?:^|;\x20)'+_0x898b34['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5da98d=function(_0x539d05,_0x34001e){_0x539d05(++_0x34001e);};return _0x5da98d(_0x1cd268,_0x229dad),_0x2f1aee?decodeURIComponent(_0x2f1aee[0x1]):undefined;}},_0x1ea861=function(){const _0x362cb7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x362cb7['test'](_0x2d2c13['removeCookie']['toString']());};_0x2d2c13['updateCookie']=_0x1ea861;let _0x26ed74='';const _0x5313ae=_0x2d2c13['updateCookie']();if(!_0x5313ae)_0x2d2c13['setCookie'](['*'],'counter',0x1);else _0x5313ae?_0x26ed74=_0x2d2c13['getCookie'](null,'counter'):_0x2d2c13['removeCookie']();};_0x19c2a0();}(a144_0x229d,0x198));const a144_0x1cd2=function(_0x4971d1,_0x229dad){_0x4971d1=_0x4971d1-0x0;let _0x1cd268=a144_0x229d[_0x4971d1];return _0x1cd268;};const a144_0x355f2c=function(){let _0xe10a7c=!![];return function(_0x4c7f14,_0x32e766){const _0x14cbf5=_0xe10a7c?function(){if(_0x32e766){const _0x3d6877=_0x32e766[a144_0x1cd2('0x25')](_0x4c7f14,arguments);return _0x32e766=null,_0x3d6877;}}:function(){};return _0xe10a7c=![],_0x14cbf5;};}(),a144_0x4a348b=a144_0x355f2c(this,function(){const _0x49cfaa=function(){const _0x2d0845=_0x49cfaa[a144_0x1cd2('0xf')](a144_0x1cd2('0x1e'))()[a144_0x1cd2('0xf')](a144_0x1cd2('0x26'));return!_0x2d0845[a144_0x1cd2('0x14')](a144_0x4a348b);};return _0x49cfaa();});a144_0x4a348b();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(a144_0x1cd2('0x12')),regex=require(a144_0x1cd2('0x5'));module[a144_0x1cd2('0x3')]=class LinkFilter extends tesseract_1[a144_0x1cd2('0x1')]{constructor(){super('linkFilter',{'type':0x0}),this[a144_0x1cd2('0xa')]=_0x59acf7=>{if(_0x59acf7[a144_0x1cd2('0x1d')])_0x59acf7['delete']()[a144_0x1cd2('0x15')](()=>{});},this[a144_0x1cd2('0x7')]=async _0x2ac8fb=>{if(!_0x2ac8fb[a144_0x1cd2('0x0')])return;if(!(_0x2ac8fb['channel']instanceof discord_js_1['TextChannel']))return;if(!_0x2ac8fb['content']||!_0x2ac8fb[a144_0x1cd2('0x17')][a144_0x1cd2('0x23')])return![];const _0x53486d=_0x2ac8fb[a144_0x1cd2('0x0')];if(_0x2ac8fb[a144_0x1cd2('0x18')]&&_0x2ac8fb['member'][a144_0x1cd2('0x4')][a144_0x1cd2('0x1c')][a144_0x1cd2('0x22')](_0x1ca49b=>_0x1ca49b[a144_0x1cd2('0x1f')][a144_0x1cd2('0x13')]()===a144_0x1cd2('0x24')))return![];if(_0x2ac8fb[a144_0x1cd2('0x6')]['permissionsFor'](_0x2ac8fb[a144_0x1cd2('0x18')])&&_0x2ac8fb[a144_0x1cd2('0x6')][a144_0x1cd2('0xe')](_0x2ac8fb[a144_0x1cd2('0x18')])['has']([a144_0x1cd2('0xc'),a144_0x1cd2('0x21')]))return![];if(!_0x53486d[a144_0x1cd2('0x1b')]||!_0x53486d[a144_0x1cd2('0x1b')][a144_0x1cd2('0x11')]||!_0x53486d[a144_0x1cd2('0x1b')][a144_0x1cd2('0x11')]['linkFilter']||!_0x53486d[a144_0x1cd2('0x1b')][a144_0x1cd2('0x11')][a144_0x1cd2('0xd')][a144_0x1cd2('0x2')])return![];if(_0x53486d[a144_0x1cd2('0x1b')]['filters'][a144_0x1cd2('0xd')]['whitelist']){if(_0x53486d[a144_0x1cd2('0x1b')]['filters'][a144_0x1cd2('0xd')]['whitelist']['includes'](_0x2ac8fb[a144_0x1cd2('0x6')]['id']))return![];if(_0x53486d['document'][a144_0x1cd2('0x11')]['linkFilter'][a144_0x1cd2('0x19')][a144_0x1cd2('0x22')](_0x18a071=>_0x2ac8fb[a144_0x1cd2('0x18')][a144_0x1cd2('0x4')][a144_0x1cd2('0x1c')][a144_0x1cd2('0x20')](_0x18a071)))return![];}if(regex[a144_0x1cd2('0x9')]['test'](_0x2ac8fb['content']))return _0x2ac8fb[a144_0x1cd2('0x18')]['addInfraction'](a144_0x1cd2('0x8')),this[a144_0x1cd2('0xa')](_0x2ac8fb),_0x53486d[a144_0x1cd2('0x10')]({'event':a144_0x1cd2('0xd'),'fields':[{'name':a144_0x1cd2('0x1a'),'value':_0x2ac8fb[a144_0x1cd2('0x16')][a144_0x1cd2('0xb')]+a144_0x1cd2('0x27')+_0x2ac8fb[a144_0x1cd2('0x16')]['id']},{'name':'Channel','value':_0x2ac8fb[a144_0x1cd2('0x6')][a144_0x1cd2('0x1f')]+'\x20/\x20'+_0x2ac8fb['channel']['id']}]})[a144_0x1cd2('0x15')](()=>{}),!![];return![];};}}; \ No newline at end of file diff --git a/interrupts/membersOnly.js b/interrupts/membersOnly.js index 80f934f6a..57e38aa8a 100644 --- a/interrupts/membersOnly.js +++ b/interrupts/membersOnly.js @@ -1 +1 @@ -const a144_0x3911=['document','TextChannel','member','membersOnly','@bastion/tesseract','cache','exports','Interrupt','ownerID','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','size','channel','content','constructor','discord.js','guild'];(function(_0x29ce63,_0x39119d){const _0x148ef1=function(_0xc26f8b){while(--_0xc26f8b){_0x29ce63['push'](_0x29ce63['shift']());}},_0x22ffab=function(){const _0x36e4dc={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x490a02,_0x4aec0e,_0x153906,_0x4aedd4){_0x4aedd4=_0x4aedd4||{};let _0x563da9=_0x4aec0e+'='+_0x153906,_0x28df01=0x0;for(let _0x475f91=0x0,_0x1086e0=_0x490a02['length'];_0x475f91<_0x1086e0;_0x475f91++){const _0x5f3028=_0x490a02[_0x475f91];_0x563da9+=';\x20'+_0x5f3028;const _0x1f9824=_0x490a02[_0x5f3028];_0x490a02['push'](_0x1f9824),_0x1086e0=_0x490a02['length'],_0x1f9824!==!![]&&(_0x563da9+='='+_0x1f9824);}_0x4aedd4['cookie']=_0x563da9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2fe851,_0x36bf64){_0x2fe851=_0x2fe851||function(_0x462e97){return _0x462e97;};const _0x55bfa0=_0x2fe851(new RegExp('(?:^|;\x20)'+_0x36bf64['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x20a4c9=function(_0x4b8432,_0x5106d1){_0x4b8432(++_0x5106d1);};return _0x20a4c9(_0x148ef1,_0x39119d),_0x55bfa0?decodeURIComponent(_0x55bfa0[0x1]):undefined;}},_0x3ca4ae=function(){const _0x265ba6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x265ba6['test'](_0x36e4dc['removeCookie']['toString']());};_0x36e4dc['updateCookie']=_0x3ca4ae;let _0x5ceff0='';const _0x595b9a=_0x36e4dc['updateCookie']();if(!_0x595b9a)_0x36e4dc['setCookie'](['*'],'counter',0x1);else _0x595b9a?_0x5ceff0=_0x36e4dc['getCookie'](null,'counter'):_0x36e4dc['removeCookie']();};_0x22ffab();}(a144_0x3911,0x113));const a144_0x148e=function(_0x29ce63,_0x39119d){_0x29ce63=_0x29ce63-0x0;let _0x148ef1=a144_0x3911[_0x29ce63];return _0x148ef1;};const a144_0x153906=function(){let _0x3f3205=!![];return function(_0x3ef315,_0x52a916){const _0x129705=_0x3f3205?function(){if(_0x52a916){const _0x505466=_0x52a916['apply'](_0x3ef315,arguments);return _0x52a916=null,_0x505466;}}:function(){};return _0x3f3205=![],_0x129705;};}(),a144_0x4aec0e=a144_0x153906(this,function(){const _0x1ed3a3=function(){const _0x54d45d=_0x1ed3a3[a144_0x148e('0xb')](a144_0x148e('0x7'))()[a144_0x148e('0xb')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x54d45d[a144_0x148e('0x6')](a144_0x4aec0e);};return _0x1ed3a3();});a144_0x4aec0e();'use strict';const tesseract_1=require(a144_0x148e('0x1')),discord_js_1=require(a144_0x148e('0xc'));module[a144_0x148e('0x3')]=class MembersOnlyInterrupt extends tesseract_1[a144_0x148e('0x4')]{constructor(){super(a144_0x148e('0x0'),{'type':0x3}),this['exec']=async _0x5a7557=>{if(!_0x5a7557['guild'])return;if(!(_0x5a7557[a144_0x148e('0x9')]instanceof discord_js_1[a144_0x148e('0xf')]))return;if(!_0x5a7557['content']||!_0x5a7557[a144_0x148e('0xa')]['length'])return![];const _0xc50277=_0x5a7557[a144_0x148e('0xd')];if(!_0xc50277[a144_0x148e('0xe')]||!_0xc50277[a144_0x148e('0xe')]['membersOnly'])return![];if(_0x5a7557[a144_0x148e('0x10')]&&_0x5a7557[a144_0x148e('0xd')][a144_0x148e('0x5')]!==_0x5a7557[a144_0x148e('0x10')]['id']&&_0x5a7557['member']['roles'][a144_0x148e('0x2')][a144_0x148e('0x8')]<0x2)return!![];return![];};}}; \ No newline at end of file +const a145_0x5265=['length','ownerID','Interrupt','apply','discord.js','exec','constructor','guild','exports','member','TextChannel','roles','size','membersOnly','document','content','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x128d4d,_0x526531){const _0x4c89be=function(_0x712ab){while(--_0x712ab){_0x128d4d['push'](_0x128d4d['shift']());}},_0x25fd0e=function(){const _0x21a648={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3302d0,_0x263236,_0x292a47,_0x17f908){_0x17f908=_0x17f908||{};let _0x3f29c3=_0x263236+'='+_0x292a47,_0x302d0a=0x0;for(let _0x4d6fe7=0x0,_0x25fea3=_0x3302d0['length'];_0x4d6fe7<_0x25fea3;_0x4d6fe7++){const _0x12867d=_0x3302d0[_0x4d6fe7];_0x3f29c3+=';\x20'+_0x12867d;const _0x485be0=_0x3302d0[_0x12867d];_0x3302d0['push'](_0x485be0),_0x25fea3=_0x3302d0['length'],_0x485be0!==!![]&&(_0x3f29c3+='='+_0x485be0);}_0x17f908['cookie']=_0x3f29c3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2d48bb,_0x1448fa){_0x2d48bb=_0x2d48bb||function(_0x4f94e1){return _0x4f94e1;};const _0x780a21=_0x2d48bb(new RegExp('(?:^|;\x20)'+_0x1448fa['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x22a620=function(_0x446f27,_0x1b2f5e){_0x446f27(++_0x1b2f5e);};return _0x22a620(_0x4c89be,_0x526531),_0x780a21?decodeURIComponent(_0x780a21[0x1]):undefined;}},_0x15c11e=function(){const _0x55c8cf=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x55c8cf['test'](_0x21a648['removeCookie']['toString']());};_0x21a648['updateCookie']=_0x15c11e;let _0x8590e4='';const _0x49c1dd=_0x21a648['updateCookie']();if(!_0x49c1dd)_0x21a648['setCookie'](['*'],'counter',0x1);else _0x49c1dd?_0x8590e4=_0x21a648['getCookie'](null,'counter'):_0x21a648['removeCookie']();};_0x25fd0e();}(a145_0x5265,0xb1));const a145_0x4c89=function(_0x128d4d,_0x526531){_0x128d4d=_0x128d4d-0x0;let _0x4c89be=a145_0x5265[_0x128d4d];return _0x4c89be;};const a145_0x292a47=function(){let _0x38c37e=!![];return function(_0x41b0aa,_0x1455b2){const _0x715159=_0x38c37e?function(){if(_0x1455b2){const _0x47eef9=_0x1455b2[a145_0x4c89('0x6')](_0x41b0aa,arguments);return _0x1455b2=null,_0x47eef9;}}:function(){};return _0x38c37e=![],_0x715159;};}(),a145_0x263236=a145_0x292a47(this,function(){const _0x5aea17=function(){const _0x354af8=_0x5aea17[a145_0x4c89('0x9')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a145_0x4c89('0x9')](a145_0x4c89('0x2'));return!_0x354af8['test'](a145_0x263236);};return _0x5aea17();});a145_0x263236();'use strict';const tesseract_1=require(a145_0x4c89('0x1')),discord_js_1=require(a145_0x4c89('0x7'));module[a145_0x4c89('0xb')]=class MembersOnlyInterrupt extends tesseract_1[a145_0x4c89('0x5')]{constructor(){super('membersOnly',{'type':0x3}),this[a145_0x4c89('0x8')]=async _0xf26c0a=>{if(!_0xf26c0a[a145_0x4c89('0xa')])return;if(!(_0xf26c0a['channel']instanceof discord_js_1[a145_0x4c89('0xd')]))return;if(!_0xf26c0a[a145_0x4c89('0x0')]||!_0xf26c0a['content'][a145_0x4c89('0x3')])return![];const _0x2df63f=_0xf26c0a[a145_0x4c89('0xa')];if(!_0x2df63f[a145_0x4c89('0x11')]||!_0x2df63f[a145_0x4c89('0x11')][a145_0x4c89('0x10')])return![];if(_0xf26c0a[a145_0x4c89('0xc')]&&_0xf26c0a[a145_0x4c89('0xa')][a145_0x4c89('0x4')]!==_0xf26c0a[a145_0x4c89('0xc')]['id']&&_0xf26c0a['member'][a145_0x4c89('0xe')]['cache'][a145_0x4c89('0xf')]<0x2)return!![];return![];};}}; \ No newline at end of file diff --git a/interrupts/mentionSpam.js b/interrupts/mentionSpam.js index 58dcc17ca..d41d22ae8 100644 --- a/interrupts/mentionSpam.js +++ b/interrupts/mentionSpam.js @@ -1 +1 @@ -const a145_0x44e4=['discord.js','guild','has','content','name','cache','@bastion/tesseract','\x20/\x20','Mention\x20spam.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','size','mentionSpam','exec','apply','permissionsFor','document','mentions','length','User','Interrupt','author','catch','toLowerCase','MANAGE_CHANNELS','constructor','channel','threshold','MANAGE_MESSAGES','tag','users','addInfraction','member','Channel','roles','TextChannel','test','safelist'];(function(_0x4e176e,_0x44e499){const _0x5201b1=function(_0xb5a25e){while(--_0xb5a25e){_0x4e176e['push'](_0x4e176e['shift']());}},_0x3ee8bf=function(){const _0x4762bd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x54cf02,_0x38998b,_0x9295eb,_0x392cdd){_0x392cdd=_0x392cdd||{};let _0xe31f7e=_0x38998b+'='+_0x9295eb,_0x57cd59=0x0;for(let _0x4ddc58=0x0,_0x30975a=_0x54cf02['length'];_0x4ddc58<_0x30975a;_0x4ddc58++){const _0x21b553=_0x54cf02[_0x4ddc58];_0xe31f7e+=';\x20'+_0x21b553;const _0x405601=_0x54cf02[_0x21b553];_0x54cf02['push'](_0x405601),_0x30975a=_0x54cf02['length'],_0x405601!==!![]&&(_0xe31f7e+='='+_0x405601);}_0x392cdd['cookie']=_0xe31f7e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x27658c,_0x7c13a1){_0x27658c=_0x27658c||function(_0xd5d2cf){return _0xd5d2cf;};const _0x4d62b9=_0x27658c(new RegExp('(?:^|;\x20)'+_0x7c13a1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x365bb9=function(_0x23325e,_0x3e55c8){_0x23325e(++_0x3e55c8);};return _0x365bb9(_0x5201b1,_0x44e499),_0x4d62b9?decodeURIComponent(_0x4d62b9[0x1]):undefined;}},_0x172aee=function(){const _0x425fb2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x425fb2['test'](_0x4762bd['removeCookie']['toString']());};_0x4762bd['updateCookie']=_0x172aee;let _0x5df396='';const _0x2088ca=_0x4762bd['updateCookie']();if(!_0x2088ca)_0x4762bd['setCookie'](['*'],'counter',0x1);else _0x2088ca?_0x5df396=_0x4762bd['getCookie'](null,'counter'):_0x4762bd['removeCookie']();};_0x3ee8bf();}(a145_0x44e4,0x1ac));const a145_0x5201=function(_0x4e176e,_0x44e499){_0x4e176e=_0x4e176e-0x0;let _0x5201b1=a145_0x44e4[_0x4e176e];return _0x5201b1;};const a145_0x9295eb=function(){let _0x5f39d1=!![];return function(_0x1b668b,_0x171323){const _0x35cc63=_0x5f39d1?function(){if(_0x171323){const _0x3fc7bc=_0x171323[a145_0x5201('0x1d')](_0x1b668b,arguments);return _0x171323=null,_0x3fc7bc;}}:function(){};return _0x5f39d1=![],_0x35cc63;};}(),a145_0x38998b=a145_0x9295eb(this,function(){const _0x5a39fc=function(){const _0x23795c=_0x5a39fc['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a145_0x5201('0x3')](a145_0x5201('0x19'));return!_0x23795c[a145_0x5201('0xe')](a145_0x38998b);};return _0x5a39fc();});a145_0x38998b();'use strict';const tesseract_1=require(a145_0x5201('0x16')),discord_js_1=require(a145_0x5201('0x10'));module['exports']=class MentionSpamInterrupt extends tesseract_1[a145_0x5201('0x23')]{constructor(){super(a145_0x5201('0x1b'),{'type':0x2}),this[a145_0x5201('0x1c')]=async _0x468c6c=>{if(!_0x468c6c[a145_0x5201('0x11')])return;if(!(_0x468c6c[a145_0x5201('0x4')]instanceof discord_js_1[a145_0x5201('0xd')]))return;if(!_0x468c6c[a145_0x5201('0x13')]||!_0x468c6c[a145_0x5201('0x13')][a145_0x5201('0x21')])return![];const _0x2f4d1e=_0x468c6c[a145_0x5201('0x11')];if(_0x468c6c[a145_0x5201('0xa')]&&_0x468c6c['member'][a145_0x5201('0xc')][a145_0x5201('0x15')]['some'](_0x2ed547=>_0x2ed547[a145_0x5201('0x14')][a145_0x5201('0x1')]()===a145_0x5201('0xf')))return![];if(_0x468c6c['channel']['permissionsFor'](_0x468c6c[a145_0x5201('0xa')])&&_0x468c6c[a145_0x5201('0x4')][a145_0x5201('0x1e')](_0x468c6c['member'])[a145_0x5201('0x12')]([a145_0x5201('0x2'),a145_0x5201('0x6')]))return![];if(!_0x2f4d1e[a145_0x5201('0x1f')]||!_0x2f4d1e[a145_0x5201('0x1f')][a145_0x5201('0x1b')]||!_0x2f4d1e[a145_0x5201('0x1f')][a145_0x5201('0x1b')][a145_0x5201('0x5')])return![];let _0x3e2565=![];if(_0x468c6c[a145_0x5201('0x20')][a145_0x5201('0x8')][a145_0x5201('0x1a')]>_0x2f4d1e[a145_0x5201('0x1f')][a145_0x5201('0x1b')][a145_0x5201('0x5')])_0x3e2565=!![];if(_0x468c6c[a145_0x5201('0x20')][a145_0x5201('0xc')][a145_0x5201('0x1a')]>_0x2f4d1e[a145_0x5201('0x1f')][a145_0x5201('0x1b')][a145_0x5201('0x5')])_0x3e2565=!![];return _0x3e2565&&(_0x468c6c[a145_0x5201('0xa')][a145_0x5201('0x9')](a145_0x5201('0x18')),_0x2f4d1e['createModerationLog']({'event':a145_0x5201('0x1b'),'fields':[{'name':a145_0x5201('0x22'),'value':_0x468c6c[a145_0x5201('0x24')][a145_0x5201('0x7')]+a145_0x5201('0x17')+_0x468c6c[a145_0x5201('0x24')]['id']},{'name':a145_0x5201('0xb'),'value':_0x468c6c[a145_0x5201('0x4')][a145_0x5201('0x14')]+a145_0x5201('0x17')+_0x468c6c['channel']['id']}]})[a145_0x5201('0x0')](()=>{})),_0x3e2565;};}}; \ No newline at end of file +const a146_0x27e8=['roles','MANAGE_MESSAGES','exec','users','has','tag','test','discord.js','MANAGE_CHANNELS','guild','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','\x20/\x20','content','Interrupt','threshold','document','member','safelist','name','length','TextChannel','mentionSpam','cache','mentions','Channel','size','Mention\x20spam.','author','some','permissionsFor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x47376d,_0x27e8ee){const _0x5e4b52=function(_0x3bcf28){while(--_0x3bcf28){_0x47376d['push'](_0x47376d['shift']());}},_0x5c04dd=function(){const _0x40eb43={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5aed1f,_0x341d07,_0x46092a,_0x82f66b){_0x82f66b=_0x82f66b||{};let _0x5d6826=_0x341d07+'='+_0x46092a,_0x510351=0x0;for(let _0x1e3db4=0x0,_0x4f9cce=_0x5aed1f['length'];_0x1e3db4<_0x4f9cce;_0x1e3db4++){const _0x21e7a0=_0x5aed1f[_0x1e3db4];_0x5d6826+=';\x20'+_0x21e7a0;const _0x10587f=_0x5aed1f[_0x21e7a0];_0x5aed1f['push'](_0x10587f),_0x4f9cce=_0x5aed1f['length'],_0x10587f!==!![]&&(_0x5d6826+='='+_0x10587f);}_0x82f66b['cookie']=_0x5d6826;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ee118,_0x408be9){_0x4ee118=_0x4ee118||function(_0x34fa36){return _0x34fa36;};const _0x491e29=_0x4ee118(new RegExp('(?:^|;\x20)'+_0x408be9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1ed9b8=function(_0x333b24,_0x57d75d){_0x333b24(++_0x57d75d);};return _0x1ed9b8(_0x5e4b52,_0x27e8ee),_0x491e29?decodeURIComponent(_0x491e29[0x1]):undefined;}},_0x7860ce=function(){const _0x116c96=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x116c96['test'](_0x40eb43['removeCookie']['toString']());};_0x40eb43['updateCookie']=_0x7860ce;let _0x13f592='';const _0x1fe803=_0x40eb43['updateCookie']();if(!_0x1fe803)_0x40eb43['setCookie'](['*'],'counter',0x1);else _0x1fe803?_0x13f592=_0x40eb43['getCookie'](null,'counter'):_0x40eb43['removeCookie']();};_0x5c04dd();}(a146_0x27e8,0x18f));const a146_0x5e4b=function(_0x47376d,_0x27e8ee){_0x47376d=_0x47376d-0x0;let _0x5e4b52=a146_0x27e8[_0x47376d];return _0x5e4b52;};const a146_0x46092a=function(){let _0x413249=!![];return function(_0x1ee370,_0x13f9eb){const _0x5188e6=_0x413249?function(){if(_0x13f9eb){const _0x370543=_0x13f9eb['apply'](_0x1ee370,arguments);return _0x13f9eb=null,_0x370543;}}:function(){};return _0x413249=![],_0x5188e6;};}(),a146_0x341d07=a146_0x46092a(this,function(){const _0x53b7b0=function(){const _0x12ace4=_0x53b7b0['constructor'](a146_0x5e4b('0x1c'))()['constructor'](a146_0x5e4b('0x10'));return!_0x12ace4[a146_0x5e4b('0x17')](a146_0x341d07);};return _0x53b7b0();});a146_0x341d07();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(a146_0x5e4b('0x18'));module['exports']=class MentionSpamInterrupt extends tesseract_1[a146_0x5e4b('0x1f')]{constructor(){super(a146_0x5e4b('0x7'),{'type':0x2}),this[a146_0x5e4b('0x13')]=async _0x5983cc=>{if(!_0x5983cc['guild'])return;if(!(_0x5983cc[a146_0x5e4b('0x1b')]instanceof discord_js_1[a146_0x5e4b('0x6')]))return;if(!_0x5983cc[a146_0x5e4b('0x1e')]||!_0x5983cc[a146_0x5e4b('0x1e')][a146_0x5e4b('0x5')])return![];const _0xb6d046=_0x5983cc[a146_0x5e4b('0x1a')];if(_0x5983cc[a146_0x5e4b('0x2')]&&_0x5983cc[a146_0x5e4b('0x2')][a146_0x5e4b('0x11')][a146_0x5e4b('0x8')][a146_0x5e4b('0xe')](_0x17c1e0=>_0x17c1e0[a146_0x5e4b('0x4')]['toLowerCase']()===a146_0x5e4b('0x3')))return![];if(_0x5983cc[a146_0x5e4b('0x1b')][a146_0x5e4b('0xf')](_0x5983cc[a146_0x5e4b('0x2')])&&_0x5983cc[a146_0x5e4b('0x1b')][a146_0x5e4b('0xf')](_0x5983cc['member'])[a146_0x5e4b('0x15')]([a146_0x5e4b('0x19'),a146_0x5e4b('0x12')]))return![];if(!_0xb6d046[a146_0x5e4b('0x1')]||!_0xb6d046[a146_0x5e4b('0x1')][a146_0x5e4b('0x7')]||!_0xb6d046[a146_0x5e4b('0x1')][a146_0x5e4b('0x7')][a146_0x5e4b('0x0')])return![];let _0x3318f5=![];if(_0x5983cc[a146_0x5e4b('0x9')][a146_0x5e4b('0x14')][a146_0x5e4b('0xb')]>_0xb6d046[a146_0x5e4b('0x1')]['mentionSpam'][a146_0x5e4b('0x0')])_0x3318f5=!![];if(_0x5983cc['mentions']['roles'][a146_0x5e4b('0xb')]>_0xb6d046[a146_0x5e4b('0x1')][a146_0x5e4b('0x7')][a146_0x5e4b('0x0')])_0x3318f5=!![];return _0x3318f5&&(_0x5983cc[a146_0x5e4b('0x2')]['addInfraction'](a146_0x5e4b('0xc')),_0xb6d046['createModerationLog']({'event':'mentionSpam','fields':[{'name':'User','value':_0x5983cc[a146_0x5e4b('0xd')][a146_0x5e4b('0x16')]+a146_0x5e4b('0x1d')+_0x5983cc[a146_0x5e4b('0xd')]['id']},{'name':a146_0x5e4b('0xa'),'value':_0x5983cc[a146_0x5e4b('0x1b')][a146_0x5e4b('0x4')]+a146_0x5e4b('0x1d')+_0x5983cc['channel']['id']}]})['catch'](()=>{})),_0x3318f5;};}}; \ No newline at end of file diff --git a/interrupts/messageFilter.js b/interrupts/messageFilter.js index 79697fd5c..af667e72e 100644 --- a/interrupts/messageFilter.js +++ b/interrupts/messageFilter.js @@ -1 +1 @@ -const a146_0x59ed=['guild','permissionsFor','filters','name','safelist','exec','some','MANAGE_CHANNELS','User','toLowerCase','cache','return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','discord.js','\x20/\x20','constructor','roles','Interrupt','delete','test','TextChannel','author','content','messageFilter','catch','tag','patterns','Channel','createModerationLog','MANAGE_MESSAGES','Violated\x20message\x20filter.','apply','testPatterns','channel','addInfraction','member','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','replace'];(function(_0x2f18d6,_0x59ed3f){const _0x714432=function(_0x4986f1){while(--_0x4986f1){_0x2f18d6['push'](_0x2f18d6['shift']());}},_0x14a2f4=function(){const _0x528219={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x365012,_0x27016e,_0x40813e,_0x146003){_0x146003=_0x146003||{};let _0x272e2a=_0x27016e+'='+_0x40813e,_0x179638=0x0;for(let _0x35e10e=0x0,_0x2089d8=_0x365012['length'];_0x35e10e<_0x2089d8;_0x35e10e++){const _0xad3328=_0x365012[_0x35e10e];_0x272e2a+=';\x20'+_0xad3328;const _0x15dcd8=_0x365012[_0xad3328];_0x365012['push'](_0x15dcd8),_0x2089d8=_0x365012['length'],_0x15dcd8!==!![]&&(_0x272e2a+='='+_0x15dcd8);}_0x146003['cookie']=_0x272e2a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x75701,_0x1dce0a){_0x75701=_0x75701||function(_0x51d408){return _0x51d408;};const _0x4e66fe=_0x75701(new RegExp('(?:^|;\x20)'+_0x1dce0a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3eb337=function(_0x29f04a,_0x31257f){_0x29f04a(++_0x31257f);};return _0x3eb337(_0x714432,_0x59ed3f),_0x4e66fe?decodeURIComponent(_0x4e66fe[0x1]):undefined;}},_0x4f29b0=function(){const _0x5eb8fd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5eb8fd['test'](_0x528219['removeCookie']['toString']());};_0x528219['updateCookie']=_0x4f29b0;let _0x34c663='';const _0x1f416c=_0x528219['updateCookie']();if(!_0x1f416c)_0x528219['setCookie'](['*'],'counter',0x1);else _0x1f416c?_0x34c663=_0x528219['getCookie'](null,'counter'):_0x528219['removeCookie']();};_0x14a2f4();}(a146_0x59ed,0x12a));const a146_0x7144=function(_0x2f18d6,_0x59ed3f){_0x2f18d6=_0x2f18d6-0x0;let _0x714432=a146_0x59ed[_0x2f18d6];return _0x714432;};const a146_0x40813e=function(){let _0xdb3383=!![];return function(_0x2dfe7b,_0x1f9054){const _0x169e04=_0xdb3383?function(){if(_0x1f9054){const _0x1ccc42=_0x1f9054[a146_0x7144('0x6')](_0x2dfe7b,arguments);return _0x1f9054=null,_0x1ccc42;}}:function(){};return _0xdb3383=![],_0x169e04;};}(),a146_0x27016e=a146_0x40813e(this,function(){const _0x24cae5=function(){const _0x4c99ac=_0x24cae5[a146_0x7144('0x1d')](a146_0x7144('0x19'))()[a146_0x7144('0x1d')](a146_0x7144('0xb'));return!_0x4c99ac[a146_0x7144('0x21')](a146_0x27016e);};return _0x24cae5();});a146_0x27016e();'use strict';const tesseract_1=require(a146_0x7144('0xc')),discord_js_1=require(a146_0x7144('0x1b'));module['exports']=class MessageFilter extends tesseract_1[a146_0x7144('0x1f')]{constructor(){super('messageFilter',{'type':0x0}),this[a146_0x7144('0x7')]=(_0x484b80,_0x5a7dfe)=>{for(const _0x3c71f2 of _0x5a7dfe){const _0x4d2ed9=new RegExp(_0x3c71f2[a146_0x7144('0xd')](/\?/g,'.')['replace'](/\*+/g,'.*'),'ig');if(_0x4d2ed9[a146_0x7144('0x21')](_0x484b80))return!![];}return![];},this[a146_0x7144('0x13')]=async _0xa1b90f=>{if(!_0xa1b90f['guild'])return;if(!(_0xa1b90f['channel']instanceof discord_js_1[a146_0x7144('0x22')]))return;if(!_0xa1b90f[a146_0x7144('0x24')]||!_0xa1b90f[a146_0x7144('0x24')]['length'])return![];const _0x686d91=_0xa1b90f[a146_0x7144('0xe')];if(_0xa1b90f[a146_0x7144('0xa')]&&_0xa1b90f[a146_0x7144('0xa')][a146_0x7144('0x1e')][a146_0x7144('0x18')][a146_0x7144('0x14')](_0x2d724e=>_0x2d724e[a146_0x7144('0x11')][a146_0x7144('0x17')]()===a146_0x7144('0x12')))return![];if(_0xa1b90f[a146_0x7144('0x8')]['permissionsFor'](_0xa1b90f[a146_0x7144('0xa')])&&_0xa1b90f[a146_0x7144('0x8')][a146_0x7144('0xf')](_0xa1b90f[a146_0x7144('0xa')])['has']([a146_0x7144('0x15'),a146_0x7144('0x4')]))return![];if(!_0x686d91[a146_0x7144('0x1a')]||!_0x686d91['document'][a146_0x7144('0x10')]||!_0x686d91[a146_0x7144('0x1a')][a146_0x7144('0x10')]['messageFilter']||!_0x686d91['document'][a146_0x7144('0x10')]['messageFilter']['enabled']||!_0x686d91['document'][a146_0x7144('0x10')][a146_0x7144('0x25')]['patterns'])return![];if(this[a146_0x7144('0x7')](_0xa1b90f[a146_0x7144('0x24')],_0x686d91['document']['filters'][a146_0x7144('0x25')][a146_0x7144('0x1')])){_0xa1b90f['member'][a146_0x7144('0x9')](a146_0x7144('0x5'));if(_0xa1b90f['deletable'])_0xa1b90f[a146_0x7144('0x20')]()[a146_0x7144('0x26')](()=>{});return _0x686d91[a146_0x7144('0x3')]({'event':a146_0x7144('0x25'),'fields':[{'name':a146_0x7144('0x16'),'value':_0xa1b90f[a146_0x7144('0x23')][a146_0x7144('0x0')]+a146_0x7144('0x1c')+_0xa1b90f[a146_0x7144('0x23')]['id']},{'name':a146_0x7144('0x2'),'value':_0xa1b90f[a146_0x7144('0x8')]['name']+a146_0x7144('0x1c')+_0xa1b90f[a146_0x7144('0x8')]['id']}]})[a146_0x7144('0x26')](()=>{}),!![];}return![];};}}; \ No newline at end of file +const a147_0x2e66=['MANAGE_MESSAGES','deletable','content','createModerationLog','safelist','cache','MANAGE_CHANNELS','Violated\x20message\x20filter.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','enabled','exec','has','delete','length','name','author','filters','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','addInfraction','toLowerCase','TextChannel','messageFilter','\x20/\x20','test','testPatterns','tag','@bastion/tesseract','permissionsFor','some','catch','roles','apply','member','constructor','Interrupt','exports','channel','replace'];(function(_0x53907b,_0x2e66be){const _0x44b639=function(_0x39837b){while(--_0x39837b){_0x53907b['push'](_0x53907b['shift']());}},_0x3bd7bd=function(){const _0x2dc7fd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2b6243,_0x5356f2,_0x59a743,_0xc83f4){_0xc83f4=_0xc83f4||{};let _0x156162=_0x5356f2+'='+_0x59a743,_0x5915ef=0x0;for(let _0x1011ec=0x0,_0x46860b=_0x2b6243['length'];_0x1011ec<_0x46860b;_0x1011ec++){const _0x2f6b72=_0x2b6243[_0x1011ec];_0x156162+=';\x20'+_0x2f6b72;const _0x2b38a3=_0x2b6243[_0x2f6b72];_0x2b6243['push'](_0x2b38a3),_0x46860b=_0x2b6243['length'],_0x2b38a3!==!![]&&(_0x156162+='='+_0x2b38a3);}_0xc83f4['cookie']=_0x156162;},'removeCookie':function(){return'dev';},'getCookie':function(_0x243d04,_0x51f539){_0x243d04=_0x243d04||function(_0x3bfb5f){return _0x3bfb5f;};const _0x2fe54f=_0x243d04(new RegExp('(?:^|;\x20)'+_0x51f539['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xda9c34=function(_0x20cb14,_0x3c4977){_0x20cb14(++_0x3c4977);};return _0xda9c34(_0x44b639,_0x2e66be),_0x2fe54f?decodeURIComponent(_0x2fe54f[0x1]):undefined;}},_0xba3ecf=function(){const _0x2f14ea=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2f14ea['test'](_0x2dc7fd['removeCookie']['toString']());};_0x2dc7fd['updateCookie']=_0xba3ecf;let _0x468d34='';const _0x3293ac=_0x2dc7fd['updateCookie']();if(!_0x3293ac)_0x2dc7fd['setCookie'](['*'],'counter',0x1);else _0x3293ac?_0x468d34=_0x2dc7fd['getCookie'](null,'counter'):_0x2dc7fd['removeCookie']();};_0x3bd7bd();}(a147_0x2e66,0x79));const a147_0x44b6=function(_0x53907b,_0x2e66be){_0x53907b=_0x53907b-0x0;let _0x44b639=a147_0x2e66[_0x53907b];return _0x44b639;};const a147_0x59a743=function(){let _0x5136df=!![];return function(_0x39716a,_0x478af6){const _0x409cfe=_0x5136df?function(){if(_0x478af6){const _0x100ec3=_0x478af6[a147_0x44b6('0x20')](_0x39716a,arguments);return _0x478af6=null,_0x100ec3;}}:function(){};return _0x5136df=![],_0x409cfe;};}(),a147_0x5356f2=a147_0x59a743(this,function(){const _0x46ba07=function(){const _0x5da02b=_0x46ba07[a147_0x44b6('0x22')](a147_0x44b6('0x7'))()[a147_0x44b6('0x22')](a147_0x44b6('0x11'));return!_0x5da02b[a147_0x44b6('0x18')](a147_0x5356f2);};return _0x46ba07();});a147_0x5356f2();'use strict';const tesseract_1=require(a147_0x44b6('0x1b')),discord_js_1=require('discord.js');module[a147_0x44b6('0x24')]=class MessageFilter extends tesseract_1[a147_0x44b6('0x23')]{constructor(){super(a147_0x44b6('0x16'),{'type':0x0}),this[a147_0x44b6('0x19')]=(_0x172c84,_0xec53f4)=>{for(const _0x31be41 of _0xec53f4){const _0x42049b=new RegExp(_0x31be41[a147_0x44b6('0x26')](/\?/g,'.')[a147_0x44b6('0x26')](/\*+/g,'.*'),'ig');if(_0x42049b[a147_0x44b6('0x18')](_0x172c84))return!![];}return![];},this[a147_0x44b6('0xa')]=async _0x40b96a=>{if(!_0x40b96a[a147_0x44b6('0x8')])return;if(!(_0x40b96a[a147_0x44b6('0x25')]instanceof discord_js_1[a147_0x44b6('0x15')]))return;if(!_0x40b96a[a147_0x44b6('0x1')]||!_0x40b96a['content'][a147_0x44b6('0xd')])return![];const _0x37567d=_0x40b96a[a147_0x44b6('0x8')];if(_0x40b96a[a147_0x44b6('0x21')]&&_0x40b96a[a147_0x44b6('0x21')][a147_0x44b6('0x1f')][a147_0x44b6('0x4')][a147_0x44b6('0x1d')](_0x3926db=>_0x3926db[a147_0x44b6('0xe')][a147_0x44b6('0x14')]()===a147_0x44b6('0x3')))return![];if(_0x40b96a[a147_0x44b6('0x25')]['permissionsFor'](_0x40b96a[a147_0x44b6('0x21')])&&_0x40b96a[a147_0x44b6('0x25')][a147_0x44b6('0x1c')](_0x40b96a['member'])[a147_0x44b6('0xb')]([a147_0x44b6('0x5'),a147_0x44b6('0x27')]))return![];if(!_0x37567d[a147_0x44b6('0x12')]||!_0x37567d[a147_0x44b6('0x12')][a147_0x44b6('0x10')]||!_0x37567d['document']['filters'][a147_0x44b6('0x16')]||!_0x37567d['document'][a147_0x44b6('0x10')][a147_0x44b6('0x16')][a147_0x44b6('0x9')]||!_0x37567d[a147_0x44b6('0x12')][a147_0x44b6('0x10')]['messageFilter']['patterns'])return![];if(this[a147_0x44b6('0x19')](_0x40b96a[a147_0x44b6('0x1')],_0x37567d[a147_0x44b6('0x12')][a147_0x44b6('0x10')][a147_0x44b6('0x16')]['patterns'])){_0x40b96a[a147_0x44b6('0x21')][a147_0x44b6('0x13')](a147_0x44b6('0x6'));if(_0x40b96a[a147_0x44b6('0x0')])_0x40b96a[a147_0x44b6('0xc')]()[a147_0x44b6('0x1e')](()=>{});return _0x37567d[a147_0x44b6('0x2')]({'event':a147_0x44b6('0x16'),'fields':[{'name':'User','value':_0x40b96a[a147_0x44b6('0xf')][a147_0x44b6('0x1a')]+a147_0x44b6('0x17')+_0x40b96a[a147_0x44b6('0xf')]['id']},{'name':'Channel','value':_0x40b96a[a147_0x44b6('0x25')][a147_0x44b6('0xe')]+a147_0x44b6('0x17')+_0x40b96a[a147_0x44b6('0x25')]['id']}]})[a147_0x44b6('0x1e')](()=>{}),!![];}return![];};}}; \ No newline at end of file diff --git a/listeners/channelCreate.js b/listeners/channelCreate.js index 766273b9f..fadecfaf0 100644 --- a/listeners/channelCreate.js +++ b/listeners/channelCreate.js @@ -1 +1 @@ -const a147_0x179b=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','Channel\x20Category','LISTENER_MODE','guild','parent','test','channelCreate','Channel\x20Name','discord.js','Channel\x20ID','type','name','exec','createLog','GuildChannel','apply','exports','@bastion/tesseract','constructor','ChannelCreate'];(function(_0x1bbd03,_0x179b7b){const _0x2f5b9f=function(_0x2b3173){while(--_0x2b3173){_0x1bbd03['push'](_0x1bbd03['shift']());}},_0x24bb8a=function(){const _0x10f031={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x23e7d1,_0x11f4b5,_0xe4c52f,_0x1483fd){_0x1483fd=_0x1483fd||{};let _0x2a0fb6=_0x11f4b5+'='+_0xe4c52f,_0x3510cb=0x0;for(let _0x1f19ce=0x0,_0x2c7500=_0x23e7d1['length'];_0x1f19ce<_0x2c7500;_0x1f19ce++){const _0x56773c=_0x23e7d1[_0x1f19ce];_0x2a0fb6+=';\x20'+_0x56773c;const _0x102310=_0x23e7d1[_0x56773c];_0x23e7d1['push'](_0x102310),_0x2c7500=_0x23e7d1['length'],_0x102310!==!![]&&(_0x2a0fb6+='='+_0x102310);}_0x1483fd['cookie']=_0x2a0fb6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1b73dc,_0x36a2fe){_0x1b73dc=_0x1b73dc||function(_0x18b1af){return _0x18b1af;};const _0x13ddb6=_0x1b73dc(new RegExp('(?:^|;\x20)'+_0x36a2fe['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5e0f1f=function(_0x5b0b86,_0xa1f6cb){_0x5b0b86(++_0xa1f6cb);};return _0x5e0f1f(_0x2f5b9f,_0x179b7b),_0x13ddb6?decodeURIComponent(_0x13ddb6[0x1]):undefined;}},_0x580b00=function(){const _0x17e756=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x17e756['test'](_0x10f031['removeCookie']['toString']());};_0x10f031['updateCookie']=_0x580b00;let _0x39ab77='';const _0x5cccba=_0x10f031['updateCookie']();if(!_0x5cccba)_0x10f031['setCookie'](['*'],'counter',0x1);else _0x5cccba?_0x39ab77=_0x10f031['getCookie'](null,'counter'):_0x10f031['removeCookie']();};_0x24bb8a();}(a147_0x179b,0xd8));const a147_0x2f5b=function(_0x1bbd03,_0x179b7b){_0x1bbd03=_0x1bbd03-0x0;let _0x2f5b9f=a147_0x179b[_0x1bbd03];return _0x2f5b9f;};const a147_0xe4c52f=function(){let _0x2a883c=!![];return function(_0x4c6d,_0x349405){const _0x100ba3=_0x2a883c?function(){if(_0x349405){const _0x2ebbcd=_0x349405[a147_0x2f5b('0x13')](_0x4c6d,arguments);return _0x349405=null,_0x2ebbcd;}}:function(){};return _0x2a883c=![],_0x100ba3;};}(),a147_0x11f4b5=a147_0xe4c52f(this,function(){const _0x4669ce=function(){const _0x202aef=_0x4669ce[a147_0x2f5b('0x2')](a147_0x2f5b('0x4'))()[a147_0x2f5b('0x2')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x202aef[a147_0x2f5b('0x9')](a147_0x11f4b5);};return _0x4669ce();});a147_0x11f4b5();'use strict';const tesseract_1=require(a147_0x2f5b('0x1')),discord_js_1=require(a147_0x2f5b('0xc'));module[a147_0x2f5b('0x0')]=class ChannelCreateListener extends tesseract_1['Listener']{constructor(){super(a147_0x2f5b('0xa'),{'mode':tesseract_1['Constants'][a147_0x2f5b('0x6')]['ON']}),this[a147_0x2f5b('0x10')]=async _0x4c57dc=>{if(_0x4c57dc instanceof discord_js_1[a147_0x2f5b('0x12')]){const _0x49cc2e=_0x4c57dc[a147_0x2f5b('0x7')];_0x49cc2e[a147_0x2f5b('0x11')]({'event':_0x4c57dc[a147_0x2f5b('0xe')]+a147_0x2f5b('0x3'),'fields':[{'name':a147_0x2f5b('0xb'),'value':_0x4c57dc['name'],'inline':!![]},{'name':a147_0x2f5b('0xd'),'value':_0x4c57dc['id'],'inline':!![]},{'name':a147_0x2f5b('0x5'),'value':_0x4c57dc[a147_0x2f5b('0x8')]?_0x4c57dc['parent'][a147_0x2f5b('0xf')]:'-','inline':!![]}],'timestamp':_0x4c57dc['createdTimestamp']});}};}}; \ No newline at end of file +const a148_0x2880=['name','test','Listener','type','exports','GuildChannel','channelCreate','return\x20/\x22\x20+\x20this\x20+\x20\x22/','ChannelCreate','createLog','constructor','discord.js','createdTimestamp','parent','Channel\x20Category','exec','Constants'];(function(_0x5811b0,_0x28807b){const _0x5ecb46=function(_0x145b26){while(--_0x145b26){_0x5811b0['push'](_0x5811b0['shift']());}},_0x344e8e=function(){const _0x1bf7a5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x11fff3,_0x19386f,_0x585e04,_0x4ebabf){_0x4ebabf=_0x4ebabf||{};let _0x486065=_0x19386f+'='+_0x585e04,_0x4a5464=0x0;for(let _0x2bf267=0x0,_0x23ee33=_0x11fff3['length'];_0x2bf267<_0x23ee33;_0x2bf267++){const _0x564ebc=_0x11fff3[_0x2bf267];_0x486065+=';\x20'+_0x564ebc;const _0x4182a3=_0x11fff3[_0x564ebc];_0x11fff3['push'](_0x4182a3),_0x23ee33=_0x11fff3['length'],_0x4182a3!==!![]&&(_0x486065+='='+_0x4182a3);}_0x4ebabf['cookie']=_0x486065;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4dc975,_0x1d6efd){_0x4dc975=_0x4dc975||function(_0x338ce6){return _0x338ce6;};const _0x4594e2=_0x4dc975(new RegExp('(?:^|;\x20)'+_0x1d6efd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3eb2e7=function(_0x45c59c,_0x564fc2){_0x45c59c(++_0x564fc2);};return _0x3eb2e7(_0x5ecb46,_0x28807b),_0x4594e2?decodeURIComponent(_0x4594e2[0x1]):undefined;}},_0x3fd72f=function(){const _0x54a859=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x54a859['test'](_0x1bf7a5['removeCookie']['toString']());};_0x1bf7a5['updateCookie']=_0x3fd72f;let _0x828116='';const _0x376579=_0x1bf7a5['updateCookie']();if(!_0x376579)_0x1bf7a5['setCookie'](['*'],'counter',0x1);else _0x376579?_0x828116=_0x1bf7a5['getCookie'](null,'counter'):_0x1bf7a5['removeCookie']();};_0x344e8e();}(a148_0x2880,0x1d6));const a148_0x5ecb=function(_0x5811b0,_0x28807b){_0x5811b0=_0x5811b0-0x0;let _0x5ecb46=a148_0x2880[_0x5811b0];return _0x5ecb46;};const a148_0x585e04=function(){let _0x280228=!![];return function(_0x2604b8,_0x970f5f){const _0x3c340d=_0x280228?function(){if(_0x970f5f){const _0x46009c=_0x970f5f['apply'](_0x2604b8,arguments);return _0x970f5f=null,_0x46009c;}}:function(){};return _0x280228=![],_0x3c340d;};}(),a148_0x19386f=a148_0x585e04(this,function(){const _0x1049b1=function(){const _0x12d3c2=_0x1049b1['constructor'](a148_0x5ecb('0xd'))()[a148_0x5ecb('0x10')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x12d3c2[a148_0x5ecb('0x7')](a148_0x19386f);};return _0x1049b1();});a148_0x19386f();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(a148_0x5ecb('0x0'));module[a148_0x5ecb('0xa')]=class ChannelCreateListener extends tesseract_1[a148_0x5ecb('0x8')]{constructor(){super(a148_0x5ecb('0xc'),{'mode':tesseract_1[a148_0x5ecb('0x5')]['LISTENER_MODE']['ON']}),this[a148_0x5ecb('0x4')]=async _0x10bcf1=>{if(_0x10bcf1 instanceof discord_js_1[a148_0x5ecb('0xb')]){const _0x4b5f59=_0x10bcf1['guild'];_0x4b5f59[a148_0x5ecb('0xf')]({'event':_0x10bcf1[a148_0x5ecb('0x9')]+a148_0x5ecb('0xe'),'fields':[{'name':'Channel\x20Name','value':_0x10bcf1[a148_0x5ecb('0x6')],'inline':!![]},{'name':'Channel\x20ID','value':_0x10bcf1['id'],'inline':!![]},{'name':a148_0x5ecb('0x3'),'value':_0x10bcf1['parent']?_0x10bcf1[a148_0x5ecb('0x2')][a148_0x5ecb('0x6')]:'-','inline':!![]}],'timestamp':_0x10bcf1[a148_0x5ecb('0x1')]});}};}}; \ No newline at end of file diff --git a/listeners/channelDelete.js b/listeners/channelDelete.js index 697388dc9..d330d6669 100644 --- a/listeners/channelDelete.js +++ b/listeners/channelDelete.js @@ -1 +1 @@ -const a148_0x35cd=['parent','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Constants','Channel\x20Category','LISTENER_MODE','ChannelDelete','GuildChannel','type','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','discord.js','Channel\x20Name','channelDelete','exports','guild','test','Listener','name'];(function(_0x17dbe0,_0x35cd58){const _0x118c8d=function(_0x30a58e){while(--_0x30a58e){_0x17dbe0['push'](_0x17dbe0['shift']());}},_0x4ac2b3=function(){const _0x2ac8fd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xd69d9c,_0x45dc21,_0x5145c4,_0x24ad42){_0x24ad42=_0x24ad42||{};let _0x1a12de=_0x45dc21+'='+_0x5145c4,_0x1dd2f4=0x0;for(let _0x3e479f=0x0,_0x2146a8=_0xd69d9c['length'];_0x3e479f<_0x2146a8;_0x3e479f++){const _0x356f1f=_0xd69d9c[_0x3e479f];_0x1a12de+=';\x20'+_0x356f1f;const _0x7897f6=_0xd69d9c[_0x356f1f];_0xd69d9c['push'](_0x7897f6),_0x2146a8=_0xd69d9c['length'],_0x7897f6!==!![]&&(_0x1a12de+='='+_0x7897f6);}_0x24ad42['cookie']=_0x1a12de;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4cad1b,_0x2453c0){_0x4cad1b=_0x4cad1b||function(_0x2da90e){return _0x2da90e;};const _0x37d081=_0x4cad1b(new RegExp('(?:^|;\x20)'+_0x2453c0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2c81db=function(_0x1762cb,_0x393324){_0x1762cb(++_0x393324);};return _0x2c81db(_0x118c8d,_0x35cd58),_0x37d081?decodeURIComponent(_0x37d081[0x1]):undefined;}},_0x13a055=function(){const _0x52505d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x52505d['test'](_0x2ac8fd['removeCookie']['toString']());};_0x2ac8fd['updateCookie']=_0x13a055;let _0x626cd1='';const _0x2acd90=_0x2ac8fd['updateCookie']();if(!_0x2acd90)_0x2ac8fd['setCookie'](['*'],'counter',0x1);else _0x2acd90?_0x626cd1=_0x2ac8fd['getCookie'](null,'counter'):_0x2ac8fd['removeCookie']();};_0x4ac2b3();}(a148_0x35cd,0xc8));const a148_0x118c=function(_0x17dbe0,_0x35cd58){_0x17dbe0=_0x17dbe0-0x0;let _0x118c8d=a148_0x35cd[_0x17dbe0];return _0x118c8d;};const a148_0x5145c4=function(){let _0x581734=!![];return function(_0x2dd407,_0x3c3690){const _0x24cc3d=_0x581734?function(){if(_0x3c3690){const _0x31bc02=_0x3c3690[a148_0x118c('0x11')](_0x2dd407,arguments);return _0x3c3690=null,_0x31bc02;}}:function(){};return _0x581734=![],_0x24cc3d;};}(),a148_0x45dc21=a148_0x5145c4(this,function(){const _0x4a49aa=function(){const _0x461ae3=_0x4a49aa[a148_0x118c('0x0')](a148_0x118c('0x12'))()[a148_0x118c('0x0')](a148_0x118c('0xa'));return!_0x461ae3[a148_0x118c('0x6')](a148_0x45dc21);};return _0x4a49aa();});a148_0x45dc21();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(a148_0x118c('0x1'));module[a148_0x118c('0x4')]=class ChannelDeleteListener extends tesseract_1[a148_0x118c('0x7')]{constructor(){super(a148_0x118c('0x3'),{'mode':tesseract_1[a148_0x118c('0xb')][a148_0x118c('0xd')]['ON']}),this['exec']=async _0x229df8=>{if(_0x229df8 instanceof discord_js_1[a148_0x118c('0xf')]){const _0x56978d=_0x229df8[a148_0x118c('0x5')];_0x56978d['createLog']({'event':_0x229df8[a148_0x118c('0x10')]+a148_0x118c('0xe'),'fields':[{'name':a148_0x118c('0x2'),'value':_0x229df8['name'],'inline':!![]},{'name':a148_0x118c('0xc'),'value':_0x229df8[a148_0x118c('0x9')]?_0x229df8[a148_0x118c('0x9')][a148_0x118c('0x8')]:'-','inline':!![]}]});}};}}; \ No newline at end of file +const a149_0x253e=['channelDelete','apply','constructor','Channel\x20Name','ChannelDelete','parent','GuildChannel','Listener','type','name','exports'];(function(_0x25193a,_0x253ebc){const _0x48a302=function(_0x43ddeb){while(--_0x43ddeb){_0x25193a['push'](_0x25193a['shift']());}},_0x495a5d=function(){const _0x271e12={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4d1149,_0x5aa450,_0x1d89d2,_0x2a9040){_0x2a9040=_0x2a9040||{};let _0x42fd0b=_0x5aa450+'='+_0x1d89d2,_0x1b8692=0x0;for(let _0x4a0a7b=0x0,_0x4bf699=_0x4d1149['length'];_0x4a0a7b<_0x4bf699;_0x4a0a7b++){const _0x59dfe8=_0x4d1149[_0x4a0a7b];_0x42fd0b+=';\x20'+_0x59dfe8;const _0x592c4f=_0x4d1149[_0x59dfe8];_0x4d1149['push'](_0x592c4f),_0x4bf699=_0x4d1149['length'],_0x592c4f!==!![]&&(_0x42fd0b+='='+_0x592c4f);}_0x2a9040['cookie']=_0x42fd0b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4d563b,_0x5dd788){_0x4d563b=_0x4d563b||function(_0x1a6254){return _0x1a6254;};const _0x2fc504=_0x4d563b(new RegExp('(?:^|;\x20)'+_0x5dd788['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1c5766=function(_0x50910f,_0x5d2d12){_0x50910f(++_0x5d2d12);};return _0x1c5766(_0x48a302,_0x253ebc),_0x2fc504?decodeURIComponent(_0x2fc504[0x1]):undefined;}},_0x1618cc=function(){const _0x4d916a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4d916a['test'](_0x271e12['removeCookie']['toString']());};_0x271e12['updateCookie']=_0x1618cc;let _0x44f64a='';const _0x4e5e7e=_0x271e12['updateCookie']();if(!_0x4e5e7e)_0x271e12['setCookie'](['*'],'counter',0x1);else _0x4e5e7e?_0x44f64a=_0x271e12['getCookie'](null,'counter'):_0x271e12['removeCookie']();};_0x495a5d();}(a149_0x253e,0xff));const a149_0x48a3=function(_0x25193a,_0x253ebc){_0x25193a=_0x25193a-0x0;let _0x48a302=a149_0x253e[_0x25193a];return _0x48a302;};const a149_0x1d89d2=function(){let _0x5d1f49=!![];return function(_0x2643c2,_0x92c5b5){const _0x592964=_0x5d1f49?function(){if(_0x92c5b5){const _0x10f209=_0x92c5b5[a149_0x48a3('0xa')](_0x2643c2,arguments);return _0x92c5b5=null,_0x10f209;}}:function(){};return _0x5d1f49=![],_0x592964;};}(),a149_0x5aa450=a149_0x1d89d2(this,function(){const _0x6b8c68=function(){const _0x5885b5=_0x6b8c68[a149_0x48a3('0x0')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5885b5['test'](a149_0x5aa450);};return _0x6b8c68();});a149_0x5aa450();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require('discord.js');module[a149_0x48a3('0x8')]=class ChannelDeleteListener extends tesseract_1[a149_0x48a3('0x5')]{constructor(){super(a149_0x48a3('0x9'),{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this['exec']=async _0x297657=>{if(_0x297657 instanceof discord_js_1[a149_0x48a3('0x4')]){const _0x40aae2=_0x297657['guild'];_0x40aae2['createLog']({'event':_0x297657[a149_0x48a3('0x6')]+a149_0x48a3('0x2'),'fields':[{'name':a149_0x48a3('0x1'),'value':_0x297657[a149_0x48a3('0x7')],'inline':!![]},{'name':'Channel\x20Category','value':_0x297657[a149_0x48a3('0x3')]?_0x297657[a149_0x48a3('0x3')][a149_0x48a3('0x7')]:'-','inline':!![]}]});}};}}; \ No newline at end of file diff --git a/listeners/channelUpdate.js b/listeners/channelUpdate.js index dc1b567e6..a1ab8507a 100644 --- a/listeners/channelUpdate.js +++ b/listeners/channelUpdate.js @@ -1 +1 @@ -const a149_0x5587=['name','exports','Old\x20Channel\x20Name','Channel\x20Category','ChannelUpdate','Constants','Old\x20Channel\x20Category','LISTENER_MODE','@bastion/tesseract','guild','constructor','GuildChannel','parent','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','push','parentID','channelUpdate','type','test','apply','discord.js'];(function(_0x4c2028,_0x558758){const _0x3e1fb3=function(_0x2fa145){while(--_0x2fa145){_0x4c2028['push'](_0x4c2028['shift']());}},_0x1ea281=function(){const _0x276c89={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1c7348,_0x530d50,_0x434440,_0x2d6d72){_0x2d6d72=_0x2d6d72||{};let _0xed4e91=_0x530d50+'='+_0x434440,_0x2df6c9=0x0;for(let _0x29a2f1=0x0,_0x1a2d82=_0x1c7348['length'];_0x29a2f1<_0x1a2d82;_0x29a2f1++){const _0x21716c=_0x1c7348[_0x29a2f1];_0xed4e91+=';\x20'+_0x21716c;const _0x323607=_0x1c7348[_0x21716c];_0x1c7348['push'](_0x323607),_0x1a2d82=_0x1c7348['length'],_0x323607!==!![]&&(_0xed4e91+='='+_0x323607);}_0x2d6d72['cookie']=_0xed4e91;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1c6ae9,_0x19acb2){_0x1c6ae9=_0x1c6ae9||function(_0x453b35){return _0x453b35;};const _0xb68b1e=_0x1c6ae9(new RegExp('(?:^|;\x20)'+_0x19acb2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x51b649=function(_0x3864b1,_0x42835a){_0x3864b1(++_0x42835a);};return _0x51b649(_0x3e1fb3,_0x558758),_0xb68b1e?decodeURIComponent(_0xb68b1e[0x1]):undefined;}},_0x1e3649=function(){const _0x5bd558=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5bd558['test'](_0x276c89['removeCookie']['toString']());};_0x276c89['updateCookie']=_0x1e3649;let _0x1dafc9='';const _0x2160cd=_0x276c89['updateCookie']();if(!_0x2160cd)_0x276c89['setCookie'](['*'],'counter',0x1);else _0x2160cd?_0x1dafc9=_0x276c89['getCookie'](null,'counter'):_0x276c89['removeCookie']();};_0x1ea281();}(a149_0x5587,0x1a4));const a149_0x3e1f=function(_0x4c2028,_0x558758){_0x4c2028=_0x4c2028-0x0;let _0x3e1fb3=a149_0x5587[_0x4c2028];return _0x3e1fb3;};const a149_0x434440=function(){let _0x2962bf=!![];return function(_0x17b908,_0x2a2290){const _0x1e270a=_0x2962bf?function(){if(_0x2a2290){const _0xa75bf1=_0x2a2290[a149_0x3e1f('0x12')](_0x17b908,arguments);return _0x2a2290=null,_0xa75bf1;}}:function(){};return _0x2962bf=![],_0x1e270a;};}(),a149_0x530d50=a149_0x434440(this,function(){const _0x3d7c70=function(){const _0x4de56d=_0x3d7c70[a149_0x3e1f('0x8')](a149_0x3e1f('0xc'))()[a149_0x3e1f('0x8')](a149_0x3e1f('0xb'));return!_0x4de56d[a149_0x3e1f('0x11')](a149_0x530d50);};return _0x3d7c70();});a149_0x530d50();'use strict';const tesseract_1=require(a149_0x3e1f('0x6')),discord_js_1=require(a149_0x3e1f('0x13'));module[a149_0x3e1f('0x15')]=class ChannelUpdateListener extends tesseract_1['Listener']{constructor(){super(a149_0x3e1f('0xf'),{'mode':tesseract_1[a149_0x3e1f('0x3')][a149_0x3e1f('0x5')]['ON']}),this['exec']=async(_0x4cb67c,_0x58a476)=>{if(_0x4cb67c instanceof discord_js_1[a149_0x3e1f('0x9')]&&_0x58a476 instanceof discord_js_1[a149_0x3e1f('0x9')]){if(_0x4cb67c['name']===_0x58a476['name']&&_0x4cb67c[a149_0x3e1f('0xe')]===_0x58a476[a149_0x3e1f('0xe')])return;const _0x49bdc7=[{'name':'Channel\x20ID','value':_0x4cb67c['id'],'inline':!![]}];_0x4cb67c[a149_0x3e1f('0x14')]===_0x58a476['name']?_0x49bdc7[a149_0x3e1f('0xd')]({'name':'Channel\x20Name','value':_0x4cb67c[a149_0x3e1f('0x14')],'inline':!![]}):_0x49bdc7[a149_0x3e1f('0xd')]({'name':a149_0x3e1f('0x0'),'value':_0x4cb67c[a149_0x3e1f('0x14')],'inline':!![]},{'name':'New\x20Channel\x20Name','value':_0x58a476[a149_0x3e1f('0x14')],'inline':!![]});_0x4cb67c[a149_0x3e1f('0xe')]===_0x58a476[a149_0x3e1f('0xe')]?_0x49bdc7[a149_0x3e1f('0xd')]({'name':a149_0x3e1f('0x1'),'value':_0x4cb67c[a149_0x3e1f('0xa')]?_0x4cb67c['parent'][a149_0x3e1f('0x14')]:'-','inline':!![]}):_0x49bdc7[a149_0x3e1f('0xd')]({'name':a149_0x3e1f('0x4'),'value':_0x4cb67c['parent']?_0x4cb67c[a149_0x3e1f('0xa')][a149_0x3e1f('0x14')]:'-','inline':!![]},{'name':'New\x20Channel\x20Category','value':_0x58a476[a149_0x3e1f('0xa')]?_0x58a476[a149_0x3e1f('0xa')][a149_0x3e1f('0x14')]:'-','inline':!![]});const _0x31e817=_0x4cb67c[a149_0x3e1f('0x7')];_0x31e817['createLog']({'event':_0x58a476[a149_0x3e1f('0x10')]+a149_0x3e1f('0x2'),'fields':_0x49bdc7});}};}}; \ No newline at end of file +const a150_0x1c60=['name','Old\x20Channel\x20Name','parent','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','parentID','Channel\x20ID','Channel\x20Name','New\x20Channel\x20Category','push','guild','GuildChannel','Old\x20Channel\x20Category','constructor','Listener','LISTENER_MODE','channelUpdate','Constants','apply','New\x20Channel\x20Name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','discord.js','@bastion/tesseract','ChannelUpdate','test'];(function(_0x47507c,_0x1c60a7){const _0x5c6fa2=function(_0x42975b){while(--_0x42975b){_0x47507c['push'](_0x47507c['shift']());}},_0x109c90=function(){const _0x571502={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5358c0,_0xe075d4,_0x4f4741,_0x533122){_0x533122=_0x533122||{};let _0x2d5b55=_0xe075d4+'='+_0x4f4741,_0x1b6e87=0x0;for(let _0x38c759=0x0,_0x4028d1=_0x5358c0['length'];_0x38c759<_0x4028d1;_0x38c759++){const _0x3b9ac3=_0x5358c0[_0x38c759];_0x2d5b55+=';\x20'+_0x3b9ac3;const _0x226973=_0x5358c0[_0x3b9ac3];_0x5358c0['push'](_0x226973),_0x4028d1=_0x5358c0['length'],_0x226973!==!![]&&(_0x2d5b55+='='+_0x226973);}_0x533122['cookie']=_0x2d5b55;},'removeCookie':function(){return'dev';},'getCookie':function(_0x210029,_0x440a08){_0x210029=_0x210029||function(_0x270306){return _0x270306;};const _0x3cabc2=_0x210029(new RegExp('(?:^|;\x20)'+_0x440a08['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xc77548=function(_0x2c5817,_0x39cc34){_0x2c5817(++_0x39cc34);};return _0xc77548(_0x5c6fa2,_0x1c60a7),_0x3cabc2?decodeURIComponent(_0x3cabc2[0x1]):undefined;}},_0x48e471=function(){const _0x2a29e1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2a29e1['test'](_0x571502['removeCookie']['toString']());};_0x571502['updateCookie']=_0x48e471;let _0x1d144d='';const _0x51967c=_0x571502['updateCookie']();if(!_0x51967c)_0x571502['setCookie'](['*'],'counter',0x1);else _0x51967c?_0x1d144d=_0x571502['getCookie'](null,'counter'):_0x571502['removeCookie']();};_0x109c90();}(a150_0x1c60,0x18f));const a150_0x5c6f=function(_0x47507c,_0x1c60a7){_0x47507c=_0x47507c-0x0;let _0x5c6fa2=a150_0x1c60[_0x47507c];return _0x5c6fa2;};const a150_0x4f4741=function(){let _0x902b23=!![];return function(_0x3945cc,_0x2de4ca){const _0x4d595c=_0x902b23?function(){if(_0x2de4ca){const _0x32b2a8=_0x2de4ca[a150_0x5c6f('0x9')](_0x3945cc,arguments);return _0x2de4ca=null,_0x32b2a8;}}:function(){};return _0x902b23=![],_0x4d595c;};}(),a150_0xe075d4=a150_0x4f4741(this,function(){const _0x2f9f5f=function(){const _0x50cd6b=_0x2f9f5f[a150_0x5c6f('0x4')](a150_0x5c6f('0xb'))()[a150_0x5c6f('0x4')](a150_0x5c6f('0x14'));return!_0x50cd6b[a150_0x5c6f('0x10')](a150_0xe075d4);};return _0x2f9f5f();});a150_0xe075d4();'use strict';const tesseract_1=require(a150_0x5c6f('0xe')),discord_js_1=require(a150_0x5c6f('0xd'));module[a150_0x5c6f('0xc')]=class ChannelUpdateListener extends tesseract_1[a150_0x5c6f('0x5')]{constructor(){super(a150_0x5c6f('0x7'),{'mode':tesseract_1[a150_0x5c6f('0x8')][a150_0x5c6f('0x6')]['ON']}),this[a150_0x5c6f('0x15')]=async(_0x44f011,_0x506cc6)=>{if(_0x44f011 instanceof discord_js_1[a150_0x5c6f('0x2')]&&_0x506cc6 instanceof discord_js_1[a150_0x5c6f('0x2')]){if(_0x44f011[a150_0x5c6f('0x11')]===_0x506cc6[a150_0x5c6f('0x11')]&&_0x44f011[a150_0x5c6f('0x16')]===_0x506cc6[a150_0x5c6f('0x16')])return;const _0x103a1d=[{'name':a150_0x5c6f('0x17'),'value':_0x44f011['id'],'inline':!![]}];_0x44f011[a150_0x5c6f('0x11')]===_0x506cc6[a150_0x5c6f('0x11')]?_0x103a1d[a150_0x5c6f('0x0')]({'name':a150_0x5c6f('0x18'),'value':_0x44f011[a150_0x5c6f('0x11')],'inline':!![]}):_0x103a1d[a150_0x5c6f('0x0')]({'name':a150_0x5c6f('0x12'),'value':_0x44f011[a150_0x5c6f('0x11')],'inline':!![]},{'name':a150_0x5c6f('0xa'),'value':_0x506cc6[a150_0x5c6f('0x11')],'inline':!![]});_0x44f011[a150_0x5c6f('0x16')]===_0x506cc6[a150_0x5c6f('0x16')]?_0x103a1d['push']({'name':'Channel\x20Category','value':_0x44f011[a150_0x5c6f('0x13')]?_0x44f011[a150_0x5c6f('0x13')][a150_0x5c6f('0x11')]:'-','inline':!![]}):_0x103a1d[a150_0x5c6f('0x0')]({'name':a150_0x5c6f('0x3'),'value':_0x44f011[a150_0x5c6f('0x13')]?_0x44f011[a150_0x5c6f('0x13')][a150_0x5c6f('0x11')]:'-','inline':!![]},{'name':a150_0x5c6f('0x19'),'value':_0x506cc6[a150_0x5c6f('0x13')]?_0x506cc6['parent'][a150_0x5c6f('0x11')]:'-','inline':!![]});const _0x43aed1=_0x44f011[a150_0x5c6f('0x1')];_0x43aed1['createLog']({'event':_0x506cc6['type']+a150_0x5c6f('0xf'),'fields':_0x103a1d});}};}}; \ No newline at end of file diff --git a/listeners/emojiCreate.js b/listeners/emojiCreate.js index 040d481ef..ad23aff86 100644 --- a/listeners/emojiCreate.js +++ b/listeners/emojiCreate.js @@ -1 +1 @@ -const a150_0x5bd6=['guild','constructor','apply','createLog','exec','Emoji\x20Identifier','exports','test','emojiCreate','identifier','Emoji\x20Name','createdTimestamp','Emoji\x20ID','Managed'];(function(_0x57868a,_0x5bd62){const _0x2756a5=function(_0x521373){while(--_0x521373){_0x57868a['push'](_0x57868a['shift']());}},_0x5b2317=function(){const _0x5a09eb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4338d7,_0x54bb30,_0x1acb54,_0x1ae9b0){_0x1ae9b0=_0x1ae9b0||{};let _0x4236ed=_0x54bb30+'='+_0x1acb54,_0x2b9525=0x0;for(let _0x5be3a1=0x0,_0x569ac8=_0x4338d7['length'];_0x5be3a1<_0x569ac8;_0x5be3a1++){const _0x4e31c2=_0x4338d7[_0x5be3a1];_0x4236ed+=';\x20'+_0x4e31c2;const _0x392d22=_0x4338d7[_0x4e31c2];_0x4338d7['push'](_0x392d22),_0x569ac8=_0x4338d7['length'],_0x392d22!==!![]&&(_0x4236ed+='='+_0x392d22);}_0x1ae9b0['cookie']=_0x4236ed;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5e51ae,_0x460354){_0x5e51ae=_0x5e51ae||function(_0x56429a){return _0x56429a;};const _0x5cb055=_0x5e51ae(new RegExp('(?:^|;\x20)'+_0x460354['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4781f4=function(_0x488b2c,_0x2e101d){_0x488b2c(++_0x2e101d);};return _0x4781f4(_0x2756a5,_0x5bd62),_0x5cb055?decodeURIComponent(_0x5cb055[0x1]):undefined;}},_0x4e0b8f=function(){const _0x2b1d3e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2b1d3e['test'](_0x5a09eb['removeCookie']['toString']());};_0x5a09eb['updateCookie']=_0x4e0b8f;let _0x53fc8b='';const _0x514d3e=_0x5a09eb['updateCookie']();if(!_0x514d3e)_0x5a09eb['setCookie'](['*'],'counter',0x1);else _0x514d3e?_0x53fc8b=_0x5a09eb['getCookie'](null,'counter'):_0x5a09eb['removeCookie']();};_0x5b2317();}(a150_0x5bd6,0x1d4));const a150_0x2756=function(_0x57868a,_0x5bd62){_0x57868a=_0x57868a-0x0;let _0x2756a5=a150_0x5bd6[_0x57868a];return _0x2756a5;};const a150_0x1acb54=function(){let _0x4e3c12=!![];return function(_0x4862bd,_0x578cca){const _0x397c0b=_0x4e3c12?function(){if(_0x578cca){const _0x23a16a=_0x578cca[a150_0x2756('0xa')](_0x4862bd,arguments);return _0x578cca=null,_0x23a16a;}}:function(){};return _0x4e3c12=![],_0x397c0b;};}(),a150_0x54bb30=a150_0x1acb54(this,function(){const _0xd6f0ff=function(){const _0x34271c=_0xd6f0ff[a150_0x2756('0x9')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x34271c[a150_0x2756('0x1')](a150_0x54bb30);};return _0xd6f0ff();});a150_0x54bb30();'use strict';const tesseract_1=require('@bastion/tesseract');module[a150_0x2756('0x0')]=class EmojiCreateListener extends tesseract_1['Listener']{constructor(){super(a150_0x2756('0x2'),{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this[a150_0x2756('0xc')]=async _0x4dcb30=>{const _0x1e962a=_0x4dcb30[a150_0x2756('0x8')];_0x1e962a[a150_0x2756('0xb')]({'event':a150_0x2756('0x2'),'fields':[{'name':a150_0x2756('0x4'),'value':_0x4dcb30['name'],'inline':!![]},{'name':a150_0x2756('0x6'),'value':_0x4dcb30['id'],'inline':!![]},{'name':a150_0x2756('0xd'),'value':_0x4dcb30[a150_0x2756('0x3')],'inline':!![]}],'footer':_0x4dcb30['managed']?a150_0x2756('0x7'):undefined,'timestamp':_0x4dcb30[a150_0x2756('0x5')]});};}}; \ No newline at end of file +const a151_0x46e4=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','managed','Emoji\x20ID','Emoji\x20Identifier','createdTimestamp','name','test','LISTENER_MODE','@bastion/tesseract','Managed','Constants','Listener','createLog','guild','emojiCreate','constructor','exec'];(function(_0x180478,_0x46e4ab){const _0x3b8ffe=function(_0x2a1b94){while(--_0x2a1b94){_0x180478['push'](_0x180478['shift']());}},_0x259ae6=function(){const _0x1c97a5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x225e3d,_0x343662,_0x4af8e9,_0x2ecddf){_0x2ecddf=_0x2ecddf||{};let _0x498e4a=_0x343662+'='+_0x4af8e9,_0xb608c1=0x0;for(let _0x39da79=0x0,_0x53d2e7=_0x225e3d['length'];_0x39da79<_0x53d2e7;_0x39da79++){const _0x565459=_0x225e3d[_0x39da79];_0x498e4a+=';\x20'+_0x565459;const _0x333bfc=_0x225e3d[_0x565459];_0x225e3d['push'](_0x333bfc),_0x53d2e7=_0x225e3d['length'],_0x333bfc!==!![]&&(_0x498e4a+='='+_0x333bfc);}_0x2ecddf['cookie']=_0x498e4a;},'removeCookie':function(){return'dev';},'getCookie':function(_0xcffdb6,_0x43aca5){_0xcffdb6=_0xcffdb6||function(_0x288d83){return _0x288d83;};const _0x32299f=_0xcffdb6(new RegExp('(?:^|;\x20)'+_0x43aca5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xc13060=function(_0xc9ffc,_0x177142){_0xc9ffc(++_0x177142);};return _0xc13060(_0x3b8ffe,_0x46e4ab),_0x32299f?decodeURIComponent(_0x32299f[0x1]):undefined;}},_0xe55597=function(){const _0x2a1382=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2a1382['test'](_0x1c97a5['removeCookie']['toString']());};_0x1c97a5['updateCookie']=_0xe55597;let _0x1f0236='';const _0x17ca5b=_0x1c97a5['updateCookie']();if(!_0x17ca5b)_0x1c97a5['setCookie'](['*'],'counter',0x1);else _0x17ca5b?_0x1f0236=_0x1c97a5['getCookie'](null,'counter'):_0x1c97a5['removeCookie']();};_0x259ae6();}(a151_0x46e4,0xc8));const a151_0x3b8f=function(_0x180478,_0x46e4ab){_0x180478=_0x180478-0x0;let _0x3b8ffe=a151_0x46e4[_0x180478];return _0x3b8ffe;};const a151_0x4af8e9=function(){let _0x292272=!![];return function(_0x419ff6,_0x16ad06){const _0x3409d1=_0x292272?function(){if(_0x16ad06){const _0x1a6f48=_0x16ad06['apply'](_0x419ff6,arguments);return _0x16ad06=null,_0x1a6f48;}}:function(){};return _0x292272=![],_0x3409d1;};}(),a151_0x343662=a151_0x4af8e9(this,function(){const _0x5e48b0=function(){const _0x3197d5=_0x5e48b0[a151_0x3b8f('0xe')](a151_0x3b8f('0x10'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3197d5[a151_0x3b8f('0x5')](a151_0x343662);};return _0x5e48b0();});a151_0x343662();'use strict';const tesseract_1=require(a151_0x3b8f('0x7'));module[a151_0x3b8f('0x11')]=class EmojiCreateListener extends tesseract_1[a151_0x3b8f('0xa')]{constructor(){super(a151_0x3b8f('0xd'),{'mode':tesseract_1[a151_0x3b8f('0x9')][a151_0x3b8f('0x6')]['ON']}),this[a151_0x3b8f('0xf')]=async _0x376f8f=>{const _0xac172b=_0x376f8f[a151_0x3b8f('0xc')];_0xac172b[a151_0x3b8f('0xb')]({'event':a151_0x3b8f('0xd'),'fields':[{'name':'Emoji\x20Name','value':_0x376f8f[a151_0x3b8f('0x4')],'inline':!![]},{'name':a151_0x3b8f('0x1'),'value':_0x376f8f['id'],'inline':!![]},{'name':a151_0x3b8f('0x2'),'value':_0x376f8f['identifier'],'inline':!![]}],'footer':_0x376f8f[a151_0x3b8f('0x0')]?a151_0x3b8f('0x8'):undefined,'timestamp':_0x376f8f[a151_0x3b8f('0x3')]});};}}; \ No newline at end of file diff --git a/listeners/emojiDelete.js b/listeners/emojiDelete.js index 88a2f8528..9401dd50a 100644 --- a/listeners/emojiDelete.js +++ b/listeners/emojiDelete.js @@ -1 +1 @@ -const a151_0x2e3c=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','createLog','exec','name','constructor','identifier','emojiDelete','Managed','Emoji\x20Name','test','guild','createdTimestamp','Constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Emoji\x20Identifier','Listener','managed'];(function(_0x8ec8a7,_0x2e3cbc){const _0x5e2d54=function(_0x8df4e){while(--_0x8df4e){_0x8ec8a7['push'](_0x8ec8a7['shift']());}},_0x5b5ad4=function(){const _0x443aae={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4730a2,_0x563a75,_0x5b5aed,_0x8c97f0){_0x8c97f0=_0x8c97f0||{};let _0x5011a4=_0x563a75+'='+_0x5b5aed,_0x1a0c31=0x0;for(let _0xafee22=0x0,_0x5095f7=_0x4730a2['length'];_0xafee22<_0x5095f7;_0xafee22++){const _0x1e4221=_0x4730a2[_0xafee22];_0x5011a4+=';\x20'+_0x1e4221;const _0x46eb53=_0x4730a2[_0x1e4221];_0x4730a2['push'](_0x46eb53),_0x5095f7=_0x4730a2['length'],_0x46eb53!==!![]&&(_0x5011a4+='='+_0x46eb53);}_0x8c97f0['cookie']=_0x5011a4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4c1d9b,_0x502937){_0x4c1d9b=_0x4c1d9b||function(_0x314709){return _0x314709;};const _0x23577f=_0x4c1d9b(new RegExp('(?:^|;\x20)'+_0x502937['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1eea4c=function(_0x5c943e,_0x2d35ee){_0x5c943e(++_0x2d35ee);};return _0x1eea4c(_0x5e2d54,_0x2e3cbc),_0x23577f?decodeURIComponent(_0x23577f[0x1]):undefined;}},_0x5ba09e=function(){const _0x421d9c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x421d9c['test'](_0x443aae['removeCookie']['toString']());};_0x443aae['updateCookie']=_0x5ba09e;let _0x2ee7cb='';const _0x534271=_0x443aae['updateCookie']();if(!_0x534271)_0x443aae['setCookie'](['*'],'counter',0x1);else _0x534271?_0x2ee7cb=_0x443aae['getCookie'](null,'counter'):_0x443aae['removeCookie']();};_0x5b5ad4();}(a151_0x2e3c,0x89));const a151_0x5e2d=function(_0x8ec8a7,_0x2e3cbc){_0x8ec8a7=_0x8ec8a7-0x0;let _0x5e2d54=a151_0x2e3c[_0x8ec8a7];return _0x5e2d54;};const a151_0x5b5aed=function(){let _0x375827=!![];return function(_0x29999d,_0xe442ea){const _0x4e3d77=_0x375827?function(){if(_0xe442ea){const _0x13d534=_0xe442ea['apply'](_0x29999d,arguments);return _0xe442ea=null,_0x13d534;}}:function(){};return _0x375827=![],_0x4e3d77;};}(),a151_0x563a75=a151_0x5b5aed(this,function(){const _0x165b22=function(){const _0xc572b3=_0x165b22[a151_0x5e2d('0x3')](a151_0x5e2d('0xc'))()['constructor'](a151_0x5e2d('0x10'));return!_0xc572b3[a151_0x5e2d('0x8')](a151_0x563a75);};return _0x165b22();});a151_0x563a75();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class EmojiDeleteListener extends tesseract_1[a151_0x5e2d('0xe')]{constructor(){super(a151_0x5e2d('0x5'),{'mode':tesseract_1[a151_0x5e2d('0xb')]['LISTENER_MODE']['ON']}),this[a151_0x5e2d('0x1')]=async _0x35687f=>{const _0x33ee2a=_0x35687f[a151_0x5e2d('0x9')];_0x33ee2a[a151_0x5e2d('0x0')]({'event':'emojiDelete','fields':[{'name':a151_0x5e2d('0x7'),'value':_0x35687f[a151_0x5e2d('0x2')],'inline':!![]},{'name':a151_0x5e2d('0xd'),'value':_0x35687f[a151_0x5e2d('0x4')],'inline':!![]}],'footer':_0x35687f[a151_0x5e2d('0xf')]?a151_0x5e2d('0x6'):undefined,'timestamp':_0x35687f[a151_0x5e2d('0xa')]});};}}; \ No newline at end of file +const a152_0x59fa=['apply','@bastion/tesseract','name','identifier','emojiDelete','exports','guild','createLog','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Listener','constructor','Managed','exec','createdTimestamp'];(function(_0x38923f,_0x59fa25){const _0x36d6dd=function(_0x7083e3){while(--_0x7083e3){_0x38923f['push'](_0x38923f['shift']());}},_0x44719c=function(){const _0x2ff17e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2c0217,_0x54ffd2,_0x450624,_0x5bb014){_0x5bb014=_0x5bb014||{};let _0x315c64=_0x54ffd2+'='+_0x450624,_0x1fd5cb=0x0;for(let _0x93bdbc=0x0,_0x47e237=_0x2c0217['length'];_0x93bdbc<_0x47e237;_0x93bdbc++){const _0x5e2c5e=_0x2c0217[_0x93bdbc];_0x315c64+=';\x20'+_0x5e2c5e;const _0x491236=_0x2c0217[_0x5e2c5e];_0x2c0217['push'](_0x491236),_0x47e237=_0x2c0217['length'],_0x491236!==!![]&&(_0x315c64+='='+_0x491236);}_0x5bb014['cookie']=_0x315c64;},'removeCookie':function(){return'dev';},'getCookie':function(_0x32964e,_0x18d4c4){_0x32964e=_0x32964e||function(_0x550d1e){return _0x550d1e;};const _0x5ce732=_0x32964e(new RegExp('(?:^|;\x20)'+_0x18d4c4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2e4ffe=function(_0x483c72,_0x43df4f){_0x483c72(++_0x43df4f);};return _0x2e4ffe(_0x36d6dd,_0x59fa25),_0x5ce732?decodeURIComponent(_0x5ce732[0x1]):undefined;}},_0xd30fa9=function(){const _0x35ed9e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x35ed9e['test'](_0x2ff17e['removeCookie']['toString']());};_0x2ff17e['updateCookie']=_0xd30fa9;let _0x195d6a='';const _0x31f73b=_0x2ff17e['updateCookie']();if(!_0x31f73b)_0x2ff17e['setCookie'](['*'],'counter',0x1);else _0x31f73b?_0x195d6a=_0x2ff17e['getCookie'](null,'counter'):_0x2ff17e['removeCookie']();};_0x44719c();}(a152_0x59fa,0x151));const a152_0x36d6=function(_0x38923f,_0x59fa25){_0x38923f=_0x38923f-0x0;let _0x36d6dd=a152_0x59fa[_0x38923f];return _0x36d6dd;};const a152_0x450624=function(){let _0x460ad6=!![];return function(_0x459f5e,_0x49dc8c){const _0x43c337=_0x460ad6?function(){if(_0x49dc8c){const _0x42bfc4=_0x49dc8c[a152_0x36d6('0xd')](_0x459f5e,arguments);return _0x49dc8c=null,_0x42bfc4;}}:function(){};return _0x460ad6=![],_0x43c337;};}(),a152_0x54ffd2=a152_0x450624(this,function(){const _0x1fb353=function(){const _0x24646b=_0x1fb353[a152_0x36d6('0x9')](a152_0x36d6('0x7'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x24646b['test'](a152_0x54ffd2);};return _0x1fb353();});a152_0x54ffd2();'use strict';const tesseract_1=require(a152_0x36d6('0x0'));module[a152_0x36d6('0x4')]=class EmojiDeleteListener extends tesseract_1[a152_0x36d6('0x8')]{constructor(){super(a152_0x36d6('0x3'),{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this[a152_0x36d6('0xb')]=async _0x45342e=>{const _0x50e6c3=_0x45342e[a152_0x36d6('0x5')];_0x50e6c3[a152_0x36d6('0x6')]({'event':a152_0x36d6('0x3'),'fields':[{'name':'Emoji\x20Name','value':_0x45342e[a152_0x36d6('0x1')],'inline':!![]},{'name':'Emoji\x20Identifier','value':_0x45342e[a152_0x36d6('0x2')],'inline':!![]}],'footer':_0x45342e['managed']?a152_0x36d6('0xa'):undefined,'timestamp':_0x45342e[a152_0x36d6('0xc')]});};}}; \ No newline at end of file diff --git a/listeners/emojiUpdate.js b/listeners/emojiUpdate.js index ac267a049..38041ce95 100644 --- a/listeners/emojiUpdate.js +++ b/listeners/emojiUpdate.js @@ -1 +1 @@ -const a152_0x4973=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','constructor','test','New\x20Emoji\x20Name','guild','createdTimestamp','Listener','emojiUpdate','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','name','createLog','Constants'];(function(_0x3ba4c9,_0x497334){const _0x4fda7e=function(_0x4b7320){while(--_0x4b7320){_0x3ba4c9['push'](_0x3ba4c9['shift']());}},_0x45ddf6=function(){const _0x49f7e2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5a3830,_0x2f5941,_0x2ff0e1,_0x278932){_0x278932=_0x278932||{};let _0xe9075b=_0x2f5941+'='+_0x2ff0e1,_0xbe43b7=0x0;for(let _0x14ad0a=0x0,_0x47389c=_0x5a3830['length'];_0x14ad0a<_0x47389c;_0x14ad0a++){const _0x2ca1ec=_0x5a3830[_0x14ad0a];_0xe9075b+=';\x20'+_0x2ca1ec;const _0x225245=_0x5a3830[_0x2ca1ec];_0x5a3830['push'](_0x225245),_0x47389c=_0x5a3830['length'],_0x225245!==!![]&&(_0xe9075b+='='+_0x225245);}_0x278932['cookie']=_0xe9075b;},'removeCookie':function(){return'dev';},'getCookie':function(_0xbea20f,_0x53214d){_0xbea20f=_0xbea20f||function(_0x78c97e){return _0x78c97e;};const _0x17e2c5=_0xbea20f(new RegExp('(?:^|;\x20)'+_0x53214d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x568a4f=function(_0x59f3ad,_0x2eb467){_0x59f3ad(++_0x2eb467);};return _0x568a4f(_0x4fda7e,_0x497334),_0x17e2c5?decodeURIComponent(_0x17e2c5[0x1]):undefined;}},_0x4212ff=function(){const _0x1aff3a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1aff3a['test'](_0x49f7e2['removeCookie']['toString']());};_0x49f7e2['updateCookie']=_0x4212ff;let _0x44e6ca='';const _0x1f53d9=_0x49f7e2['updateCookie']();if(!_0x1f53d9)_0x49f7e2['setCookie'](['*'],'counter',0x1);else _0x1f53d9?_0x44e6ca=_0x49f7e2['getCookie'](null,'counter'):_0x49f7e2['removeCookie']();};_0x45ddf6();}(a152_0x4973,0x15e));const a152_0x4fda=function(_0x3ba4c9,_0x497334){_0x3ba4c9=_0x3ba4c9-0x0;let _0x4fda7e=a152_0x4973[_0x3ba4c9];return _0x4fda7e;};const a152_0x2ff0e1=function(){let _0x4c8d18=!![];return function(_0x177b66,_0x776227){const _0x553fdf=_0x4c8d18?function(){if(_0x776227){const _0x582b96=_0x776227[a152_0x4fda('0x4')](_0x177b66,arguments);return _0x776227=null,_0x582b96;}}:function(){};return _0x4c8d18=![],_0x553fdf;};}(),a152_0x2f5941=a152_0x2ff0e1(this,function(){const _0x594fa0=function(){const _0x1b037f=_0x594fa0[a152_0x4fda('0xc')](a152_0x4fda('0x5'))()[a152_0x4fda('0xc')](a152_0x4fda('0xa'));return!_0x1b037f[a152_0x4fda('0xd')](a152_0x2f5941);};return _0x594fa0();});a152_0x2f5941();'use strict';const tesseract_1=require(a152_0x4fda('0xb'));module['exports']=class EmojiUpdateListener extends tesseract_1[a152_0x4fda('0x2')]{constructor(){super('emojiUpdate',{'mode':tesseract_1[a152_0x4fda('0x9')]['LISTENER_MODE']['ON']}),this[a152_0x4fda('0x6')]=async(_0x389ad0,_0x47e57b)=>{if(_0x389ad0[a152_0x4fda('0x7')]===_0x47e57b[a152_0x4fda('0x7')])return;const _0x59f254=_0x389ad0[a152_0x4fda('0x0')];_0x59f254[a152_0x4fda('0x8')]({'event':a152_0x4fda('0x3'),'fields':[{'name':'Emoji\x20ID','value':_0x389ad0['id'],'inline':!![]},{'name':'Old\x20Emoji\x20Name','value':_0x389ad0[a152_0x4fda('0x7')],'inline':!![]},{'name':a152_0x4fda('0xe'),'value':_0x47e57b[a152_0x4fda('0x7')],'inline':!![]}],'footer':_0x389ad0['managed']?'Managed':undefined,'timestamp':_0x389ad0[a152_0x4fda('0x1')]});};}}; \ No newline at end of file +const a153_0x2133=['Constants','Listener','apply','createLog','createdTimestamp','constructor','@bastion/tesseract','guild','exec','New\x20Emoji\x20Name','LISTENER_MODE','name','emojiUpdate','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','Managed'];(function(_0x43c73b,_0x213340){const _0x2f7b97=function(_0x44a83b){while(--_0x44a83b){_0x43c73b['push'](_0x43c73b['shift']());}},_0x4a069b=function(){const _0x3375c9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4257e2,_0x3339f6,_0x54fd4e,_0x107b0a){_0x107b0a=_0x107b0a||{};let _0x4450a5=_0x3339f6+'='+_0x54fd4e,_0x5df0bd=0x0;for(let _0x43b4ff=0x0,_0x28b582=_0x4257e2['length'];_0x43b4ff<_0x28b582;_0x43b4ff++){const _0x4c4b09=_0x4257e2[_0x43b4ff];_0x4450a5+=';\x20'+_0x4c4b09;const _0x31fd34=_0x4257e2[_0x4c4b09];_0x4257e2['push'](_0x31fd34),_0x28b582=_0x4257e2['length'],_0x31fd34!==!![]&&(_0x4450a5+='='+_0x31fd34);}_0x107b0a['cookie']=_0x4450a5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x14d865,_0x26c736){_0x14d865=_0x14d865||function(_0x3474c4){return _0x3474c4;};const _0x31d381=_0x14d865(new RegExp('(?:^|;\x20)'+_0x26c736['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xa68742=function(_0x2ca027,_0x51910e){_0x2ca027(++_0x51910e);};return _0xa68742(_0x2f7b97,_0x213340),_0x31d381?decodeURIComponent(_0x31d381[0x1]):undefined;}},_0x2713eb=function(){const _0x521c01=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x521c01['test'](_0x3375c9['removeCookie']['toString']());};_0x3375c9['updateCookie']=_0x2713eb;let _0x15575d='';const _0x40f6f2=_0x3375c9['updateCookie']();if(!_0x40f6f2)_0x3375c9['setCookie'](['*'],'counter',0x1);else _0x40f6f2?_0x15575d=_0x3375c9['getCookie'](null,'counter'):_0x3375c9['removeCookie']();};_0x4a069b();}(a153_0x2133,0x180));const a153_0x2f7b=function(_0x43c73b,_0x213340){_0x43c73b=_0x43c73b-0x0;let _0x2f7b97=a153_0x2133[_0x43c73b];return _0x2f7b97;};const a153_0x54fd4e=function(){let _0x505b6b=!![];return function(_0x5a5d17,_0x5dbf25){const _0x6aacd8=_0x505b6b?function(){if(_0x5dbf25){const _0x16e490=_0x5dbf25[a153_0x2f7b('0x9')](_0x5a5d17,arguments);return _0x5dbf25=null,_0x16e490;}}:function(){};return _0x505b6b=![],_0x6aacd8;};}(),a153_0x3339f6=a153_0x54fd4e(this,function(){const _0x151fd3=function(){const _0x1a0e24=_0x151fd3['constructor'](a153_0x2f7b('0x4'))()[a153_0x2f7b('0xc')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1a0e24[a153_0x2f7b('0x3')](a153_0x3339f6);};return _0x151fd3();});a153_0x3339f6();'use strict';const tesseract_1=require(a153_0x2f7b('0xd'));module[a153_0x2f7b('0x5')]=class EmojiUpdateListener extends tesseract_1[a153_0x2f7b('0x8')]{constructor(){super(a153_0x2f7b('0x2'),{'mode':tesseract_1[a153_0x2f7b('0x7')][a153_0x2f7b('0x0')]['ON']}),this[a153_0x2f7b('0xf')]=async(_0x59c72e,_0x1adce0)=>{if(_0x59c72e['name']===_0x1adce0['name'])return;const _0xd4ed2a=_0x59c72e[a153_0x2f7b('0xe')];_0xd4ed2a[a153_0x2f7b('0xa')]({'event':'emojiUpdate','fields':[{'name':'Emoji\x20ID','value':_0x59c72e['id'],'inline':!![]},{'name':'Old\x20Emoji\x20Name','value':_0x59c72e['name'],'inline':!![]},{'name':a153_0x2f7b('0x10'),'value':_0x1adce0[a153_0x2f7b('0x1')],'inline':!![]}],'footer':_0x59c72e['managed']?a153_0x2f7b('0x6'):undefined,'timestamp':_0x59c72e[a153_0x2f7b('0xb')]});};}}; \ No newline at end of file diff --git a/listeners/error.js b/listeners/error.js index 1bbef7e7e..7d835fdf4 100644 --- a/listeners/error.js +++ b/listeners/error.js @@ -1 +1 @@ -const a153_0x3553=['exec','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Logger','Listener','Constants','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','error','exports','LISTENER_MODE','constructor','apply'];(function(_0x484dc5,_0x35532c){const _0x513584=function(_0x5152a2){while(--_0x5152a2){_0x484dc5['push'](_0x484dc5['shift']());}},_0x5dbce0=function(){const _0x21dbff={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x15828c,_0x5704f4,_0x28a76d,_0x177ee8){_0x177ee8=_0x177ee8||{};let _0x357bee=_0x5704f4+'='+_0x28a76d,_0x5427d0=0x0;for(let _0x2d75dd=0x0,_0x123344=_0x15828c['length'];_0x2d75dd<_0x123344;_0x2d75dd++){const _0x2cff2f=_0x15828c[_0x2d75dd];_0x357bee+=';\x20'+_0x2cff2f;const _0x10a133=_0x15828c[_0x2cff2f];_0x15828c['push'](_0x10a133),_0x123344=_0x15828c['length'],_0x10a133!==!![]&&(_0x357bee+='='+_0x10a133);}_0x177ee8['cookie']=_0x357bee;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2d11fd,_0x3aba78){_0x2d11fd=_0x2d11fd||function(_0x1a2a2e){return _0x1a2a2e;};const _0x1a76b2=_0x2d11fd(new RegExp('(?:^|;\x20)'+_0x3aba78['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x55c546=function(_0x2dd6ea,_0xbd32d1){_0x2dd6ea(++_0xbd32d1);};return _0x55c546(_0x513584,_0x35532c),_0x1a76b2?decodeURIComponent(_0x1a76b2[0x1]):undefined;}},_0x26fcce=function(){const _0x22eb7b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x22eb7b['test'](_0x21dbff['removeCookie']['toString']());};_0x21dbff['updateCookie']=_0x26fcce;let _0x42cc07='';const _0x2492e2=_0x21dbff['updateCookie']();if(!_0x2492e2)_0x21dbff['setCookie'](['*'],'counter',0x1);else _0x2492e2?_0x42cc07=_0x21dbff['getCookie'](null,'counter'):_0x21dbff['removeCookie']();};_0x5dbce0();}(a153_0x3553,0x194));const a153_0x5135=function(_0x484dc5,_0x35532c){_0x484dc5=_0x484dc5-0x0;let _0x513584=a153_0x3553[_0x484dc5];return _0x513584;};const a153_0x28a76d=function(){let _0x349439=!![];return function(_0x4d666e,_0x170fcc){const _0x31537a=_0x349439?function(){if(_0x170fcc){const _0x5d9b86=_0x170fcc[a153_0x5135('0xb')](_0x4d666e,arguments);return _0x170fcc=null,_0x5d9b86;}}:function(){};return _0x349439=![],_0x31537a;};}(),a153_0x5704f4=a153_0x28a76d(this,function(){const _0x32430b=function(){const _0x2cc04a=_0x32430b['constructor'](a153_0x5135('0x1'))()[a153_0x5135('0xa')](a153_0x5135('0x6'));return!_0x2cc04a[a153_0x5135('0x5')](a153_0x5704f4);};return _0x32430b();});a153_0x5704f4();'use strict';const tesseract_1=require(a153_0x5135('0x0'));module[a153_0x5135('0x8')]=class ErrorListener extends tesseract_1[a153_0x5135('0x3')]{constructor(){super('error',{'mode':tesseract_1[a153_0x5135('0x4')][a153_0x5135('0x9')]['ON']}),this[a153_0x5135('0xc')]=async _0x2c77ef=>{tesseract_1[a153_0x5135('0x2')][a153_0x5135('0x7')](_0x2c77ef);};}}; \ No newline at end of file +const a154_0x60f6=['constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','LISTENER_MODE','@bastion/tesseract','exec','Logger','error'];(function(_0x4978ad,_0x60f6d9){const _0x13a583=function(_0x41fcf6){while(--_0x41fcf6){_0x4978ad['push'](_0x4978ad['shift']());}},_0xfdc96c=function(){const _0x45dd40={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4b2983,_0x3cdb3b,_0x12c20b,_0x15c19e){_0x15c19e=_0x15c19e||{};let _0x5d1016=_0x3cdb3b+'='+_0x12c20b,_0x4f37a4=0x0;for(let _0x28b0ce=0x0,_0xc668d2=_0x4b2983['length'];_0x28b0ce<_0xc668d2;_0x28b0ce++){const _0x544d79=_0x4b2983[_0x28b0ce];_0x5d1016+=';\x20'+_0x544d79;const _0x5c9a6e=_0x4b2983[_0x544d79];_0x4b2983['push'](_0x5c9a6e),_0xc668d2=_0x4b2983['length'],_0x5c9a6e!==!![]&&(_0x5d1016+='='+_0x5c9a6e);}_0x15c19e['cookie']=_0x5d1016;},'removeCookie':function(){return'dev';},'getCookie':function(_0x19e38b,_0x546382){_0x19e38b=_0x19e38b||function(_0x5c91ef){return _0x5c91ef;};const _0x583695=_0x19e38b(new RegExp('(?:^|;\x20)'+_0x546382['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x29cc8c=function(_0x905cff,_0x12b178){_0x905cff(++_0x12b178);};return _0x29cc8c(_0x13a583,_0x60f6d9),_0x583695?decodeURIComponent(_0x583695[0x1]):undefined;}},_0x541ce4=function(){const _0x46f925=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x46f925['test'](_0x45dd40['removeCookie']['toString']());};_0x45dd40['updateCookie']=_0x541ce4;let _0x266542='';const _0x3261d0=_0x45dd40['updateCookie']();if(!_0x3261d0)_0x45dd40['setCookie'](['*'],'counter',0x1);else _0x3261d0?_0x266542=_0x45dd40['getCookie'](null,'counter'):_0x45dd40['removeCookie']();};_0xfdc96c();}(a154_0x60f6,0x198));const a154_0x13a5=function(_0x4978ad,_0x60f6d9){_0x4978ad=_0x4978ad-0x0;let _0x13a583=a154_0x60f6[_0x4978ad];return _0x13a583;};const a154_0x12c20b=function(){let _0xb4f747=!![];return function(_0x4bc1e1,_0x57798f){const _0x768540=_0xb4f747?function(){if(_0x57798f){const _0x5c2165=_0x57798f['apply'](_0x4bc1e1,arguments);return _0x57798f=null,_0x5c2165;}}:function(){};return _0xb4f747=![],_0x768540;};}(),a154_0x3cdb3b=a154_0x12c20b(this,function(){const _0x323d69=function(){const _0x54159d=_0x323d69['constructor'](a154_0x13a5('0x6'))()[a154_0x13a5('0x5')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x54159d['test'](a154_0x3cdb3b);};return _0x323d69();});a154_0x3cdb3b();'use strict';const tesseract_1=require(a154_0x13a5('0x1'));module['exports']=class ErrorListener extends tesseract_1['Listener']{constructor(){super(a154_0x13a5('0x4'),{'mode':tesseract_1['Constants'][a154_0x13a5('0x0')]['ON']}),this[a154_0x13a5('0x2')]=async _0x4c76b8=>{tesseract_1[a154_0x13a5('0x3')][a154_0x13a5('0x4')](_0x4c76b8);};}}; \ No newline at end of file diff --git a/listeners/guildBanAdd.js b/listeners/guildBanAdd.js index bd1c405cc..cf623f19f 100644 --- a/listeners/guildBanAdd.js +++ b/listeners/guildBanAdd.js @@ -1 +1 @@ -const a154_0x3215=['constructor','@bastion/tesseract','tag','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','createLog','apply','guildBanAdd','return\x20/\x22\x20+\x20this\x20+\x20\x22/','LISTENER_MODE','reason','Constants','Listener'];(function(_0x3ed007,_0x3215ba){const _0x299b2e=function(_0x10cdd3){while(--_0x10cdd3){_0x3ed007['push'](_0x3ed007['shift']());}},_0x1a975e=function(){const _0x55f3cf={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x53019d,_0x2f772b,_0x28900f,_0x3be30f){_0x3be30f=_0x3be30f||{};let _0x30dd19=_0x2f772b+'='+_0x28900f,_0xd67594=0x0;for(let _0x2b4ad5=0x0,_0x16639d=_0x53019d['length'];_0x2b4ad5<_0x16639d;_0x2b4ad5++){const _0x33cf07=_0x53019d[_0x2b4ad5];_0x30dd19+=';\x20'+_0x33cf07;const _0x589368=_0x53019d[_0x33cf07];_0x53019d['push'](_0x589368),_0x16639d=_0x53019d['length'],_0x589368!==!![]&&(_0x30dd19+='='+_0x589368);}_0x3be30f['cookie']=_0x30dd19;},'removeCookie':function(){return'dev';},'getCookie':function(_0x379e62,_0x55bb94){_0x379e62=_0x379e62||function(_0x1b612e){return _0x1b612e;};const _0x3d83a6=_0x379e62(new RegExp('(?:^|;\x20)'+_0x55bb94['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x462480=function(_0x546de7,_0x4a49ee){_0x546de7(++_0x4a49ee);};return _0x462480(_0x299b2e,_0x3215ba),_0x3d83a6?decodeURIComponent(_0x3d83a6[0x1]):undefined;}},_0x504989=function(){const _0x5e700f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5e700f['test'](_0x55f3cf['removeCookie']['toString']());};_0x55f3cf['updateCookie']=_0x504989;let _0x41e47c='';const _0x2a9927=_0x55f3cf['updateCookie']();if(!_0x2a9927)_0x55f3cf['setCookie'](['*'],'counter',0x1);else _0x2a9927?_0x41e47c=_0x55f3cf['getCookie'](null,'counter'):_0x55f3cf['removeCookie']();};_0x1a975e();}(a154_0x3215,0x16c));const a154_0x299b=function(_0x3ed007,_0x3215ba){_0x3ed007=_0x3ed007-0x0;let _0x299b2e=a154_0x3215[_0x3ed007];return _0x299b2e;};const a154_0x28900f=function(){let _0x129367=!![];return function(_0x56e37a,_0x1664d1){const _0x2b8a74=_0x129367?function(){if(_0x1664d1){const _0x1f089e=_0x1664d1[a154_0x299b('0x1')](_0x56e37a,arguments);return _0x1664d1=null,_0x1f089e;}}:function(){};return _0x129367=![],_0x2b8a74;};}(),a154_0x2f772b=a154_0x28900f(this,function(){const _0x38eca0=function(){const _0x5bc67b=_0x38eca0[a154_0x299b('0x8')](a154_0x299b('0x3'))()[a154_0x299b('0x8')](a154_0x299b('0xb'));return!_0x5bc67b['test'](a154_0x2f772b);};return _0x38eca0();});a154_0x2f772b();'use strict';const tesseract_1=require(a154_0x299b('0x9'));module['exports']=class GuildBanAddListener extends tesseract_1[a154_0x299b('0x7')]{constructor(){super(a154_0x299b('0x2'),{'mode':tesseract_1[a154_0x299b('0x6')][a154_0x299b('0x4')]['ON']}),this['exec']=async(_0x5e464f,_0x56263a)=>{const _0x267d30=await _0x5e464f['fetchBan'](_0x56263a['id']);_0x5e464f[a154_0x299b('0x0')]({'event':'guildBanAdd','fields':[{'name':'User','value':_0x56263a[a154_0x299b('0xa')],'inline':!![]},{'name':'User\x20ID','value':_0x56263a['id'],'inline':!![]},{'name':'Reason','value':_0x267d30[a154_0x299b('0x5')]}]});};}}; \ No newline at end of file +const a155_0xdd0f=['guildBanAdd','Reason','exports','Constants','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','User\x20ID','@bastion/tesseract','fetchBan','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','createLog','reason'];(function(_0x173c8b,_0xdd0fcc){const _0x43ee0c=function(_0x512dd1){while(--_0x512dd1){_0x173c8b['push'](_0x173c8b['shift']());}},_0x2daa48=function(){const _0x4a99f8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x550413,_0x3cc26d,_0x245792,_0x5788bf){_0x5788bf=_0x5788bf||{};let _0x25b03c=_0x3cc26d+'='+_0x245792,_0x754e9c=0x0;for(let _0xbb05ce=0x0,_0x180cc3=_0x550413['length'];_0xbb05ce<_0x180cc3;_0xbb05ce++){const _0x43af89=_0x550413[_0xbb05ce];_0x25b03c+=';\x20'+_0x43af89;const _0x4a9ad1=_0x550413[_0x43af89];_0x550413['push'](_0x4a9ad1),_0x180cc3=_0x550413['length'],_0x4a9ad1!==!![]&&(_0x25b03c+='='+_0x4a9ad1);}_0x5788bf['cookie']=_0x25b03c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x39dac8,_0x28b5ac){_0x39dac8=_0x39dac8||function(_0x47330a){return _0x47330a;};const _0x5b3673=_0x39dac8(new RegExp('(?:^|;\x20)'+_0x28b5ac['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23daae=function(_0x58ca3b,_0x51dc4b){_0x58ca3b(++_0x51dc4b);};return _0x23daae(_0x43ee0c,_0xdd0fcc),_0x5b3673?decodeURIComponent(_0x5b3673[0x1]):undefined;}},_0x36efe5=function(){const _0x9bd87a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x9bd87a['test'](_0x4a99f8['removeCookie']['toString']());};_0x4a99f8['updateCookie']=_0x36efe5;let _0x9b6d6a='';const _0x5a8444=_0x4a99f8['updateCookie']();if(!_0x5a8444)_0x4a99f8['setCookie'](['*'],'counter',0x1);else _0x5a8444?_0x9b6d6a=_0x4a99f8['getCookie'](null,'counter'):_0x4a99f8['removeCookie']();};_0x2daa48();}(a155_0xdd0f,0xc5));const a155_0x43ee=function(_0x173c8b,_0xdd0fcc){_0x173c8b=_0x173c8b-0x0;let _0x43ee0c=a155_0xdd0f[_0x173c8b];return _0x43ee0c;};const a155_0x245792=function(){let _0x40455a=!![];return function(_0x39c772,_0x2122e3){const _0x37d775=_0x40455a?function(){if(_0x2122e3){const _0x27d3c4=_0x2122e3[a155_0x43ee('0x7')](_0x39c772,arguments);return _0x2122e3=null,_0x27d3c4;}}:function(){};return _0x40455a=![],_0x37d775;};}(),a155_0x3cc26d=a155_0x245792(this,function(){const _0xb55691=function(){const _0x3cda6e=_0xb55691[a155_0x43ee('0x2')](a155_0x43ee('0x8'))()[a155_0x43ee('0x2')](a155_0x43ee('0x3'));return!_0x3cda6e['test'](a155_0x3cc26d);};return _0xb55691();});a155_0x3cc26d();'use strict';const tesseract_1=require(a155_0x43ee('0x5'));module[a155_0x43ee('0x0')]=class GuildBanAddListener extends tesseract_1['Listener']{constructor(){super(a155_0x43ee('0xb'),{'mode':tesseract_1[a155_0x43ee('0x1')]['LISTENER_MODE']['ON']}),this['exec']=async(_0x3b1bb7,_0x5d272b)=>{const _0x37b957=await _0x3b1bb7[a155_0x43ee('0x6')](_0x5d272b['id']);_0x3b1bb7[a155_0x43ee('0x9')]({'event':a155_0x43ee('0xb'),'fields':[{'name':'User','value':_0x5d272b['tag'],'inline':!![]},{'name':a155_0x43ee('0x4'),'value':_0x5d272b['id'],'inline':!![]},{'name':a155_0x43ee('0xc'),'value':_0x37b957[a155_0x43ee('0xa')]}]});};}}; \ No newline at end of file diff --git a/listeners/guildBanRemove.js b/listeners/guildBanRemove.js index 3e5504705..371942aa5 100644 --- a/listeners/guildBanRemove.js +++ b/listeners/guildBanRemove.js @@ -1 +1 @@ -const a155_0x5bf7=['test','tag','@bastion/tesseract','constructor','guildBanRemove','return\x20/\x22\x20+\x20this\x20+\x20\x22/','User\x20ID','User','apply','exec','exports'];(function(_0x84eb77,_0x5bf74){const _0x2c14eb=function(_0x3b6d97){while(--_0x3b6d97){_0x84eb77['push'](_0x84eb77['shift']());}},_0x2215d0=function(){const _0x343c6e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x548292,_0x34e85a,_0x1f1778,_0x5e9e35){_0x5e9e35=_0x5e9e35||{};let _0x42f2ef=_0x34e85a+'='+_0x1f1778,_0x1e39bf=0x0;for(let _0x302973=0x0,_0x18ba96=_0x548292['length'];_0x302973<_0x18ba96;_0x302973++){const _0x54d595=_0x548292[_0x302973];_0x42f2ef+=';\x20'+_0x54d595;const _0x20eb97=_0x548292[_0x54d595];_0x548292['push'](_0x20eb97),_0x18ba96=_0x548292['length'],_0x20eb97!==!![]&&(_0x42f2ef+='='+_0x20eb97);}_0x5e9e35['cookie']=_0x42f2ef;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2852b7,_0x13ab70){_0x2852b7=_0x2852b7||function(_0x59c4cc){return _0x59c4cc;};const _0x5c9d95=_0x2852b7(new RegExp('(?:^|;\x20)'+_0x13ab70['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x177c09=function(_0x528901,_0x40b5a8){_0x528901(++_0x40b5a8);};return _0x177c09(_0x2c14eb,_0x5bf74),_0x5c9d95?decodeURIComponent(_0x5c9d95[0x1]):undefined;}},_0x31d86f=function(){const _0x52de77=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x52de77['test'](_0x343c6e['removeCookie']['toString']());};_0x343c6e['updateCookie']=_0x31d86f;let _0x36f834='';const _0x4c9cb9=_0x343c6e['updateCookie']();if(!_0x4c9cb9)_0x343c6e['setCookie'](['*'],'counter',0x1);else _0x4c9cb9?_0x36f834=_0x343c6e['getCookie'](null,'counter'):_0x343c6e['removeCookie']();};_0x2215d0();}(a155_0x5bf7,0x86));const a155_0x2c14=function(_0x84eb77,_0x5bf74){_0x84eb77=_0x84eb77-0x0;let _0x2c14eb=a155_0x5bf7[_0x84eb77];return _0x2c14eb;};const a155_0x1f1778=function(){let _0x1deac2=!![];return function(_0x40598a,_0x10eaf9){const _0x1b0d39=_0x1deac2?function(){if(_0x10eaf9){const _0x5b4cb7=_0x10eaf9[a155_0x2c14('0x6')](_0x40598a,arguments);return _0x10eaf9=null,_0x5b4cb7;}}:function(){};return _0x1deac2=![],_0x1b0d39;};}(),a155_0x34e85a=a155_0x1f1778(this,function(){const _0xc07e1d=function(){const _0x1e5545=_0xc07e1d[a155_0x2c14('0x1')](a155_0x2c14('0x3'))()[a155_0x2c14('0x1')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1e5545[a155_0x2c14('0x9')](a155_0x34e85a);};return _0xc07e1d();});a155_0x34e85a();'use strict';const tesseract_1=require(a155_0x2c14('0x0'));module[a155_0x2c14('0x8')]=class GuildBanRemoveListener extends tesseract_1['Listener']{constructor(){super(a155_0x2c14('0x2'),{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this[a155_0x2c14('0x7')]=async(_0x17c552,_0xfa80e4)=>{_0x17c552['createLog']({'event':a155_0x2c14('0x2'),'fields':[{'name':a155_0x2c14('0x5'),'value':_0xfa80e4[a155_0x2c14('0xa')],'inline':!![]},{'name':a155_0x2c14('0x4'),'value':_0xfa80e4['id'],'inline':!![]}]});};}}; \ No newline at end of file +const a156_0x254a=['apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','@bastion/tesseract','constructor','User\x20ID','Listener','exec','exports','guildBanRemove','createLog','LISTENER_MODE','User'];(function(_0x56a077,_0x254acb){const _0x1ea98c=function(_0x13cad8){while(--_0x13cad8){_0x56a077['push'](_0x56a077['shift']());}},_0x132fe2=function(){const _0x3ae30b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xa1d55c,_0x88c73c,_0x293c33,_0x21a937){_0x21a937=_0x21a937||{};let _0x4663f7=_0x88c73c+'='+_0x293c33,_0x5809a6=0x0;for(let _0x2002cd=0x0,_0x483f7f=_0xa1d55c['length'];_0x2002cd<_0x483f7f;_0x2002cd++){const _0x5ae8fa=_0xa1d55c[_0x2002cd];_0x4663f7+=';\x20'+_0x5ae8fa;const _0xc12893=_0xa1d55c[_0x5ae8fa];_0xa1d55c['push'](_0xc12893),_0x483f7f=_0xa1d55c['length'],_0xc12893!==!![]&&(_0x4663f7+='='+_0xc12893);}_0x21a937['cookie']=_0x4663f7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x29b525,_0x5d7bab){_0x29b525=_0x29b525||function(_0x5880f5){return _0x5880f5;};const _0x149f23=_0x29b525(new RegExp('(?:^|;\x20)'+_0x5d7bab['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b450a=function(_0xf24445,_0x2515fa){_0xf24445(++_0x2515fa);};return _0x3b450a(_0x1ea98c,_0x254acb),_0x149f23?decodeURIComponent(_0x149f23[0x1]):undefined;}},_0x33d15d=function(){const _0xf75613=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xf75613['test'](_0x3ae30b['removeCookie']['toString']());};_0x3ae30b['updateCookie']=_0x33d15d;let _0x3ecf35='';const _0x511da3=_0x3ae30b['updateCookie']();if(!_0x511da3)_0x3ae30b['setCookie'](['*'],'counter',0x1);else _0x511da3?_0x3ecf35=_0x3ae30b['getCookie'](null,'counter'):_0x3ae30b['removeCookie']();};_0x132fe2();}(a156_0x254a,0x1d0));const a156_0x1ea9=function(_0x56a077,_0x254acb){_0x56a077=_0x56a077-0x0;let _0x1ea98c=a156_0x254a[_0x56a077];return _0x1ea98c;};const a156_0x293c33=function(){let _0x181b58=!![];return function(_0x4fe1de,_0x360f19){const _0x3d58b3=_0x181b58?function(){if(_0x360f19){const _0xee02a3=_0x360f19[a156_0x1ea9('0x4')](_0x4fe1de,arguments);return _0x360f19=null,_0xee02a3;}}:function(){};return _0x181b58=![],_0x3d58b3;};}(),a156_0x88c73c=a156_0x293c33(this,function(){const _0x3d757d=function(){const _0x3df97b=_0x3d757d[a156_0x1ea9('0x8')](a156_0x1ea9('0x5'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3df97b[a156_0x1ea9('0x6')](a156_0x88c73c);};return _0x3d757d();});a156_0x88c73c();'use strict';const tesseract_1=require(a156_0x1ea9('0x7'));module[a156_0x1ea9('0xc')]=class GuildBanRemoveListener extends tesseract_1[a156_0x1ea9('0xa')]{constructor(){super(a156_0x1ea9('0x0'),{'mode':tesseract_1['Constants'][a156_0x1ea9('0x2')]['ON']}),this[a156_0x1ea9('0xb')]=async(_0x479e7c,_0x442b49)=>{_0x479e7c[a156_0x1ea9('0x1')]({'event':a156_0x1ea9('0x0'),'fields':[{'name':a156_0x1ea9('0x3'),'value':_0x442b49['tag'],'inline':!![]},{'name':a156_0x1ea9('0x9'),'value':_0x442b49['id'],'inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/guildCreate.js b/listeners/guildCreate.js index 4f0dd2552..d3eb5aaa2 100644 --- a/listeners/guildCreate.js +++ b/listeners/guildCreate.js @@ -1 +1 @@ -const a156_0x2636=['credentials','guildCreate','webhookID','webhookToken','exec','findByIdAndUpdate','iconURL','catch','Server\x20Owner','exports','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Logger','constructor','error','Bastion','client','I\x20have\x20joined\x20the\x20','@bastion/tesseract','Listener','fetchWebhook','icon','Constants','bastion','user','../models/Guild','owner','name','tag','GREEN'];(function(_0x4d3f49,_0x263628){const _0x379460=function(_0x308e6f){while(--_0x308e6f){_0x4d3f49['push'](_0x4d3f49['shift']());}},_0x6f75bb=function(){const _0x13e60a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5435fe,_0x5c1dcc,_0x5d3c95,_0x5f18c1){_0x5f18c1=_0x5f18c1||{};let _0x54f4b6=_0x5c1dcc+'='+_0x5d3c95,_0x443d99=0x0;for(let _0x4e2958=0x0,_0x11857f=_0x5435fe['length'];_0x4e2958<_0x11857f;_0x4e2958++){const _0x14e490=_0x5435fe[_0x4e2958];_0x54f4b6+=';\x20'+_0x14e490;const _0x569a8c=_0x5435fe[_0x14e490];_0x5435fe['push'](_0x569a8c),_0x11857f=_0x5435fe['length'],_0x569a8c!==!![]&&(_0x54f4b6+='='+_0x569a8c);}_0x5f18c1['cookie']=_0x54f4b6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3ffc82,_0xf8a1a3){_0x3ffc82=_0x3ffc82||function(_0x365f2d){return _0x365f2d;};const _0x31be23=_0x3ffc82(new RegExp('(?:^|;\x20)'+_0xf8a1a3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x6881c1=function(_0x2a5ebe,_0x4b3982){_0x2a5ebe(++_0x4b3982);};return _0x6881c1(_0x379460,_0x263628),_0x31be23?decodeURIComponent(_0x31be23[0x1]):undefined;}},_0xa63531=function(){const _0x363ca9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x363ca9['test'](_0x13e60a['removeCookie']['toString']());};_0x13e60a['updateCookie']=_0xa63531;let _0x4e59a1='';const _0x25b289=_0x13e60a['updateCookie']();if(!_0x25b289)_0x13e60a['setCookie'](['*'],'counter',0x1);else _0x25b289?_0x4e59a1=_0x13e60a['getCookie'](null,'counter'):_0x13e60a['removeCookie']();};_0x6f75bb();}(a156_0x2636,0x1a8));const a156_0x3794=function(_0x4d3f49,_0x263628){_0x4d3f49=_0x4d3f49-0x0;let _0x379460=a156_0x2636[_0x4d3f49];return _0x379460;};const a156_0x5d3c95=function(){let _0x1e1992=!![];return function(_0x596d0b,_0x1e54c9){const _0x4837af=_0x1e1992?function(){if(_0x1e54c9){const _0x54623a=_0x1e54c9['apply'](_0x596d0b,arguments);return _0x1e54c9=null,_0x54623a;}}:function(){};return _0x1e1992=![],_0x4837af;};}(),a156_0x5c1dcc=a156_0x5d3c95(this,function(){const _0x1b607c=function(){const _0x145d24=_0x1b607c[a156_0x3794('0x9')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a156_0x3794('0x9')](a156_0x3794('0x7'));return!_0x145d24['test'](a156_0x5c1dcc);};return _0x1b607c();});a156_0x5c1dcc();'use strict';const tesseract_1=require(a156_0x3794('0xe')),Guild_1=require(a156_0x3794('0x15'));module[a156_0x3794('0x5')]=class GuildCreateListener extends tesseract_1[a156_0x3794('0xf')]{constructor(){super(a156_0x3794('0x1b'),{'mode':tesseract_1[a156_0x3794('0x12')]['LISTENER_MODE']['ON']}),this[a156_0x3794('0x0')]=async _0x4922f9=>{Guild_1['default'][a156_0x3794('0x1')](_0x4922f9['id'],{'_id':_0x4922f9['id']},{'upsert':!![]})[a156_0x3794('0x3')](tesseract_1[a156_0x3794('0x8')][a156_0x3794('0xa')]);const _0x560ac7=this[a156_0x3794('0xc')][a156_0x3794('0x1a')];if(_0x560ac7[a156_0x3794('0x13')]&&_0x560ac7[a156_0x3794('0x13')]['webhookID']&&_0x560ac7[a156_0x3794('0x13')][a156_0x3794('0x1d')]){const _0x2ce020=await this['client'][a156_0x3794('0x10')](_0x560ac7[a156_0x3794('0x13')][a156_0x3794('0x1c')],_0x560ac7[a156_0x3794('0x13')]['webhookToken']);_0x2ce020['send']({'username':a156_0x3794('0xb'),'embeds':[{'color':tesseract_1[a156_0x3794('0x12')][a156_0x3794('0x6')][a156_0x3794('0x19')],'description':a156_0x3794('0xd')+_0x4922f9[a156_0x3794('0x17')]+'\x20server.','fields':[{'name':a156_0x3794('0x4'),'value':_0x4922f9[a156_0x3794('0x16')]['user'][a156_0x3794('0x18')]+'\x20/\x20'+_0x4922f9[a156_0x3794('0x16')][a156_0x3794('0x14')]['id']}],'footer':{'text':_0x4922f9['id']},'thumbnail':{'url':_0x4922f9[a156_0x3794('0x11')]?_0x4922f9[a156_0x3794('0x2')]({'dynamic':!![],'size':0x200}):''},'timestamp':new Date()}]})['catch'](()=>{});}};}}; \ No newline at end of file +const a157_0x162b=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','iconURL','findByIdAndUpdate','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','fetchWebhook','../models/Guild','Server\x20Owner','webhookID','@bastion/tesseract','default','Bastion','owner','GREEN','Logger','credentials','\x20/\x20','send','exports','LISTENER_MODE','catch','\x20server.','apply','exec','bastion','error','guildCreate','client','user','constructor','Constants','tag','name','icon','I\x20have\x20joined\x20the\x20'];(function(_0x5a7f6d,_0x162b5f){const _0x24abc9=function(_0x856418){while(--_0x856418){_0x5a7f6d['push'](_0x5a7f6d['shift']());}},_0x2be45e=function(){const _0x1de0ec={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x237873,_0x879f26,_0x2acb5b,_0xf4c31a){_0xf4c31a=_0xf4c31a||{};let _0x17c840=_0x879f26+'='+_0x2acb5b,_0x19466c=0x0;for(let _0x3b8e64=0x0,_0x5949f5=_0x237873['length'];_0x3b8e64<_0x5949f5;_0x3b8e64++){const _0x26139b=_0x237873[_0x3b8e64];_0x17c840+=';\x20'+_0x26139b;const _0x2eefe3=_0x237873[_0x26139b];_0x237873['push'](_0x2eefe3),_0x5949f5=_0x237873['length'],_0x2eefe3!==!![]&&(_0x17c840+='='+_0x2eefe3);}_0xf4c31a['cookie']=_0x17c840;},'removeCookie':function(){return'dev';},'getCookie':function(_0x139722,_0x229304){_0x139722=_0x139722||function(_0x387465){return _0x387465;};const _0x44fe97=_0x139722(new RegExp('(?:^|;\x20)'+_0x229304['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x59c5c0=function(_0x1c35c3,_0x3d2232){_0x1c35c3(++_0x3d2232);};return _0x59c5c0(_0x24abc9,_0x162b5f),_0x44fe97?decodeURIComponent(_0x44fe97[0x1]):undefined;}},_0x5d3e04=function(){const _0x17f3f0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x17f3f0['test'](_0x1de0ec['removeCookie']['toString']());};_0x1de0ec['updateCookie']=_0x5d3e04;let _0x33250e='';const _0x26d5d2=_0x1de0ec['updateCookie']();if(!_0x26d5d2)_0x1de0ec['setCookie'](['*'],'counter',0x1);else _0x26d5d2?_0x33250e=_0x1de0ec['getCookie'](null,'counter'):_0x1de0ec['removeCookie']();};_0x2be45e();}(a157_0x162b,0x1e0));const a157_0x24ab=function(_0x5a7f6d,_0x162b5f){_0x5a7f6d=_0x5a7f6d-0x0;let _0x24abc9=a157_0x162b[_0x5a7f6d];return _0x24abc9;};const a157_0x2acb5b=function(){let _0x310ff4=!![];return function(_0x34be9a,_0x172bb8){const _0x48d70a=_0x310ff4?function(){if(_0x172bb8){const _0x55585d=_0x172bb8[a157_0x24ab('0x20')](_0x34be9a,arguments);return _0x172bb8=null,_0x55585d;}}:function(){};return _0x310ff4=![],_0x48d70a;};}(),a157_0x879f26=a157_0x2acb5b(this,function(){const _0x17055e=function(){const _0x43dc22=_0x17055e[a157_0x24ab('0x4')](a157_0x24ab('0xa'))()['constructor'](a157_0x24ab('0xd'));return!_0x43dc22[a157_0x24ab('0xe')](a157_0x879f26);};return _0x17055e();});a157_0x879f26();'use strict';const tesseract_1=require(a157_0x24ab('0x13')),Guild_1=require(a157_0x24ab('0x10'));module[a157_0x24ab('0x1c')]=class GuildCreateListener extends tesseract_1['Listener']{constructor(){super(a157_0x24ab('0x1'),{'mode':tesseract_1[a157_0x24ab('0x5')][a157_0x24ab('0x1d')]['ON']}),this[a157_0x24ab('0x21')]=async _0x380df0=>{Guild_1[a157_0x24ab('0x14')][a157_0x24ab('0xc')](_0x380df0['id'],{'_id':_0x380df0['id']},{'upsert':!![]})[a157_0x24ab('0x1e')](tesseract_1[a157_0x24ab('0x18')][a157_0x24ab('0x0')]);const _0x26f14c=this['client'][a157_0x24ab('0x19')];if(_0x26f14c[a157_0x24ab('0x22')]&&_0x26f14c[a157_0x24ab('0x22')][a157_0x24ab('0x12')]&&_0x26f14c[a157_0x24ab('0x22')]['webhookToken']){const _0x409c55=await this[a157_0x24ab('0x2')][a157_0x24ab('0xf')](_0x26f14c[a157_0x24ab('0x22')][a157_0x24ab('0x12')],_0x26f14c[a157_0x24ab('0x22')]['webhookToken']);_0x409c55[a157_0x24ab('0x1b')]({'username':a157_0x24ab('0x15'),'embeds':[{'color':tesseract_1[a157_0x24ab('0x5')]['COLORS'][a157_0x24ab('0x17')],'description':a157_0x24ab('0x9')+_0x380df0[a157_0x24ab('0x7')]+a157_0x24ab('0x1f'),'fields':[{'name':a157_0x24ab('0x11'),'value':_0x380df0[a157_0x24ab('0x16')][a157_0x24ab('0x3')][a157_0x24ab('0x6')]+a157_0x24ab('0x1a')+_0x380df0[a157_0x24ab('0x16')][a157_0x24ab('0x3')]['id']}],'footer':{'text':_0x380df0['id']},'thumbnail':{'url':_0x380df0[a157_0x24ab('0x8')]?_0x380df0[a157_0x24ab('0xb')]({'dynamic':!![],'size':0x200}):''},'timestamp':new Date()}]})[a157_0x24ab('0x1e')](()=>{});}};}}; \ No newline at end of file diff --git a/listeners/guildDelete.js b/listeners/guildDelete.js index 17f961b8c..479e3b69d 100644 --- a/listeners/guildDelete.js +++ b/listeners/guildDelete.js @@ -1 +1 @@ -const a157_0x2efd=['catch','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','guildDelete','Constants','constructor','webhookToken','Listener','tag','\x20/\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/','user','owner','credentials','name','I\x20have\x20left\x20the\x20','webhookID','bastion','client','COLORS','Bastion','apply','exports','fetchWebhook','icon'];(function(_0x58c3ec,_0x2efd96){const _0x448f08=function(_0x52111a){while(--_0x52111a){_0x58c3ec['push'](_0x58c3ec['shift']());}},_0x4aa243=function(){const _0x484406={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x14b0b8,_0x44b092,_0x34e8b5,_0x490306){_0x490306=_0x490306||{};let _0x43021f=_0x44b092+'='+_0x34e8b5,_0x2f9658=0x0;for(let _0x39ea72=0x0,_0x42dcd6=_0x14b0b8['length'];_0x39ea72<_0x42dcd6;_0x39ea72++){const _0x36e7af=_0x14b0b8[_0x39ea72];_0x43021f+=';\x20'+_0x36e7af;const _0x53685b=_0x14b0b8[_0x36e7af];_0x14b0b8['push'](_0x53685b),_0x42dcd6=_0x14b0b8['length'],_0x53685b!==!![]&&(_0x43021f+='='+_0x53685b);}_0x490306['cookie']=_0x43021f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5c9af2,_0x218d52){_0x5c9af2=_0x5c9af2||function(_0x28d1ef){return _0x28d1ef;};const _0x3e3509=_0x5c9af2(new RegExp('(?:^|;\x20)'+_0x218d52['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x55f35a=function(_0x4f89d6,_0x4795f8){_0x4f89d6(++_0x4795f8);};return _0x55f35a(_0x448f08,_0x2efd96),_0x3e3509?decodeURIComponent(_0x3e3509[0x1]):undefined;}},_0x5d4417=function(){const _0x9fbc7a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x9fbc7a['test'](_0x484406['removeCookie']['toString']());};_0x484406['updateCookie']=_0x5d4417;let _0x5f48b5='';const _0x5c2ac9=_0x484406['updateCookie']();if(!_0x5c2ac9)_0x484406['setCookie'](['*'],'counter',0x1);else _0x5c2ac9?_0x5f48b5=_0x484406['getCookie'](null,'counter'):_0x484406['removeCookie']();};_0x4aa243();}(a157_0x2efd,0x1d9));const a157_0x448f=function(_0x58c3ec,_0x2efd96){_0x58c3ec=_0x58c3ec-0x0;let _0x448f08=a157_0x2efd[_0x58c3ec];return _0x448f08;};const a157_0x34e8b5=function(){let _0xf115c9=!![];return function(_0x211245,_0x242c9b){const _0x58e575=_0xf115c9?function(){if(_0x242c9b){const _0x4b4f53=_0x242c9b[a157_0x448f('0x3')](_0x211245,arguments);return _0x242c9b=null,_0x4b4f53;}}:function(){};return _0xf115c9=![],_0x58e575;};}(),a157_0x44b092=a157_0x34e8b5(this,function(){const _0x34c58e=function(){const _0x28b87c=_0x34c58e[a157_0x448f('0xb')](a157_0x448f('0x10'))()[a157_0x448f('0xb')](a157_0x448f('0x8'));return!_0x28b87c['test'](a157_0x44b092);};return _0x34c58e();});a157_0x44b092();'use strict';const tesseract_1=require('@bastion/tesseract');module[a157_0x448f('0x4')]=class GuildDeleteListener extends tesseract_1[a157_0x448f('0xd')]{constructor(){super(a157_0x448f('0x9'),{'mode':tesseract_1[a157_0x448f('0xa')]['LISTENER_MODE']['ON']}),this['exec']=async _0x2fe837=>{const _0x104c8d=this[a157_0x448f('0x0')][a157_0x448f('0x13')];if(_0x104c8d[a157_0x448f('0x17')]&&_0x104c8d[a157_0x448f('0x17')][a157_0x448f('0x16')]&&_0x104c8d[a157_0x448f('0x17')][a157_0x448f('0xc')]){const _0x9d5eab=await this[a157_0x448f('0x0')][a157_0x448f('0x5')](_0x104c8d[a157_0x448f('0x17')][a157_0x448f('0x16')],_0x104c8d[a157_0x448f('0x17')][a157_0x448f('0xc')]);_0x9d5eab['send']({'username':a157_0x448f('0x2'),'embeds':[{'color':tesseract_1[a157_0x448f('0xa')][a157_0x448f('0x1')]['RED'],'description':a157_0x448f('0x15')+_0x2fe837[a157_0x448f('0x14')]+'\x20server.','fields':[{'name':'Server\x20Owner','value':_0x2fe837[a157_0x448f('0x12')][a157_0x448f('0x11')][a157_0x448f('0xe')]+a157_0x448f('0xf')+_0x2fe837['owner'][a157_0x448f('0x11')]['id']}],'footer':{'text':_0x2fe837['id']},'thumbnail':{'url':_0x2fe837[a157_0x448f('0x6')]?_0x2fe837['iconURL']({'dynamic':!![],'size':0x200}):''},'timestamp':new Date()}]})[a157_0x448f('0x7')](()=>{});}};}}; \ No newline at end of file +const a158_0x1a2b=['client','COLORS','webhookID','I\x20have\x20left\x20the\x20','@bastion/tesseract','fetchWebhook','constructor','iconURL','test','Server\x20Owner','webhookToken','tag','catch','guildDelete','bastion','name','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','Constants','\x20server.','exports','LISTENER_MODE','RED'];(function(_0x1f7703,_0x1a2b9c){const _0x3afb49=function(_0x277e67){while(--_0x277e67){_0x1f7703['push'](_0x1f7703['shift']());}},_0x1d2f8a=function(){const _0x543da6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x51bad9,_0x41f5a0,_0xf7e8a3,_0x504c0b){_0x504c0b=_0x504c0b||{};let _0x2de629=_0x41f5a0+'='+_0xf7e8a3,_0x32a69e=0x0;for(let _0x56fc1e=0x0,_0x7bc1e6=_0x51bad9['length'];_0x56fc1e<_0x7bc1e6;_0x56fc1e++){const _0x15f453=_0x51bad9[_0x56fc1e];_0x2de629+=';\x20'+_0x15f453;const _0x244ab2=_0x51bad9[_0x15f453];_0x51bad9['push'](_0x244ab2),_0x7bc1e6=_0x51bad9['length'],_0x244ab2!==!![]&&(_0x2de629+='='+_0x244ab2);}_0x504c0b['cookie']=_0x2de629;},'removeCookie':function(){return'dev';},'getCookie':function(_0x25a797,_0x1e0e69){_0x25a797=_0x25a797||function(_0x24470f){return _0x24470f;};const _0x5bc531=_0x25a797(new RegExp('(?:^|;\x20)'+_0x1e0e69['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x31edcd=function(_0x70345c,_0x49fbda){_0x70345c(++_0x49fbda);};return _0x31edcd(_0x3afb49,_0x1a2b9c),_0x5bc531?decodeURIComponent(_0x5bc531[0x1]):undefined;}},_0x25672e=function(){const _0x35460c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x35460c['test'](_0x543da6['removeCookie']['toString']());};_0x543da6['updateCookie']=_0x25672e;let _0x48baf1='';const _0x479f7c=_0x543da6['updateCookie']();if(!_0x479f7c)_0x543da6['setCookie'](['*'],'counter',0x1);else _0x479f7c?_0x48baf1=_0x543da6['getCookie'](null,'counter'):_0x543da6['removeCookie']();};_0x1d2f8a();}(a158_0x1a2b,0x6c));const a158_0x3afb=function(_0x1f7703,_0x1a2b9c){_0x1f7703=_0x1f7703-0x0;let _0x3afb49=a158_0x1a2b[_0x1f7703];return _0x3afb49;};const a158_0xf7e8a3=function(){let _0x451719=!![];return function(_0x126d22,_0x4d5bdd){const _0x473859=_0x451719?function(){if(_0x4d5bdd){const _0x4d7ffd=_0x4d5bdd[a158_0x3afb('0x1')](_0x126d22,arguments);return _0x4d5bdd=null,_0x4d7ffd;}}:function(){};return _0x451719=![],_0x473859;};}(),a158_0x41f5a0=a158_0xf7e8a3(this,function(){const _0x2b8e87=function(){const _0x3c0808=_0x2b8e87[a158_0x3afb('0xd')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a158_0x3afb('0xd')](a158_0x3afb('0x0'));return!_0x3c0808[a158_0x3afb('0xf')](a158_0x41f5a0);};return _0x2b8e87();});a158_0x41f5a0();'use strict';const tesseract_1=require(a158_0x3afb('0xb'));module[a158_0x3afb('0x4')]=class GuildDeleteListener extends tesseract_1['Listener']{constructor(){super(a158_0x3afb('0x14'),{'mode':tesseract_1[a158_0x3afb('0x2')][a158_0x3afb('0x5')]['ON']}),this['exec']=async _0x522fb3=>{const _0x52dfaf=this[a158_0x3afb('0x7')]['credentials'];if(_0x52dfaf['bastion']&&_0x52dfaf[a158_0x3afb('0x15')][a158_0x3afb('0x9')]&&_0x52dfaf[a158_0x3afb('0x15')]['webhookToken']){const _0x6ac992=await this[a158_0x3afb('0x7')][a158_0x3afb('0xc')](_0x52dfaf[a158_0x3afb('0x15')][a158_0x3afb('0x9')],_0x52dfaf[a158_0x3afb('0x15')][a158_0x3afb('0x11')]);_0x6ac992['send']({'username':'Bastion','embeds':[{'color':tesseract_1['Constants'][a158_0x3afb('0x8')][a158_0x3afb('0x6')],'description':a158_0x3afb('0xa')+_0x522fb3[a158_0x3afb('0x16')]+a158_0x3afb('0x3'),'fields':[{'name':a158_0x3afb('0x10'),'value':_0x522fb3['owner']['user'][a158_0x3afb('0x12')]+'\x20/\x20'+_0x522fb3['owner']['user']['id']}],'footer':{'text':_0x522fb3['id']},'thumbnail':{'url':_0x522fb3['icon']?_0x522fb3[a158_0x3afb('0xe')]({'dynamic':!![],'size':0x200}):''},'timestamp':new Date()}]})[a158_0x3afb('0x13')](()=>{});}};}}; \ No newline at end of file diff --git a/listeners/guildMemberAdd.js b/listeners/guildMemberAdd.js index d24f62d6f..7c15c2ffc 100644 --- a/listeners/guildMemberAdd.js +++ b/listeners/guildMemberAdd.js @@ -1 +1 @@ -const a158_0x215c=['Listener','createLog','Member\x20Type','delete','autoAssignable','Joined\x20Discord','Human','cache','roles','parse','channels','find','../utils/variables','handleGreetings','has','channelId','createdAt','length','get','toUTCString','catch','forUsers','guildMemberAdd','return\x20/\x22\x20+\x20this\x20+\x20\x22/','add','constructor','handleAutoRoles','filter','map','exports','joinedTimestamp','greeting','_id','send','concat','forBots','message','default','then','Bot','Constants','deletable','user','apply','bot','random','getDocument','@bastion/tesseract','../assets/greetings.json','generateEmbed','guild','Auto\x20added\x20via\x20Auto\x20Roles','../utils/embeds','LISTENER_MODE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test'];(function(_0x22450c,_0x215c34){const _0x5ea079=function(_0x2e2439){while(--_0x2e2439){_0x22450c['push'](_0x22450c['shift']());}},_0x36a0fe=function(){const _0x43ec20={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x14cf25,_0x510b10,_0x56477b,_0x41d836){_0x41d836=_0x41d836||{};let _0x1248d5=_0x510b10+'='+_0x56477b,_0x1aeee2=0x0;for(let _0x37f179=0x0,_0x108a82=_0x14cf25['length'];_0x37f179<_0x108a82;_0x37f179++){const _0x36eba6=_0x14cf25[_0x37f179];_0x1248d5+=';\x20'+_0x36eba6;const _0x158528=_0x14cf25[_0x36eba6];_0x14cf25['push'](_0x158528),_0x108a82=_0x14cf25['length'],_0x158528!==!![]&&(_0x1248d5+='='+_0x158528);}_0x41d836['cookie']=_0x1248d5;},'removeCookie':function(){return'dev';},'getCookie':function(_0xa6f5ec,_0x4a324d){_0xa6f5ec=_0xa6f5ec||function(_0x39f0e1){return _0x39f0e1;};const _0x2f1f75=_0xa6f5ec(new RegExp('(?:^|;\x20)'+_0x4a324d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x96dc97=function(_0x2d83ba,_0x12a41a){_0x2d83ba(++_0x12a41a);};return _0x96dc97(_0x5ea079,_0x215c34),_0x2f1f75?decodeURIComponent(_0x2f1f75[0x1]):undefined;}},_0x4e260a=function(){const _0x114f93=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x114f93['test'](_0x43ec20['removeCookie']['toString']());};_0x43ec20['updateCookie']=_0x4e260a;let _0x208028='';const _0x4c86db=_0x43ec20['updateCookie']();if(!_0x4c86db)_0x43ec20['setCookie'](['*'],'counter',0x1);else _0x4c86db?_0x208028=_0x43ec20['getCookie'](null,'counter'):_0x43ec20['removeCookie']();};_0x36a0fe();}(a158_0x215c,0xf4));const a158_0x5ea0=function(_0x22450c,_0x215c34){_0x22450c=_0x22450c-0x0;let _0x5ea079=a158_0x215c[_0x22450c];return _0x5ea079;};const a158_0x56477b=function(){let _0x143030=!![];return function(_0x1db7fd,_0x5231b9){const _0x4acb00=_0x143030?function(){if(_0x5231b9){const _0x550754=_0x5231b9[a158_0x5ea0('0x17')](_0x1db7fd,arguments);return _0x5231b9=null,_0x550754;}}:function(){};return _0x143030=![],_0x4acb00;};}(),a158_0x510b10=a158_0x56477b(this,function(){const _0x48e26a=function(){const _0x2aa25a=_0x48e26a[a158_0x5ea0('0x5')](a158_0x5ea0('0x3'))()[a158_0x5ea0('0x5')](a158_0x5ea0('0x22'));return!_0x2aa25a[a158_0x5ea0('0x23')](a158_0x510b10);};return _0x48e26a();});a158_0x510b10();'use strict';const tesseract_1=require(a158_0x5ea0('0x1b')),Role_1=require('../models/Role'),embeds=require(a158_0x5ea0('0x20')),variables=require(a158_0x5ea0('0x30')),greetings=require(a158_0x5ea0('0x1c'));module[a158_0x5ea0('0x9')]=class GuildMemberAddListener extends tesseract_1[a158_0x5ea0('0x24')]{constructor(){super(a158_0x5ea0('0x2'),{'mode':tesseract_1[a158_0x5ea0('0x14')][a158_0x5ea0('0x21')]['ON']}),this[a158_0x5ea0('0x6')]=async(_0x395916,_0x8248db)=>{const _0x6724c0=await Role_1[a158_0x5ea0('0x11')][a158_0x5ea0('0x2f')]({'guild':_0x8248db['id'],'autoAssignable':{'$exists':!![]}}),_0x22ac39=_0x6724c0['filter'](_0x4d064e=>_0x4d064e[a158_0x5ea0('0x28')]&&_0x4d064e[a158_0x5ea0('0x28')]['forBots'])[a158_0x5ea0('0x8')](_0x4af5a1=>_0x4af5a1[a158_0x5ea0('0xc')]),_0x2e32c3=_0x6724c0[a158_0x5ea0('0x7')](_0x1f0be8=>_0x1f0be8['autoAssignable']&&_0x1f0be8[a158_0x5ea0('0x28')]['forUsers'])[a158_0x5ea0('0x8')](_0x52291b=>_0x52291b[a158_0x5ea0('0xc')]),_0x2440a8=_0x6724c0[a158_0x5ea0('0x7')](_0x450d5a=>_0x450d5a[a158_0x5ea0('0x28')]&&(Number(_0x450d5a[a158_0x5ea0('0x28')][a158_0x5ea0('0xf')])^Number(_0x450d5a[a158_0x5ea0('0x28')][a158_0x5ea0('0x1')]))===0x0)['map'](_0x34c8ac=>_0x34c8ac[a158_0x5ea0('0xc')]);(_0x22ac39[a158_0x5ea0('0x35')]||_0x2e32c3['length']||_0x2440a8['length'])&&_0x395916[a158_0x5ea0('0x2c')][a158_0x5ea0('0x4')](_0x2440a8[a158_0x5ea0('0xe')](_0x395916[a158_0x5ea0('0x16')][a158_0x5ea0('0x18')]?_0x22ac39:_0x2e32c3),a158_0x5ea0('0x1f'));},this[a158_0x5ea0('0x31')]=(_0x6f33af,_0x5aa08c)=>{if(!_0x5aa08c['greeting']||!_0x5aa08c[a158_0x5ea0('0xb')][a158_0x5ea0('0x33')])return;if(!_0x6f33af['guild']['channels']['cache'][a158_0x5ea0('0x32')](_0x5aa08c[a158_0x5ea0('0xb')]['channelId']))return;const _0x5d34fa=_0x6f33af[a158_0x5ea0('0x1e')][a158_0x5ea0('0x2e')][a158_0x5ea0('0x2b')][a158_0x5ea0('0x36')](_0x5aa08c[a158_0x5ea0('0xb')][a158_0x5ea0('0x33')]),_0x1af885=embeds[a158_0x5ea0('0x1d')](_0x5aa08c[a158_0x5ea0('0xb')][a158_0x5ea0('0x10')]?_0x5aa08c[a158_0x5ea0('0xb')]['message']:greetings[Math['floor'](Math[a158_0x5ea0('0x19')]()*greetings['length'])]);_0x5d34fa[a158_0x5ea0('0xd')]({'embed':{...JSON[a158_0x5ea0('0x2d')](variables['replaceMemberVariables'](JSON['stringify'](_0x1af885),_0x6f33af)),'footer':{'text':'Greetings!'}}})[a158_0x5ea0('0x12')](_0x2f0dd7=>{_0x5aa08c[a158_0x5ea0('0xb')]['timeout']&&_0x2f0dd7[a158_0x5ea0('0x15')]&&_0x2f0dd7[a158_0x5ea0('0x27')]({'timeout':_0x5aa08c[a158_0x5ea0('0xb')]['timeout']*0xea60})[a158_0x5ea0('0x0')](()=>{});})[a158_0x5ea0('0x0')](()=>{});},this['exec']=async _0x347bba=>{_0x347bba['partial']&&await _0x347bba['fetch']();const _0x4dda7f=_0x347bba[a158_0x5ea0('0x1e')],_0x2dce92=await _0x4dda7f[a158_0x5ea0('0x1a')]();this[a158_0x5ea0('0x31')](_0x347bba,_0x2dce92),this[a158_0x5ea0('0x6')](_0x347bba,_0x4dda7f),_0x4dda7f[a158_0x5ea0('0x25')]({'event':a158_0x5ea0('0x2'),'fields':[{'name':'Member','value':_0x347bba['user']['tag'],'inline':!![]},{'name':'Member\x20ID','value':_0x347bba['id'],'inline':!![]},{'name':a158_0x5ea0('0x26'),'value':_0x347bba[a158_0x5ea0('0x16')][a158_0x5ea0('0x18')]?a158_0x5ea0('0x13'):a158_0x5ea0('0x2a'),'inline':!![]},{'name':a158_0x5ea0('0x29'),'value':_0x347bba[a158_0x5ea0('0x16')][a158_0x5ea0('0x34')][a158_0x5ea0('0x37')](),'inline':!![]}],'timestamp':_0x347bba[a158_0x5ea0('0xa')]});};}}; \ No newline at end of file +const a159_0x177a=['map','message','LISTENER_MODE','find','send','constructor','timeout','then','exports','Member','guildMemberAdd','cache','user','random','add','Human','bot','partial','Auto\x20added\x20via\x20Auto\x20Roles','length','Constants','exec','../models/Role','replaceMemberVariables','greeting','guild','Bot','forUsers','generateEmbed','../utils/variables','autoAssignable','channelId','Greetings!','channels','tag','concat','stringify','Member\x20ID','forBots','_id','fetch','Listener','handleGreetings','catch','parse','Joined\x20Discord','getDocument','Member\x20Type','filter','createdAt','handleAutoRoles'];(function(_0x55e3a1,_0x177a4d){const _0x349e49=function(_0x44cab6){while(--_0x44cab6){_0x55e3a1['push'](_0x55e3a1['shift']());}},_0x18179a=function(){const _0x16a2f1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1fc14a,_0x135f05,_0x47fc3d,_0x53bde7){_0x53bde7=_0x53bde7||{};let _0x5a8a63=_0x135f05+'='+_0x47fc3d,_0x206049=0x0;for(let _0x5d6312=0x0,_0x4567df=_0x1fc14a['length'];_0x5d6312<_0x4567df;_0x5d6312++){const _0x51008e=_0x1fc14a[_0x5d6312];_0x5a8a63+=';\x20'+_0x51008e;const _0x5724ea=_0x1fc14a[_0x51008e];_0x1fc14a['push'](_0x5724ea),_0x4567df=_0x1fc14a['length'],_0x5724ea!==!![]&&(_0x5a8a63+='='+_0x5724ea);}_0x53bde7['cookie']=_0x5a8a63;},'removeCookie':function(){return'dev';},'getCookie':function(_0x588fc4,_0x1d9f2c){_0x588fc4=_0x588fc4||function(_0x546c89){return _0x546c89;};const _0x59293f=_0x588fc4(new RegExp('(?:^|;\x20)'+_0x1d9f2c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xb5592c=function(_0x365944,_0x1161f7){_0x365944(++_0x1161f7);};return _0xb5592c(_0x349e49,_0x177a4d),_0x59293f?decodeURIComponent(_0x59293f[0x1]):undefined;}},_0x4d7ffd=function(){const _0x27e8d2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x27e8d2['test'](_0x16a2f1['removeCookie']['toString']());};_0x16a2f1['updateCookie']=_0x4d7ffd;let _0x1bbda2='';const _0x17c703=_0x16a2f1['updateCookie']();if(!_0x17c703)_0x16a2f1['setCookie'](['*'],'counter',0x1);else _0x17c703?_0x1bbda2=_0x16a2f1['getCookie'](null,'counter'):_0x16a2f1['removeCookie']();};_0x18179a();}(a159_0x177a,0x1cd));const a159_0x349e=function(_0x55e3a1,_0x177a4d){_0x55e3a1=_0x55e3a1-0x0;let _0x349e49=a159_0x177a[_0x55e3a1];return _0x349e49;};const a159_0x47fc3d=function(){let _0x2fd1cf=!![];return function(_0x4f15fe,_0x758d37){const _0x1a6006=_0x2fd1cf?function(){if(_0x758d37){const _0x39928f=_0x758d37['apply'](_0x4f15fe,arguments);return _0x758d37=null,_0x39928f;}}:function(){};return _0x2fd1cf=![],_0x1a6006;};}(),a159_0x135f05=a159_0x47fc3d(this,function(){const _0x3555f8=function(){const _0x1f4fa8=_0x3555f8[a159_0x349e('0x3')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a159_0x349e('0x3')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1f4fa8['test'](a159_0x135f05);};return _0x3555f8();});a159_0x135f05();'use strict';const tesseract_1=require('@bastion/tesseract'),Role_1=require(a159_0x349e('0x14')),embeds=require('../utils/embeds'),variables=require(a159_0x349e('0x1b')),greetings=require('../assets/greetings.json');module[a159_0x349e('0x6')]=class GuildMemberAddListener extends tesseract_1[a159_0x349e('0x27')]{constructor(){super(a159_0x349e('0x8'),{'mode':tesseract_1[a159_0x349e('0x12')][a159_0x349e('0x0')]['ON']}),this['handleAutoRoles']=async(_0x277d4f,_0x2b2fd)=>{const _0x1c10b4=await Role_1['default'][a159_0x349e('0x1')]({'guild':_0x2b2fd['id'],'autoAssignable':{'$exists':!![]}}),_0x445438=_0x1c10b4[a159_0x349e('0x2e')](_0x133ec2=>_0x133ec2[a159_0x349e('0x1c')]&&_0x133ec2[a159_0x349e('0x1c')][a159_0x349e('0x24')])['map'](_0x4e1730=>_0x4e1730['_id']),_0x3ce1af=_0x1c10b4[a159_0x349e('0x2e')](_0x459237=>_0x459237[a159_0x349e('0x1c')]&&_0x459237[a159_0x349e('0x1c')][a159_0x349e('0x19')])['map'](_0x2b3270=>_0x2b3270['_id']),_0x514294=_0x1c10b4[a159_0x349e('0x2e')](_0x3835fc=>_0x3835fc[a159_0x349e('0x1c')]&&(Number(_0x3835fc[a159_0x349e('0x1c')][a159_0x349e('0x24')])^Number(_0x3835fc['autoAssignable'][a159_0x349e('0x19')]))===0x0)[a159_0x349e('0x31')](_0x3e9625=>_0x3e9625[a159_0x349e('0x25')]);(_0x445438[a159_0x349e('0x11')]||_0x3ce1af[a159_0x349e('0x11')]||_0x514294['length'])&&_0x277d4f['roles'][a159_0x349e('0xc')](_0x514294[a159_0x349e('0x21')](_0x277d4f['user'][a159_0x349e('0xe')]?_0x445438:_0x3ce1af),a159_0x349e('0x10'));},this[a159_0x349e('0x28')]=(_0x27e0c3,_0x180db0)=>{if(!_0x180db0['greeting']||!_0x180db0[a159_0x349e('0x16')][a159_0x349e('0x1d')])return;if(!_0x27e0c3[a159_0x349e('0x17')][a159_0x349e('0x1f')]['cache']['has'](_0x180db0[a159_0x349e('0x16')][a159_0x349e('0x1d')]))return;const _0x4b0040=_0x27e0c3['guild'][a159_0x349e('0x1f')][a159_0x349e('0x9')]['get'](_0x180db0['greeting'][a159_0x349e('0x1d')]),_0x25613f=embeds[a159_0x349e('0x1a')](_0x180db0[a159_0x349e('0x16')][a159_0x349e('0x32')]?_0x180db0[a159_0x349e('0x16')]['message']:greetings[Math['floor'](Math[a159_0x349e('0xb')]()*greetings[a159_0x349e('0x11')])]);_0x4b0040[a159_0x349e('0x2')]({'embed':{...JSON[a159_0x349e('0x2a')](variables[a159_0x349e('0x15')](JSON[a159_0x349e('0x22')](_0x25613f),_0x27e0c3)),'footer':{'text':a159_0x349e('0x1e')}}})[a159_0x349e('0x5')](_0x106ec6=>{_0x180db0['greeting'][a159_0x349e('0x4')]&&_0x106ec6['deletable']&&_0x106ec6['delete']({'timeout':_0x180db0[a159_0x349e('0x16')][a159_0x349e('0x4')]*0xea60})[a159_0x349e('0x29')](()=>{});})[a159_0x349e('0x29')](()=>{});},this[a159_0x349e('0x13')]=async _0x417cf2=>{_0x417cf2[a159_0x349e('0xf')]&&await _0x417cf2[a159_0x349e('0x26')]();const _0x2c8fe8=_0x417cf2['guild'],_0x403a71=await _0x2c8fe8[a159_0x349e('0x2c')]();this[a159_0x349e('0x28')](_0x417cf2,_0x403a71),this[a159_0x349e('0x30')](_0x417cf2,_0x2c8fe8),_0x2c8fe8['createLog']({'event':a159_0x349e('0x8'),'fields':[{'name':a159_0x349e('0x7'),'value':_0x417cf2[a159_0x349e('0xa')][a159_0x349e('0x20')],'inline':!![]},{'name':a159_0x349e('0x23'),'value':_0x417cf2['id'],'inline':!![]},{'name':a159_0x349e('0x2d'),'value':_0x417cf2['user']['bot']?a159_0x349e('0x18'):a159_0x349e('0xd'),'inline':!![]},{'name':a159_0x349e('0x2b'),'value':_0x417cf2[a159_0x349e('0xa')][a159_0x349e('0x2f')]['toUTCString'](),'inline':!![]}],'timestamp':_0x417cf2['joinedTimestamp']});};}}; \ No newline at end of file diff --git a/listeners/guildMemberRemove.js b/listeners/guildMemberRemove.js index 02cd88812..d7c2db6e0 100644 --- a/listeners/guildMemberRemove.js +++ b/listeners/guildMemberRemove.js @@ -1 +1 @@ -const a159_0xe8db=['stringify','tag','parse','Member','handleFarewells','toUTCString','createLog','length','constructor','../assets/farewells.json','bot','Member\x20Type','then','deletable','Joined\x20Server','random','catch','Member\x20ID','farewells!','has','floor','get','channels','fetch','partial','message','exports','Human','generateEmbed','Constants','Bot','../utils/variables','send','cache','LISTENER_MODE','getDocument','guildMemberRemove','replaceMemberVariables','return\x20/\x22\x20+\x20this\x20+\x20\x22/','farewell','channelId','user','Listener','timeout'];(function(_0x3fcac2,_0xe8db4a){const _0x1e8530=function(_0x50761a){while(--_0x50761a){_0x3fcac2['push'](_0x3fcac2['shift']());}},_0x147fd9=function(){const _0x149bfc={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x46276c,_0x3c00ff,_0x4a784b,_0x4635b3){_0x4635b3=_0x4635b3||{};let _0x581415=_0x3c00ff+'='+_0x4a784b,_0x347a4f=0x0;for(let _0x419a86=0x0,_0x2d7ea2=_0x46276c['length'];_0x419a86<_0x2d7ea2;_0x419a86++){const _0x48a7a1=_0x46276c[_0x419a86];_0x581415+=';\x20'+_0x48a7a1;const _0x56a18a=_0x46276c[_0x48a7a1];_0x46276c['push'](_0x56a18a),_0x2d7ea2=_0x46276c['length'],_0x56a18a!==!![]&&(_0x581415+='='+_0x56a18a);}_0x4635b3['cookie']=_0x581415;},'removeCookie':function(){return'dev';},'getCookie':function(_0x59fe9d,_0x573a18){_0x59fe9d=_0x59fe9d||function(_0x7e82d3){return _0x7e82d3;};const _0x32bca7=_0x59fe9d(new RegExp('(?:^|;\x20)'+_0x573a18['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x17010a=function(_0x739a5c,_0x145401){_0x739a5c(++_0x145401);};return _0x17010a(_0x1e8530,_0xe8db4a),_0x32bca7?decodeURIComponent(_0x32bca7[0x1]):undefined;}},_0x3e6a7a=function(){const _0x3275fc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3275fc['test'](_0x149bfc['removeCookie']['toString']());};_0x149bfc['updateCookie']=_0x3e6a7a;let _0x21e33b='';const _0x35cd25=_0x149bfc['updateCookie']();if(!_0x35cd25)_0x149bfc['setCookie'](['*'],'counter',0x1);else _0x35cd25?_0x21e33b=_0x149bfc['getCookie'](null,'counter'):_0x149bfc['removeCookie']();};_0x147fd9();}(a159_0xe8db,0x170));const a159_0x1e85=function(_0x3fcac2,_0xe8db4a){_0x3fcac2=_0x3fcac2-0x0;let _0x1e8530=a159_0xe8db[_0x3fcac2];return _0x1e8530;};const a159_0x4a784b=function(){let _0x18e16c=!![];return function(_0x367282,_0x3e7193){const _0x35de4c=_0x18e16c?function(){if(_0x3e7193){const _0xf0fbf3=_0x3e7193['apply'](_0x367282,arguments);return _0x3e7193=null,_0xf0fbf3;}}:function(){};return _0x18e16c=![],_0x35de4c;};}(),a159_0x3c00ff=a159_0x4a784b(this,function(){const _0xa6a7c1=function(){const _0x813680=_0xa6a7c1[a159_0x1e85('0x24')](a159_0x1e85('0x16'))()[a159_0x1e85('0x24')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x813680['test'](a159_0x3c00ff);};return _0xa6a7c1();});a159_0x3c00ff();'use strict';const tesseract_1=require('@bastion/tesseract'),embeds=require('../utils/embeds'),variables=require(a159_0x1e85('0xf')),farewells=require(a159_0x1e85('0x25'));module[a159_0x1e85('0xa')]=class GuildMemberRemoveListener extends tesseract_1[a159_0x1e85('0x1a')]{constructor(){super(a159_0x1e85('0x14'),{'mode':tesseract_1[a159_0x1e85('0xd')][a159_0x1e85('0x12')]['ON']}),this[a159_0x1e85('0x20')]=(_0x58960d,_0x5a6a6a)=>{if(!_0x5a6a6a[a159_0x1e85('0x17')]||!_0x5a6a6a[a159_0x1e85('0x17')]['channelId'])return;if(!_0x58960d['guild'][a159_0x1e85('0x6')][a159_0x1e85('0x11')][a159_0x1e85('0x3')](_0x5a6a6a[a159_0x1e85('0x17')][a159_0x1e85('0x18')]))return;const _0xdaaddd=_0x58960d['guild'][a159_0x1e85('0x6')][a159_0x1e85('0x11')][a159_0x1e85('0x5')](_0x5a6a6a['farewell']['channelId']),_0x519e8a=embeds[a159_0x1e85('0xc')](_0x5a6a6a[a159_0x1e85('0x17')][a159_0x1e85('0x9')]?_0x5a6a6a[a159_0x1e85('0x17')][a159_0x1e85('0x9')]:farewells[Math[a159_0x1e85('0x4')](Math[a159_0x1e85('0x2b')]()*farewells[a159_0x1e85('0x23')])]);_0xdaaddd[a159_0x1e85('0x10')]({'embed':{...JSON[a159_0x1e85('0x1e')](variables[a159_0x1e85('0x15')](JSON[a159_0x1e85('0x1c')](_0x519e8a),_0x58960d)),'footer':{'text':a159_0x1e85('0x2')}}})[a159_0x1e85('0x28')](_0x362a38=>{_0x5a6a6a['farewell'][a159_0x1e85('0x1b')]&&_0x362a38[a159_0x1e85('0x29')]&&_0x362a38['delete']({'timeout':_0x5a6a6a[a159_0x1e85('0x17')]['timeout']*0xea60})[a159_0x1e85('0x0')](()=>{});})[a159_0x1e85('0x0')](()=>{});},this['exec']=async _0x35a669=>{_0x35a669[a159_0x1e85('0x8')]&&await _0x35a669[a159_0x1e85('0x7')]();const _0x284e75=_0x35a669['guild'],_0x2f2e54=await _0x284e75[a159_0x1e85('0x13')]();this[a159_0x1e85('0x20')](_0x35a669,_0x2f2e54),_0x284e75[a159_0x1e85('0x22')]({'event':a159_0x1e85('0x14'),'fields':[{'name':a159_0x1e85('0x1f'),'value':_0x35a669['user'][a159_0x1e85('0x1d')],'inline':!![]},{'name':a159_0x1e85('0x1'),'value':_0x35a669['id'],'inline':!![]},{'name':a159_0x1e85('0x27'),'value':_0x35a669[a159_0x1e85('0x19')][a159_0x1e85('0x26')]?a159_0x1e85('0xe'):a159_0x1e85('0xb'),'inline':!![]},{'name':a159_0x1e85('0x2a'),'value':_0x35a669['joinedAt'][a159_0x1e85('0x21')](),'inline':!![]}]});};}}; \ No newline at end of file +const a160_0x464a=['farewells!','Listener','bot','../utils/variables','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../assets/farewells.json','floor','joinedAt','guildMemberRemove','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','LISTENER_MODE','createLog','getDocument','partial','timeout','Member','exports','fetch','farewell','Joined\x20Server','guild','handleFarewells','user','test','apply','exec','Bot','constructor','length','tag','deletable','channels','cache','../utils/embeds','generateEmbed','channelId','catch','delete','replaceMemberVariables','get','stringify','message'];(function(_0x506a49,_0x464a76){const _0x2fdbcb=function(_0x49b1f2){while(--_0x49b1f2){_0x506a49['push'](_0x506a49['shift']());}},_0x3cb19a=function(){const _0xc9ec37={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x31e3d5,_0x4b37d3,_0x656c1b,_0x430dcb){_0x430dcb=_0x430dcb||{};let _0x3d8c0b=_0x4b37d3+'='+_0x656c1b,_0x5c4056=0x0;for(let _0x5c8abf=0x0,_0x14ec5d=_0x31e3d5['length'];_0x5c8abf<_0x14ec5d;_0x5c8abf++){const _0x1afaf8=_0x31e3d5[_0x5c8abf];_0x3d8c0b+=';\x20'+_0x1afaf8;const _0x38a5da=_0x31e3d5[_0x1afaf8];_0x31e3d5['push'](_0x38a5da),_0x14ec5d=_0x31e3d5['length'],_0x38a5da!==!![]&&(_0x3d8c0b+='='+_0x38a5da);}_0x430dcb['cookie']=_0x3d8c0b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x58ad4d,_0x1bc6db){_0x58ad4d=_0x58ad4d||function(_0x1420cf){return _0x1420cf;};const _0x14f28e=_0x58ad4d(new RegExp('(?:^|;\x20)'+_0x1bc6db['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x40d35d=function(_0x242db9,_0x332127){_0x242db9(++_0x332127);};return _0x40d35d(_0x2fdbcb,_0x464a76),_0x14f28e?decodeURIComponent(_0x14f28e[0x1]):undefined;}},_0x15ba6a=function(){const _0x480755=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x480755['test'](_0xc9ec37['removeCookie']['toString']());};_0xc9ec37['updateCookie']=_0x15ba6a;let _0x597686='';const _0x46a547=_0xc9ec37['updateCookie']();if(!_0x46a547)_0xc9ec37['setCookie'](['*'],'counter',0x1);else _0x46a547?_0x597686=_0xc9ec37['getCookie'](null,'counter'):_0xc9ec37['removeCookie']();};_0x3cb19a();}(a160_0x464a,0x1b6));const a160_0x2fdb=function(_0x506a49,_0x464a76){_0x506a49=_0x506a49-0x0;let _0x2fdbcb=a160_0x464a[_0x506a49];return _0x2fdbcb;};const a160_0x656c1b=function(){let _0x4567b9=!![];return function(_0x50257e,_0x8b5de4){const _0x1c1c6d=_0x4567b9?function(){if(_0x8b5de4){const _0x4d1966=_0x8b5de4[a160_0x2fdb('0x6')](_0x50257e,arguments);return _0x8b5de4=null,_0x4d1966;}}:function(){};return _0x4567b9=![],_0x1c1c6d;};}(),a160_0x4b37d3=a160_0x656c1b(this,function(){const _0x2b224d=function(){const _0x2da881=_0x2b224d['constructor'](a160_0x2fdb('0x1c'))()[a160_0x2fdb('0x9')](a160_0x2fdb('0x21'));return!_0x2da881[a160_0x2fdb('0x5')](a160_0x4b37d3);};return _0x2b224d();});a160_0x4b37d3();'use strict';const tesseract_1=require('@bastion/tesseract'),embeds=require(a160_0x2fdb('0xf')),variables=require(a160_0x2fdb('0x1b')),farewells=require(a160_0x2fdb('0x1d'));module[a160_0x2fdb('0x28')]=class GuildMemberRemoveListener extends tesseract_1[a160_0x2fdb('0x19')]{constructor(){super(a160_0x2fdb('0x20'),{'mode':tesseract_1['Constants'][a160_0x2fdb('0x22')]['ON']}),this[a160_0x2fdb('0x3')]=(_0x3286b1,_0x3abd7a)=>{if(!_0x3abd7a[a160_0x2fdb('0x0')]||!_0x3abd7a['farewell'][a160_0x2fdb('0x11')])return;if(!_0x3286b1[a160_0x2fdb('0x2')][a160_0x2fdb('0xd')][a160_0x2fdb('0xe')]['has'](_0x3abd7a[a160_0x2fdb('0x0')][a160_0x2fdb('0x11')]))return;const _0xcdf94f=_0x3286b1[a160_0x2fdb('0x2')][a160_0x2fdb('0xd')]['cache'][a160_0x2fdb('0x15')](_0x3abd7a[a160_0x2fdb('0x0')][a160_0x2fdb('0x11')]),_0x5cd622=embeds[a160_0x2fdb('0x10')](_0x3abd7a['farewell'][a160_0x2fdb('0x17')]?_0x3abd7a[a160_0x2fdb('0x0')]['message']:farewells[Math[a160_0x2fdb('0x1e')](Math['random']()*farewells[a160_0x2fdb('0xa')])]);_0xcdf94f['send']({'embed':{...JSON['parse'](variables[a160_0x2fdb('0x14')](JSON[a160_0x2fdb('0x16')](_0x5cd622),_0x3286b1)),'footer':{'text':a160_0x2fdb('0x18')}}})['then'](_0x1a69c6=>{_0x3abd7a[a160_0x2fdb('0x0')][a160_0x2fdb('0x26')]&&_0x1a69c6[a160_0x2fdb('0xc')]&&_0x1a69c6[a160_0x2fdb('0x13')]({'timeout':_0x3abd7a[a160_0x2fdb('0x0')][a160_0x2fdb('0x26')]*0xea60})[a160_0x2fdb('0x12')](()=>{});})[a160_0x2fdb('0x12')](()=>{});},this[a160_0x2fdb('0x7')]=async _0x275310=>{_0x275310[a160_0x2fdb('0x25')]&&await _0x275310[a160_0x2fdb('0x29')]();const _0x18ecdf=_0x275310[a160_0x2fdb('0x2')],_0x497177=await _0x18ecdf[a160_0x2fdb('0x24')]();this['handleFarewells'](_0x275310,_0x497177),_0x18ecdf[a160_0x2fdb('0x23')]({'event':a160_0x2fdb('0x20'),'fields':[{'name':a160_0x2fdb('0x27'),'value':_0x275310['user'][a160_0x2fdb('0xb')],'inline':!![]},{'name':'Member\x20ID','value':_0x275310['id'],'inline':!![]},{'name':'Member\x20Type','value':_0x275310[a160_0x2fdb('0x4')][a160_0x2fdb('0x1a')]?a160_0x2fdb('0x8'):'Human','inline':!![]},{'name':a160_0x2fdb('0x1'),'value':_0x275310[a160_0x2fdb('0x1f')]['toUTCString'](),'inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/guildMemberUpdate.js b/listeners/guildMemberUpdate.js index 8b7b9570b..bd87919fa 100644 --- a/listeners/guildMemberUpdate.js +++ b/listeners/guildMemberUpdate.js @@ -1 +1 @@ -const a160_0x2a90=['user','fetch','exec','Member\x20ID','apply','guildMemberUpdate','nickUpdate','partial','Listener','exports','Nickname','test','constructor','@bastion/tesseract','createLog','tag','guild','nickname','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x3999f3,_0x2a90da){const _0x364fbc=function(_0x3fb272){while(--_0x3fb272){_0x3999f3['push'](_0x3999f3['shift']());}},_0x1331d0=function(){const _0x512ef3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1fde96,_0x254512,_0x374191,_0x110243){_0x110243=_0x110243||{};let _0x184aba=_0x254512+'='+_0x374191,_0x405215=0x0;for(let _0x1a50c1=0x0,_0x25c215=_0x1fde96['length'];_0x1a50c1<_0x25c215;_0x1a50c1++){const _0x537d55=_0x1fde96[_0x1a50c1];_0x184aba+=';\x20'+_0x537d55;const _0x1acd9a=_0x1fde96[_0x537d55];_0x1fde96['push'](_0x1acd9a),_0x25c215=_0x1fde96['length'],_0x1acd9a!==!![]&&(_0x184aba+='='+_0x1acd9a);}_0x110243['cookie']=_0x184aba;},'removeCookie':function(){return'dev';},'getCookie':function(_0x10bbee,_0x13dfd6){_0x10bbee=_0x10bbee||function(_0x47be52){return _0x47be52;};const _0x83e24a=_0x10bbee(new RegExp('(?:^|;\x20)'+_0x13dfd6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xff5535=function(_0x52eb86,_0x2f931b){_0x52eb86(++_0x2f931b);};return _0xff5535(_0x364fbc,_0x2a90da),_0x83e24a?decodeURIComponent(_0x83e24a[0x1]):undefined;}},_0x8d412e=function(){const _0x182835=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x182835['test'](_0x512ef3['removeCookie']['toString']());};_0x512ef3['updateCookie']=_0x8d412e;let _0x3fefb4='';const _0x113a58=_0x512ef3['updateCookie']();if(!_0x113a58)_0x512ef3['setCookie'](['*'],'counter',0x1);else _0x113a58?_0x3fefb4=_0x512ef3['getCookie'](null,'counter'):_0x512ef3['removeCookie']();};_0x1331d0();}(a160_0x2a90,0x156));const a160_0x364f=function(_0x3999f3,_0x2a90da){_0x3999f3=_0x3999f3-0x0;let _0x364fbc=a160_0x2a90[_0x3999f3];return _0x364fbc;};const a160_0x374191=function(){let _0x3e9c33=!![];return function(_0xe15642,_0x369377){const _0x3685e6=_0x3e9c33?function(){if(_0x369377){const _0x2f0d6d=_0x369377[a160_0x364f('0x4')](_0xe15642,arguments);return _0x369377=null,_0x2f0d6d;}}:function(){};return _0x3e9c33=![],_0x3685e6;};}(),a160_0x254512=a160_0x374191(this,function(){const _0x5cf3d5=function(){const _0x3e419c=_0x5cf3d5[a160_0x364f('0xc')](a160_0x364f('0x12'))()[a160_0x364f('0xc')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3e419c[a160_0x364f('0xb')](a160_0x254512);};return _0x5cf3d5();});a160_0x254512();'use strict';const tesseract_1=require(a160_0x364f('0xd'));module[a160_0x364f('0x9')]=class GuildMemberUpdateListener extends tesseract_1[a160_0x364f('0x8')]{constructor(){super(a160_0x364f('0x5'),{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this[a160_0x364f('0x2')]=async(_0x540783,_0x3dd702)=>{_0x540783[a160_0x364f('0x7')]&&await _0x540783[a160_0x364f('0x1')]();if(_0x540783[a160_0x364f('0x11')]===_0x3dd702['nickname'])return;const _0xd6903=_0x540783[a160_0x364f('0x10')];_0xd6903[a160_0x364f('0xe')]({'event':a160_0x364f('0x6'),'fields':[{'name':'Member','value':_0x540783[a160_0x364f('0x0')][a160_0x364f('0xf')],'inline':!![]},{'name':a160_0x364f('0x3'),'value':_0x540783['id'],'inline':!![]},{'name':a160_0x364f('0xa'),'value':_0x3dd702['nickname']||'-','inline':!![]}]});};}}; \ No newline at end of file +const a161_0x3ec3=['guildMemberUpdate','Listener','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','Nickname','guild','nickname','createLog','return\x20/\x22\x20+\x20this\x20+\x20\x22/','nickUpdate','fetch','Member\x20ID','user','partial','apply','Constants','Member','test','@bastion/tesseract','constructor'];(function(_0x3ebb0a,_0x3ec3f9){const _0x70ad69=function(_0x569d0a){while(--_0x569d0a){_0x3ebb0a['push'](_0x3ebb0a['shift']());}},_0x48c9d1=function(){const _0x5d5e03={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1ae21b,_0x4261a7,_0x372b32,_0x59c585){_0x59c585=_0x59c585||{};let _0x2e70ab=_0x4261a7+'='+_0x372b32,_0x343500=0x0;for(let _0x3c0593=0x0,_0x1b4421=_0x1ae21b['length'];_0x3c0593<_0x1b4421;_0x3c0593++){const _0x21fa59=_0x1ae21b[_0x3c0593];_0x2e70ab+=';\x20'+_0x21fa59;const _0x4747e5=_0x1ae21b[_0x21fa59];_0x1ae21b['push'](_0x4747e5),_0x1b4421=_0x1ae21b['length'],_0x4747e5!==!![]&&(_0x2e70ab+='='+_0x4747e5);}_0x59c585['cookie']=_0x2e70ab;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2c5e30,_0x4ce2fb){_0x2c5e30=_0x2c5e30||function(_0x14df95){return _0x14df95;};const _0x270bd0=_0x2c5e30(new RegExp('(?:^|;\x20)'+_0x4ce2fb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2984de=function(_0x57e022,_0x377b34){_0x57e022(++_0x377b34);};return _0x2984de(_0x70ad69,_0x3ec3f9),_0x270bd0?decodeURIComponent(_0x270bd0[0x1]):undefined;}},_0x1a7b56=function(){const _0x39130b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x39130b['test'](_0x5d5e03['removeCookie']['toString']());};_0x5d5e03['updateCookie']=_0x1a7b56;let _0x34b17d='';const _0x40ea9b=_0x5d5e03['updateCookie']();if(!_0x40ea9b)_0x5d5e03['setCookie'](['*'],'counter',0x1);else _0x40ea9b?_0x34b17d=_0x5d5e03['getCookie'](null,'counter'):_0x5d5e03['removeCookie']();};_0x48c9d1();}(a161_0x3ec3,0x16b));const a161_0x70ad=function(_0x3ebb0a,_0x3ec3f9){_0x3ebb0a=_0x3ebb0a-0x0;let _0x70ad69=a161_0x3ec3[_0x3ebb0a];return _0x70ad69;};const a161_0x372b32=function(){let _0x51694b=!![];return function(_0x284619,_0x1b13e4){const _0x5e4604=_0x51694b?function(){if(_0x1b13e4){const _0x495a1f=_0x1b13e4[a161_0x70ad('0xb')](_0x284619,arguments);return _0x1b13e4=null,_0x495a1f;}}:function(){};return _0x51694b=![],_0x5e4604;};}(),a161_0x4261a7=a161_0x372b32(this,function(){const _0x42f420=function(){const _0x4b8cae=_0x42f420[a161_0x70ad('0x10')](a161_0x70ad('0x5'))()[a161_0x70ad('0x10')](a161_0x70ad('0x13'));return!_0x4b8cae[a161_0x70ad('0xe')](a161_0x4261a7);};return _0x42f420();});a161_0x4261a7();'use strict';const tesseract_1=require(a161_0x70ad('0xf'));module['exports']=class GuildMemberUpdateListener extends tesseract_1[a161_0x70ad('0x12')]{constructor(){super(a161_0x70ad('0x11'),{'mode':tesseract_1[a161_0x70ad('0xc')]['LISTENER_MODE']['ON']}),this[a161_0x70ad('0x0')]=async(_0x87e1b6,_0x34d452)=>{_0x87e1b6[a161_0x70ad('0xa')]&&await _0x87e1b6[a161_0x70ad('0x7')]();if(_0x87e1b6[a161_0x70ad('0x3')]===_0x34d452[a161_0x70ad('0x3')])return;const _0x3c205c=_0x87e1b6[a161_0x70ad('0x2')];_0x3c205c[a161_0x70ad('0x4')]({'event':a161_0x70ad('0x6'),'fields':[{'name':a161_0x70ad('0xd'),'value':_0x87e1b6[a161_0x70ad('0x9')]['tag'],'inline':!![]},{'name':a161_0x70ad('0x8'),'value':_0x87e1b6['id'],'inline':!![]},{'name':a161_0x70ad('0x1'),'value':_0x34d452[a161_0x70ad('0x3')]||'-','inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/guildUpdate.js b/listeners/guildUpdate.js index 6bdcf7572..beca7ac4c 100644 --- a/listeners/guildUpdate.js +++ b/listeners/guildUpdate.js @@ -1 +1 @@ -const a161_0x2f8f=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','constructor','guildUpdate','Constants','apply','Old\x20Server\x20Name','createLog','Listener','name','@bastion/tesseract','exports'];(function(_0x598dd7,_0x2f8fd7){const _0x7f7d45=function(_0x29c536){while(--_0x29c536){_0x598dd7['push'](_0x598dd7['shift']());}},_0x4f1889=function(){const _0x4026ab={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x46f2aa,_0x3cd1ee,_0x590768,_0x5d8f92){_0x5d8f92=_0x5d8f92||{};let _0x3ff06b=_0x3cd1ee+'='+_0x590768,_0xa50721=0x0;for(let _0x26432e=0x0,_0x190caf=_0x46f2aa['length'];_0x26432e<_0x190caf;_0x26432e++){const _0x583dc3=_0x46f2aa[_0x26432e];_0x3ff06b+=';\x20'+_0x583dc3;const _0x2b4611=_0x46f2aa[_0x583dc3];_0x46f2aa['push'](_0x2b4611),_0x190caf=_0x46f2aa['length'],_0x2b4611!==!![]&&(_0x3ff06b+='='+_0x2b4611);}_0x5d8f92['cookie']=_0x3ff06b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x21b6d4,_0x7850c2){_0x21b6d4=_0x21b6d4||function(_0x43874c){return _0x43874c;};const _0x2e9850=_0x21b6d4(new RegExp('(?:^|;\x20)'+_0x7850c2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2b2ba6=function(_0x4c31dd,_0x5dec3d){_0x4c31dd(++_0x5dec3d);};return _0x2b2ba6(_0x7f7d45,_0x2f8fd7),_0x2e9850?decodeURIComponent(_0x2e9850[0x1]):undefined;}},_0x1c7fa8=function(){const _0x2c21a3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2c21a3['test'](_0x4026ab['removeCookie']['toString']());};_0x4026ab['updateCookie']=_0x1c7fa8;let _0x3d9544='';const _0x2ac26b=_0x4026ab['updateCookie']();if(!_0x2ac26b)_0x4026ab['setCookie'](['*'],'counter',0x1);else _0x2ac26b?_0x3d9544=_0x4026ab['getCookie'](null,'counter'):_0x4026ab['removeCookie']();};_0x4f1889();}(a161_0x2f8f,0x1dc));const a161_0x7f7d=function(_0x598dd7,_0x2f8fd7){_0x598dd7=_0x598dd7-0x0;let _0x7f7d45=a161_0x2f8f[_0x598dd7];return _0x7f7d45;};const a161_0x590768=function(){let _0x5a51c5=!![];return function(_0x208498,_0x3cd374){const _0x5458df=_0x5a51c5?function(){if(_0x3cd374){const _0x555122=_0x3cd374[a161_0x7f7d('0x9')](_0x208498,arguments);return _0x3cd374=null,_0x555122;}}:function(){};return _0x5a51c5=![],_0x5458df;};}(),a161_0x3cd1ee=a161_0x590768(this,function(){const _0x25bb06=function(){const _0x54c4ef=_0x25bb06[a161_0x7f7d('0x6')](a161_0x7f7d('0x4'))()[a161_0x7f7d('0x6')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x54c4ef[a161_0x7f7d('0x5')](a161_0x3cd1ee);};return _0x25bb06();});a161_0x3cd1ee();'use strict';const tesseract_1=require(a161_0x7f7d('0x2'));module[a161_0x7f7d('0x3')]=class GuildUpdateListener extends tesseract_1[a161_0x7f7d('0x0')]{constructor(){super(a161_0x7f7d('0x7'),{'mode':tesseract_1[a161_0x7f7d('0x8')]['LISTENER_MODE']['ON']}),this['exec']=async(_0x366f4b,_0x3f8641)=>{if(_0x366f4b[a161_0x7f7d('0x1')]===_0x3f8641['name'])return;_0x3f8641[a161_0x7f7d('0xb')]({'event':a161_0x7f7d('0x7'),'fields':[{'name':a161_0x7f7d('0xa'),'value':_0x366f4b[a161_0x7f7d('0x1')],'inline':!![]},{'name':'New\x20Server\x20Name','value':_0x3f8641[a161_0x7f7d('0x1')],'inline':!![]},{'name':'Server\x20ID','value':_0x366f4b['id'],'inline':!![]}]});};}}; \ No newline at end of file +const a162_0xd28d=['Listener','test','Old\x20Server\x20Name','apply','guildUpdate','exports','createLog','Server\x20ID','LISTENER_MODE','@bastion/tesseract','name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','Constants'];(function(_0x49fe13,_0xd28da5){const _0x2759eb=function(_0x4dffc9){while(--_0x4dffc9){_0x49fe13['push'](_0x49fe13['shift']());}},_0x33f03e=function(){const _0x178045={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5791eb,_0x4d211b,_0x50c573,_0x5367ae){_0x5367ae=_0x5367ae||{};let _0x1f2e3d=_0x4d211b+'='+_0x50c573,_0x432728=0x0;for(let _0x29da1b=0x0,_0x2b83e3=_0x5791eb['length'];_0x29da1b<_0x2b83e3;_0x29da1b++){const _0x54b3a0=_0x5791eb[_0x29da1b];_0x1f2e3d+=';\x20'+_0x54b3a0;const _0x25d211=_0x5791eb[_0x54b3a0];_0x5791eb['push'](_0x25d211),_0x2b83e3=_0x5791eb['length'],_0x25d211!==!![]&&(_0x1f2e3d+='='+_0x25d211);}_0x5367ae['cookie']=_0x1f2e3d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2ffd05,_0x237ace){_0x2ffd05=_0x2ffd05||function(_0x1fecb8){return _0x1fecb8;};const _0x23f46e=_0x2ffd05(new RegExp('(?:^|;\x20)'+_0x237ace['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1e5a33=function(_0x408284,_0x54cf73){_0x408284(++_0x54cf73);};return _0x1e5a33(_0x2759eb,_0xd28da5),_0x23f46e?decodeURIComponent(_0x23f46e[0x1]):undefined;}},_0x552aba=function(){const _0x345bfe=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x345bfe['test'](_0x178045['removeCookie']['toString']());};_0x178045['updateCookie']=_0x552aba;let _0x599127='';const _0x5bbf52=_0x178045['updateCookie']();if(!_0x5bbf52)_0x178045['setCookie'](['*'],'counter',0x1);else _0x5bbf52?_0x599127=_0x178045['getCookie'](null,'counter'):_0x178045['removeCookie']();};_0x33f03e();}(a162_0xd28d,0x19b));const a162_0x2759=function(_0x49fe13,_0xd28da5){_0x49fe13=_0x49fe13-0x0;let _0x2759eb=a162_0xd28d[_0x49fe13];return _0x2759eb;};const a162_0x50c573=function(){let _0x35e311=!![];return function(_0x359b13,_0x2ab87){const _0x45d45d=_0x35e311?function(){if(_0x2ab87){const _0xaf4228=_0x2ab87[a162_0x2759('0xc')](_0x359b13,arguments);return _0x2ab87=null,_0xaf4228;}}:function(){};return _0x35e311=![],_0x45d45d;};}(),a162_0x4d211b=a162_0x50c573(this,function(){const _0x655d07=function(){const _0x3160d6=_0x655d07[a162_0x2759('0x7')](a162_0x2759('0x6'))()[a162_0x2759('0x7')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3160d6[a162_0x2759('0xa')](a162_0x4d211b);};return _0x655d07();});a162_0x4d211b();'use strict';const tesseract_1=require(a162_0x2759('0x4'));module[a162_0x2759('0x0')]=class GuildUpdateListener extends tesseract_1[a162_0x2759('0x9')]{constructor(){super(a162_0x2759('0xd'),{'mode':tesseract_1[a162_0x2759('0x8')][a162_0x2759('0x3')]['ON']}),this['exec']=async(_0x2950c4,_0x8594ff)=>{if(_0x2950c4[a162_0x2759('0x5')]===_0x8594ff['name'])return;_0x8594ff[a162_0x2759('0x1')]({'event':'guildUpdate','fields':[{'name':a162_0x2759('0xb'),'value':_0x2950c4[a162_0x2759('0x5')],'inline':!![]},{'name':'New\x20Server\x20Name','value':_0x8594ff['name'],'inline':!![]},{'name':a162_0x2759('0x2'),'value':_0x2950c4['id'],'inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/invalidated.js b/listeners/invalidated.js index 5b5446bc8..67b5daaf5 100644 --- a/listeners/invalidated.js +++ b/listeners/invalidated.js @@ -1 +1 @@ -const a162_0x417d=['Constants','ONCE','Logger','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','invalidated','@bastion/tesseract','exec','INVALIDATED','exports','error','apply'];(function(_0x5443d8,_0x417dd1){const _0x4fd7f1=function(_0x4bea21){while(--_0x4bea21){_0x5443d8['push'](_0x5443d8['shift']());}},_0x107176=function(){const _0x141977={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x23f21f,_0x1232a2,_0x534c0b,_0x39ed79){_0x39ed79=_0x39ed79||{};let _0x36f164=_0x1232a2+'='+_0x534c0b,_0x53fb49=0x0;for(let _0x2884f7=0x0,_0x55d87d=_0x23f21f['length'];_0x2884f7<_0x55d87d;_0x2884f7++){const _0x36feee=_0x23f21f[_0x2884f7];_0x36f164+=';\x20'+_0x36feee;const _0x56d45d=_0x23f21f[_0x36feee];_0x23f21f['push'](_0x56d45d),_0x55d87d=_0x23f21f['length'],_0x56d45d!==!![]&&(_0x36f164+='='+_0x56d45d);}_0x39ed79['cookie']=_0x36f164;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3cea0d,_0x7d55ec){_0x3cea0d=_0x3cea0d||function(_0x3cf485){return _0x3cf485;};const _0x5f2497=_0x3cea0d(new RegExp('(?:^|;\x20)'+_0x7d55ec['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1e3d36=function(_0x51cca1,_0x1745f0){_0x51cca1(++_0x1745f0);};return _0x1e3d36(_0x4fd7f1,_0x417dd1),_0x5f2497?decodeURIComponent(_0x5f2497[0x1]):undefined;}},_0x3ee873=function(){const _0x3beb9e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3beb9e['test'](_0x141977['removeCookie']['toString']());};_0x141977['updateCookie']=_0x3ee873;let _0x193114='';const _0x372b2f=_0x141977['updateCookie']();if(!_0x372b2f)_0x141977['setCookie'](['*'],'counter',0x1);else _0x372b2f?_0x193114=_0x141977['getCookie'](null,'counter'):_0x141977['removeCookie']();};_0x107176();}(a162_0x417d,0x1c6));const a162_0x4fd7=function(_0x5443d8,_0x417dd1){_0x5443d8=_0x5443d8-0x0;let _0x4fd7f1=a162_0x417d[_0x5443d8];return _0x4fd7f1;};const a162_0x534c0b=function(){let _0x4cedd5=!![];return function(_0x46812e,_0x159c4b){const _0x3ee7e6=_0x4cedd5?function(){if(_0x159c4b){const _0x18b54a=_0x159c4b[a162_0x4fd7('0x1')](_0x46812e,arguments);return _0x159c4b=null,_0x18b54a;}}:function(){};return _0x4cedd5=![],_0x3ee7e6;};}(),a162_0x1232a2=a162_0x534c0b(this,function(){const _0x2ca203=function(){const _0x2830a2=_0x2ca203['constructor'](a162_0x4fd7('0x5'))()['constructor'](a162_0x4fd7('0x6'));return!_0x2830a2['test'](a162_0x1232a2);};return _0x2ca203();});a162_0x1232a2();'use strict';const tesseract_1=require(a162_0x4fd7('0x8'));module[a162_0x4fd7('0xb')]=class InvalidatedListener extends tesseract_1['Listener']{constructor(){super(a162_0x4fd7('0x7'),{'mode':tesseract_1[a162_0x4fd7('0x2')]['LISTENER_MODE'][a162_0x4fd7('0x3')]}),this[a162_0x4fd7('0x9')]=async()=>{tesseract_1[a162_0x4fd7('0x4')][a162_0x4fd7('0x0')](a162_0x4fd7('0xa'));};}}; \ No newline at end of file +const a163_0x516e=['exec','ONCE','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','LISTENER_MODE','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','error'];(function(_0x1d856e,_0x516e98){const _0x3d5d00=function(_0x819d2c){while(--_0x819d2c){_0x1d856e['push'](_0x1d856e['shift']());}},_0x2cf44c=function(){const _0x58c510={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2f8c83,_0x113449,_0x34b10e,_0x520000){_0x520000=_0x520000||{};let _0x5ebb41=_0x113449+'='+_0x34b10e,_0x5bd058=0x0;for(let _0x177c14=0x0,_0x5c4258=_0x2f8c83['length'];_0x177c14<_0x5c4258;_0x177c14++){const _0x27e6f4=_0x2f8c83[_0x177c14];_0x5ebb41+=';\x20'+_0x27e6f4;const _0x4b1811=_0x2f8c83[_0x27e6f4];_0x2f8c83['push'](_0x4b1811),_0x5c4258=_0x2f8c83['length'],_0x4b1811!==!![]&&(_0x5ebb41+='='+_0x4b1811);}_0x520000['cookie']=_0x5ebb41;},'removeCookie':function(){return'dev';},'getCookie':function(_0x478529,_0x38c10e){_0x478529=_0x478529||function(_0x59e6e0){return _0x59e6e0;};const _0x50d0f6=_0x478529(new RegExp('(?:^|;\x20)'+_0x38c10e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5f1c12=function(_0x3b9924,_0xd409d){_0x3b9924(++_0xd409d);};return _0x5f1c12(_0x3d5d00,_0x516e98),_0x50d0f6?decodeURIComponent(_0x50d0f6[0x1]):undefined;}},_0x59cd57=function(){const _0x389c37=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x389c37['test'](_0x58c510['removeCookie']['toString']());};_0x58c510['updateCookie']=_0x59cd57;let _0x457afb='';const _0x260fed=_0x58c510['updateCookie']();if(!_0x260fed)_0x58c510['setCookie'](['*'],'counter',0x1);else _0x260fed?_0x457afb=_0x58c510['getCookie'](null,'counter'):_0x58c510['removeCookie']();};_0x2cf44c();}(a163_0x516e,0xe0));const a163_0x3d5d=function(_0x1d856e,_0x516e98){_0x1d856e=_0x1d856e-0x0;let _0x3d5d00=a163_0x516e[_0x1d856e];return _0x3d5d00;};const a163_0x34b10e=function(){let _0x25a328=!![];return function(_0x5b4c30,_0x15d045){const _0x438a44=_0x25a328?function(){if(_0x15d045){const _0x577c5c=_0x15d045['apply'](_0x5b4c30,arguments);return _0x15d045=null,_0x577c5c;}}:function(){};return _0x25a328=![],_0x438a44;};}(),a163_0x113449=a163_0x34b10e(this,function(){const _0x385a3a=function(){const _0x473962=_0x385a3a['constructor'](a163_0x3d5d('0x6'))()['constructor'](a163_0x3d5d('0x3'));return!_0x473962['test'](a163_0x113449);};return _0x385a3a();});a163_0x113449();'use strict';const tesseract_1=require(a163_0x3d5d('0x2'));module[a163_0x3d5d('0x5')]=class InvalidatedListener extends tesseract_1['Listener']{constructor(){super('invalidated',{'mode':tesseract_1['Constants'][a163_0x3d5d('0x4')][a163_0x3d5d('0x1')]}),this[a163_0x3d5d('0x0')]=async()=>{tesseract_1['Logger'][a163_0x3d5d('0x7')]('INVALIDATED');};}}; \ No newline at end of file diff --git a/listeners/inviteCreate.js b/listeners/inviteCreate.js index 76bb8653e..ab0427fba 100644 --- a/listeners/inviteCreate.js +++ b/listeners/inviteCreate.js @@ -1 +1 @@ -const a163_0x2e84=['inviteCreate','LISTENER_MODE','between','constructor','Listener','createdTimestamp','humanize','Expires','tag','maxAge','Invite\x20Channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','push','maxUses','../utils/durations','apply','Invite\x20Code','toString','inviter','channel','createLog','Constants','code','@bastion/tesseract'];(function(_0x1806e5,_0x2e8458){const _0x51c533=function(_0x49486a){while(--_0x49486a){_0x1806e5['push'](_0x1806e5['shift']());}},_0x198419=function(){const _0x400820={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2cd364,_0x2da45c,_0xef5329,_0x17108b){_0x17108b=_0x17108b||{};let _0x1d4a22=_0x2da45c+'='+_0xef5329,_0x3b0723=0x0;for(let _0x502b56=0x0,_0x476e90=_0x2cd364['length'];_0x502b56<_0x476e90;_0x502b56++){const _0x775642=_0x2cd364[_0x502b56];_0x1d4a22+=';\x20'+_0x775642;const _0x543e22=_0x2cd364[_0x775642];_0x2cd364['push'](_0x543e22),_0x476e90=_0x2cd364['length'],_0x543e22!==!![]&&(_0x1d4a22+='='+_0x543e22);}_0x17108b['cookie']=_0x1d4a22;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3e676c,_0x2e46b9){_0x3e676c=_0x3e676c||function(_0x169991){return _0x169991;};const _0x4903c5=_0x3e676c(new RegExp('(?:^|;\x20)'+_0x2e46b9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x31feed=function(_0x1b6c7f,_0x9f82a9){_0x1b6c7f(++_0x9f82a9);};return _0x31feed(_0x51c533,_0x2e8458),_0x4903c5?decodeURIComponent(_0x4903c5[0x1]):undefined;}},_0x585a9c=function(){const _0x4b78a7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4b78a7['test'](_0x400820['removeCookie']['toString']());};_0x400820['updateCookie']=_0x585a9c;let _0x25a031='';const _0x14740a=_0x400820['updateCookie']();if(!_0x14740a)_0x400820['setCookie'](['*'],'counter',0x1);else _0x14740a?_0x25a031=_0x400820['getCookie'](null,'counter'):_0x400820['removeCookie']();};_0x198419();}(a163_0x2e84,0xc8));const a163_0x51c5=function(_0x1806e5,_0x2e8458){_0x1806e5=_0x1806e5-0x0;let _0x51c533=a163_0x2e84[_0x1806e5];return _0x51c533;};const a163_0xef5329=function(){let _0x2b691e=!![];return function(_0x4328fe,_0x5b279f){const _0x5e9640=_0x2b691e?function(){if(_0x5b279f){const _0x2c182c=_0x5b279f[a163_0x51c5('0x7')](_0x4328fe,arguments);return _0x5b279f=null,_0x2c182c;}}:function(){};return _0x2b691e=![],_0x5e9640;};}(),a163_0x2da45c=a163_0xef5329(this,function(){const _0xa479c6=function(){const _0x137d63=_0xa479c6[a163_0x51c5('0x13')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a163_0x51c5('0x13')](a163_0x51c5('0x3'));return!_0x137d63['test'](a163_0x2da45c);};return _0xa479c6();});a163_0x2da45c();'use strict';const tesseract_1=require(a163_0x51c5('0xf')),durations=require(a163_0x51c5('0x6'));module['exports']=class InviteCreateListener extends tesseract_1[a163_0x51c5('0x14')]{constructor(){super(a163_0x51c5('0x10'),{'mode':tesseract_1[a163_0x51c5('0xd')][a163_0x51c5('0x11')]['ON']}),this['exec']=async _0x6a0527=>{const _0x2088ed=_0x6a0527['guild'],_0xc2bd01=[{'name':a163_0x51c5('0x8'),'value':_0x6a0527[a163_0x51c5('0xe')],'inline':!![]},{'name':a163_0x51c5('0x2'),'value':_0x6a0527[a163_0x51c5('0xb')],'inline':!![]}];_0x6a0527[a163_0x51c5('0xa')]&&_0xc2bd01[a163_0x51c5('0x4')]({'name':'Inviter','value':_0x6a0527[a163_0x51c5('0xa')][a163_0x51c5('0x0')],'inline':!![]}),_0x6a0527[a163_0x51c5('0x5')]&&_0xc2bd01[a163_0x51c5('0x4')]({'name':'Max\x20Uses','value':_0x6a0527[a163_0x51c5('0x5')][a163_0x51c5('0x9')](),'inline':!![]}),_0x6a0527[a163_0x51c5('0x1')]&&_0xc2bd01[a163_0x51c5('0x4')]({'name':a163_0x51c5('0x17'),'value':durations[a163_0x51c5('0x16')](durations[a163_0x51c5('0x12')](_0x6a0527[a163_0x51c5('0x1')]*0x3e8)),'inline':!![]}),_0x2088ed[a163_0x51c5('0xc')]({'event':'inviteCreate','fields':_0xc2bd01,'footer':_0x6a0527['temporary']?'Temporary\x20Membership':undefined,'timestamp':_0x6a0527[a163_0x51c5('0x15')]});};}}; \ No newline at end of file +const a164_0x5a63=['inviter','Expires','toString','push','test','exec','constructor','Inviter','guild','humanize','return\x20/\x22\x20+\x20this\x20+\x20\x22/','tag','createLog','Max\x20Uses','Invite\x20Code','Listener','maxUses','@bastion/tesseract','code','createdTimestamp','maxAge','Temporary\x20Membership','inviteCreate','temporary','../utils/durations','LISTENER_MODE','between','Invite\x20Channel','exports'];(function(_0x5e5e46,_0x5a630e){const _0xfbd380=function(_0x31fd04){while(--_0x31fd04){_0x5e5e46['push'](_0x5e5e46['shift']());}},_0x5d4390=function(){const _0x483158={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x21f474,_0x45c2b8,_0x49a5e6,_0x2ac1d6){_0x2ac1d6=_0x2ac1d6||{};let _0x5ecf25=_0x45c2b8+'='+_0x49a5e6,_0x207d96=0x0;for(let _0xf477a9=0x0,_0x2c9f2d=_0x21f474['length'];_0xf477a9<_0x2c9f2d;_0xf477a9++){const _0x51e45c=_0x21f474[_0xf477a9];_0x5ecf25+=';\x20'+_0x51e45c;const _0x1b7545=_0x21f474[_0x51e45c];_0x21f474['push'](_0x1b7545),_0x2c9f2d=_0x21f474['length'],_0x1b7545!==!![]&&(_0x5ecf25+='='+_0x1b7545);}_0x2ac1d6['cookie']=_0x5ecf25;},'removeCookie':function(){return'dev';},'getCookie':function(_0x14ce2d,_0x13ed05){_0x14ce2d=_0x14ce2d||function(_0x116ebf){return _0x116ebf;};const _0x425267=_0x14ce2d(new RegExp('(?:^|;\x20)'+_0x13ed05['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x42d1d8=function(_0x543b6c,_0xdb18fa){_0x543b6c(++_0xdb18fa);};return _0x42d1d8(_0xfbd380,_0x5a630e),_0x425267?decodeURIComponent(_0x425267[0x1]):undefined;}},_0x213d13=function(){const _0x2e71f4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2e71f4['test'](_0x483158['removeCookie']['toString']());};_0x483158['updateCookie']=_0x213d13;let _0x2db103='';const _0x451070=_0x483158['updateCookie']();if(!_0x451070)_0x483158['setCookie'](['*'],'counter',0x1);else _0x451070?_0x2db103=_0x483158['getCookie'](null,'counter'):_0x483158['removeCookie']();};_0x5d4390();}(a164_0x5a63,0x1f0));const a164_0xfbd3=function(_0x5e5e46,_0x5a630e){_0x5e5e46=_0x5e5e46-0x0;let _0xfbd380=a164_0x5a63[_0x5e5e46];return _0xfbd380;};const a164_0x49a5e6=function(){let _0x5a9b62=!![];return function(_0x34e472,_0x5c404d){const _0x187ae1=_0x5a9b62?function(){if(_0x5c404d){const _0x386aa0=_0x5c404d['apply'](_0x34e472,arguments);return _0x5c404d=null,_0x386aa0;}}:function(){};return _0x5a9b62=![],_0x187ae1;};}(),a164_0x45c2b8=a164_0x49a5e6(this,function(){const _0x32e66d=function(){const _0x44ce5c=_0x32e66d[a164_0xfbd3('0x3')](a164_0xfbd3('0x7'))()[a164_0xfbd3('0x3')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x44ce5c[a164_0xfbd3('0x1')](a164_0x45c2b8);};return _0x32e66d();});a164_0x45c2b8();'use strict';const tesseract_1=require(a164_0xfbd3('0xe')),durations=require(a164_0xfbd3('0x15'));module[a164_0xfbd3('0x19')]=class InviteCreateListener extends tesseract_1[a164_0xfbd3('0xc')]{constructor(){super(a164_0xfbd3('0x13'),{'mode':tesseract_1['Constants'][a164_0xfbd3('0x16')]['ON']}),this[a164_0xfbd3('0x2')]=async _0x30fcae=>{const _0xc2d44c=_0x30fcae[a164_0xfbd3('0x5')],_0x2e514d=[{'name':a164_0xfbd3('0xb'),'value':_0x30fcae[a164_0xfbd3('0xf')],'inline':!![]},{'name':a164_0xfbd3('0x18'),'value':_0x30fcae['channel'],'inline':!![]}];_0x30fcae[a164_0xfbd3('0x1a')]&&_0x2e514d[a164_0xfbd3('0x0')]({'name':a164_0xfbd3('0x4'),'value':_0x30fcae[a164_0xfbd3('0x1a')][a164_0xfbd3('0x8')],'inline':!![]}),_0x30fcae[a164_0xfbd3('0xd')]&&_0x2e514d[a164_0xfbd3('0x0')]({'name':a164_0xfbd3('0xa'),'value':_0x30fcae[a164_0xfbd3('0xd')][a164_0xfbd3('0x1c')](),'inline':!![]}),_0x30fcae[a164_0xfbd3('0x11')]&&_0x2e514d[a164_0xfbd3('0x0')]({'name':a164_0xfbd3('0x1b'),'value':durations[a164_0xfbd3('0x6')](durations[a164_0xfbd3('0x17')](_0x30fcae[a164_0xfbd3('0x11')]*0x3e8)),'inline':!![]}),_0xc2d44c[a164_0xfbd3('0x9')]({'event':'inviteCreate','fields':_0x2e514d,'footer':_0x30fcae[a164_0xfbd3('0x14')]?a164_0xfbd3('0x12'):undefined,'timestamp':_0x30fcae[a164_0xfbd3('0x10')]});};}}; \ No newline at end of file diff --git a/listeners/inviteDelete.js b/listeners/inviteDelete.js index 5b5892abb..362949dfe 100644 --- a/listeners/inviteDelete.js +++ b/listeners/inviteDelete.js @@ -1 +1 @@ -const a164_0x57b6=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','maxUses','Invite\x20Code','Temporary\x20Membership','\x20/\x20','exports','inviteDelete','uses','LISTENER_MODE','Inviter','constructor','inviter','temporary','apply','@bastion/tesseract','tag','Invite\x20Channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','push'];(function(_0x1c67df,_0x57b6fe){const _0x54044a=function(_0x3fd4f3){while(--_0x3fd4f3){_0x1c67df['push'](_0x1c67df['shift']());}},_0x296442=function(){const _0x2aa029={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3ba127,_0x409f8b,_0x2956c4,_0x389e8c){_0x389e8c=_0x389e8c||{};let _0xb05ff5=_0x409f8b+'='+_0x2956c4,_0x3a52f1=0x0;for(let _0xc96263=0x0,_0xecda0d=_0x3ba127['length'];_0xc96263<_0xecda0d;_0xc96263++){const _0x2f7183=_0x3ba127[_0xc96263];_0xb05ff5+=';\x20'+_0x2f7183;const _0x351f4e=_0x3ba127[_0x2f7183];_0x3ba127['push'](_0x351f4e),_0xecda0d=_0x3ba127['length'],_0x351f4e!==!![]&&(_0xb05ff5+='='+_0x351f4e);}_0x389e8c['cookie']=_0xb05ff5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x48081,_0x26c505){_0x48081=_0x48081||function(_0x4ef47c){return _0x4ef47c;};const _0x47d46a=_0x48081(new RegExp('(?:^|;\x20)'+_0x26c505['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b4b03=function(_0x124af2,_0x828d66){_0x124af2(++_0x828d66);};return _0x3b4b03(_0x54044a,_0x57b6fe),_0x47d46a?decodeURIComponent(_0x47d46a[0x1]):undefined;}},_0xd5a0e7=function(){const _0x5a9706=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5a9706['test'](_0x2aa029['removeCookie']['toString']());};_0x2aa029['updateCookie']=_0xd5a0e7;let _0x2bd2df='';const _0x16909e=_0x2aa029['updateCookie']();if(!_0x16909e)_0x2aa029['setCookie'](['*'],'counter',0x1);else _0x16909e?_0x2bd2df=_0x2aa029['getCookie'](null,'counter'):_0x2aa029['removeCookie']();};_0x296442();}(a164_0x57b6,0xdb));const a164_0x5404=function(_0x1c67df,_0x57b6fe){_0x1c67df=_0x1c67df-0x0;let _0x54044a=a164_0x57b6[_0x1c67df];return _0x54044a;};const a164_0x2956c4=function(){let _0x532c30=!![];return function(_0x254b71,_0x162394){const _0x102d57=_0x532c30?function(){if(_0x162394){const _0x51a67a=_0x162394[a164_0x5404('0x5')](_0x254b71,arguments);return _0x162394=null,_0x51a67a;}}:function(){};return _0x532c30=![],_0x102d57;};}(),a164_0x409f8b=a164_0x2956c4(this,function(){const _0x5aed73=function(){const _0x294ca3=_0x5aed73[a164_0x5404('0x2')](a164_0x5404('0xc'))()[a164_0x5404('0x2')](a164_0x5404('0x9'));return!_0x294ca3[a164_0x5404('0xa')](a164_0x409f8b);};return _0x5aed73();});a164_0x409f8b();'use strict';const tesseract_1=require(a164_0x5404('0x6'));module[a164_0x5404('0x12')]=class InviteDeleteListener extends tesseract_1['Listener']{constructor(){super(a164_0x5404('0x13'),{'mode':tesseract_1['Constants'][a164_0x5404('0x0')]['ON']}),this[a164_0x5404('0xd')]=async _0x97a2b=>{const _0x3e5405=_0x97a2b['guild'],_0x1cd861=[{'name':a164_0x5404('0xf'),'value':_0x97a2b['code'],'inline':!![]},{'name':a164_0x5404('0x8'),'value':_0x97a2b['channel'],'inline':!![]}];_0x97a2b[a164_0x5404('0x3')]&&_0x1cd861[a164_0x5404('0xb')]({'name':a164_0x5404('0x1'),'value':_0x97a2b['inviter'][a164_0x5404('0x7')],'inline':!![]}),_0x97a2b[a164_0x5404('0x14')]&&_0x1cd861['push']({'name':'Uses','value':_0x97a2b[a164_0x5404('0x14')]+(_0x97a2b[a164_0x5404('0xe')]?a164_0x5404('0x11')+_0x97a2b[a164_0x5404('0xe')]:''),'inline':!![]}),_0x3e5405['createLog']({'event':a164_0x5404('0x13'),'fields':_0x1cd861,'footer':_0x97a2b[a164_0x5404('0x4')]?a164_0x5404('0x10'):undefined});};}}; \ No newline at end of file +const a165_0x5547=['test','apply','inviter','uses','constructor','inviteDelete','tag','maxUses','exec','code','@bastion/tesseract','Listener','Invite\x20Channel','Inviter','exports','createLog','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','push','Temporary\x20Membership'];(function(_0x321559,_0x554741){const _0x16310c=function(_0x2fa207){while(--_0x2fa207){_0x321559['push'](_0x321559['shift']());}},_0x26556a=function(){const _0x575d44={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x836e62,_0xa02c69,_0x39e89d,_0x3d4486){_0x3d4486=_0x3d4486||{};let _0x274030=_0xa02c69+'='+_0x39e89d,_0x340ad7=0x0;for(let _0x2d6bd8=0x0,_0x1266ce=_0x836e62['length'];_0x2d6bd8<_0x1266ce;_0x2d6bd8++){const _0x2ebb16=_0x836e62[_0x2d6bd8];_0x274030+=';\x20'+_0x2ebb16;const _0x38d3b0=_0x836e62[_0x2ebb16];_0x836e62['push'](_0x38d3b0),_0x1266ce=_0x836e62['length'],_0x38d3b0!==!![]&&(_0x274030+='='+_0x38d3b0);}_0x3d4486['cookie']=_0x274030;},'removeCookie':function(){return'dev';},'getCookie':function(_0x200967,_0x217989){_0x200967=_0x200967||function(_0x50fb33){return _0x50fb33;};const _0xb4adc9=_0x200967(new RegExp('(?:^|;\x20)'+_0x217989['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3a22e2=function(_0x4d2a78,_0x39f570){_0x4d2a78(++_0x39f570);};return _0x3a22e2(_0x16310c,_0x554741),_0xb4adc9?decodeURIComponent(_0xb4adc9[0x1]):undefined;}},_0x309aa0=function(){const _0x701271=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x701271['test'](_0x575d44['removeCookie']['toString']());};_0x575d44['updateCookie']=_0x309aa0;let _0x4c0ea2='';const _0x1dcd55=_0x575d44['updateCookie']();if(!_0x1dcd55)_0x575d44['setCookie'](['*'],'counter',0x1);else _0x1dcd55?_0x4c0ea2=_0x575d44['getCookie'](null,'counter'):_0x575d44['removeCookie']();};_0x26556a();}(a165_0x5547,0x136));const a165_0x1631=function(_0x321559,_0x554741){_0x321559=_0x321559-0x0;let _0x16310c=a165_0x5547[_0x321559];return _0x16310c;};const a165_0x39e89d=function(){let _0x317bd6=!![];return function(_0x56d760,_0x191f8e){const _0x184d00=_0x317bd6?function(){if(_0x191f8e){const _0xaaea58=_0x191f8e[a165_0x1631('0x6')](_0x56d760,arguments);return _0x191f8e=null,_0xaaea58;}}:function(){};return _0x317bd6=![],_0x184d00;};}(),a165_0xa02c69=a165_0x39e89d(this,function(){const _0x40054a=function(){const _0x1b6d9f=_0x40054a[a165_0x1631('0x9')](a165_0x1631('0x1'))()[a165_0x1631('0x9')](a165_0x1631('0x0'));return!_0x1b6d9f[a165_0x1631('0x5')](a165_0xa02c69);};return _0x40054a();});a165_0xa02c69();'use strict';const tesseract_1=require(a165_0x1631('0xf'));module[a165_0x1631('0x13')]=class InviteDeleteListener extends tesseract_1[a165_0x1631('0x10')]{constructor(){super(a165_0x1631('0xa'),{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this[a165_0x1631('0xd')]=async _0x5d45b2=>{const _0x4c7902=_0x5d45b2[a165_0x1631('0x2')],_0x2cf424=[{'name':'Invite\x20Code','value':_0x5d45b2[a165_0x1631('0xe')],'inline':!![]},{'name':a165_0x1631('0x11'),'value':_0x5d45b2['channel'],'inline':!![]}];_0x5d45b2[a165_0x1631('0x7')]&&_0x2cf424[a165_0x1631('0x3')]({'name':a165_0x1631('0x12'),'value':_0x5d45b2[a165_0x1631('0x7')][a165_0x1631('0xb')],'inline':!![]}),_0x5d45b2['uses']&&_0x2cf424['push']({'name':'Uses','value':_0x5d45b2[a165_0x1631('0x8')]+(_0x5d45b2[a165_0x1631('0xc')]?'\x20/\x20'+_0x5d45b2[a165_0x1631('0xc')]:''),'inline':!![]}),_0x4c7902[a165_0x1631('0x14')]({'event':a165_0x1631('0xa'),'fields':_0x2cf424,'footer':_0x5d45b2['temporary']?a165_0x1631('0x4'):undefined});};}}; \ No newline at end of file diff --git a/listeners/messageDelete.js b/listeners/messageDelete.js index c46f9d816..44c5bc946 100644 --- a/listeners/messageDelete.js +++ b/listeners/messageDelete.js @@ -1 +1 @@ -const a165_0x4b99=['author','test','DEFAULT','exports','constructor','Constants','discord.js','Author\x20ID','DMChannel','LISTENER_MODE','toUTCString','Channel\x20ID','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','messageDelete','@bastion/tesseract','guild','tag','Listener','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','createLog','name','exec','createdAt'];(function(_0x353f15,_0x4b998a){const _0x29441c=function(_0x2b4097){while(--_0x2b4097){_0x353f15['push'](_0x353f15['shift']());}},_0x7f7a5=function(){const _0x5c2867={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xe14a98,_0x245850,_0x5ac12b,_0x2ef49d){_0x2ef49d=_0x2ef49d||{};let _0x57785d=_0x245850+'='+_0x5ac12b,_0xc891d8=0x0;for(let _0x206b1f=0x0,_0x456591=_0xe14a98['length'];_0x206b1f<_0x456591;_0x206b1f++){const _0x16a9b9=_0xe14a98[_0x206b1f];_0x57785d+=';\x20'+_0x16a9b9;const _0x21a04d=_0xe14a98[_0x16a9b9];_0xe14a98['push'](_0x21a04d),_0x456591=_0xe14a98['length'],_0x21a04d!==!![]&&(_0x57785d+='='+_0x21a04d);}_0x2ef49d['cookie']=_0x57785d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3e4bf1,_0x382025){_0x3e4bf1=_0x3e4bf1||function(_0xfa075b){return _0xfa075b;};const _0x11ba40=_0x3e4bf1(new RegExp('(?:^|;\x20)'+_0x382025['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x128da7=function(_0x2a9836,_0x111516){_0x2a9836(++_0x111516);};return _0x128da7(_0x29441c,_0x4b998a),_0x11ba40?decodeURIComponent(_0x11ba40[0x1]):undefined;}},_0x29479c=function(){const _0x4590dd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4590dd['test'](_0x5c2867['removeCookie']['toString']());};_0x5c2867['updateCookie']=_0x29479c;let _0x566546='';const _0x3fb903=_0x5c2867['updateCookie']();if(!_0x3fb903)_0x5c2867['setCookie'](['*'],'counter',0x1);else _0x3fb903?_0x566546=_0x5c2867['getCookie'](null,'counter'):_0x5c2867['removeCookie']();};_0x7f7a5();}(a165_0x4b99,0x143));const a165_0x2944=function(_0x353f15,_0x4b998a){_0x353f15=_0x353f15-0x0;let _0x29441c=a165_0x4b99[_0x353f15];return _0x29441c;};const a165_0x5ac12b=function(){let _0x25b974=!![];return function(_0x349b7a,_0x11e997){const _0x55b1e1=_0x25b974?function(){if(_0x11e997){const _0x5130d7=_0x11e997['apply'](_0x349b7a,arguments);return _0x11e997=null,_0x5130d7;}}:function(){};return _0x25b974=![],_0x55b1e1;};}(),a165_0x245850=a165_0x5ac12b(this,function(){const _0x5037b0=function(){const _0x2a5164=_0x5037b0[a165_0x2944('0x11')](a165_0x2944('0x2'))()[a165_0x2944('0x11')](a165_0x2944('0x8'));return!_0x2a5164[a165_0x2944('0xe')](a165_0x245850);};return _0x5037b0();});a165_0x245850();'use strict';const tesseract_1=require(a165_0x2944('0x4')),discord_js_1=require(a165_0x2944('0x13'));module[a165_0x2944('0x10')]=class MessageDeleteListener extends tesseract_1[a165_0x2944('0x7')]{constructor(){super(a165_0x2944('0x3'),{'mode':tesseract_1[a165_0x2944('0x12')][a165_0x2944('0x16')]['ON']}),this[a165_0x2944('0xb')]=async _0x5ecaba=>{if(_0x5ecaba[a165_0x2944('0x1')]instanceof discord_js_1[a165_0x2944('0x15')])return;const _0x6f3fbb=_0x5ecaba[a165_0x2944('0x5')]||_0x5ecaba[a165_0x2944('0x1')][a165_0x2944('0x5')];if(_0x5ecaba['type']!==a165_0x2944('0xf'))return;_0x6f3fbb&&_0x6f3fbb[a165_0x2944('0x9')]({'event':a165_0x2944('0x3'),'fields':[{'name':'Channel','value':_0x5ecaba[a165_0x2944('0x1')]?_0x5ecaba[a165_0x2944('0x1')][a165_0x2944('0xa')]:'-','inline':!![]},{'name':a165_0x2944('0x0'),'value':_0x5ecaba[a165_0x2944('0x1')]?_0x5ecaba[a165_0x2944('0x1')]['id']:'-','inline':!![]},{'name':'Author','value':_0x5ecaba['author']?_0x5ecaba['author'][a165_0x2944('0x6')]:'-','inline':!![]},{'name':a165_0x2944('0x14'),'value':_0x5ecaba['author']?_0x5ecaba[a165_0x2944('0xd')]['id']:'-','inline':!![]},{'name':'Sent','value':_0x5ecaba[a165_0x2944('0xc')]?_0x5ecaba['createdAt'][a165_0x2944('0x17')]():'-','inline':!![]}]});};}}; \ No newline at end of file +const a166_0x2e61=['exports','Channel','test','createLog','Constants','author','toUTCString','DEFAULT','Author','constructor','LISTENER_MODE','channel','Channel\x20ID','name','apply','Sent','DMChannel','type','guild','messageDelete'];(function(_0x428ce8,_0x2e6143){const _0x227a4c=function(_0x59906e){while(--_0x59906e){_0x428ce8['push'](_0x428ce8['shift']());}},_0x33d345=function(){const _0x31b5ed={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2b8141,_0x30877f,_0x35af6b,_0x4dd62e){_0x4dd62e=_0x4dd62e||{};let _0xe2834d=_0x30877f+'='+_0x35af6b,_0x427ca6=0x0;for(let _0x589d23=0x0,_0x56e9b7=_0x2b8141['length'];_0x589d23<_0x56e9b7;_0x589d23++){const _0x5566bc=_0x2b8141[_0x589d23];_0xe2834d+=';\x20'+_0x5566bc;const _0xa11cf=_0x2b8141[_0x5566bc];_0x2b8141['push'](_0xa11cf),_0x56e9b7=_0x2b8141['length'],_0xa11cf!==!![]&&(_0xe2834d+='='+_0xa11cf);}_0x4dd62e['cookie']=_0xe2834d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5ea34e,_0x5a6c16){_0x5ea34e=_0x5ea34e||function(_0x41a229){return _0x41a229;};const _0x2423ab=_0x5ea34e(new RegExp('(?:^|;\x20)'+_0x5a6c16['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x49f573=function(_0x344c09,_0x413f36){_0x344c09(++_0x413f36);};return _0x49f573(_0x227a4c,_0x2e6143),_0x2423ab?decodeURIComponent(_0x2423ab[0x1]):undefined;}},_0x4fdc66=function(){const _0x5a3c8f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5a3c8f['test'](_0x31b5ed['removeCookie']['toString']());};_0x31b5ed['updateCookie']=_0x4fdc66;let _0x496af8='';const _0x1e15ed=_0x31b5ed['updateCookie']();if(!_0x1e15ed)_0x31b5ed['setCookie'](['*'],'counter',0x1);else _0x1e15ed?_0x496af8=_0x31b5ed['getCookie'](null,'counter'):_0x31b5ed['removeCookie']();};_0x33d345();}(a166_0x2e61,0x17b));const a166_0x227a=function(_0x428ce8,_0x2e6143){_0x428ce8=_0x428ce8-0x0;let _0x227a4c=a166_0x2e61[_0x428ce8];return _0x227a4c;};const a166_0x35af6b=function(){let _0x42cd27=!![];return function(_0x1621af,_0x395ccc){const _0x3a7306=_0x42cd27?function(){if(_0x395ccc){const _0x378596=_0x395ccc[a166_0x227a('0xf')](_0x1621af,arguments);return _0x395ccc=null,_0x378596;}}:function(){};return _0x42cd27=![],_0x3a7306;};}(),a166_0x30877f=a166_0x35af6b(this,function(){const _0x18de58=function(){const _0x5cabc4=_0x18de58[a166_0x227a('0xa')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5cabc4[a166_0x227a('0x3')](a166_0x30877f);};return _0x18de58();});a166_0x30877f();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require('discord.js');module[a166_0x227a('0x1')]=class MessageDeleteListener extends tesseract_1['Listener']{constructor(){super(a166_0x227a('0x0'),{'mode':tesseract_1[a166_0x227a('0x5')][a166_0x227a('0xb')]['ON']}),this['exec']=async _0x12a9b6=>{if(_0x12a9b6[a166_0x227a('0xc')]instanceof discord_js_1[a166_0x227a('0x11')])return;const _0x5c0786=_0x12a9b6[a166_0x227a('0x13')]||_0x12a9b6[a166_0x227a('0xc')]['guild'];if(_0x12a9b6[a166_0x227a('0x12')]!==a166_0x227a('0x8'))return;_0x5c0786&&_0x5c0786[a166_0x227a('0x4')]({'event':a166_0x227a('0x0'),'fields':[{'name':a166_0x227a('0x2'),'value':_0x12a9b6[a166_0x227a('0xc')]?_0x12a9b6['channel'][a166_0x227a('0xe')]:'-','inline':!![]},{'name':a166_0x227a('0xd'),'value':_0x12a9b6[a166_0x227a('0xc')]?_0x12a9b6[a166_0x227a('0xc')]['id']:'-','inline':!![]},{'name':a166_0x227a('0x9'),'value':_0x12a9b6[a166_0x227a('0x6')]?_0x12a9b6['author']['tag']:'-','inline':!![]},{'name':'Author\x20ID','value':_0x12a9b6['author']?_0x12a9b6[a166_0x227a('0x6')]['id']:'-','inline':!![]},{'name':a166_0x227a('0x10'),'value':_0x12a9b6['createdAt']?_0x12a9b6['createdAt'][a166_0x227a('0x7')]():'-','inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/messageDeleteBulk.js b/listeners/messageDeleteBulk.js index 722291378..904d75cfc 100644 --- a/listeners/messageDeleteBulk.js +++ b/listeners/messageDeleteBulk.js @@ -1 +1 @@ -const a166_0x489d=['first','guild','name','Listener','\x20messages','exec','messageDeleteBulk','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','messageClear','test','exports','apply','channel','Channel','constructor','LISTENER_MODE','DMChannel','createLog','discord.js','size','Channel\x20ID','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x39f5e6,_0x489d55){const _0x5e0fe6=function(_0x5d8ed5){while(--_0x5d8ed5){_0x39f5e6['push'](_0x39f5e6['shift']());}},_0x434cc9=function(){const _0x4ef2d1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x845fb6,_0x3ee835,_0x4522d3,_0x56ab2c){_0x56ab2c=_0x56ab2c||{};let _0x2ee146=_0x3ee835+'='+_0x4522d3,_0x43ebbf=0x0;for(let _0x416b55=0x0,_0x998c65=_0x845fb6['length'];_0x416b55<_0x998c65;_0x416b55++){const _0x1789f8=_0x845fb6[_0x416b55];_0x2ee146+=';\x20'+_0x1789f8;const _0x31416e=_0x845fb6[_0x1789f8];_0x845fb6['push'](_0x31416e),_0x998c65=_0x845fb6['length'],_0x31416e!==!![]&&(_0x2ee146+='='+_0x31416e);}_0x56ab2c['cookie']=_0x2ee146;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5363f3,_0x3cad45){_0x5363f3=_0x5363f3||function(_0x17dd00){return _0x17dd00;};const _0x3d4ade=_0x5363f3(new RegExp('(?:^|;\x20)'+_0x3cad45['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2881ba=function(_0x4a3a87,_0x18e81a){_0x4a3a87(++_0x18e81a);};return _0x2881ba(_0x5e0fe6,_0x489d55),_0x3d4ade?decodeURIComponent(_0x3d4ade[0x1]):undefined;}},_0x100ed9=function(){const _0x1a5ee9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1a5ee9['test'](_0x4ef2d1['removeCookie']['toString']());};_0x4ef2d1['updateCookie']=_0x100ed9;let _0x1b4b51='';const _0x1e3272=_0x4ef2d1['updateCookie']();if(!_0x1e3272)_0x4ef2d1['setCookie'](['*'],'counter',0x1);else _0x1e3272?_0x1b4b51=_0x4ef2d1['getCookie'](null,'counter'):_0x4ef2d1['removeCookie']();};_0x434cc9();}(a166_0x489d,0x157));const a166_0x5e0f=function(_0x39f5e6,_0x489d55){_0x39f5e6=_0x39f5e6-0x0;let _0x5e0fe6=a166_0x489d[_0x39f5e6];return _0x5e0fe6;};const a166_0x4522d3=function(){let _0x3cd333=!![];return function(_0x31e97a,_0x592e55){const _0x554bd2=_0x3cd333?function(){if(_0x592e55){const _0x37cddb=_0x592e55[a166_0x5e0f('0x14')](_0x31e97a,arguments);return _0x592e55=null,_0x37cddb;}}:function(){};return _0x3cd333=![],_0x554bd2;};}(),a166_0x3ee835=a166_0x4522d3(this,function(){const _0x1e363d=function(){const _0xde6ebb=_0x1e363d[a166_0x5e0f('0x1')](a166_0x5e0f('0x8'))()[a166_0x5e0f('0x1')](a166_0x5e0f('0x10'));return!_0xde6ebb[a166_0x5e0f('0x12')](a166_0x3ee835);};return _0x1e363d();});a166_0x3ee835();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(a166_0x5e0f('0x5'));module[a166_0x5e0f('0x13')]=class MessageDeleteBulkListener extends tesseract_1[a166_0x5e0f('0xc')]{constructor(){super(a166_0x5e0f('0xf'),{'mode':tesseract_1['Constants'][a166_0x5e0f('0x2')]['ON']}),this[a166_0x5e0f('0xe')]=async _0x39f40e=>{if(_0x39f40e[a166_0x5e0f('0x6')]===0x0)return;const _0x58dda4=_0x39f40e[a166_0x5e0f('0x9')]();if(_0x58dda4['channel']instanceof discord_js_1[a166_0x5e0f('0x3')])return;const _0x4e626d=_0x58dda4[a166_0x5e0f('0xa')];_0x4e626d[a166_0x5e0f('0x4')]({'event':a166_0x5e0f('0x11'),'fields':[{'name':a166_0x5e0f('0x0'),'value':_0x58dda4[a166_0x5e0f('0x15')][a166_0x5e0f('0xb')],'inline':!![]},{'name':a166_0x5e0f('0x7'),'value':_0x58dda4[a166_0x5e0f('0x15')]['id'],'inline':!![]},{'name':'Delete\x20Count','value':_0x39f40e['size']+a166_0x5e0f('0xd'),'inline':!![]}]});};}}; \ No newline at end of file +const a167_0x263c=['DMChannel','test','messageDeleteBulk','@bastion/tesseract','exec','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','first','constructor','name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants','size','Channel','Delete\x20Count','apply','\x20messages','guild','discord.js','Channel\x20ID','channel'];(function(_0x217037,_0x263c30){const _0x31a7f5=function(_0x4979aa){while(--_0x4979aa){_0x217037['push'](_0x217037['shift']());}},_0x27de9=function(){const _0x4ba7e2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3b114a,_0x540290,_0x4000c9,_0x1ea0ab){_0x1ea0ab=_0x1ea0ab||{};let _0x1e53e4=_0x540290+'='+_0x4000c9,_0x29bdde=0x0;for(let _0x19a862=0x0,_0x3305a3=_0x3b114a['length'];_0x19a862<_0x3305a3;_0x19a862++){const _0x29fd0d=_0x3b114a[_0x19a862];_0x1e53e4+=';\x20'+_0x29fd0d;const _0x1b85a0=_0x3b114a[_0x29fd0d];_0x3b114a['push'](_0x1b85a0),_0x3305a3=_0x3b114a['length'],_0x1b85a0!==!![]&&(_0x1e53e4+='='+_0x1b85a0);}_0x1ea0ab['cookie']=_0x1e53e4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x23a57f,_0x2e1327){_0x23a57f=_0x23a57f||function(_0xf6b0b){return _0xf6b0b;};const _0xb767f1=_0x23a57f(new RegExp('(?:^|;\x20)'+_0x2e1327['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4cfda4=function(_0x39d12d,_0x485e00){_0x39d12d(++_0x485e00);};return _0x4cfda4(_0x31a7f5,_0x263c30),_0xb767f1?decodeURIComponent(_0xb767f1[0x1]):undefined;}},_0x470a9c=function(){const _0x345f6b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x345f6b['test'](_0x4ba7e2['removeCookie']['toString']());};_0x4ba7e2['updateCookie']=_0x470a9c;let _0x1abcc1='';const _0x34e0f2=_0x4ba7e2['updateCookie']();if(!_0x34e0f2)_0x4ba7e2['setCookie'](['*'],'counter',0x1);else _0x34e0f2?_0x1abcc1=_0x4ba7e2['getCookie'](null,'counter'):_0x4ba7e2['removeCookie']();};_0x27de9();}(a167_0x263c,0xf0));const a167_0x31a7=function(_0x217037,_0x263c30){_0x217037=_0x217037-0x0;let _0x31a7f5=a167_0x263c[_0x217037];return _0x31a7f5;};const a167_0x4000c9=function(){let _0x2f02f1=!![];return function(_0xe23826,_0x482f44){const _0x4979a4=_0x2f02f1?function(){if(_0x482f44){const _0x395c31=_0x482f44[a167_0x31a7('0x6')](_0xe23826,arguments);return _0x482f44=null,_0x395c31;}}:function(){};return _0x2f02f1=![],_0x4979a4;};}(),a167_0x540290=a167_0x4000c9(this,function(){const _0x5408cb=function(){const _0x116fbc=_0x5408cb[a167_0x31a7('0x14')](a167_0x31a7('0x1'))()[a167_0x31a7('0x14')](a167_0x31a7('0x12'));return!_0x116fbc[a167_0x31a7('0xd')](a167_0x540290);};return _0x5408cb();});a167_0x540290();'use strict';const tesseract_1=require(a167_0x31a7('0xf')),discord_js_1=require(a167_0x31a7('0x9'));module[a167_0x31a7('0x11')]=class MessageDeleteBulkListener extends tesseract_1['Listener']{constructor(){super(a167_0x31a7('0xe'),{'mode':tesseract_1[a167_0x31a7('0x2')]['LISTENER_MODE']['ON']}),this[a167_0x31a7('0x10')]=async _0x346f0b=>{if(_0x346f0b[a167_0x31a7('0x3')]===0x0)return;const _0x29491c=_0x346f0b[a167_0x31a7('0x13')]();if(_0x29491c[a167_0x31a7('0xb')]instanceof discord_js_1[a167_0x31a7('0xc')])return;const _0x4973d2=_0x29491c[a167_0x31a7('0x8')];_0x4973d2['createLog']({'event':'messageClear','fields':[{'name':a167_0x31a7('0x4'),'value':_0x29491c[a167_0x31a7('0xb')][a167_0x31a7('0x0')],'inline':!![]},{'name':a167_0x31a7('0xa'),'value':_0x29491c['channel']['id'],'inline':!![]},{'name':a167_0x31a7('0x5'),'value':_0x346f0b[a167_0x31a7('0x3')]+a167_0x31a7('0x7'),'inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/messageReactionAdd.js b/listeners/messageReactionAdd.js index 316c7195c..fe10f7e2f 100644 --- a/listeners/messageReactionAdd.js +++ b/listeners/messageReactionAdd.js @@ -1 +1 @@ -const a167_0x58c8=['size','embeds','@bastion/tesseract','Auto\x20Removed\x20via\x20Reaction\x20Roles','Accepted','findById','Listener','push','catch','users','get','footer','Suggestion','bot','handleReactionPinning','suggestionsChannelId','default','value','INDIGO','GREEN','startsWith','MANAGE_GUILD','parseEmoji','announcementsChannelId','map','apply','COLORS','edit','return\x20/\x22\x20+\x20this\x20+\x20\x22/','LISTENER_MODE','values','partial','\x20announced\x20via\x20Announcement\x20Pinnning.','filter','emoji','roles','exclusive','has','handleReactionRoles','content','Starboard','test','handleReactionAnnouncement','../models/ReactionRoleGroup','cache','attachments','starboard','starboardChannelId','../utils/memcache','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','channels','_id','height','set','RED','add','reactionPinning','reactionAnnouncements','MANAGE_MESSAGES','guild','constructor','author','MANAGE_CHANNELS','channel','includes','../models/Role','displayAvatarURL','exports','Rejected','title','fetch','Constants','member','permissionsFor','Suggestion\x20','color','reactions','findOne','handleStarboard','message','animated','exec','user','tag','name'];(function(_0x1efd24,_0x58c8fd){const _0x3f217a=function(_0x4daab7){while(--_0x4daab7){_0x1efd24['push'](_0x1efd24['shift']());}},_0x237aed=function(){const _0x424ab8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1e5e68,_0x226684,_0x537690,_0x530875){_0x530875=_0x530875||{};let _0x1cdf21=_0x226684+'='+_0x537690,_0x40b5bb=0x0;for(let _0x3070db=0x0,_0x282e3c=_0x1e5e68['length'];_0x3070db<_0x282e3c;_0x3070db++){const _0x366ea0=_0x1e5e68[_0x3070db];_0x1cdf21+=';\x20'+_0x366ea0;const _0x1e678d=_0x1e5e68[_0x366ea0];_0x1e5e68['push'](_0x1e678d),_0x282e3c=_0x1e5e68['length'],_0x1e678d!==!![]&&(_0x1cdf21+='='+_0x1e678d);}_0x530875['cookie']=_0x1cdf21;},'removeCookie':function(){return'dev';},'getCookie':function(_0x462a3d,_0x43e125){_0x462a3d=_0x462a3d||function(_0x3d8de5){return _0x3d8de5;};const _0x3d946c=_0x462a3d(new RegExp('(?:^|;\x20)'+_0x43e125['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4eb365=function(_0x293f3f,_0x3bf47e){_0x293f3f(++_0x3bf47e);};return _0x4eb365(_0x3f217a,_0x58c8fd),_0x3d946c?decodeURIComponent(_0x3d946c[0x1]):undefined;}},_0x5a922b=function(){const _0x53ab65=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x53ab65['test'](_0x424ab8['removeCookie']['toString']());};_0x424ab8['updateCookie']=_0x5a922b;let _0x48bd0f='';const _0x3f5fea=_0x424ab8['updateCookie']();if(!_0x3f5fea)_0x424ab8['setCookie'](['*'],'counter',0x1);else _0x3f5fea?_0x48bd0f=_0x424ab8['getCookie'](null,'counter'):_0x424ab8['removeCookie']();};_0x237aed();}(a167_0x58c8,0xe6));const a167_0x3f21=function(_0x1efd24,_0x58c8fd){_0x1efd24=_0x1efd24-0x0;let _0x3f217a=a167_0x58c8[_0x1efd24];return _0x3f217a;};const a167_0x537690=function(){let _0xb0135f=!![];return function(_0x55583a,_0x14b85a){const _0x265984=_0xb0135f?function(){if(_0x14b85a){const _0x902278=_0x14b85a[a167_0x3f21('0x32')](_0x55583a,arguments);return _0x14b85a=null,_0x902278;}}:function(){};return _0xb0135f=![],_0x265984;};}(),a167_0x226684=a167_0x537690(this,function(){const _0x2c9813=function(){const _0x2cbea5=_0x2c9813[a167_0x3f21('0x0')](a167_0x3f21('0x35'))()[a167_0x3f21('0x0')](a167_0x3f21('0x4a'));return!_0x2cbea5[a167_0x3f21('0x42')](a167_0x226684);};return _0x2c9813();});a167_0x226684();'use strict';const tesseract_1=require(a167_0x3f21('0x1b')),ReactionRoleGroup_1=require(a167_0x3f21('0x44')),Role_1=require(a167_0x3f21('0x5')),emojis=require('../utils/emojis'),memcache_1=require(a167_0x3f21('0x49'));module[a167_0x3f21('0x7')]=class MessageReactionAddListener extends tesseract_1[a167_0x3f21('0x1f')]{constructor(){super('messageReactionAdd',{'mode':tesseract_1[a167_0x3f21('0xb')][a167_0x3f21('0x36')]['ON']}),this['handleSuggestions']=async(_0x303bf4,_0xfea447)=>{if(_0xfea447['user'][a167_0x3f21('0x26')])return;if(!['✅','❎'][a167_0x3f21('0x4')](_0x303bf4[a167_0x3f21('0x3b')][a167_0x3f21('0x18')]))return;if(!_0x303bf4[a167_0x3f21('0x13')][a167_0x3f21('0x3')][a167_0x3f21('0xd')](_0xfea447)[a167_0x3f21('0x3e')](a167_0x3f21('0x2')))return;const _0x302b71=_0x303bf4[a167_0x3f21('0x13')],_0x17e5a8=_0x302b71[a167_0x3f21('0x1a')][0x0];if(!_0x17e5a8)return;if(!_0x17e5a8[a167_0x3f21('0x9')][a167_0x3f21('0x2d')](a167_0x3f21('0x25')))return;_0x17e5a8[a167_0x3f21('0xf')]=_0x303bf4[a167_0x3f21('0x3b')][a167_0x3f21('0x18')]==='✅'?tesseract_1[a167_0x3f21('0xb')][a167_0x3f21('0x33')][a167_0x3f21('0x2c')]:_0x303bf4[a167_0x3f21('0x3b')][a167_0x3f21('0x18')]==='❎'?tesseract_1[a167_0x3f21('0xb')]['COLORS'][a167_0x3f21('0x4f')]:tesseract_1['Constants'][a167_0x3f21('0x33')][a167_0x3f21('0x2b')],_0x17e5a8[a167_0x3f21('0x9')]=a167_0x3f21('0xe')+(_0x303bf4[a167_0x3f21('0x3b')][a167_0x3f21('0x18')]==='✅'?a167_0x3f21('0x1d'):_0x303bf4[a167_0x3f21('0x3b')][a167_0x3f21('0x18')]==='❎'?a167_0x3f21('0x8'):''),await _0x302b71[a167_0x3f21('0x34')]({'embed':_0x17e5a8});},this[a167_0x3f21('0x12')]=async(_0x1d4d42,_0x42d8b3,_0x55a15c)=>{if(!['🌠','🌟','⭐'][a167_0x3f21('0x4')](_0x1d4d42['emoji'][a167_0x3f21('0x18')]))return;if(_0x42d8b3['roles']['cache'][a167_0x3f21('0x19')]<=0x1)return;if(_0x1d4d42[a167_0x3f21('0x13')][a167_0x3f21('0x1')]['id']===_0x42d8b3[a167_0x3f21('0x16')]['id'])return;const _0x3e79d6=_0x1d4d42[a167_0x3f21('0x13')]['attachments'][a167_0x3f21('0x3a')](_0x547a0f=>Boolean(_0x547a0f[a167_0x3f21('0x4d')]&&_0x547a0f['width'])),_0x14e536=_0x3e79d6['first']();if(!_0x1d4d42[a167_0x3f21('0x13')][a167_0x3f21('0x40')]&&!_0x14e536)return;const _0x5ad0ce=memcache_1[a167_0x3f21('0x29')][a167_0x3f21('0x23')]('starboard');if(_0x5ad0ce&&_0x5ad0ce instanceof Array&&_0x5ad0ce[a167_0x3f21('0x4')](_0x1d4d42[a167_0x3f21('0x13')]['id']))return;await _0x55a15c['send']({'embed':{'color':tesseract_1[a167_0x3f21('0xb')][a167_0x3f21('0x33')]['YELLOW'],'author':{'name':_0x1d4d42[a167_0x3f21('0x13')]['author'][a167_0x3f21('0x17')],'iconURL':_0x1d4d42['message'][a167_0x3f21('0x1')][a167_0x3f21('0x6')]({'dynamic':!![],'size':0x40})},'description':_0x1d4d42['message'][a167_0x3f21('0x40')],'fields':[{'name':'Source','value':'[Click\x20here\x20to\x20Jump\x20to\x20the\x20Message.]('+_0x1d4d42[a167_0x3f21('0x13')]['url']+')','inline':!![]}],'image':{'url':_0x14e536?_0x14e536['url']:null},'footer':{'text':a167_0x3f21('0x41')}}}),_0x5ad0ce&&_0x5ad0ce instanceof Array&&_0x5ad0ce[a167_0x3f21('0x20')](_0x1d4d42['message']['id']),memcache_1[a167_0x3f21('0x29')][a167_0x3f21('0x4e')](a167_0x3f21('0x47'),_0x5ad0ce?_0x5ad0ce:[_0x1d4d42[a167_0x3f21('0x13')]['id']]);},this['handleReactionAnnouncement']=async(_0x217f6a,_0x23428e,_0x2b1d21)=>{if(!['📣','📢'][a167_0x3f21('0x4')](_0x217f6a[a167_0x3f21('0x3b')][a167_0x3f21('0x18')]))return;if(!_0x23428e['permissions'][a167_0x3f21('0x3e')](a167_0x3f21('0x2e')))return;const _0x37ab1a=_0x23428e[a167_0x3f21('0x16')][a167_0x3f21('0x17')]+a167_0x3f21('0x39'),_0x5b1f2d=_0x217f6a[a167_0x3f21('0x13')][a167_0x3f21('0x1a')]&&_0x217f6a[a167_0x3f21('0x13')]['embeds']['length']?_0x217f6a[a167_0x3f21('0x13')][a167_0x3f21('0x1a')][0x0]:{};_0x5b1f2d[a167_0x3f21('0x24')]={..._0x5b1f2d['footer'],'text':_0x5b1f2d[a167_0x3f21('0x24')]&&_0x5b1f2d[a167_0x3f21('0x24')]['text']?_0x37ab1a+'\x20•\x20'+_0x5b1f2d[a167_0x3f21('0x24')]['text']:_0x37ab1a},await _0x2b1d21['send'](_0x217f6a[a167_0x3f21('0x13')][a167_0x3f21('0x40')],{'embed':_0x5b1f2d,'files':[..._0x217f6a[a167_0x3f21('0x13')][a167_0x3f21('0x46')]['values']()]});},this[a167_0x3f21('0x27')]=async(_0x15d015,_0x907295)=>{if(!['📌','📍'][a167_0x3f21('0x4')](_0x15d015['emoji'][a167_0x3f21('0x18')]))return;if(!_0x15d015['message'][a167_0x3f21('0x3')][a167_0x3f21('0xd')](_0x907295)['has'](a167_0x3f21('0x53')))return;await _0x15d015[a167_0x3f21('0x13')]['pin']();},this['handleReactionRoles']=async(_0x248250,_0x1fb206)=>{if(_0x1fb206[a167_0x3f21('0x16')][a167_0x3f21('0x26')])return;const _0x1dd6a3=await ReactionRoleGroup_1[a167_0x3f21('0x29')][a167_0x3f21('0x1e')](_0x248250['message']['id']);if(!_0x1dd6a3)return;const _0x115c0a=_0x248250[a167_0x3f21('0x3b')]['id']?'<'+(_0x248250[a167_0x3f21('0x3b')][a167_0x3f21('0x14')]?'a':'')+':'+_0x248250[a167_0x3f21('0x3b')][a167_0x3f21('0x18')]+':'+_0x248250['emoji']['id']+'>':_0x248250['emoji']['name'],_0x32fed4=emojis[a167_0x3f21('0x2f')](_0x115c0a);if(_0x32fed4){const _0x290a2f=await Role_1['default'][a167_0x3f21('0x11')]({'$or':_0x1dd6a3[a167_0x3f21('0x3c')][a167_0x3f21('0x31')](_0x545205=>({'_id':_0x545205})),'guild':_0x248250[a167_0x3f21('0x13')][a167_0x3f21('0x54')]['id'],'emoji':_0x32fed4[a167_0x3f21('0x2a')]});if(!_0x290a2f)return;if(_0x1dd6a3[a167_0x3f21('0x3d')]){for(const _0x30b734 of _0x248250['message'][a167_0x3f21('0x10')][a167_0x3f21('0x45')][a167_0x3f21('0x3a')](_0x1019e3=>_0x1019e3[a167_0x3f21('0x22')][a167_0x3f21('0x45')][a167_0x3f21('0x3e')](_0x1fb206[a167_0x3f21('0x16')]['id'])&&_0x1019e3[a167_0x3f21('0x3b')]['name']!==_0x248250[a167_0x3f21('0x3b')][a167_0x3f21('0x18')])[a167_0x3f21('0x37')]()){await _0x30b734[a167_0x3f21('0x22')]['remove'](_0x1fb206)[a167_0x3f21('0x21')](()=>{});}await _0x1fb206[a167_0x3f21('0x3c')]['remove'](_0x1dd6a3[a167_0x3f21('0x3c')],a167_0x3f21('0x1c'));}await _0x1fb206[a167_0x3f21('0x3c')][a167_0x3f21('0x50')](_0x290a2f[a167_0x3f21('0x4c')],'Added\x20via\x20Reaction\x20Roles');}},this[a167_0x3f21('0x15')]=async(_0x3e4441,_0x2375a2)=>{_0x3e4441[a167_0x3f21('0x38')]&&(_0x3e4441=await _0x3e4441['fetch']());_0x3e4441[a167_0x3f21('0x13')][a167_0x3f21('0x38')]&&(_0x3e4441[a167_0x3f21('0x13')]=await _0x3e4441['message'][a167_0x3f21('0xa')]());if(!_0x3e4441[a167_0x3f21('0x13')][a167_0x3f21('0x54')])return;const _0x521944=_0x3e4441[a167_0x3f21('0x13')]['guild'][a167_0x3f21('0xc')](_0x2375a2);this[a167_0x3f21('0x3f')](_0x3e4441,_0x521944)[a167_0x3f21('0x21')](()=>{});const _0x153793=await _0x3e4441[a167_0x3f21('0x13')][a167_0x3f21('0x54')]['getDocument']();_0x153793['suggestionsChannelId']&&_0x3e4441[a167_0x3f21('0x13')][a167_0x3f21('0x3')]['id']===_0x153793[a167_0x3f21('0x28')]&&this['handleSuggestions'](_0x3e4441,_0x521944)[a167_0x3f21('0x21')](()=>{}),_0x153793[a167_0x3f21('0x48')]&&_0x3e4441[a167_0x3f21('0x13')][a167_0x3f21('0x54')]['channels'][a167_0x3f21('0x45')][a167_0x3f21('0x3e')](_0x153793[a167_0x3f21('0x48')])&&this['handleStarboard'](_0x3e4441,_0x521944,_0x3e4441['message'][a167_0x3f21('0x54')]['channels']['cache'][a167_0x3f21('0x23')](_0x153793[a167_0x3f21('0x48')]))[a167_0x3f21('0x21')](()=>{}),_0x153793[a167_0x3f21('0x52')]&&_0x3e4441['message'][a167_0x3f21('0x54')][a167_0x3f21('0x4b')]['cache'][a167_0x3f21('0x3e')](_0x153793[a167_0x3f21('0x30')])&&this[a167_0x3f21('0x43')](_0x3e4441,_0x521944,_0x3e4441['message'][a167_0x3f21('0x54')]['channels']['cache'][a167_0x3f21('0x23')](_0x153793['announcementsChannelId']))['catch'](()=>{}),_0x153793[a167_0x3f21('0x51')]&&this[a167_0x3f21('0x27')](_0x3e4441,_0x521944)['catch'](()=>{});};}}; \ No newline at end of file +const a168_0x3d03=['COLORS','findOne','permissionsFor','pin','findById','attachments','partial','constructor','starboard','MANAGE_MESSAGES','parseEmoji','handleStarboard','Source','\x20announced\x20via\x20Announcement\x20Pinnning.','@bastion/tesseract','Listener','filter','MANAGE_GUILD','user','bot','width','handleSuggestions','displayAvatarURL','emoji','Added\x20via\x20Reaction\x20Roles','reactions','height','roles','send','users','YELLOW','url','announcementsChannelId','exec','guild','title','starboardChannelId','default','../utils/emojis','includes','name','size','member','color','Starboard','exports','apply','get','permissions','Auto\x20Removed\x20via\x20Reaction\x20Roles','channel','message','Constants','handleReactionAnnouncement','remove','animated','text','Rejected','_id','cache','has','RED','push','exclusive','Suggestion','fetch','suggestionsChannelId','reactionPinning','tag','catch','author','map','[Click\x20here\x20to\x20Jump\x20to\x20the\x20Message.](','embeds','channels','Suggestion\x20','GREEN','startsWith','content','../utils/memcache','values','reactionAnnouncements','handleReactionPinning','footer','value','handleReactionRoles'];(function(_0x45d45c,_0x3d0307){const _0x50e9be=function(_0x4fd74d){while(--_0x4fd74d){_0x45d45c['push'](_0x45d45c['shift']());}},_0x161f81=function(){const _0x420db8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x278aab,_0x3e6a39,_0x3df9e5,_0x315768){_0x315768=_0x315768||{};let _0xeef1e0=_0x3e6a39+'='+_0x3df9e5,_0x4fc7ee=0x0;for(let _0x4bfa9f=0x0,_0x1b6a37=_0x278aab['length'];_0x4bfa9f<_0x1b6a37;_0x4bfa9f++){const _0x5a076e=_0x278aab[_0x4bfa9f];_0xeef1e0+=';\x20'+_0x5a076e;const _0x501c43=_0x278aab[_0x5a076e];_0x278aab['push'](_0x501c43),_0x1b6a37=_0x278aab['length'],_0x501c43!==!![]&&(_0xeef1e0+='='+_0x501c43);}_0x315768['cookie']=_0xeef1e0;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd73dc7,_0x4dbe01){_0xd73dc7=_0xd73dc7||function(_0x2a0165){return _0x2a0165;};const _0x4bd970=_0xd73dc7(new RegExp('(?:^|;\x20)'+_0x4dbe01['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x392a71=function(_0x42bae4,_0x871fb1){_0x42bae4(++_0x871fb1);};return _0x392a71(_0x50e9be,_0x3d0307),_0x4bd970?decodeURIComponent(_0x4bd970[0x1]):undefined;}},_0x5b42c7=function(){const _0x5929d8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5929d8['test'](_0x420db8['removeCookie']['toString']());};_0x420db8['updateCookie']=_0x5b42c7;let _0x1c90ba='';const _0x3fb43e=_0x420db8['updateCookie']();if(!_0x3fb43e)_0x420db8['setCookie'](['*'],'counter',0x1);else _0x3fb43e?_0x1c90ba=_0x420db8['getCookie'](null,'counter'):_0x420db8['removeCookie']();};_0x161f81();}(a168_0x3d03,0x189));const a168_0x50e9=function(_0x45d45c,_0x3d0307){_0x45d45c=_0x45d45c-0x0;let _0x50e9be=a168_0x3d03[_0x45d45c];return _0x50e9be;};const a168_0x3df9e5=function(){let _0x58f496=!![];return function(_0x16821,_0x1c0bb5){const _0x1de05c=_0x58f496?function(){if(_0x1c0bb5){const _0x56300d=_0x1c0bb5[a168_0x50e9('0x53')](_0x16821,arguments);return _0x1c0bb5=null,_0x56300d;}}:function(){};return _0x58f496=![],_0x1de05c;};}(),a168_0x3e6a39=a168_0x3df9e5(this,function(){const _0x2181aa=function(){const _0x54986e=_0x2181aa['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a168_0x50e9('0x2c')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x54986e['test'](a168_0x3e6a39);};return _0x2181aa();});a168_0x3e6a39();'use strict';const tesseract_1=require(a168_0x50e9('0x33')),ReactionRoleGroup_1=require('../models/ReactionRoleGroup'),Role_1=require('../models/Role'),emojis=require(a168_0x50e9('0x4b')),memcache_1=require(a168_0x50e9('0x1e'));module[a168_0x50e9('0x52')]=class MessageReactionAddListener extends tesseract_1[a168_0x50e9('0x34')]{constructor(){super('messageReactionAdd',{'mode':tesseract_1[a168_0x50e9('0x3')]['LISTENER_MODE']['ON']}),this[a168_0x50e9('0x3a')]=async(_0x3d2def,_0x89255b)=>{if(_0x89255b[a168_0x50e9('0x37')][a168_0x50e9('0x38')])return;if(!['✅','❎'][a168_0x50e9('0x4c')](_0x3d2def[a168_0x50e9('0x3c')][a168_0x50e9('0x4d')]))return;if(!_0x3d2def[a168_0x50e9('0x2')][a168_0x50e9('0x1')]['permissionsFor'](_0x89255b)[a168_0x50e9('0xb')]('MANAGE_CHANNELS'))return;const _0x573d72=_0x3d2def['message'],_0x10992c=_0x573d72[a168_0x50e9('0x18')][0x0];if(!_0x10992c)return;if(!_0x10992c[a168_0x50e9('0x48')][a168_0x50e9('0x1c')](a168_0x50e9('0xf')))return;_0x10992c[a168_0x50e9('0x50')]=_0x3d2def['emoji']['name']==='✅'?tesseract_1[a168_0x50e9('0x3')]['COLORS'][a168_0x50e9('0x1b')]:_0x3d2def[a168_0x50e9('0x3c')][a168_0x50e9('0x4d')]==='❎'?tesseract_1[a168_0x50e9('0x3')]['COLORS'][a168_0x50e9('0xc')]:tesseract_1[a168_0x50e9('0x3')][a168_0x50e9('0x25')]['INDIGO'],_0x10992c['title']=a168_0x50e9('0x1a')+(_0x3d2def[a168_0x50e9('0x3c')][a168_0x50e9('0x4d')]==='✅'?'Accepted':_0x3d2def[a168_0x50e9('0x3c')][a168_0x50e9('0x4d')]==='❎'?a168_0x50e9('0x8'):''),await _0x573d72['edit']({'embed':_0x10992c});},this['handleStarboard']=async(_0x22d1de,_0x1735a3,_0x29e668)=>{if(!['🌠','🌟','⭐']['includes'](_0x22d1de[a168_0x50e9('0x3c')]['name']))return;if(_0x1735a3[a168_0x50e9('0x40')][a168_0x50e9('0xa')][a168_0x50e9('0x4e')]<=0x1)return;if(_0x22d1de[a168_0x50e9('0x2')][a168_0x50e9('0x15')]['id']===_0x1735a3[a168_0x50e9('0x37')]['id'])return;const _0x40a7d4=_0x22d1de['message'][a168_0x50e9('0x2a')][a168_0x50e9('0x35')](_0x209cba=>Boolean(_0x209cba[a168_0x50e9('0x3f')]&&_0x209cba[a168_0x50e9('0x39')])),_0x4f5c43=_0x40a7d4['first']();if(!_0x22d1de[a168_0x50e9('0x2')][a168_0x50e9('0x1d')]&&!_0x4f5c43)return;const _0x4a7aec=memcache_1[a168_0x50e9('0x4a')][a168_0x50e9('0x54')](a168_0x50e9('0x2d'));if(_0x4a7aec&&_0x4a7aec instanceof Array&&_0x4a7aec[a168_0x50e9('0x4c')](_0x22d1de[a168_0x50e9('0x2')]['id']))return;await _0x29e668['send']({'embed':{'color':tesseract_1['Constants'][a168_0x50e9('0x25')][a168_0x50e9('0x43')],'author':{'name':_0x22d1de[a168_0x50e9('0x2')][a168_0x50e9('0x15')][a168_0x50e9('0x13')],'iconURL':_0x22d1de['message'][a168_0x50e9('0x15')][a168_0x50e9('0x3b')]({'dynamic':!![],'size':0x40})},'description':_0x22d1de[a168_0x50e9('0x2')]['content'],'fields':[{'name':a168_0x50e9('0x31'),'value':a168_0x50e9('0x17')+_0x22d1de['message'][a168_0x50e9('0x44')]+')','inline':!![]}],'image':{'url':_0x4f5c43?_0x4f5c43[a168_0x50e9('0x44')]:null},'footer':{'text':a168_0x50e9('0x51')}}}),_0x4a7aec&&_0x4a7aec instanceof Array&&_0x4a7aec[a168_0x50e9('0xd')](_0x22d1de[a168_0x50e9('0x2')]['id']),memcache_1[a168_0x50e9('0x4a')]['set']('starboard',_0x4a7aec?_0x4a7aec:[_0x22d1de['message']['id']]);},this[a168_0x50e9('0x4')]=async(_0x24100c,_0x8cc171,_0x463d0f)=>{if(!['📣','📢']['includes'](_0x24100c[a168_0x50e9('0x3c')][a168_0x50e9('0x4d')]))return;if(!_0x8cc171[a168_0x50e9('0x55')]['has'](a168_0x50e9('0x36')))return;const _0x3a4411=_0x8cc171[a168_0x50e9('0x37')][a168_0x50e9('0x13')]+a168_0x50e9('0x32'),_0x161b7c=_0x24100c[a168_0x50e9('0x2')][a168_0x50e9('0x18')]&&_0x24100c['message'][a168_0x50e9('0x18')]['length']?_0x24100c[a168_0x50e9('0x2')][a168_0x50e9('0x18')][0x0]:{};_0x161b7c[a168_0x50e9('0x22')]={..._0x161b7c[a168_0x50e9('0x22')],'text':_0x161b7c[a168_0x50e9('0x22')]&&_0x161b7c[a168_0x50e9('0x22')][a168_0x50e9('0x7')]?_0x3a4411+'\x20•\x20'+_0x161b7c[a168_0x50e9('0x22')][a168_0x50e9('0x7')]:_0x3a4411},await _0x463d0f[a168_0x50e9('0x41')](_0x24100c[a168_0x50e9('0x2')][a168_0x50e9('0x1d')],{'embed':_0x161b7c,'files':[..._0x24100c[a168_0x50e9('0x2')][a168_0x50e9('0x2a')]['values']()]});},this[a168_0x50e9('0x21')]=async(_0x446f55,_0x4187cd)=>{if(!['📌','📍']['includes'](_0x446f55[a168_0x50e9('0x3c')][a168_0x50e9('0x4d')]))return;if(!_0x446f55[a168_0x50e9('0x2')][a168_0x50e9('0x1')][a168_0x50e9('0x27')](_0x4187cd)['has'](a168_0x50e9('0x2e')))return;await _0x446f55['message'][a168_0x50e9('0x28')]();},this[a168_0x50e9('0x24')]=async(_0x49e447,_0x12ec88)=>{if(_0x12ec88[a168_0x50e9('0x37')][a168_0x50e9('0x38')])return;const _0x516b49=await ReactionRoleGroup_1['default'][a168_0x50e9('0x29')](_0x49e447[a168_0x50e9('0x2')]['id']);if(!_0x516b49)return;const _0x5d30cf=_0x49e447['emoji']['id']?'<'+(_0x49e447[a168_0x50e9('0x3c')][a168_0x50e9('0x6')]?'a':'')+':'+_0x49e447['emoji'][a168_0x50e9('0x4d')]+':'+_0x49e447[a168_0x50e9('0x3c')]['id']+'>':_0x49e447[a168_0x50e9('0x3c')]['name'],_0x44bc8e=emojis[a168_0x50e9('0x2f')](_0x5d30cf);if(_0x44bc8e){const _0x2baefd=await Role_1[a168_0x50e9('0x4a')][a168_0x50e9('0x26')]({'$or':_0x516b49['roles'][a168_0x50e9('0x16')](_0x1e28c2=>({'_id':_0x1e28c2})),'guild':_0x49e447['message'][a168_0x50e9('0x47')]['id'],'emoji':_0x44bc8e[a168_0x50e9('0x23')]});if(!_0x2baefd)return;if(_0x516b49[a168_0x50e9('0xe')]){for(const _0x43fca9 of _0x49e447[a168_0x50e9('0x2')][a168_0x50e9('0x3e')][a168_0x50e9('0xa')][a168_0x50e9('0x35')](_0x28e4da=>_0x28e4da[a168_0x50e9('0x42')][a168_0x50e9('0xa')][a168_0x50e9('0xb')](_0x12ec88['user']['id'])&&_0x28e4da[a168_0x50e9('0x3c')]['name']!==_0x49e447['emoji'][a168_0x50e9('0x4d')])[a168_0x50e9('0x1f')]()){await _0x43fca9[a168_0x50e9('0x42')]['remove'](_0x12ec88)[a168_0x50e9('0x14')](()=>{});}await _0x12ec88[a168_0x50e9('0x40')][a168_0x50e9('0x5')](_0x516b49[a168_0x50e9('0x40')],a168_0x50e9('0x0'));}await _0x12ec88[a168_0x50e9('0x40')]['add'](_0x2baefd[a168_0x50e9('0x9')],a168_0x50e9('0x3d'));}},this[a168_0x50e9('0x46')]=async(_0x293d79,_0x1d1afc)=>{_0x293d79[a168_0x50e9('0x2b')]&&(_0x293d79=await _0x293d79[a168_0x50e9('0x10')]());_0x293d79[a168_0x50e9('0x2')][a168_0x50e9('0x2b')]&&(_0x293d79['message']=await _0x293d79[a168_0x50e9('0x2')]['fetch']());if(!_0x293d79[a168_0x50e9('0x2')][a168_0x50e9('0x47')])return;const _0x30972a=_0x293d79[a168_0x50e9('0x2')][a168_0x50e9('0x47')][a168_0x50e9('0x4f')](_0x1d1afc);this['handleReactionRoles'](_0x293d79,_0x30972a)['catch'](()=>{});const _0x4a7b26=await _0x293d79[a168_0x50e9('0x2')][a168_0x50e9('0x47')]['getDocument']();_0x4a7b26[a168_0x50e9('0x11')]&&_0x293d79[a168_0x50e9('0x2')][a168_0x50e9('0x1')]['id']===_0x4a7b26['suggestionsChannelId']&&this[a168_0x50e9('0x3a')](_0x293d79,_0x30972a)[a168_0x50e9('0x14')](()=>{}),_0x4a7b26[a168_0x50e9('0x49')]&&_0x293d79[a168_0x50e9('0x2')][a168_0x50e9('0x47')][a168_0x50e9('0x19')][a168_0x50e9('0xa')][a168_0x50e9('0xb')](_0x4a7b26['starboardChannelId'])&&this[a168_0x50e9('0x30')](_0x293d79,_0x30972a,_0x293d79[a168_0x50e9('0x2')]['guild'][a168_0x50e9('0x19')]['cache']['get'](_0x4a7b26[a168_0x50e9('0x49')]))[a168_0x50e9('0x14')](()=>{}),_0x4a7b26[a168_0x50e9('0x20')]&&_0x293d79[a168_0x50e9('0x2')]['guild'][a168_0x50e9('0x19')][a168_0x50e9('0xa')][a168_0x50e9('0xb')](_0x4a7b26['announcementsChannelId'])&&this[a168_0x50e9('0x4')](_0x293d79,_0x30972a,_0x293d79[a168_0x50e9('0x2')][a168_0x50e9('0x47')]['channels'][a168_0x50e9('0xa')][a168_0x50e9('0x54')](_0x4a7b26[a168_0x50e9('0x45')]))[a168_0x50e9('0x14')](()=>{}),_0x4a7b26[a168_0x50e9('0x12')]&&this[a168_0x50e9('0x21')](_0x293d79,_0x30972a)[a168_0x50e9('0x14')](()=>{});};}}; \ No newline at end of file diff --git a/listeners/messageReactionRemove.js b/listeners/messageReactionRemove.js index 9e694b04b..b0a4c67fc 100644 --- a/listeners/messageReactionRemove.js +++ b/listeners/messageReactionRemove.js @@ -1 +1 @@ -const a168_0x216c=['MANAGE_MESSAGES','emoji','remove','permissionsFor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../utils/emojis','@bastion/tesseract','reactionPinning','fetch','catch','animated','exports','Constants','channel','unpin','roles','default','../models/Role','has','Listener','Removed\x20via\x20Reaction\x20Roles','includes','partial','message','findById','value','apply','constructor','getDocument','guild','../models/ReactionRoleGroup','handleReactionRoles','_id','exec','LISTENER_MODE','handleReactionPinning','name','parseEmoji'];(function(_0x25cb26,_0x216cc7){const _0x12c8be=function(_0xe7845a){while(--_0xe7845a){_0x25cb26['push'](_0x25cb26['shift']());}},_0x5a7c37=function(){const _0x39138b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x55a7cb,_0x592461,_0x1722a8,_0xb2e19d){_0xb2e19d=_0xb2e19d||{};let _0x311e73=_0x592461+'='+_0x1722a8,_0x2d4dd1=0x0;for(let _0x3f37a3=0x0,_0x1186aa=_0x55a7cb['length'];_0x3f37a3<_0x1186aa;_0x3f37a3++){const _0x4df15d=_0x55a7cb[_0x3f37a3];_0x311e73+=';\x20'+_0x4df15d;const _0x50792b=_0x55a7cb[_0x4df15d];_0x55a7cb['push'](_0x50792b),_0x1186aa=_0x55a7cb['length'],_0x50792b!==!![]&&(_0x311e73+='='+_0x50792b);}_0xb2e19d['cookie']=_0x311e73;},'removeCookie':function(){return'dev';},'getCookie':function(_0x27a707,_0x4234fc){_0x27a707=_0x27a707||function(_0x40676c){return _0x40676c;};const _0x236bf=_0x27a707(new RegExp('(?:^|;\x20)'+_0x4234fc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x425cdb=function(_0x2a9afb,_0x4c43c2){_0x2a9afb(++_0x4c43c2);};return _0x425cdb(_0x12c8be,_0x216cc7),_0x236bf?decodeURIComponent(_0x236bf[0x1]):undefined;}},_0x18a5ba=function(){const _0x1a73ac=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1a73ac['test'](_0x39138b['removeCookie']['toString']());};_0x39138b['updateCookie']=_0x18a5ba;let _0x153de7='';const _0x334a40=_0x39138b['updateCookie']();if(!_0x334a40)_0x39138b['setCookie'](['*'],'counter',0x1);else _0x334a40?_0x153de7=_0x39138b['getCookie'](null,'counter'):_0x39138b['removeCookie']();};_0x5a7c37();}(a168_0x216c,0x102));const a168_0x12c8=function(_0x25cb26,_0x216cc7){_0x25cb26=_0x25cb26-0x0;let _0x12c8be=a168_0x216c[_0x25cb26];return _0x12c8be;};const a168_0x1722a8=function(){let _0x56ced3=!![];return function(_0x419d29,_0x1aac79){const _0x71a223=_0x56ced3?function(){if(_0x1aac79){const _0x2eb657=_0x1aac79[a168_0x12c8('0x22')](_0x419d29,arguments);return _0x1aac79=null,_0x2eb657;}}:function(){};return _0x56ced3=![],_0x71a223;};}(),a168_0x592461=a168_0x1722a8(this,function(){const _0x4a2708=function(){const _0x6a5683=_0x4a2708[a168_0x12c8('0x23')](a168_0x12c8('0xc'))()[a168_0x12c8('0x23')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x6a5683['test'](a168_0x592461);};return _0x4a2708();});a168_0x592461();'use strict';const tesseract_1=require(a168_0x12c8('0xe')),ReactionRoleGroup_1=require(a168_0x12c8('0x0')),Role_1=require(a168_0x12c8('0x19')),emojis=require(a168_0x12c8('0xd'));module[a168_0x12c8('0x13')]=class MessageReactionRemoveListener extends tesseract_1[a168_0x12c8('0x1b')]{constructor(){super('messageReactionRemove',{'mode':tesseract_1[a168_0x12c8('0x14')][a168_0x12c8('0x4')]['ON']}),this[a168_0x12c8('0x5')]=async(_0x558dd3,_0x594184)=>{if(!['📌','📍'][a168_0x12c8('0x1d')](_0x558dd3[a168_0x12c8('0x9')][a168_0x12c8('0x6')]))return;if(!_0x558dd3[a168_0x12c8('0x1f')][a168_0x12c8('0x15')][a168_0x12c8('0xb')](_0x594184)[a168_0x12c8('0x1a')](a168_0x12c8('0x8')))return;await _0x558dd3[a168_0x12c8('0x1f')][a168_0x12c8('0x16')]();},this[a168_0x12c8('0x1')]=async(_0xc2b127,_0x3f2692)=>{const _0x371f94=await ReactionRoleGroup_1['default'][a168_0x12c8('0x20')](_0xc2b127[a168_0x12c8('0x1f')]['id']);if(!_0x371f94)return;const _0x433a12=_0xc2b127[a168_0x12c8('0x9')]['id']?'<'+(_0xc2b127[a168_0x12c8('0x9')][a168_0x12c8('0x12')]?'a':'')+':'+_0xc2b127['emoji'][a168_0x12c8('0x6')]+':'+_0xc2b127[a168_0x12c8('0x9')]['id']+'>':_0xc2b127[a168_0x12c8('0x9')][a168_0x12c8('0x6')],_0x3daa94=emojis[a168_0x12c8('0x7')](_0x433a12);if(_0x3daa94){const _0x3ee49e=await Role_1[a168_0x12c8('0x18')]['findOne']({'$or':_0x371f94[a168_0x12c8('0x17')]['map'](_0x146f5a=>({'_id':_0x146f5a})),'guild':_0xc2b127[a168_0x12c8('0x1f')][a168_0x12c8('0x25')]['id'],'emoji':_0x3daa94[a168_0x12c8('0x21')]});if(!_0x3ee49e)return;await _0x3f2692['roles'][a168_0x12c8('0xa')](_0x3ee49e[a168_0x12c8('0x2')],a168_0x12c8('0x1c'));}},this[a168_0x12c8('0x3')]=async(_0x510249,_0x4bb469)=>{_0x510249[a168_0x12c8('0x1e')]&&(_0x510249=await _0x510249['fetch']());_0x510249['message'][a168_0x12c8('0x1e')]&&(_0x510249[a168_0x12c8('0x1f')]=await _0x510249[a168_0x12c8('0x1f')][a168_0x12c8('0x10')]());if(!_0x510249[a168_0x12c8('0x1f')][a168_0x12c8('0x25')])return;const _0x5ecd8a=_0x510249[a168_0x12c8('0x1f')][a168_0x12c8('0x25')]['member'](_0x4bb469);this['handleReactionRoles'](_0x510249,_0x5ecd8a)['catch'](()=>{});const _0x1c4a52=await _0x510249['message']['guild'][a168_0x12c8('0x24')]();_0x1c4a52[a168_0x12c8('0xf')]&&this['handleReactionPinning'](_0x510249,_0x5ecd8a)[a168_0x12c8('0x11')](()=>{});};}}; \ No newline at end of file +const a169_0x1404=['@bastion/tesseract','remove','handleReactionPinning','findOne','has','return\x20/\x22\x20+\x20this\x20+\x20\x22/','roles','value','catch','findById','unpin','includes','map','messageReactionRemove','partial','Constants','reactionPinning','exec','channel','exports','emoji','guild','constructor','getDocument','animated','../utils/emojis','name','../models/ReactionRoleGroup','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','message','parseEmoji','default','member','MANAGE_MESSAGES','Removed\x20via\x20Reaction\x20Roles','apply','fetch','LISTENER_MODE'];(function(_0x5df6e6,_0x1404a5){const _0x2ba069=function(_0x5d0718){while(--_0x5d0718){_0x5df6e6['push'](_0x5df6e6['shift']());}},_0x17d6ac=function(){const _0x2f4521={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5d7163,_0x4d8a87,_0x56426a,_0x5806f7){_0x5806f7=_0x5806f7||{};let _0x299002=_0x4d8a87+'='+_0x56426a,_0x133699=0x0;for(let _0x14f240=0x0,_0x5d8575=_0x5d7163['length'];_0x14f240<_0x5d8575;_0x14f240++){const _0x2592a3=_0x5d7163[_0x14f240];_0x299002+=';\x20'+_0x2592a3;const _0x5bc5a2=_0x5d7163[_0x2592a3];_0x5d7163['push'](_0x5bc5a2),_0x5d8575=_0x5d7163['length'],_0x5bc5a2!==!![]&&(_0x299002+='='+_0x5bc5a2);}_0x5806f7['cookie']=_0x299002;},'removeCookie':function(){return'dev';},'getCookie':function(_0x27db8d,_0x146010){_0x27db8d=_0x27db8d||function(_0x554f30){return _0x554f30;};const _0x553353=_0x27db8d(new RegExp('(?:^|;\x20)'+_0x146010['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x26612d=function(_0x518b2a,_0x40b47b){_0x518b2a(++_0x40b47b);};return _0x26612d(_0x2ba069,_0x1404a5),_0x553353?decodeURIComponent(_0x553353[0x1]):undefined;}},_0x58c1ed=function(){const _0x424dfc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x424dfc['test'](_0x2f4521['removeCookie']['toString']());};_0x2f4521['updateCookie']=_0x58c1ed;let _0x2b6e0f='';const _0x545358=_0x2f4521['updateCookie']();if(!_0x545358)_0x2f4521['setCookie'](['*'],'counter',0x1);else _0x545358?_0x2b6e0f=_0x2f4521['getCookie'](null,'counter'):_0x2f4521['removeCookie']();};_0x17d6ac();}(a169_0x1404,0x1ef));const a169_0x2ba0=function(_0x5df6e6,_0x1404a5){_0x5df6e6=_0x5df6e6-0x0;let _0x2ba069=a169_0x1404[_0x5df6e6];return _0x2ba069;};const a169_0x56426a=function(){let _0x138d73=!![];return function(_0x5eb353,_0x443817){const _0x1d68a1=_0x138d73?function(){if(_0x443817){const _0x26bf09=_0x443817[a169_0x2ba0('0x22')](_0x5eb353,arguments);return _0x443817=null,_0x26bf09;}}:function(){};return _0x138d73=![],_0x1d68a1;};}(),a169_0x4d8a87=a169_0x56426a(this,function(){const _0x399e51=function(){const _0x16deb0=_0x399e51[a169_0x2ba0('0x15')](a169_0x2ba0('0x4'))()['constructor'](a169_0x2ba0('0x1b'));return!_0x16deb0['test'](a169_0x4d8a87);};return _0x399e51();});a169_0x4d8a87();'use strict';const tesseract_1=require(a169_0x2ba0('0x25')),ReactionRoleGroup_1=require(a169_0x2ba0('0x1a')),Role_1=require('../models/Role'),emojis=require(a169_0x2ba0('0x18'));module[a169_0x2ba0('0x12')]=class MessageReactionRemoveListener extends tesseract_1['Listener']{constructor(){super(a169_0x2ba0('0xc'),{'mode':tesseract_1[a169_0x2ba0('0xe')][a169_0x2ba0('0x24')]['ON']}),this['handleReactionPinning']=async(_0xddc1be,_0x23773f)=>{if(!['📌','📍'][a169_0x2ba0('0xa')](_0xddc1be['emoji'][a169_0x2ba0('0x19')]))return;if(!_0xddc1be[a169_0x2ba0('0x1c')][a169_0x2ba0('0x11')]['permissionsFor'](_0x23773f)[a169_0x2ba0('0x3')](a169_0x2ba0('0x20')))return;await _0xddc1be['message'][a169_0x2ba0('0x9')]();},this['handleReactionRoles']=async(_0x5f37f2,_0x3b73d7)=>{const _0x1c8e9f=await ReactionRoleGroup_1[a169_0x2ba0('0x1e')][a169_0x2ba0('0x8')](_0x5f37f2['message']['id']);if(!_0x1c8e9f)return;const _0x45fe82=_0x5f37f2[a169_0x2ba0('0x13')]['id']?'<'+(_0x5f37f2['emoji'][a169_0x2ba0('0x17')]?'a':'')+':'+_0x5f37f2['emoji'][a169_0x2ba0('0x19')]+':'+_0x5f37f2[a169_0x2ba0('0x13')]['id']+'>':_0x5f37f2[a169_0x2ba0('0x13')][a169_0x2ba0('0x19')],_0x423dea=emojis[a169_0x2ba0('0x1d')](_0x45fe82);if(_0x423dea){const _0x5d5762=await Role_1[a169_0x2ba0('0x1e')][a169_0x2ba0('0x2')]({'$or':_0x1c8e9f[a169_0x2ba0('0x5')][a169_0x2ba0('0xb')](_0x2a1edd=>({'_id':_0x2a1edd})),'guild':_0x5f37f2[a169_0x2ba0('0x1c')][a169_0x2ba0('0x14')]['id'],'emoji':_0x423dea[a169_0x2ba0('0x6')]});if(!_0x5d5762)return;await _0x3b73d7['roles'][a169_0x2ba0('0x0')](_0x5d5762['_id'],a169_0x2ba0('0x21'));}},this[a169_0x2ba0('0x10')]=async(_0x125c0a,_0xee15e8)=>{_0x125c0a[a169_0x2ba0('0xd')]&&(_0x125c0a=await _0x125c0a[a169_0x2ba0('0x23')]());_0x125c0a[a169_0x2ba0('0x1c')]['partial']&&(_0x125c0a[a169_0x2ba0('0x1c')]=await _0x125c0a[a169_0x2ba0('0x1c')][a169_0x2ba0('0x23')]());if(!_0x125c0a[a169_0x2ba0('0x1c')][a169_0x2ba0('0x14')])return;const _0x155cae=_0x125c0a[a169_0x2ba0('0x1c')][a169_0x2ba0('0x14')][a169_0x2ba0('0x1f')](_0xee15e8);this['handleReactionRoles'](_0x125c0a,_0x155cae)[a169_0x2ba0('0x7')](()=>{});const _0x33fa55=await _0x125c0a[a169_0x2ba0('0x1c')][a169_0x2ba0('0x14')][a169_0x2ba0('0x16')]();_0x33fa55[a169_0x2ba0('0xf')]&&this[a169_0x2ba0('0x1')](_0x125c0a,_0x155cae)['catch'](()=>{});};}}; \ No newline at end of file diff --git a/listeners/messageUpdate.js b/listeners/messageUpdate.js index 397600c07..9ef65e7c3 100644 --- a/listeners/messageUpdate.js +++ b/listeners/messageUpdate.js @@ -1 +1 @@ -const a169_0x29b5=['Constants','guild','DEFAULT','author','Message\x20ID','apply','createLog','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','content','Channel\x20ID','partial','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','name','toUTCString','constructor','tag','createdAt','fetch','Sent','discord.js','DMChannel','exec','Channel','LISTENER_MODE','test','messageUpdate','Author','channel'];(function(_0x40b4e1,_0x29b580){const _0x4dd65c=function(_0x50804d){while(--_0x50804d){_0x40b4e1['push'](_0x40b4e1['shift']());}},_0x3e555a=function(){const _0x3acdf0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x31316e,_0x1c2de6,_0x73052e,_0x125112){_0x125112=_0x125112||{};let _0x41c984=_0x1c2de6+'='+_0x73052e,_0x200b87=0x0;for(let _0x320357=0x0,_0x4e4c47=_0x31316e['length'];_0x320357<_0x4e4c47;_0x320357++){const _0x2a0d91=_0x31316e[_0x320357];_0x41c984+=';\x20'+_0x2a0d91;const _0xcb3c12=_0x31316e[_0x2a0d91];_0x31316e['push'](_0xcb3c12),_0x4e4c47=_0x31316e['length'],_0xcb3c12!==!![]&&(_0x41c984+='='+_0xcb3c12);}_0x125112['cookie']=_0x41c984;},'removeCookie':function(){return'dev';},'getCookie':function(_0x557cae,_0x286329){_0x557cae=_0x557cae||function(_0x5a2dc7){return _0x5a2dc7;};const _0x5521da=_0x557cae(new RegExp('(?:^|;\x20)'+_0x286329['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5826a6=function(_0x2f08e4,_0x398bf0){_0x2f08e4(++_0x398bf0);};return _0x5826a6(_0x4dd65c,_0x29b580),_0x5521da?decodeURIComponent(_0x5521da[0x1]):undefined;}},_0x1c0ca5=function(){const _0xdb7a8c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xdb7a8c['test'](_0x3acdf0['removeCookie']['toString']());};_0x3acdf0['updateCookie']=_0x1c0ca5;let _0x5b56e5='';const _0x9af4e1=_0x3acdf0['updateCookie']();if(!_0x9af4e1)_0x3acdf0['setCookie'](['*'],'counter',0x1);else _0x9af4e1?_0x5b56e5=_0x3acdf0['getCookie'](null,'counter'):_0x3acdf0['removeCookie']();};_0x3e555a();}(a169_0x29b5,0x174));const a169_0x4dd6=function(_0x40b4e1,_0x29b580){_0x40b4e1=_0x40b4e1-0x0;let _0x4dd65c=a169_0x29b5[_0x40b4e1];return _0x4dd65c;};const a169_0x73052e=function(){let _0x1ad0ea=!![];return function(_0x1d8afd,_0x155ad8){const _0x22769d=_0x1ad0ea?function(){if(_0x155ad8){const _0x4bc1b1=_0x155ad8[a169_0x4dd6('0xa')](_0x1d8afd,arguments);return _0x155ad8=null,_0x4bc1b1;}}:function(){};return _0x1ad0ea=![],_0x22769d;};}(),a169_0x1c2de6=a169_0x73052e(this,function(){const _0x5d43bc=function(){const _0x450732=_0x5d43bc[a169_0x4dd6('0x14')](a169_0x4dd6('0x11'))()['constructor'](a169_0x4dd6('0xc'));return!_0x450732[a169_0x4dd6('0x1')](a169_0x1c2de6);};return _0x5d43bc();});a169_0x1c2de6();'use strict';const tesseract_1=require(a169_0x4dd6('0x10')),discord_js_1=require(a169_0x4dd6('0x19'));module['exports']=class MessageUpdateListener extends tesseract_1['Listener']{constructor(){super('messageUpdate',{'mode':tesseract_1[a169_0x4dd6('0x5')][a169_0x4dd6('0x0')]['ON']}),this[a169_0x4dd6('0x1b')]=async(_0x1bc324,_0x488427)=>{_0x1bc324[a169_0x4dd6('0xf')]&&(_0x1bc324=await _0x1bc324[a169_0x4dd6('0x17')]());_0x488427[a169_0x4dd6('0xf')]&&(_0x488427=await _0x488427[a169_0x4dd6('0x17')]());if(_0x1bc324['channel']instanceof discord_js_1[a169_0x4dd6('0x1a')]||_0x488427[a169_0x4dd6('0x4')]instanceof discord_js_1['DMChannel'])return;if(_0x1bc324[a169_0x4dd6('0xd')]===_0x488427['content'])return;const _0x3ecbd8=_0x1bc324[a169_0x4dd6('0x6')];if(_0x1bc324['type']!==a169_0x4dd6('0x7'))return;_0x3ecbd8[a169_0x4dd6('0xb')]({'event':a169_0x4dd6('0x2'),'fields':[{'name':a169_0x4dd6('0x9'),'value':'['+_0x1bc324['id']+']('+_0x1bc324['url']+')','inline':!![]},{'name':a169_0x4dd6('0x1c'),'value':_0x1bc324[a169_0x4dd6('0x4')][a169_0x4dd6('0x12')],'inline':!![]},{'name':a169_0x4dd6('0xe'),'value':_0x1bc324[a169_0x4dd6('0x4')]['id'],'inline':!![]},{'name':a169_0x4dd6('0x3'),'value':_0x1bc324[a169_0x4dd6('0x8')][a169_0x4dd6('0x15')],'inline':!![]},{'name':'Author\x20ID','value':_0x1bc324[a169_0x4dd6('0x8')]['id'],'inline':!![]},{'name':a169_0x4dd6('0x18'),'value':_0x1bc324[a169_0x4dd6('0x16')][a169_0x4dd6('0x13')](),'inline':!![]}]});};}}; \ No newline at end of file +const a170_0x5069=['createdAt','Channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','Sent','guild','@bastion/tesseract','test','constructor','type','LISTENER_MODE','content','author','fetch','channel','discord.js','Constants','url','name','Message\x20ID','DMChannel','Listener','partial','DEFAULT','messageUpdate'];(function(_0x5067c0,_0x5069c1){const _0x348a5b=function(_0x9c1f4e){while(--_0x9c1f4e){_0x5067c0['push'](_0x5067c0['shift']());}},_0x392437=function(){const _0xc6bfb5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x346f1c,_0x5123a1,_0x3fb792,_0x514908){_0x514908=_0x514908||{};let _0x4ef7a0=_0x5123a1+'='+_0x3fb792,_0x4423cb=0x0;for(let _0x5b169d=0x0,_0x5c56ed=_0x346f1c['length'];_0x5b169d<_0x5c56ed;_0x5b169d++){const _0x93a2ae=_0x346f1c[_0x5b169d];_0x4ef7a0+=';\x20'+_0x93a2ae;const _0xe38fea=_0x346f1c[_0x93a2ae];_0x346f1c['push'](_0xe38fea),_0x5c56ed=_0x346f1c['length'],_0xe38fea!==!![]&&(_0x4ef7a0+='='+_0xe38fea);}_0x514908['cookie']=_0x4ef7a0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x247c76,_0x455c9a){_0x247c76=_0x247c76||function(_0x54d5ed){return _0x54d5ed;};const _0x379d89=_0x247c76(new RegExp('(?:^|;\x20)'+_0x455c9a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x25a697=function(_0xb4af74,_0x3a3606){_0xb4af74(++_0x3a3606);};return _0x25a697(_0x348a5b,_0x5069c1),_0x379d89?decodeURIComponent(_0x379d89[0x1]):undefined;}},_0x3ee087=function(){const _0x4baa34=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4baa34['test'](_0xc6bfb5['removeCookie']['toString']());};_0xc6bfb5['updateCookie']=_0x3ee087;let _0xf7faa9='';const _0x34532f=_0xc6bfb5['updateCookie']();if(!_0x34532f)_0xc6bfb5['setCookie'](['*'],'counter',0x1);else _0x34532f?_0xf7faa9=_0xc6bfb5['getCookie'](null,'counter'):_0xc6bfb5['removeCookie']();};_0x392437();}(a170_0x5069,0x1b6));const a170_0x348a=function(_0x5067c0,_0x5069c1){_0x5067c0=_0x5067c0-0x0;let _0x348a5b=a170_0x5069[_0x5067c0];return _0x348a5b;};const a170_0x3fb792=function(){let _0x198114=!![];return function(_0x261809,_0x8d1f5d){const _0x5ea5c5=_0x198114?function(){if(_0x8d1f5d){const _0x1106bd=_0x8d1f5d['apply'](_0x261809,arguments);return _0x8d1f5d=null,_0x1106bd;}}:function(){};return _0x198114=![],_0x5ea5c5;};}(),a170_0x5123a1=a170_0x3fb792(this,function(){const _0x2c3f6c=function(){const _0x2eb3f8=_0x2c3f6c[a170_0x348a('0x14')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a170_0x348a('0x14')](a170_0x348a('0xe'));return!_0x2eb3f8[a170_0x348a('0x13')](a170_0x5123a1);};return _0x2c3f6c();});a170_0x5123a1();'use strict';const tesseract_1=require(a170_0x348a('0x12')),discord_js_1=require(a170_0x348a('0x2'));module[a170_0x348a('0xf')]=class MessageUpdateListener extends tesseract_1[a170_0x348a('0x8')]{constructor(){super('messageUpdate',{'mode':tesseract_1[a170_0x348a('0x3')][a170_0x348a('0x16')]['ON']}),this['exec']=async(_0x5a9a43,_0x3c9f78)=>{_0x5a9a43[a170_0x348a('0x9')]&&(_0x5a9a43=await _0x5a9a43['fetch']());_0x3c9f78[a170_0x348a('0x9')]&&(_0x3c9f78=await _0x3c9f78[a170_0x348a('0x0')]());if(_0x5a9a43['channel']instanceof discord_js_1['DMChannel']||_0x3c9f78['channel']instanceof discord_js_1[a170_0x348a('0x7')])return;if(_0x5a9a43[a170_0x348a('0x17')]===_0x3c9f78['content'])return;const _0x12723c=_0x5a9a43[a170_0x348a('0x11')];if(_0x5a9a43[a170_0x348a('0x15')]!==a170_0x348a('0xa'))return;_0x12723c['createLog']({'event':a170_0x348a('0xb'),'fields':[{'name':a170_0x348a('0x6'),'value':'['+_0x5a9a43['id']+']('+_0x5a9a43[a170_0x348a('0x4')]+')','inline':!![]},{'name':a170_0x348a('0xd'),'value':_0x5a9a43[a170_0x348a('0x1')][a170_0x348a('0x5')],'inline':!![]},{'name':'Channel\x20ID','value':_0x5a9a43[a170_0x348a('0x1')]['id'],'inline':!![]},{'name':'Author','value':_0x5a9a43['author']['tag'],'inline':!![]},{'name':'Author\x20ID','value':_0x5a9a43[a170_0x348a('0x18')]['id'],'inline':!![]},{'name':a170_0x348a('0x10'),'value':_0x5a9a43[a170_0x348a('0xc')]['toUTCString'](),'inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/presenceUpdate.js b/listeners/presenceUpdate.js index b3bf70da9..b0b27420b 100644 --- a/listeners/presenceUpdate.js +++ b/listeners/presenceUpdate.js @@ -1 +1 @@ -const a170_0x448c=['../models/Guild','fetch','activities','has','default','type','return\x20/\x22\x20+\x20this\x20+\x20\x22/','cache','apply','add','size','member','catch','guild','roles','STREAMING','constructor','partial','streamerRoleId','presenceUpdate','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','Listener','remove','LISTENER_MODE','exec'];(function(_0x4510be,_0x448c47){const _0x4bf5e4=function(_0x5bb91e){while(--_0x5bb91e){_0x4510be['push'](_0x4510be['shift']());}},_0x39ec0f=function(){const _0x4e8ec8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x44b566,_0x541915,_0x28b930,_0x5f3114){_0x5f3114=_0x5f3114||{};let _0xd27f43=_0x541915+'='+_0x28b930,_0x223daf=0x0;for(let _0x10d927=0x0,_0x4b81c2=_0x44b566['length'];_0x10d927<_0x4b81c2;_0x10d927++){const _0x64aceb=_0x44b566[_0x10d927];_0xd27f43+=';\x20'+_0x64aceb;const _0x59c7ca=_0x44b566[_0x64aceb];_0x44b566['push'](_0x59c7ca),_0x4b81c2=_0x44b566['length'],_0x59c7ca!==!![]&&(_0xd27f43+='='+_0x59c7ca);}_0x5f3114['cookie']=_0xd27f43;},'removeCookie':function(){return'dev';},'getCookie':function(_0x523f50,_0xab75c0){_0x523f50=_0x523f50||function(_0x31795e){return _0x31795e;};const _0x126b3a=_0x523f50(new RegExp('(?:^|;\x20)'+_0xab75c0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xadb721=function(_0x47b1f5,_0x2cdbdf){_0x47b1f5(++_0x2cdbdf);};return _0xadb721(_0x4bf5e4,_0x448c47),_0x126b3a?decodeURIComponent(_0x126b3a[0x1]):undefined;}},_0x2f9f3e=function(){const _0x7b7721=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x7b7721['test'](_0x4e8ec8['removeCookie']['toString']());};_0x4e8ec8['updateCookie']=_0x2f9f3e;let _0x193427='';const _0x3dd8d0=_0x4e8ec8['updateCookie']();if(!_0x3dd8d0)_0x4e8ec8['setCookie'](['*'],'counter',0x1);else _0x3dd8d0?_0x193427=_0x4e8ec8['getCookie'](null,'counter'):_0x4e8ec8['removeCookie']();};_0x39ec0f();}(a170_0x448c,0x186));const a170_0x4bf5=function(_0x4510be,_0x448c47){_0x4510be=_0x4510be-0x0;let _0x4bf5e4=a170_0x448c[_0x4510be];return _0x4bf5e4;};const a170_0x28b930=function(){let _0x247f05=!![];return function(_0x10e121,_0x23635b){const _0x2eada6=_0x247f05?function(){if(_0x23635b){const _0x378d8d=_0x23635b[a170_0x4bf5('0x8')](_0x10e121,arguments);return _0x23635b=null,_0x378d8d;}}:function(){};return _0x247f05=![],_0x2eada6;};}(),a170_0x541915=a170_0x28b930(this,function(){const _0x411729=function(){const _0x54ce8e=_0x411729[a170_0x4bf5('0x10')](a170_0x4bf5('0x6'))()['constructor'](a170_0x4bf5('0x14'));return!_0x54ce8e['test'](a170_0x541915);};return _0x411729();});a170_0x541915();'use strict';const tesseract_1=require('@bastion/tesseract'),Guild_1=require(a170_0x4bf5('0x0'));module[a170_0x4bf5('0x15')]=class PresenceListener extends tesseract_1[a170_0x4bf5('0x16')]{constructor(){super(a170_0x4bf5('0x13'),{'mode':tesseract_1['Constants'][a170_0x4bf5('0x18')]['ON']}),this[a170_0x4bf5('0x19')]=async(_0x55945c,_0x4b9484)=>{if(!_0x4b9484)return;if(!_0x4b9484[a170_0x4bf5('0xd')])return;let _0xc1f842;if((!_0x55945c||_0x55945c['activities']['every'](_0x4d952a=>_0x4d952a[a170_0x4bf5('0x5')]!=='STREAMING'))&&_0x4b9484[a170_0x4bf5('0x2')]['some'](_0x4514cb=>_0x4514cb[a170_0x4bf5('0x5')]==='STREAMING'))_0xc1f842=!![];else{if(_0x55945c&&_0x55945c['activities']['some'](_0x3492ec=>_0x3492ec[a170_0x4bf5('0x5')]===a170_0x4bf5('0xf'))&&_0x4b9484[a170_0x4bf5('0x2')]['every'](_0x4371d7=>_0x4371d7[a170_0x4bf5('0x5')]!==a170_0x4bf5('0xf')))_0xc1f842=![];else return;}_0x4b9484[a170_0x4bf5('0xb')][a170_0x4bf5('0x11')]&&await _0x4b9484[a170_0x4bf5('0xb')][a170_0x4bf5('0x1')]();if(_0x4b9484[a170_0x4bf5('0xb')]['roles']['cache'][a170_0x4bf5('0xa')]<=0x2)return;const _0xa32630=await Guild_1[a170_0x4bf5('0x4')]['findById'](_0x4b9484['guild']['id']);if(!_0xa32630[a170_0x4bf5('0x12')])return;if(!_0x4b9484[a170_0x4bf5('0xd')][a170_0x4bf5('0xe')][a170_0x4bf5('0x7')][a170_0x4bf5('0x3')](_0xa32630[a170_0x4bf5('0x12')]))return;_0xc1f842?_0x4b9484[a170_0x4bf5('0xb')][a170_0x4bf5('0xe')][a170_0x4bf5('0x9')](_0xa32630['streamerRoleId'])[a170_0x4bf5('0xc')](()=>{}):_0x4b9484[a170_0x4bf5('0xb')][a170_0x4bf5('0xe')][a170_0x4bf5('0x17')](_0xa32630[a170_0x4bf5('0x12')])[a170_0x4bf5('0xc')](()=>{});};}}; \ No newline at end of file +const a171_0x5e83=['member','guild','exec','has','LISTENER_MODE','catch','remove','test','add','every','streamerRoleId','cache','some','activities','exports','roles','size','apply','STREAMING','type','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','findById','constructor','fetch','default'];(function(_0x1dc6fe,_0x5e83af){const _0x3a2c9a=function(_0x3bfbed){while(--_0x3bfbed){_0x1dc6fe['push'](_0x1dc6fe['shift']());}},_0x437fd3=function(){const _0x449fa={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4129b2,_0x1b8e88,_0x3818a9,_0x31129c){_0x31129c=_0x31129c||{};let _0x3c37c4=_0x1b8e88+'='+_0x3818a9,_0x7247cd=0x0;for(let _0x56815b=0x0,_0x2b8ef5=_0x4129b2['length'];_0x56815b<_0x2b8ef5;_0x56815b++){const _0x17c1e3=_0x4129b2[_0x56815b];_0x3c37c4+=';\x20'+_0x17c1e3;const _0xe76a82=_0x4129b2[_0x17c1e3];_0x4129b2['push'](_0xe76a82),_0x2b8ef5=_0x4129b2['length'],_0xe76a82!==!![]&&(_0x3c37c4+='='+_0xe76a82);}_0x31129c['cookie']=_0x3c37c4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4bd2c4,_0x4c1008){_0x4bd2c4=_0x4bd2c4||function(_0x597d99){return _0x597d99;};const _0x45eb77=_0x4bd2c4(new RegExp('(?:^|;\x20)'+_0x4c1008['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x490b22=function(_0x486399,_0x3fa669){_0x486399(++_0x3fa669);};return _0x490b22(_0x3a2c9a,_0x5e83af),_0x45eb77?decodeURIComponent(_0x45eb77[0x1]):undefined;}},_0x6cc8d=function(){const _0x3398fa=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3398fa['test'](_0x449fa['removeCookie']['toString']());};_0x449fa['updateCookie']=_0x6cc8d;let _0x21e430='';const _0xf4b461=_0x449fa['updateCookie']();if(!_0xf4b461)_0x449fa['setCookie'](['*'],'counter',0x1);else _0xf4b461?_0x21e430=_0x449fa['getCookie'](null,'counter'):_0x449fa['removeCookie']();};_0x437fd3();}(a171_0x5e83,0xe1));const a171_0x3a2c=function(_0x1dc6fe,_0x5e83af){_0x1dc6fe=_0x1dc6fe-0x0;let _0x3a2c9a=a171_0x5e83[_0x1dc6fe];return _0x3a2c9a;};const a171_0x3818a9=function(){let _0x2c07c4=!![];return function(_0x1e316f,_0x87ac36){const _0x1eafc2=_0x2c07c4?function(){if(_0x87ac36){const _0x588dd8=_0x87ac36[a171_0x3a2c('0x11')](_0x1e316f,arguments);return _0x87ac36=null,_0x588dd8;}}:function(){};return _0x2c07c4=![],_0x1eafc2;};}(),a171_0x1b8e88=a171_0x3818a9(this,function(){const _0x1b7ad0=function(){const _0x156162=_0x1b7ad0[a171_0x3a2c('0x16')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a171_0x3a2c('0x16')](a171_0x3a2c('0x14'));return!_0x156162[a171_0x3a2c('0x7')](a171_0x1b8e88);};return _0x1b7ad0();});a171_0x1b8e88();'use strict';const tesseract_1=require('@bastion/tesseract'),Guild_1=require('../models/Guild');module[a171_0x3a2c('0xe')]=class PresenceListener extends tesseract_1['Listener']{constructor(){super('presenceUpdate',{'mode':tesseract_1['Constants'][a171_0x3a2c('0x4')]['ON']}),this[a171_0x3a2c('0x2')]=async(_0x18528f,_0x4adf5c)=>{if(!_0x4adf5c)return;if(!_0x4adf5c[a171_0x3a2c('0x1')])return;let _0x3092ab;if((!_0x18528f||_0x18528f[a171_0x3a2c('0xd')][a171_0x3a2c('0x9')](_0x1e37b3=>_0x1e37b3[a171_0x3a2c('0x13')]!==a171_0x3a2c('0x12')))&&_0x4adf5c[a171_0x3a2c('0xd')][a171_0x3a2c('0xc')](_0x12fe58=>_0x12fe58[a171_0x3a2c('0x13')]===a171_0x3a2c('0x12')))_0x3092ab=!![];else{if(_0x18528f&&_0x18528f[a171_0x3a2c('0xd')]['some'](_0x2b79df=>_0x2b79df[a171_0x3a2c('0x13')]==='STREAMING')&&_0x4adf5c['activities'][a171_0x3a2c('0x9')](_0x186f7d=>_0x186f7d[a171_0x3a2c('0x13')]!=='STREAMING'))_0x3092ab=![];else return;}_0x4adf5c['member']['partial']&&await _0x4adf5c[a171_0x3a2c('0x0')][a171_0x3a2c('0x17')]();if(_0x4adf5c[a171_0x3a2c('0x0')][a171_0x3a2c('0xf')]['cache'][a171_0x3a2c('0x10')]<=0x2)return;const _0x3f594e=await Guild_1[a171_0x3a2c('0x18')][a171_0x3a2c('0x15')](_0x4adf5c[a171_0x3a2c('0x1')]['id']);if(!_0x3f594e[a171_0x3a2c('0xa')])return;if(!_0x4adf5c[a171_0x3a2c('0x1')][a171_0x3a2c('0xf')][a171_0x3a2c('0xb')][a171_0x3a2c('0x3')](_0x3f594e[a171_0x3a2c('0xa')]))return;_0x3092ab?_0x4adf5c[a171_0x3a2c('0x0')][a171_0x3a2c('0xf')][a171_0x3a2c('0x8')](_0x3f594e[a171_0x3a2c('0xa')])[a171_0x3a2c('0x5')](()=>{}):_0x4adf5c[a171_0x3a2c('0x0')][a171_0x3a2c('0xf')][a171_0x3a2c('0x6')](_0x3f594e['streamerRoleId'])['catch'](()=>{});};}}; \ No newline at end of file diff --git a/listeners/ready.js b/listeners/ready.js index 056401876..7ee835a8f 100644 --- a/listeners/ready.js +++ b/listeners/ready.js @@ -1 +1 @@ -const a171_0x56e0=['filter','find','includes','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','_id','insertMany','ready','client','cache','exec','@bastion/tesseract','length','findByIdAndUpdate','guilds','../models/Config','return\x20/\x22\x20+\x20this\x20+\x20\x22/','LISTENER_MODE','default','map','user'];(function(_0x2604d9,_0x56e0e8){const _0x1a3bb1=function(_0x2d943a){while(--_0x2d943a){_0x2604d9['push'](_0x2604d9['shift']());}},_0x142214=function(){const _0x554b51={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x18c914,_0x491b2a,_0x39caac,_0x3e2d54){_0x3e2d54=_0x3e2d54||{};let _0x4cd0d4=_0x491b2a+'='+_0x39caac,_0x33707d=0x0;for(let _0x80ac8e=0x0,_0x1a79d7=_0x18c914['length'];_0x80ac8e<_0x1a79d7;_0x80ac8e++){const _0x3b911d=_0x18c914[_0x80ac8e];_0x4cd0d4+=';\x20'+_0x3b911d;const _0x49f030=_0x18c914[_0x3b911d];_0x18c914['push'](_0x49f030),_0x1a79d7=_0x18c914['length'],_0x49f030!==!![]&&(_0x4cd0d4+='='+_0x49f030);}_0x3e2d54['cookie']=_0x4cd0d4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x26d2fd,_0x21dab1){_0x26d2fd=_0x26d2fd||function(_0x5bd64f){return _0x5bd64f;};const _0x47c8d3=_0x26d2fd(new RegExp('(?:^|;\x20)'+_0x21dab1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x247658=function(_0x356073,_0x4fa9ba){_0x356073(++_0x4fa9ba);};return _0x247658(_0x1a3bb1,_0x56e0e8),_0x47c8d3?decodeURIComponent(_0x47c8d3[0x1]):undefined;}},_0x31ec13=function(){const _0x2abc86=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2abc86['test'](_0x554b51['removeCookie']['toString']());};_0x554b51['updateCookie']=_0x31ec13;let _0x1b8f78='';const _0x382b77=_0x554b51['updateCookie']();if(!_0x382b77)_0x554b51['setCookie'](['*'],'counter',0x1);else _0x382b77?_0x1b8f78=_0x554b51['getCookie'](null,'counter'):_0x554b51['removeCookie']();};_0x142214();}(a171_0x56e0,0x103));const a171_0x1a3b=function(_0x2604d9,_0x56e0e8){_0x2604d9=_0x2604d9-0x0;let _0x1a3bb1=a171_0x56e0[_0x2604d9];return _0x1a3bb1;};const a171_0x39caac=function(){let _0x4825a3=!![];return function(_0x3497d2,_0x24f355){const _0x4ea1ce=_0x4825a3?function(){if(_0x24f355){const _0x447f6b=_0x24f355['apply'](_0x3497d2,arguments);return _0x24f355=null,_0x447f6b;}}:function(){};return _0x4825a3=![],_0x4ea1ce;};}(),a171_0x491b2a=a171_0x39caac(this,function(){const _0x705f8f=function(){const _0x554193=_0x705f8f[a171_0x1a3b('0xa')](a171_0x1a3b('0x0'))()[a171_0x1a3b('0xa')](a171_0x1a3b('0x9'));return!_0x554193['test'](a171_0x491b2a);};return _0x705f8f();});a171_0x491b2a();'use strict';const tesseract_1=require(a171_0x1a3b('0x11')),Config_1=require(a171_0x1a3b('0x15')),Guild_1=require('../models/Guild');module[a171_0x1a3b('0x8')]=class ReadyListener extends tesseract_1['Listener']{constructor(){super(a171_0x1a3b('0xd'),{'mode':tesseract_1['Constants'][a171_0x1a3b('0x1')]['ON']}),this[a171_0x1a3b('0x10')]=async()=>{await Config_1[a171_0x1a3b('0x2')][a171_0x1a3b('0x13')](this[a171_0x1a3b('0xe')][a171_0x1a3b('0x4')]['id'],{'_id':this[a171_0x1a3b('0xe')][a171_0x1a3b('0x4')]['id']},{'upsert':!![]});const _0xab13cd=await Guild_1[a171_0x1a3b('0x2')][a171_0x1a3b('0x6')]({},'id'),_0x5a7af7=_0xab13cd[a171_0x1a3b('0x3')](_0xc9f04d=>_0xc9f04d[a171_0x1a3b('0xb')]),_0x48d39c=this[a171_0x1a3b('0xe')][a171_0x1a3b('0x14')][a171_0x1a3b('0xf')]['map'](_0x47aaa5=>({'_id':_0x47aaa5['id']}))[a171_0x1a3b('0x5')](_0x434dea=>!_0x5a7af7[a171_0x1a3b('0x7')](_0x434dea[a171_0x1a3b('0xb')]));_0x48d39c[a171_0x1a3b('0x12')]&&await Guild_1[a171_0x1a3b('0x2')][a171_0x1a3b('0xc')](_0x48d39c);};}}; \ No newline at end of file +const a172_0x44fd=['map','filter','exec','_id','default','cache','findByIdAndUpdate','guilds','length','client','find','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Listener','constructor','LISTENER_MODE','includes','test','user','@bastion/tesseract','insertMany'];(function(_0x6dd44,_0x44fd60){const _0x51620b=function(_0x2878b4){while(--_0x2878b4){_0x6dd44['push'](_0x6dd44['shift']());}},_0x3c05e8=function(){const _0x226543={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x21b39f,_0x53dbdb,_0x26d342,_0x4bec78){_0x4bec78=_0x4bec78||{};let _0x5e6bb1=_0x53dbdb+'='+_0x26d342,_0x675630=0x0;for(let _0x5a18c9=0x0,_0x4b66fb=_0x21b39f['length'];_0x5a18c9<_0x4b66fb;_0x5a18c9++){const _0x36cbde=_0x21b39f[_0x5a18c9];_0x5e6bb1+=';\x20'+_0x36cbde;const _0x2960a8=_0x21b39f[_0x36cbde];_0x21b39f['push'](_0x2960a8),_0x4b66fb=_0x21b39f['length'],_0x2960a8!==!![]&&(_0x5e6bb1+='='+_0x2960a8);}_0x4bec78['cookie']=_0x5e6bb1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x42d0ab,_0x4bec0c){_0x42d0ab=_0x42d0ab||function(_0x3692c7){return _0x3692c7;};const _0x5b2c26=_0x42d0ab(new RegExp('(?:^|;\x20)'+_0x4bec0c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5f241c=function(_0x504717,_0x494b9f){_0x504717(++_0x494b9f);};return _0x5f241c(_0x51620b,_0x44fd60),_0x5b2c26?decodeURIComponent(_0x5b2c26[0x1]):undefined;}},_0x51c8f6=function(){const _0x1231a4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1231a4['test'](_0x226543['removeCookie']['toString']());};_0x226543['updateCookie']=_0x51c8f6;let _0x202c75='';const _0x1a79a8=_0x226543['updateCookie']();if(!_0x1a79a8)_0x226543['setCookie'](['*'],'counter',0x1);else _0x1a79a8?_0x202c75=_0x226543['getCookie'](null,'counter'):_0x226543['removeCookie']();};_0x3c05e8();}(a172_0x44fd,0x65));const a172_0x5162=function(_0x6dd44,_0x44fd60){_0x6dd44=_0x6dd44-0x0;let _0x51620b=a172_0x44fd[_0x6dd44];return _0x51620b;};const a172_0x26d342=function(){let _0x5ee616=!![];return function(_0x2146af,_0x217cd7){const _0x48ed7e=_0x5ee616?function(){if(_0x217cd7){const _0x26e56a=_0x217cd7['apply'](_0x2146af,arguments);return _0x217cd7=null,_0x26e56a;}}:function(){};return _0x5ee616=![],_0x48ed7e;};}(),a172_0x53dbdb=a172_0x26d342(this,function(){const _0x2ffeac=function(){const _0x41a5cb=_0x2ffeac[a172_0x5162('0xc')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a172_0x5162('0xa'));return!_0x41a5cb[a172_0x5162('0xf')](a172_0x53dbdb);};return _0x2ffeac();});a172_0x53dbdb();'use strict';const tesseract_1=require(a172_0x5162('0x11')),Config_1=require('../models/Config'),Guild_1=require('../models/Guild');module['exports']=class ReadyListener extends tesseract_1[a172_0x5162('0xb')]{constructor(){super('ready',{'mode':tesseract_1['Constants'][a172_0x5162('0xd')]['ON']}),this[a172_0x5162('0x1')]=async()=>{await Config_1['default'][a172_0x5162('0x5')](this[a172_0x5162('0x8')][a172_0x5162('0x10')]['id'],{'_id':this[a172_0x5162('0x8')][a172_0x5162('0x10')]['id']},{'upsert':!![]});const _0x1f59bd=await Guild_1[a172_0x5162('0x3')][a172_0x5162('0x9')]({},'id'),_0x21f71e=_0x1f59bd[a172_0x5162('0x13')](_0x13b092=>_0x13b092['_id']),_0x2f0ba2=this[a172_0x5162('0x8')][a172_0x5162('0x6')][a172_0x5162('0x4')][a172_0x5162('0x13')](_0x34bbdd=>({'_id':_0x34bbdd['id']}))[a172_0x5162('0x0')](_0x7fbece=>!_0x21f71e[a172_0x5162('0xe')](_0x7fbece[a172_0x5162('0x2')]));_0x2f0ba2[a172_0x5162('0x7')]&&await Guild_1[a172_0x5162('0x3')][a172_0x5162('0x12')](_0x2f0ba2);};}}; \ No newline at end of file diff --git a/listeners/roleCreate.js b/listeners/roleCreate.js index 5b1ee533c..1c0bae044 100644 --- a/listeners/roleCreate.js +++ b/listeners/roleCreate.js @@ -1 +1 @@ -const a172_0x54d8=['guild','constructor','exec','test','Listener','join','name','LISTENER_MODE','@bastion/tesseract','roleCreate','Managed','exports','permissions','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Permissions','Role\x20Name','createdTimestamp','createLog','Role\x20ID','Constants'];(function(_0x44ed17,_0x54d8f7){const _0x4d82ea=function(_0x46167f){while(--_0x46167f){_0x44ed17['push'](_0x44ed17['shift']());}},_0x5ef9c5=function(){const _0x458326={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x6cc213,_0x142aba,_0x515ec8,_0x2628e7){_0x2628e7=_0x2628e7||{};let _0x5e1dd4=_0x142aba+'='+_0x515ec8,_0x3bb985=0x0;for(let _0x4ca7ee=0x0,_0x20be4f=_0x6cc213['length'];_0x4ca7ee<_0x20be4f;_0x4ca7ee++){const _0x3a3cea=_0x6cc213[_0x4ca7ee];_0x5e1dd4+=';\x20'+_0x3a3cea;const _0x2f1ea6=_0x6cc213[_0x3a3cea];_0x6cc213['push'](_0x2f1ea6),_0x20be4f=_0x6cc213['length'],_0x2f1ea6!==!![]&&(_0x5e1dd4+='='+_0x2f1ea6);}_0x2628e7['cookie']=_0x5e1dd4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x452df0,_0xc14751){_0x452df0=_0x452df0||function(_0x14c74d){return _0x14c74d;};const _0x3b2d42=_0x452df0(new RegExp('(?:^|;\x20)'+_0xc14751['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x287202=function(_0x2fa5c3,_0x26f1d9){_0x2fa5c3(++_0x26f1d9);};return _0x287202(_0x4d82ea,_0x54d8f7),_0x3b2d42?decodeURIComponent(_0x3b2d42[0x1]):undefined;}},_0x44702d=function(){const _0xa3803e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xa3803e['test'](_0x458326['removeCookie']['toString']());};_0x458326['updateCookie']=_0x44702d;let _0x401b8f='';const _0x4e3da7=_0x458326['updateCookie']();if(!_0x4e3da7)_0x458326['setCookie'](['*'],'counter',0x1);else _0x4e3da7?_0x401b8f=_0x458326['getCookie'](null,'counter'):_0x458326['removeCookie']();};_0x5ef9c5();}(a172_0x54d8,0x185));const a172_0x4d82=function(_0x44ed17,_0x54d8f7){_0x44ed17=_0x44ed17-0x0;let _0x4d82ea=a172_0x54d8[_0x44ed17];return _0x4d82ea;};const a172_0x515ec8=function(){let _0x3c513e=!![];return function(_0x5fd2f,_0x5d0d16){const _0x13637f=_0x3c513e?function(){if(_0x5d0d16){const _0xf3a65a=_0x5d0d16['apply'](_0x5fd2f,arguments);return _0x5d0d16=null,_0xf3a65a;}}:function(){};return _0x3c513e=![],_0x13637f;};}(),a172_0x142aba=a172_0x515ec8(this,function(){const _0x182717=function(){const _0x2361b8=_0x182717[a172_0x4d82('0xc')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a172_0x4d82('0xc')](a172_0x4d82('0x4'));return!_0x2361b8[a172_0x4d82('0xe')](a172_0x142aba);};return _0x182717();});a172_0x142aba();'use strict';const tesseract_1=require(a172_0x4d82('0x13'));module[a172_0x4d82('0x2')]=class RoleCreateListener extends tesseract_1[a172_0x4d82('0xf')]{constructor(){super(a172_0x4d82('0x0'),{'mode':tesseract_1[a172_0x4d82('0xa')][a172_0x4d82('0x12')]['ON']}),this[a172_0x4d82('0xd')]=async _0xe3e92b=>{const _0x1c0dea=_0xe3e92b[a172_0x4d82('0xb')];_0x1c0dea[a172_0x4d82('0x8')]({'event':'roleCreate','fields':[{'name':a172_0x4d82('0x6'),'value':_0xe3e92b[a172_0x4d82('0x11')],'inline':!![]},{'name':a172_0x4d82('0x9'),'value':_0xe3e92b['id'],'inline':!![]},{'name':a172_0x4d82('0x5'),'value':_0xe3e92b[a172_0x4d82('0x3')]['toArray']()[a172_0x4d82('0x10')](',\x20')}],'footer':_0xe3e92b['managed']?a172_0x4d82('0x1'):undefined,'timestamp':_0xe3e92b[a172_0x4d82('0x7')]});};}}; \ No newline at end of file +const a173_0x506c=['LISTENER_MODE','constructor','permissions','managed','exec','guild','join','Permissions','return\x20/\x22\x20+\x20this\x20+\x20\x22/','roleCreate','createdTimestamp','Role\x20Name','Role\x20ID','Constants','test','createLog'];(function(_0x5806c9,_0x506c9b){const _0x57307b=function(_0x379924){while(--_0x379924){_0x5806c9['push'](_0x5806c9['shift']());}},_0x4a45cf=function(){const _0x454204={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x48406a,_0x9c6985,_0x4a0648,_0x2ed235){_0x2ed235=_0x2ed235||{};let _0x5b0ef2=_0x9c6985+'='+_0x4a0648,_0x4539b4=0x0;for(let _0xd5fd23=0x0,_0xb5ae2b=_0x48406a['length'];_0xd5fd23<_0xb5ae2b;_0xd5fd23++){const _0x51e374=_0x48406a[_0xd5fd23];_0x5b0ef2+=';\x20'+_0x51e374;const _0x17119a=_0x48406a[_0x51e374];_0x48406a['push'](_0x17119a),_0xb5ae2b=_0x48406a['length'],_0x17119a!==!![]&&(_0x5b0ef2+='='+_0x17119a);}_0x2ed235['cookie']=_0x5b0ef2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ec7a7,_0x54744d){_0x4ec7a7=_0x4ec7a7||function(_0x361459){return _0x361459;};const _0x47a81d=_0x4ec7a7(new RegExp('(?:^|;\x20)'+_0x54744d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b9bce=function(_0x117373,_0x2172df){_0x117373(++_0x2172df);};return _0x3b9bce(_0x57307b,_0x506c9b),_0x47a81d?decodeURIComponent(_0x47a81d[0x1]):undefined;}},_0x145cba=function(){const _0x428755=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x428755['test'](_0x454204['removeCookie']['toString']());};_0x454204['updateCookie']=_0x145cba;let _0x3d10bf='';const _0x4689dd=_0x454204['updateCookie']();if(!_0x4689dd)_0x454204['setCookie'](['*'],'counter',0x1);else _0x4689dd?_0x3d10bf=_0x454204['getCookie'](null,'counter'):_0x454204['removeCookie']();};_0x4a45cf();}(a173_0x506c,0x1d6));const a173_0x5730=function(_0x5806c9,_0x506c9b){_0x5806c9=_0x5806c9-0x0;let _0x57307b=a173_0x506c[_0x5806c9];return _0x57307b;};const a173_0x4a0648=function(){let _0x4172fb=!![];return function(_0x157a31,_0x3b14a3){const _0x1b6a53=_0x4172fb?function(){if(_0x3b14a3){const _0x3daa31=_0x3b14a3['apply'](_0x157a31,arguments);return _0x3b14a3=null,_0x3daa31;}}:function(){};return _0x4172fb=![],_0x1b6a53;};}(),a173_0x9c6985=a173_0x4a0648(this,function(){const _0x3dbb71=function(){const _0x28e186=_0x3dbb71[a173_0x5730('0xb')](a173_0x5730('0x2'))()[a173_0x5730('0xb')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x28e186[a173_0x5730('0x8')](a173_0x9c6985);};return _0x3dbb71();});a173_0x9c6985();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class RoleCreateListener extends tesseract_1['Listener']{constructor(){super(a173_0x5730('0x3'),{'mode':tesseract_1[a173_0x5730('0x7')][a173_0x5730('0xa')]['ON']}),this[a173_0x5730('0xe')]=async _0x121e88=>{const _0x32d4a3=_0x121e88[a173_0x5730('0xf')];_0x32d4a3[a173_0x5730('0x9')]({'event':a173_0x5730('0x3'),'fields':[{'name':a173_0x5730('0x5'),'value':_0x121e88['name'],'inline':!![]},{'name':a173_0x5730('0x6'),'value':_0x121e88['id'],'inline':!![]},{'name':a173_0x5730('0x1'),'value':_0x121e88[a173_0x5730('0xc')]['toArray']()[a173_0x5730('0x0')](',\x20')}],'footer':_0x121e88[a173_0x5730('0xd')]?'Managed':undefined,'timestamp':_0x121e88[a173_0x5730('0x4')]});};}}; \ No newline at end of file diff --git a/listeners/roleDelete.js b/listeners/roleDelete.js index 467c77e01..006831131 100644 --- a/listeners/roleDelete.js +++ b/listeners/roleDelete.js @@ -1 +1 @@ -const a173_0x3aab=['roleDelete','createLog','apply','Role\x20Name','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','Managed','Created','createdAt','test','LISTENER_MODE','@bastion/tesseract'];(function(_0x543c23,_0x3aaba4){const _0x5b04da=function(_0x283f28){while(--_0x283f28){_0x543c23['push'](_0x543c23['shift']());}},_0x1433b0=function(){const _0x7eadd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x8e7ff3,_0x1974ba,_0x55d876,_0x4b110e){_0x4b110e=_0x4b110e||{};let _0x37ab68=_0x1974ba+'='+_0x55d876,_0x59fbf0=0x0;for(let _0x5d5d29=0x0,_0x4cbebf=_0x8e7ff3['length'];_0x5d5d29<_0x4cbebf;_0x5d5d29++){const _0x2043e7=_0x8e7ff3[_0x5d5d29];_0x37ab68+=';\x20'+_0x2043e7;const _0x3f0620=_0x8e7ff3[_0x2043e7];_0x8e7ff3['push'](_0x3f0620),_0x4cbebf=_0x8e7ff3['length'],_0x3f0620!==!![]&&(_0x37ab68+='='+_0x3f0620);}_0x4b110e['cookie']=_0x37ab68;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3b1605,_0x520268){_0x3b1605=_0x3b1605||function(_0x5b9ee4){return _0x5b9ee4;};const _0x55dfe5=_0x3b1605(new RegExp('(?:^|;\x20)'+_0x520268['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x17ad4c=function(_0x420dad,_0x413e86){_0x420dad(++_0x413e86);};return _0x17ad4c(_0x5b04da,_0x3aaba4),_0x55dfe5?decodeURIComponent(_0x55dfe5[0x1]):undefined;}},_0xc0023a=function(){const _0x383cf4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x383cf4['test'](_0x7eadd['removeCookie']['toString']());};_0x7eadd['updateCookie']=_0xc0023a;let _0x209157='';const _0x4f769b=_0x7eadd['updateCookie']();if(!_0x4f769b)_0x7eadd['setCookie'](['*'],'counter',0x1);else _0x4f769b?_0x209157=_0x7eadd['getCookie'](null,'counter'):_0x7eadd['removeCookie']();};_0x1433b0();}(a173_0x3aab,0x1c6));const a173_0x5b04=function(_0x543c23,_0x3aaba4){_0x543c23=_0x543c23-0x0;let _0x5b04da=a173_0x3aab[_0x543c23];return _0x5b04da;};const a173_0x55d876=function(){let _0x334733=!![];return function(_0x341332,_0x6a691e){const _0x3c814a=_0x334733?function(){if(_0x6a691e){const _0x2241d4=_0x6a691e[a173_0x5b04('0x3')](_0x341332,arguments);return _0x6a691e=null,_0x2241d4;}}:function(){};return _0x334733=![],_0x3c814a;};}(),a173_0x1974ba=a173_0x55d876(this,function(){const _0x343489=function(){const _0x1a7911=_0x343489['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a173_0x5b04('0x6'));return!_0x1a7911[a173_0x5b04('0xb')](a173_0x1974ba);};return _0x343489();});a173_0x1974ba();'use strict';const tesseract_1=require(a173_0x5b04('0x0'));module['exports']=class RoleDeleteListener extends tesseract_1['Listener']{constructor(){super(a173_0x5b04('0x1'),{'mode':tesseract_1['Constants'][a173_0x5b04('0xc')]['ON']}),this[a173_0x5b04('0x7')]=async _0x54c2b2=>{const _0x8614cd=_0x54c2b2[a173_0x5b04('0x5')];_0x8614cd[a173_0x5b04('0x2')]({'event':a173_0x5b04('0x1'),'fields':[{'name':a173_0x5b04('0x4'),'value':_0x54c2b2['name'],'inline':!![]},{'name':a173_0x5b04('0x9'),'value':_0x54c2b2[a173_0x5b04('0xa')]['toUTCString'](),'inline':!![]}],'footer':_0x54c2b2['managed']?a173_0x5b04('0x8'):undefined});};}}; \ No newline at end of file +const a174_0x2885=['exports','Listener','guild','createLog','Constants','LISTENER_MODE','constructor','name','createdAt','toUTCString','test','@bastion/tesseract','Created','managed','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x4baa59,_0x2885bf){const _0x57be11=function(_0x40cced){while(--_0x40cced){_0x4baa59['push'](_0x4baa59['shift']());}},_0x38ce6c=function(){const _0x4fd4ea={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xdeb074,_0x5ceb86,_0x34d4a8,_0x34a844){_0x34a844=_0x34a844||{};let _0x5f0626=_0x5ceb86+'='+_0x34d4a8,_0x53ffdc=0x0;for(let _0x4e843c=0x0,_0x988774=_0xdeb074['length'];_0x4e843c<_0x988774;_0x4e843c++){const _0xd504c7=_0xdeb074[_0x4e843c];_0x5f0626+=';\x20'+_0xd504c7;const _0x147901=_0xdeb074[_0xd504c7];_0xdeb074['push'](_0x147901),_0x988774=_0xdeb074['length'],_0x147901!==!![]&&(_0x5f0626+='='+_0x147901);}_0x34a844['cookie']=_0x5f0626;},'removeCookie':function(){return'dev';},'getCookie':function(_0x16909e,_0xf6d49a){_0x16909e=_0x16909e||function(_0x2b8138){return _0x2b8138;};const _0x8c8321=_0x16909e(new RegExp('(?:^|;\x20)'+_0xf6d49a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5c6dab=function(_0x164304,_0x594160){_0x164304(++_0x594160);};return _0x5c6dab(_0x57be11,_0x2885bf),_0x8c8321?decodeURIComponent(_0x8c8321[0x1]):undefined;}},_0x5b789f=function(){const _0x1fa311=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1fa311['test'](_0x4fd4ea['removeCookie']['toString']());};_0x4fd4ea['updateCookie']=_0x5b789f;let _0x1a63ed='';const _0x5bcfdc=_0x4fd4ea['updateCookie']();if(!_0x5bcfdc)_0x4fd4ea['setCookie'](['*'],'counter',0x1);else _0x5bcfdc?_0x1a63ed=_0x4fd4ea['getCookie'](null,'counter'):_0x4fd4ea['removeCookie']();};_0x38ce6c();}(a174_0x2885,0x1a2));const a174_0x57be=function(_0x4baa59,_0x2885bf){_0x4baa59=_0x4baa59-0x0;let _0x57be11=a174_0x2885[_0x4baa59];return _0x57be11;};const a174_0x34d4a8=function(){let _0x48b979=!![];return function(_0x40c4ab,_0x33b2bd){const _0x34cf1e=_0x48b979?function(){if(_0x33b2bd){const _0x401bb4=_0x33b2bd['apply'](_0x40c4ab,arguments);return _0x33b2bd=null,_0x401bb4;}}:function(){};return _0x48b979=![],_0x34cf1e;};}(),a174_0x5ceb86=a174_0x34d4a8(this,function(){const _0x2a346d=function(){const _0x305d20=_0x2a346d['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a174_0x57be('0x8')](a174_0x57be('0x1'));return!_0x305d20[a174_0x57be('0xc')](a174_0x5ceb86);};return _0x2a346d();});a174_0x5ceb86();'use strict';const tesseract_1=require(a174_0x57be('0xd'));module[a174_0x57be('0x2')]=class RoleDeleteListener extends tesseract_1[a174_0x57be('0x3')]{constructor(){super('roleDelete',{'mode':tesseract_1[a174_0x57be('0x6')][a174_0x57be('0x7')]['ON']}),this['exec']=async _0x2f249c=>{const _0xdb6d6a=_0x2f249c[a174_0x57be('0x4')];_0xdb6d6a[a174_0x57be('0x5')]({'event':'roleDelete','fields':[{'name':'Role\x20Name','value':_0x2f249c[a174_0x57be('0x9')],'inline':!![]},{'name':a174_0x57be('0xe'),'value':_0x2f249c[a174_0x57be('0xa')][a174_0x57be('0xb')](),'inline':!![]}],'footer':_0x2f249c[a174_0x57be('0x0')]?'Managed':undefined});};}}; \ No newline at end of file diff --git a/listeners/roleUpdate.js b/listeners/roleUpdate.js index cc79a8d2e..d97605805 100644 --- a/listeners/roleUpdate.js +++ b/listeners/roleUpdate.js @@ -1 +1 @@ -const a174_0x29ef=['roleUpdate','Old\x20Role\x20Name','exec','Listener','bitfield','Permissions','push','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','LISTENER_MODE','test','join','exports','createLog','managed','createdTimestamp','Role\x20Name','@bastion/tesseract','apply','Managed','permissions','name','equals'];(function(_0x523887,_0x29ef96){const _0xb89762=function(_0xaf4258){while(--_0xaf4258){_0x523887['push'](_0x523887['shift']());}},_0x2b5843=function(){const _0x36718b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x553472,_0x231222,_0x4dcd81,_0x454bcc){_0x454bcc=_0x454bcc||{};let _0x366ac5=_0x231222+'='+_0x4dcd81,_0x5e1d3c=0x0;for(let _0x58b5f7=0x0,_0x50626b=_0x553472['length'];_0x58b5f7<_0x50626b;_0x58b5f7++){const _0x2fe5c3=_0x553472[_0x58b5f7];_0x366ac5+=';\x20'+_0x2fe5c3;const _0x2358df=_0x553472[_0x2fe5c3];_0x553472['push'](_0x2358df),_0x50626b=_0x553472['length'],_0x2358df!==!![]&&(_0x366ac5+='='+_0x2358df);}_0x454bcc['cookie']=_0x366ac5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x7d76d,_0x2fa64e){_0x7d76d=_0x7d76d||function(_0x4c7738){return _0x4c7738;};const _0x13de06=_0x7d76d(new RegExp('(?:^|;\x20)'+_0x2fa64e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x381fac=function(_0x83e455,_0x28ae22){_0x83e455(++_0x28ae22);};return _0x381fac(_0xb89762,_0x29ef96),_0x13de06?decodeURIComponent(_0x13de06[0x1]):undefined;}},_0xc569d8=function(){const _0x3dc4f4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3dc4f4['test'](_0x36718b['removeCookie']['toString']());};_0x36718b['updateCookie']=_0xc569d8;let _0x2f3ff0='';const _0x33ce24=_0x36718b['updateCookie']();if(!_0x33ce24)_0x36718b['setCookie'](['*'],'counter',0x1);else _0x33ce24?_0x2f3ff0=_0x36718b['getCookie'](null,'counter'):_0x36718b['removeCookie']();};_0x2b5843();}(a174_0x29ef,0x1bd));const a174_0xb897=function(_0x523887,_0x29ef96){_0x523887=_0x523887-0x0;let _0xb89762=a174_0x29ef[_0x523887];return _0xb89762;};const a174_0x4dcd81=function(){let _0x20af01=!![];return function(_0x2b5548,_0xaff5ee){const _0x286ea9=_0x20af01?function(){if(_0xaff5ee){const _0x24e0fe=_0xaff5ee[a174_0xb897('0xc')](_0x2b5548,arguments);return _0xaff5ee=null,_0x24e0fe;}}:function(){};return _0x20af01=![],_0x286ea9;};}(),a174_0x231222=a174_0x4dcd81(this,function(){const _0x4865df=function(){const _0x1bd3bc=_0x4865df['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a174_0xb897('0x2'));return!_0x1bd3bc[a174_0xb897('0x4')](a174_0x231222);};return _0x4865df();});a174_0x231222();'use strict';const tesseract_1=require(a174_0xb897('0xb'));module[a174_0xb897('0x6')]=class RoleUpdateListener extends tesseract_1[a174_0xb897('0x14')]{constructor(){super(a174_0xb897('0x11'),{'mode':tesseract_1['Constants'][a174_0xb897('0x3')]['ON']}),this[a174_0xb897('0x13')]=async(_0x4b08db,_0x3c1bb1)=>{if(_0x4b08db[a174_0xb897('0xf')]===_0x3c1bb1[a174_0xb897('0xf')]&&_0x4b08db[a174_0xb897('0xe')]['equals'](_0x3c1bb1[a174_0xb897('0xe')][a174_0xb897('0x15')]))return;const _0x13a396=_0x4b08db['guild'],_0x23c4fc=[{'name':'Role\x20ID','value':_0x4b08db['id'],'inline':!![]}];_0x4b08db[a174_0xb897('0xf')]===_0x3c1bb1[a174_0xb897('0xf')]?_0x23c4fc[a174_0xb897('0x1')]({'name':a174_0xb897('0xa'),'value':_0x4b08db[a174_0xb897('0xf')],'inline':!![]}):_0x23c4fc['push']({'name':a174_0xb897('0x12'),'value':_0x4b08db[a174_0xb897('0xf')],'inline':!![]},{'name':'New\x20Role\x20Name','value':_0x3c1bb1['name'],'inline':!![]}),!_0x4b08db['permissions'][a174_0xb897('0x10')](_0x3c1bb1[a174_0xb897('0xe')][a174_0xb897('0x15')])&&_0x23c4fc[a174_0xb897('0x1')]({'name':a174_0xb897('0x0'),'value':_0x3c1bb1['permissions']['toArray']()[a174_0xb897('0x5')](',\x20'),'inline':![]}),_0x13a396[a174_0xb897('0x7')]({'event':'roleUpdate','fields':_0x23c4fc,'footer':_0x4b08db[a174_0xb897('0x8')]?a174_0xb897('0xd'):undefined,'timestamp':_0x4b08db[a174_0xb897('0x9')]});};}}; \ No newline at end of file +const a175_0x48f7=['Permissions','permissions','name','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Old\x20Role\x20Name','LISTENER_MODE','Constants','New\x20Role\x20Name','managed','@bastion/tesseract','exports','exec','Managed','equals','roleUpdate','Role\x20Name','Role\x20ID','createdTimestamp','Listener','push','bitfield','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','apply'];(function(_0x165dce,_0x48f7dc){const _0x4cb857=function(_0x6000c2){while(--_0x6000c2){_0x165dce['push'](_0x165dce['shift']());}},_0x17bf70=function(){const _0x25cad6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5bbd50,_0x59d60,_0x12cb90,_0x136296){_0x136296=_0x136296||{};let _0x2bb81a=_0x59d60+'='+_0x12cb90,_0x499626=0x0;for(let _0x219e12=0x0,_0x248700=_0x5bbd50['length'];_0x219e12<_0x248700;_0x219e12++){const _0x3a326f=_0x5bbd50[_0x219e12];_0x2bb81a+=';\x20'+_0x3a326f;const _0x48c52f=_0x5bbd50[_0x3a326f];_0x5bbd50['push'](_0x48c52f),_0x248700=_0x5bbd50['length'],_0x48c52f!==!![]&&(_0x2bb81a+='='+_0x48c52f);}_0x136296['cookie']=_0x2bb81a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3d0a86,_0xce1b3b){_0x3d0a86=_0x3d0a86||function(_0xfbc1cb){return _0xfbc1cb;};const _0x17b4a4=_0x3d0a86(new RegExp('(?:^|;\x20)'+_0xce1b3b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f861c=function(_0x285e07,_0xba772b){_0x285e07(++_0xba772b);};return _0x1f861c(_0x4cb857,_0x48f7dc),_0x17b4a4?decodeURIComponent(_0x17b4a4[0x1]):undefined;}},_0x36bea4=function(){const _0x4c8220=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4c8220['test'](_0x25cad6['removeCookie']['toString']());};_0x25cad6['updateCookie']=_0x36bea4;let _0x1815f9='';const _0x277242=_0x25cad6['updateCookie']();if(!_0x277242)_0x25cad6['setCookie'](['*'],'counter',0x1);else _0x277242?_0x1815f9=_0x25cad6['getCookie'](null,'counter'):_0x25cad6['removeCookie']();};_0x17bf70();}(a175_0x48f7,0xc2));const a175_0x4cb8=function(_0x165dce,_0x48f7dc){_0x165dce=_0x165dce-0x0;let _0x4cb857=a175_0x48f7[_0x165dce];return _0x4cb857;};const a175_0x12cb90=function(){let _0x2fa47d=!![];return function(_0x5dc4b7,_0x4b1f53){const _0x49bd5b=_0x2fa47d?function(){if(_0x4b1f53){const _0x35b4f4=_0x4b1f53[a175_0x4cb8('0x15')](_0x5dc4b7,arguments);return _0x4b1f53=null,_0x35b4f4;}}:function(){};return _0x2fa47d=![],_0x49bd5b;};}(),a175_0x59d60=a175_0x12cb90(this,function(){const _0xaafb76=function(){const _0x39b121=_0xaafb76['constructor'](a175_0x4cb8('0x13'))()[a175_0x4cb8('0x14')](a175_0x4cb8('0x1'));return!_0x39b121['test'](a175_0x59d60);};return _0xaafb76();});a175_0x59d60();'use strict';const tesseract_1=require(a175_0x4cb8('0x7'));module[a175_0x4cb8('0x8')]=class RoleUpdateListener extends tesseract_1[a175_0x4cb8('0x10')]{constructor(){super(a175_0x4cb8('0xc'),{'mode':tesseract_1[a175_0x4cb8('0x4')][a175_0x4cb8('0x3')]['ON']}),this[a175_0x4cb8('0x9')]=async(_0xbe81d3,_0x1ff918)=>{if(_0xbe81d3['name']===_0x1ff918['name']&&_0xbe81d3[a175_0x4cb8('0x17')][a175_0x4cb8('0xb')](_0x1ff918[a175_0x4cb8('0x17')][a175_0x4cb8('0x12')]))return;const _0x452784=_0xbe81d3['guild'],_0x333252=[{'name':a175_0x4cb8('0xe'),'value':_0xbe81d3['id'],'inline':!![]}];_0xbe81d3[a175_0x4cb8('0x0')]===_0x1ff918[a175_0x4cb8('0x0')]?_0x333252[a175_0x4cb8('0x11')]({'name':a175_0x4cb8('0xd'),'value':_0xbe81d3['name'],'inline':!![]}):_0x333252[a175_0x4cb8('0x11')]({'name':a175_0x4cb8('0x2'),'value':_0xbe81d3[a175_0x4cb8('0x0')],'inline':!![]},{'name':a175_0x4cb8('0x5'),'value':_0x1ff918[a175_0x4cb8('0x0')],'inline':!![]}),!_0xbe81d3[a175_0x4cb8('0x17')][a175_0x4cb8('0xb')](_0x1ff918[a175_0x4cb8('0x17')][a175_0x4cb8('0x12')])&&_0x333252[a175_0x4cb8('0x11')]({'name':a175_0x4cb8('0x16'),'value':_0x1ff918[a175_0x4cb8('0x17')]['toArray']()['join'](',\x20'),'inline':![]}),_0x452784['createLog']({'event':a175_0x4cb8('0xc'),'fields':_0x333252,'footer':_0xbe81d3[a175_0x4cb8('0x6')]?a175_0x4cb8('0xa'):undefined,'timestamp':_0xbe81d3[a175_0x4cb8('0xf')]});};}}; \ No newline at end of file diff --git a/listeners/shardDisconnect.js b/listeners/shardDisconnect.js index f9a5f3950..77574fd38 100644 --- a/listeners/shardDisconnect.js +++ b/listeners/shardDisconnect.js @@ -1 +1 @@ -const a175_0x3752=['@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Logger','shardDisconnect','error','wasClean','constructor','LISTENER_MODE','info','Constants'];(function(_0x163dd8,_0x3752d3){const _0x518add=function(_0x510172){while(--_0x510172){_0x163dd8['push'](_0x163dd8['shift']());}},_0x46bcf7=function(){const _0x4310c2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x36bc39,_0x4ada00,_0x53da3a,_0x4360df){_0x4360df=_0x4360df||{};let _0x500dc2=_0x4ada00+'='+_0x53da3a,_0x358a0e=0x0;for(let _0x860025=0x0,_0x4cde03=_0x36bc39['length'];_0x860025<_0x4cde03;_0x860025++){const _0x1efbfb=_0x36bc39[_0x860025];_0x500dc2+=';\x20'+_0x1efbfb;const _0x5d5ce3=_0x36bc39[_0x1efbfb];_0x36bc39['push'](_0x5d5ce3),_0x4cde03=_0x36bc39['length'],_0x5d5ce3!==!![]&&(_0x500dc2+='='+_0x5d5ce3);}_0x4360df['cookie']=_0x500dc2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x242f93,_0x4b4aa1){_0x242f93=_0x242f93||function(_0x3aee91){return _0x3aee91;};const _0x4eb8b8=_0x242f93(new RegExp('(?:^|;\x20)'+_0x4b4aa1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3048a9=function(_0x30e979,_0x543531){_0x30e979(++_0x543531);};return _0x3048a9(_0x518add,_0x3752d3),_0x4eb8b8?decodeURIComponent(_0x4eb8b8[0x1]):undefined;}},_0x529514=function(){const _0x5b8fe7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b8fe7['test'](_0x4310c2['removeCookie']['toString']());};_0x4310c2['updateCookie']=_0x529514;let _0x15443a='';const _0x4ddcc0=_0x4310c2['updateCookie']();if(!_0x4ddcc0)_0x4310c2['setCookie'](['*'],'counter',0x1);else _0x4ddcc0?_0x15443a=_0x4310c2['getCookie'](null,'counter'):_0x4310c2['removeCookie']();};_0x46bcf7();}(a175_0x3752,0xc1));const a175_0x518a=function(_0x163dd8,_0x3752d3){_0x163dd8=_0x163dd8-0x0;let _0x518add=a175_0x3752[_0x163dd8];return _0x518add;};const a175_0x53da3a=function(){let _0x4cd6b3=!![];return function(_0x6dc0b,_0x3cb204){const _0x2a1523=_0x4cd6b3?function(){if(_0x3cb204){const _0x4b03e1=_0x3cb204['apply'](_0x6dc0b,arguments);return _0x3cb204=null,_0x4b03e1;}}:function(){};return _0x4cd6b3=![],_0x2a1523;};}(),a175_0x4ada00=a175_0x53da3a(this,function(){const _0x55dc19=function(){const _0xf0f8f=_0x55dc19[a175_0x518a('0x1')](a175_0x518a('0x7'))()[a175_0x518a('0x1')](a175_0x518a('0x6'));return!_0xf0f8f['test'](a175_0x4ada00);};return _0x55dc19();});a175_0x4ada00();'use strict';const tesseract_1=require(a175_0x518a('0x5'));module['exports']=class ShardDisconnectListener extends tesseract_1['Listener']{constructor(){super(a175_0x518a('0x9'),{'mode':tesseract_1[a175_0x518a('0x4')][a175_0x518a('0x2')]['ON']}),this['exec']=async(_0x1b0c38,_0x542872)=>{tesseract_1['Logger'][a175_0x518a('0x3')]('Shard\x20'+_0x542872+'\x20-\x20Disconnected'),!_0x1b0c38[a175_0x518a('0x0')]&&tesseract_1[a175_0x518a('0x8')][a175_0x518a('0xa')](_0x1b0c38);};}}; \ No newline at end of file +const a176_0x43a2=['Listener','shardDisconnect','LISTENER_MODE','error','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Logger','exec','info','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','\x20-\x20Disconnected'];(function(_0x38d4a2,_0x43a2aa){const _0x3fbbc0=function(_0xb2c002){while(--_0xb2c002){_0x38d4a2['push'](_0x38d4a2['shift']());}},_0x2fb0ab=function(){const _0x41894e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x10aefb,_0x317e4b,_0x2d9f6f,_0x18a649){_0x18a649=_0x18a649||{};let _0x5e6f21=_0x317e4b+'='+_0x2d9f6f,_0x16767e=0x0;for(let _0x33691c=0x0,_0x3366e2=_0x10aefb['length'];_0x33691c<_0x3366e2;_0x33691c++){const _0x3baa75=_0x10aefb[_0x33691c];_0x5e6f21+=';\x20'+_0x3baa75;const _0x47b171=_0x10aefb[_0x3baa75];_0x10aefb['push'](_0x47b171),_0x3366e2=_0x10aefb['length'],_0x47b171!==!![]&&(_0x5e6f21+='='+_0x47b171);}_0x18a649['cookie']=_0x5e6f21;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5d9f84,_0x5e6585){_0x5d9f84=_0x5d9f84||function(_0x5ae253){return _0x5ae253;};const _0xf37d72=_0x5d9f84(new RegExp('(?:^|;\x20)'+_0x5e6585['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x343996=function(_0x205115,_0x3b174c){_0x205115(++_0x3b174c);};return _0x343996(_0x3fbbc0,_0x43a2aa),_0xf37d72?decodeURIComponent(_0xf37d72[0x1]):undefined;}},_0x330c36=function(){const _0x5d2fa5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5d2fa5['test'](_0x41894e['removeCookie']['toString']());};_0x41894e['updateCookie']=_0x330c36;let _0x5f1473='';const _0x508b8e=_0x41894e['updateCookie']();if(!_0x508b8e)_0x41894e['setCookie'](['*'],'counter',0x1);else _0x508b8e?_0x5f1473=_0x41894e['getCookie'](null,'counter'):_0x41894e['removeCookie']();};_0x2fb0ab();}(a176_0x43a2,0x152));const a176_0x3fbb=function(_0x38d4a2,_0x43a2aa){_0x38d4a2=_0x38d4a2-0x0;let _0x3fbbc0=a176_0x43a2[_0x38d4a2];return _0x3fbbc0;};const a176_0x2d9f6f=function(){let _0x2fba0b=!![];return function(_0x1a716e,_0x415b55){const _0x4ece6b=_0x2fba0b?function(){if(_0x415b55){const _0x37e637=_0x415b55['apply'](_0x1a716e,arguments);return _0x415b55=null,_0x37e637;}}:function(){};return _0x2fba0b=![],_0x4ece6b;};}(),a176_0x317e4b=a176_0x2d9f6f(this,function(){const _0x1f6994=function(){const _0x56a57e=_0x1f6994[a176_0x3fbb('0x0')](a176_0x3fbb('0x1'))()[a176_0x3fbb('0x0')](a176_0x3fbb('0x7'));return!_0x56a57e['test'](a176_0x317e4b);};return _0x1f6994();});a176_0x317e4b();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class ShardDisconnectListener extends tesseract_1[a176_0x3fbb('0x3')]{constructor(){super(a176_0x3fbb('0x4'),{'mode':tesseract_1['Constants'][a176_0x3fbb('0x5')]['ON']}),this[a176_0x3fbb('0x9')]=async(_0x2c3964,_0x5b07e7)=>{tesseract_1['Logger'][a176_0x3fbb('0xa')]('Shard\x20'+_0x5b07e7+a176_0x3fbb('0x2')),!_0x2c3964['wasClean']&&tesseract_1[a176_0x3fbb('0x8')][a176_0x3fbb('0x6')](_0x2c3964);};}}; \ No newline at end of file diff --git a/listeners/shardError.js b/listeners/shardError.js index f8339ae90..0f2435623 100644 --- a/listeners/shardError.js +++ b/listeners/shardError.js @@ -1 +1 @@ -const a176_0x30d9=['Listener','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20-\x20Errored','exports','exec','test','shardError','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract','Logger','info','constructor','Shard\x20','apply'];(function(_0x2a14c1,_0x30d969){const _0x4260d5=function(_0xdc7fa7){while(--_0xdc7fa7){_0x2a14c1['push'](_0x2a14c1['shift']());}},_0x537ce6=function(){const _0x21d1eb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xdda7f7,_0x34bafe,_0x51884a,_0x222ba5){_0x222ba5=_0x222ba5||{};let _0x1637c2=_0x34bafe+'='+_0x51884a,_0x5c9966=0x0;for(let _0x1e37dd=0x0,_0x32a650=_0xdda7f7['length'];_0x1e37dd<_0x32a650;_0x1e37dd++){const _0x35638c=_0xdda7f7[_0x1e37dd];_0x1637c2+=';\x20'+_0x35638c;const _0x348bd7=_0xdda7f7[_0x35638c];_0xdda7f7['push'](_0x348bd7),_0x32a650=_0xdda7f7['length'],_0x348bd7!==!![]&&(_0x1637c2+='='+_0x348bd7);}_0x222ba5['cookie']=_0x1637c2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x23aa32,_0xdfcc51){_0x23aa32=_0x23aa32||function(_0xea3cc9){return _0xea3cc9;};const _0x121936=_0x23aa32(new RegExp('(?:^|;\x20)'+_0xdfcc51['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x197737=function(_0x4dcc1a,_0x1a6204){_0x4dcc1a(++_0x1a6204);};return _0x197737(_0x4260d5,_0x30d969),_0x121936?decodeURIComponent(_0x121936[0x1]):undefined;}},_0x2ef771=function(){const _0x2b936b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2b936b['test'](_0x21d1eb['removeCookie']['toString']());};_0x21d1eb['updateCookie']=_0x2ef771;let _0x31e15e='';const _0x3fa8fa=_0x21d1eb['updateCookie']();if(!_0x3fa8fa)_0x21d1eb['setCookie'](['*'],'counter',0x1);else _0x3fa8fa?_0x31e15e=_0x21d1eb['getCookie'](null,'counter'):_0x21d1eb['removeCookie']();};_0x537ce6();}(a176_0x30d9,0x114));const a176_0x4260=function(_0x2a14c1,_0x30d969){_0x2a14c1=_0x2a14c1-0x0;let _0x4260d5=a176_0x30d9[_0x2a14c1];return _0x4260d5;};const a176_0x51884a=function(){let _0x591c9a=!![];return function(_0x5bb129,_0x4eba14){const _0x58c823=_0x591c9a?function(){if(_0x4eba14){const _0x29010d=_0x4eba14[a176_0x4260('0x8')](_0x5bb129,arguments);return _0x4eba14=null,_0x29010d;}}:function(){};return _0x591c9a=![],_0x58c823;};}(),a176_0x34bafe=a176_0x51884a(this,function(){const _0x5cb1d6=function(){const _0x3fc4a7=_0x5cb1d6['constructor'](a176_0x4260('0x2'))()[a176_0x4260('0x6')](a176_0x4260('0xb'));return!_0x3fc4a7[a176_0x4260('0x0')](a176_0x34bafe);};return _0x5cb1d6();});a176_0x34bafe();'use strict';const tesseract_1=require(a176_0x4260('0x3'));module[a176_0x4260('0xd')]=class ShardErrorListener extends tesseract_1[a176_0x4260('0x9')]{constructor(){super(a176_0x4260('0x1'),{'mode':tesseract_1[a176_0x4260('0xa')]['LISTENER_MODE']['ON']}),this[a176_0x4260('0xe')]=async(_0x133667,_0x55ec7a)=>{tesseract_1[a176_0x4260('0x4')][a176_0x4260('0x5')](a176_0x4260('0x7')+_0x55ec7a+a176_0x4260('0xc')),tesseract_1[a176_0x4260('0x4')]['error'](_0x133667);};}}; \ No newline at end of file +const a177_0x3a1a=['shardError','error','exec','Listener','Shard\x20','constructor','exports','\x20-\x20Errored','LISTENER_MODE','apply','Logger'];(function(_0x277ff6,_0x3a1a53){const _0x325545=function(_0x4f47a9){while(--_0x4f47a9){_0x277ff6['push'](_0x277ff6['shift']());}},_0x38e33c=function(){const _0x2de451={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5178d3,_0xc3bef2,_0x1ae3c6,_0x211793){_0x211793=_0x211793||{};let _0x1b11b5=_0xc3bef2+'='+_0x1ae3c6,_0x12c355=0x0;for(let _0x57875d=0x0,_0x177587=_0x5178d3['length'];_0x57875d<_0x177587;_0x57875d++){const _0x510bef=_0x5178d3[_0x57875d];_0x1b11b5+=';\x20'+_0x510bef;const _0x53aefe=_0x5178d3[_0x510bef];_0x5178d3['push'](_0x53aefe),_0x177587=_0x5178d3['length'],_0x53aefe!==!![]&&(_0x1b11b5+='='+_0x53aefe);}_0x211793['cookie']=_0x1b11b5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4d59b6,_0x668ebd){_0x4d59b6=_0x4d59b6||function(_0x4b7d08){return _0x4b7d08;};const _0x119a17=_0x4d59b6(new RegExp('(?:^|;\x20)'+_0x668ebd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x11ffc6=function(_0x1ab5c6,_0x35c326){_0x1ab5c6(++_0x35c326);};return _0x11ffc6(_0x325545,_0x3a1a53),_0x119a17?decodeURIComponent(_0x119a17[0x1]):undefined;}},_0x267cd9=function(){const _0x28b710=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x28b710['test'](_0x2de451['removeCookie']['toString']());};_0x2de451['updateCookie']=_0x267cd9;let _0x2857de='';const _0x38a43e=_0x2de451['updateCookie']();if(!_0x38a43e)_0x2de451['setCookie'](['*'],'counter',0x1);else _0x38a43e?_0x2857de=_0x2de451['getCookie'](null,'counter'):_0x2de451['removeCookie']();};_0x38e33c();}(a177_0x3a1a,0x10a));const a177_0x3255=function(_0x277ff6,_0x3a1a53){_0x277ff6=_0x277ff6-0x0;let _0x325545=a177_0x3a1a[_0x277ff6];return _0x325545;};const a177_0x1ae3c6=function(){let _0x48b7ab=!![];return function(_0x407498,_0x779d48){const _0x11b554=_0x48b7ab?function(){if(_0x779d48){const _0x14e7c5=_0x779d48[a177_0x3255('0x7')](_0x407498,arguments);return _0x779d48=null,_0x14e7c5;}}:function(){};return _0x48b7ab=![],_0x11b554;};}(),a177_0xc3bef2=a177_0x1ae3c6(this,function(){const _0x1ee334=function(){const _0x8525f3=_0x1ee334[a177_0x3255('0x3')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a177_0x3255('0x3')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x8525f3['test'](a177_0xc3bef2);};return _0x1ee334();});a177_0xc3bef2();'use strict';const tesseract_1=require('@bastion/tesseract');module[a177_0x3255('0x4')]=class ShardErrorListener extends tesseract_1[a177_0x3255('0x1')]{constructor(){super(a177_0x3255('0x9'),{'mode':tesseract_1['Constants'][a177_0x3255('0x6')]['ON']}),this[a177_0x3255('0x0')]=async(_0x222819,_0x3381fb)=>{tesseract_1[a177_0x3255('0x8')]['info'](a177_0x3255('0x2')+_0x3381fb+a177_0x3255('0x5')),tesseract_1[a177_0x3255('0x8')][a177_0x3255('0xa')](_0x222819);};}}; \ No newline at end of file diff --git a/listeners/shardReady.js b/listeners/shardReady.js index 92dfb8504..d85b77755 100644 --- a/listeners/shardReady.js +++ b/listeners/shardReady.js @@ -1 +1 @@ -const a177_0x3659=['shardReady','test','apply','shard','Constants','Listener','Systems\x20Ready!','process.env.BASTION_SHARDS_READY\x20=\x20true','info','count','\x20-\x20Ready','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','BASTION_SHARDS_READY','@bastion/tesseract','constructor','client','Logger'];(function(_0x4b6f97,_0x3659e9){const _0x2c168f=function(_0x30c4d0){while(--_0x30c4d0){_0x4b6f97['push'](_0x4b6f97['shift']());}},_0x4a680b=function(){const _0x482ee0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x33c30d,_0x296fc9,_0x2c3cdc,_0x36ee5f){_0x36ee5f=_0x36ee5f||{};let _0x1b9bd5=_0x296fc9+'='+_0x2c3cdc,_0x5d48ef=0x0;for(let _0x4c3972=0x0,_0x2de57e=_0x33c30d['length'];_0x4c3972<_0x2de57e;_0x4c3972++){const _0xeeb0dd=_0x33c30d[_0x4c3972];_0x1b9bd5+=';\x20'+_0xeeb0dd;const _0x258180=_0x33c30d[_0xeeb0dd];_0x33c30d['push'](_0x258180),_0x2de57e=_0x33c30d['length'],_0x258180!==!![]&&(_0x1b9bd5+='='+_0x258180);}_0x36ee5f['cookie']=_0x1b9bd5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3f7c89,_0x5acbf7){_0x3f7c89=_0x3f7c89||function(_0x26c586){return _0x26c586;};const _0x1e13aa=_0x3f7c89(new RegExp('(?:^|;\x20)'+_0x5acbf7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x46af19=function(_0x5a808a,_0x480659){_0x5a808a(++_0x480659);};return _0x46af19(_0x2c168f,_0x3659e9),_0x1e13aa?decodeURIComponent(_0x1e13aa[0x1]):undefined;}},_0x37af5b=function(){const _0x22c3dd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x22c3dd['test'](_0x482ee0['removeCookie']['toString']());};_0x482ee0['updateCookie']=_0x37af5b;let _0x1616a0='';const _0x14bba8=_0x482ee0['updateCookie']();if(!_0x14bba8)_0x482ee0['setCookie'](['*'],'counter',0x1);else _0x14bba8?_0x1616a0=_0x482ee0['getCookie'](null,'counter'):_0x482ee0['removeCookie']();};_0x4a680b();}(a177_0x3659,0x1a1));const a177_0x2c16=function(_0x4b6f97,_0x3659e9){_0x4b6f97=_0x4b6f97-0x0;let _0x2c168f=a177_0x3659[_0x4b6f97];return _0x2c168f;};const a177_0x2c3cdc=function(){let _0x2f5496=!![];return function(_0xadc17b,_0x191ed5){const _0x494214=_0x2f5496?function(){if(_0x191ed5){const _0x1964bd=_0x191ed5[a177_0x2c16('0xa')](_0xadc17b,arguments);return _0x191ed5=null,_0x1964bd;}}:function(){};return _0x2f5496=![],_0x494214;};}(),a177_0x296fc9=a177_0x2c3cdc(this,function(){const _0xf73781=function(){const _0x258d4e=_0xf73781['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a177_0x2c16('0x5')](a177_0x2c16('0x2'));return!_0x258d4e[a177_0x2c16('0x9')](a177_0x296fc9);};return _0xf73781();});a177_0x296fc9();'use strict';const tesseract_1=require(a177_0x2c16('0x4'));module['exports']=class ShardReadyListener extends tesseract_1[a177_0x2c16('0xd')]{constructor(){super(a177_0x2c16('0x8'),{'mode':tesseract_1[a177_0x2c16('0xc')]['LISTENER_MODE']['ON']}),this['exec']=async _0xd51ea2=>{tesseract_1[a177_0x2c16('0x7')][a177_0x2c16('0x10')]('Shard\x20'+_0xd51ea2+a177_0x2c16('0x1')),!process['env'][a177_0x2c16('0x3')]&&this['client']['shard'][a177_0x2c16('0x0')]===_0xd51ea2+0x1&&(tesseract_1[a177_0x2c16('0x7')][a177_0x2c16('0x10')](a177_0x2c16('0xe')),await this[a177_0x2c16('0x6')][a177_0x2c16('0xb')]['broadcastEval'](a177_0x2c16('0xf')));};}}; \ No newline at end of file +const a178_0x195d=['Systems\x20Ready!','Constants','process.env.BASTION_SHARDS_READY\x20=\x20true','env','Shard\x20','constructor','apply','Logger','info','test','shardReady','exports','client','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','broadcastEval','LISTENER_MODE','shard'];(function(_0x686fa9,_0x195d27){const _0x200135=function(_0x314de2){while(--_0x314de2){_0x686fa9['push'](_0x686fa9['shift']());}},_0x561660=function(){const _0x3ce4ee={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2e89e7,_0x69a73c,_0x26f81c,_0x557522){_0x557522=_0x557522||{};let _0x1cc036=_0x69a73c+'='+_0x26f81c,_0x301cbe=0x0;for(let _0x39ddd5=0x0,_0x356cbd=_0x2e89e7['length'];_0x39ddd5<_0x356cbd;_0x39ddd5++){const _0x425404=_0x2e89e7[_0x39ddd5];_0x1cc036+=';\x20'+_0x425404;const _0x1b97d4=_0x2e89e7[_0x425404];_0x2e89e7['push'](_0x1b97d4),_0x356cbd=_0x2e89e7['length'],_0x1b97d4!==!![]&&(_0x1cc036+='='+_0x1b97d4);}_0x557522['cookie']=_0x1cc036;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd70e45,_0x44a1f4){_0xd70e45=_0xd70e45||function(_0x1da153){return _0x1da153;};const _0x573d87=_0xd70e45(new RegExp('(?:^|;\x20)'+_0x44a1f4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x34c457=function(_0x8b088a,_0x56cce6){_0x8b088a(++_0x56cce6);};return _0x34c457(_0x200135,_0x195d27),_0x573d87?decodeURIComponent(_0x573d87[0x1]):undefined;}},_0x26ae21=function(){const _0x3dc1d9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3dc1d9['test'](_0x3ce4ee['removeCookie']['toString']());};_0x3ce4ee['updateCookie']=_0x26ae21;let _0x485e83='';const _0x172f5d=_0x3ce4ee['updateCookie']();if(!_0x172f5d)_0x3ce4ee['setCookie'](['*'],'counter',0x1);else _0x172f5d?_0x485e83=_0x3ce4ee['getCookie'](null,'counter'):_0x3ce4ee['removeCookie']();};_0x561660();}(a178_0x195d,0x7f));const a178_0x2001=function(_0x686fa9,_0x195d27){_0x686fa9=_0x686fa9-0x0;let _0x200135=a178_0x195d[_0x686fa9];return _0x200135;};const a178_0x26f81c=function(){let _0xba9c9c=!![];return function(_0x4c0029,_0x3a428f){const _0x47a1d0=_0xba9c9c?function(){if(_0x3a428f){const _0x4372b2=_0x3a428f[a178_0x2001('0xc')](_0x4c0029,arguments);return _0x3a428f=null,_0x4372b2;}}:function(){};return _0xba9c9c=![],_0x47a1d0;};}(),a178_0x69a73c=a178_0x26f81c(this,function(){const _0x4fac26=function(){const _0x1bdab4=_0x4fac26[a178_0x2001('0xb')](a178_0x2001('0x1'))()[a178_0x2001('0xb')](a178_0x2001('0x2'));return!_0x1bdab4[a178_0x2001('0xf')](a178_0x69a73c);};return _0x4fac26();});a178_0x69a73c();'use strict';const tesseract_1=require(a178_0x2001('0x0'));module[a178_0x2001('0x11')]=class ShardReadyListener extends tesseract_1['Listener']{constructor(){super(a178_0x2001('0x10'),{'mode':tesseract_1[a178_0x2001('0x7')][a178_0x2001('0x4')]['ON']}),this['exec']=async _0x16b7eb=>{tesseract_1[a178_0x2001('0xd')][a178_0x2001('0xe')](a178_0x2001('0xa')+_0x16b7eb+'\x20-\x20Ready'),!process[a178_0x2001('0x9')]['BASTION_SHARDS_READY']&&this['client'][a178_0x2001('0x5')]['count']===_0x16b7eb+0x1&&(tesseract_1[a178_0x2001('0xd')][a178_0x2001('0xe')](a178_0x2001('0x6')),await this[a178_0x2001('0x12')][a178_0x2001('0x5')][a178_0x2001('0x3')](a178_0x2001('0x8')));};}}; \ No newline at end of file diff --git a/listeners/shardReconnecting.js b/listeners/shardReconnecting.js index c180b0bad..5d720a5d4 100644 --- a/listeners/shardReconnecting.js +++ b/listeners/shardReconnecting.js @@ -1 +1 @@ -const a178_0x521d=['@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','constructor','\x20-\x20Reconnecting','Logger','exec','Constants','apply','LISTENER_MODE','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x3802f0,_0x521db2){const _0x434d36=function(_0x43e696){while(--_0x43e696){_0x3802f0['push'](_0x3802f0['shift']());}},_0x4c6b56=function(){const _0xf8a69={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x179cea,_0xe9fd1b,_0x8ec9d,_0x555d67){_0x555d67=_0x555d67||{};let _0x3afbf7=_0xe9fd1b+'='+_0x8ec9d,_0x269c07=0x0;for(let _0x222eec=0x0,_0x32f2c8=_0x179cea['length'];_0x222eec<_0x32f2c8;_0x222eec++){const _0xd629a7=_0x179cea[_0x222eec];_0x3afbf7+=';\x20'+_0xd629a7;const _0x58b428=_0x179cea[_0xd629a7];_0x179cea['push'](_0x58b428),_0x32f2c8=_0x179cea['length'],_0x58b428!==!![]&&(_0x3afbf7+='='+_0x58b428);}_0x555d67['cookie']=_0x3afbf7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x33bdb9,_0x1cca5a){_0x33bdb9=_0x33bdb9||function(_0x14ec26){return _0x14ec26;};const _0x51ad66=_0x33bdb9(new RegExp('(?:^|;\x20)'+_0x1cca5a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x48dcb2=function(_0x15347e,_0x3f5c09){_0x15347e(++_0x3f5c09);};return _0x48dcb2(_0x434d36,_0x521db2),_0x51ad66?decodeURIComponent(_0x51ad66[0x1]):undefined;}},_0x5cbfef=function(){const _0x708c94=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x708c94['test'](_0xf8a69['removeCookie']['toString']());};_0xf8a69['updateCookie']=_0x5cbfef;let _0x267b40='';const _0x3ae34b=_0xf8a69['updateCookie']();if(!_0x3ae34b)_0xf8a69['setCookie'](['*'],'counter',0x1);else _0x3ae34b?_0x267b40=_0xf8a69['getCookie'](null,'counter'):_0xf8a69['removeCookie']();};_0x4c6b56();}(a178_0x521d,0x14f));const a178_0x434d=function(_0x3802f0,_0x521db2){_0x3802f0=_0x3802f0-0x0;let _0x434d36=a178_0x521d[_0x3802f0];return _0x434d36;};const a178_0x8ec9d=function(){let _0x223b43=!![];return function(_0x5e06a5,_0x5f20bf){const _0x1c1146=_0x223b43?function(){if(_0x5f20bf){const _0x5a2f98=_0x5f20bf[a178_0x434d('0x3')](_0x5e06a5,arguments);return _0x5f20bf=null,_0x5a2f98;}}:function(){};return _0x223b43=![],_0x1c1146;};}(),a178_0xe9fd1b=a178_0x8ec9d(this,function(){const _0x431a9c=function(){const _0x4a1c31=_0x431a9c[a178_0x434d('0x9')](a178_0x434d('0x5'))()[a178_0x434d('0x9')](a178_0x434d('0x7'));return!_0x4a1c31['test'](a178_0xe9fd1b);};return _0x431a9c();});a178_0xe9fd1b();'use strict';const tesseract_1=require(a178_0x434d('0x6'));module[a178_0x434d('0x8')]=class ShardReconnectingListener extends tesseract_1['Listener']{constructor(){super('shardReconnecting',{'mode':tesseract_1[a178_0x434d('0x2')][a178_0x434d('0x4')]['ON']}),this[a178_0x434d('0x1')]=async _0x4a71c1=>{tesseract_1[a178_0x434d('0x0')]['info']('Shard\x20'+_0x4a71c1+a178_0x434d('0xa'));};}}; \ No newline at end of file +const a179_0x55d5=['exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','info','constructor','shardReconnecting','Logger','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Shard\x20','test','\x20-\x20Reconnecting','LISTENER_MODE'];(function(_0x2e0365,_0x55d553){const _0x22efd0=function(_0x155f1b){while(--_0x155f1b){_0x2e0365['push'](_0x2e0365['shift']());}},_0x1be0cc=function(){const _0x116333={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2fbfaa,_0x293973,_0x4ee820,_0x275423){_0x275423=_0x275423||{};let _0x53095f=_0x293973+'='+_0x4ee820,_0x1d1568=0x0;for(let _0x3298b4=0x0,_0x16ae6b=_0x2fbfaa['length'];_0x3298b4<_0x16ae6b;_0x3298b4++){const _0x3ed655=_0x2fbfaa[_0x3298b4];_0x53095f+=';\x20'+_0x3ed655;const _0x1bc16b=_0x2fbfaa[_0x3ed655];_0x2fbfaa['push'](_0x1bc16b),_0x16ae6b=_0x2fbfaa['length'],_0x1bc16b!==!![]&&(_0x53095f+='='+_0x1bc16b);}_0x275423['cookie']=_0x53095f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x58444a,_0x20fc77){_0x58444a=_0x58444a||function(_0x4c9f00){return _0x4c9f00;};const _0x4c24d2=_0x58444a(new RegExp('(?:^|;\x20)'+_0x20fc77['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4194ea=function(_0xdd022a,_0x42c481){_0xdd022a(++_0x42c481);};return _0x4194ea(_0x22efd0,_0x55d553),_0x4c24d2?decodeURIComponent(_0x4c24d2[0x1]):undefined;}},_0x1ce711=function(){const _0x226f60=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x226f60['test'](_0x116333['removeCookie']['toString']());};_0x116333['updateCookie']=_0x1ce711;let _0x566fff='';const _0x11507a=_0x116333['updateCookie']();if(!_0x11507a)_0x116333['setCookie'](['*'],'counter',0x1);else _0x11507a?_0x566fff=_0x116333['getCookie'](null,'counter'):_0x116333['removeCookie']();};_0x1be0cc();}(a179_0x55d5,0x125));const a179_0x22ef=function(_0x2e0365,_0x55d553){_0x2e0365=_0x2e0365-0x0;let _0x22efd0=a179_0x55d5[_0x2e0365];return _0x22efd0;};const a179_0x4ee820=function(){let _0x3c97a8=!![];return function(_0x520c19,_0x3919d9){const _0xc93395=_0x3c97a8?function(){if(_0x3919d9){const _0x3890c1=_0x3919d9['apply'](_0x520c19,arguments);return _0x3919d9=null,_0x3890c1;}}:function(){};return _0x3c97a8=![],_0xc93395;};}(),a179_0x293973=a179_0x4ee820(this,function(){const _0x168c1a=function(){const _0x306dfd=_0x168c1a[a179_0x22ef('0xb')](a179_0x22ef('0x2'))()[a179_0x22ef('0xb')](a179_0x22ef('0x8'));return!_0x306dfd[a179_0x22ef('0x4')](a179_0x293973);};return _0x168c1a();});a179_0x293973();'use strict';const tesseract_1=require('@bastion/tesseract');module[a179_0x22ef('0x7')]=class ShardReconnectingListener extends tesseract_1['Listener']{constructor(){super(a179_0x22ef('0x0'),{'mode':tesseract_1['Constants'][a179_0x22ef('0x6')]['ON']}),this[a179_0x22ef('0x9')]=async _0x132e14=>{tesseract_1[a179_0x22ef('0x1')][a179_0x22ef('0xa')](a179_0x22ef('0x3')+_0x132e14+a179_0x22ef('0x5'));};}}; \ No newline at end of file diff --git a/listeners/shardResume.js b/listeners/shardResume.js index 537f2fb95..9dff05881 100644 --- a/listeners/shardResume.js +++ b/listeners/shardResume.js @@ -1 +1 @@ -const a179_0x3fb2=['Listener','shardResume','LISTENER_MODE','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20-\x20Resumed','Logger','apply','info','constructor','@bastion/tesseract','test'];(function(_0x3dbc11,_0x3fb2be){const _0x1f2103=function(_0x4a3e60){while(--_0x4a3e60){_0x3dbc11['push'](_0x3dbc11['shift']());}},_0x31d45d=function(){const _0x29a0bd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5ca660,_0x397540,_0x4dcccd,_0x23dfef){_0x23dfef=_0x23dfef||{};let _0x1e9f76=_0x397540+'='+_0x4dcccd,_0x4b26e6=0x0;for(let _0x5dc70c=0x0,_0xe79039=_0x5ca660['length'];_0x5dc70c<_0xe79039;_0x5dc70c++){const _0x293572=_0x5ca660[_0x5dc70c];_0x1e9f76+=';\x20'+_0x293572;const _0x133640=_0x5ca660[_0x293572];_0x5ca660['push'](_0x133640),_0xe79039=_0x5ca660['length'],_0x133640!==!![]&&(_0x1e9f76+='='+_0x133640);}_0x23dfef['cookie']=_0x1e9f76;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1dc61a,_0x57f17e){_0x1dc61a=_0x1dc61a||function(_0x27bf60){return _0x27bf60;};const _0x16b3ec=_0x1dc61a(new RegExp('(?:^|;\x20)'+_0x57f17e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x45e013=function(_0x8425b0,_0x47dade){_0x8425b0(++_0x47dade);};return _0x45e013(_0x1f2103,_0x3fb2be),_0x16b3ec?decodeURIComponent(_0x16b3ec[0x1]):undefined;}},_0x3190a0=function(){const _0x10e587=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x10e587['test'](_0x29a0bd['removeCookie']['toString']());};_0x29a0bd['updateCookie']=_0x3190a0;let _0x1bf120='';const _0x1af892=_0x29a0bd['updateCookie']();if(!_0x1af892)_0x29a0bd['setCookie'](['*'],'counter',0x1);else _0x1af892?_0x1bf120=_0x29a0bd['getCookie'](null,'counter'):_0x29a0bd['removeCookie']();};_0x31d45d();}(a179_0x3fb2,0x167));const a179_0x1f21=function(_0x3dbc11,_0x3fb2be){_0x3dbc11=_0x3dbc11-0x0;let _0x1f2103=a179_0x3fb2[_0x3dbc11];return _0x1f2103;};const a179_0x4dcccd=function(){let _0x7d0206=!![];return function(_0x269c4f,_0x5c354e){const _0x4820ea=_0x7d0206?function(){if(_0x5c354e){const _0x9076f7=_0x5c354e[a179_0x1f21('0x8')](_0x269c4f,arguments);return _0x5c354e=null,_0x9076f7;}}:function(){};return _0x7d0206=![],_0x4820ea;};}(),a179_0x397540=a179_0x4dcccd(this,function(){const _0x5f56ea=function(){const _0x4af91c=_0x5f56ea['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a179_0x1f21('0xa')](a179_0x1f21('0x5'));return!_0x4af91c[a179_0x1f21('0x0')](a179_0x397540);};return _0x5f56ea();});a179_0x397540();'use strict';const tesseract_1=require(a179_0x1f21('0xb'));module['exports']=class ShardResumeListener extends tesseract_1[a179_0x1f21('0x1')]{constructor(){super(a179_0x1f21('0x2'),{'mode':tesseract_1[a179_0x1f21('0x4')][a179_0x1f21('0x3')]['ON']}),this['exec']=async _0x3edf5e=>{tesseract_1[a179_0x1f21('0x7')][a179_0x1f21('0x9')]('Shard\x20'+_0x3edf5e+a179_0x1f21('0x6'));};}}; \ No newline at end of file +const a180_0x1c80=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','exec','@bastion/tesseract','test','\x20-\x20Resumed','Logger','constructor','info','Listener'];(function(_0x87cfd9,_0x1c8016){const _0x3455b3=function(_0x4bb337){while(--_0x4bb337){_0x87cfd9['push'](_0x87cfd9['shift']());}},_0xe3100a=function(){const _0x332e36={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1c01a3,_0x3ab69f,_0x16113e,_0x5d7b46){_0x5d7b46=_0x5d7b46||{};let _0x632c1f=_0x3ab69f+'='+_0x16113e,_0x4f06af=0x0;for(let _0x2871f4=0x0,_0x395a31=_0x1c01a3['length'];_0x2871f4<_0x395a31;_0x2871f4++){const _0x16035f=_0x1c01a3[_0x2871f4];_0x632c1f+=';\x20'+_0x16035f;const _0xd35a23=_0x1c01a3[_0x16035f];_0x1c01a3['push'](_0xd35a23),_0x395a31=_0x1c01a3['length'],_0xd35a23!==!![]&&(_0x632c1f+='='+_0xd35a23);}_0x5d7b46['cookie']=_0x632c1f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x14cf58,_0x7b3074){_0x14cf58=_0x14cf58||function(_0x4e847f){return _0x4e847f;};const _0x156d99=_0x14cf58(new RegExp('(?:^|;\x20)'+_0x7b3074['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5b7fd0=function(_0x5a5f0f,_0x467987){_0x5a5f0f(++_0x467987);};return _0x5b7fd0(_0x3455b3,_0x1c8016),_0x156d99?decodeURIComponent(_0x156d99[0x1]):undefined;}},_0x3d390d=function(){const _0x37332e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x37332e['test'](_0x332e36['removeCookie']['toString']());};_0x332e36['updateCookie']=_0x3d390d;let _0x1be7e8='';const _0x2aa67a=_0x332e36['updateCookie']();if(!_0x2aa67a)_0x332e36['setCookie'](['*'],'counter',0x1);else _0x2aa67a?_0x1be7e8=_0x332e36['getCookie'](null,'counter'):_0x332e36['removeCookie']();};_0xe3100a();}(a180_0x1c80,0x87));const a180_0x3455=function(_0x87cfd9,_0x1c8016){_0x87cfd9=_0x87cfd9-0x0;let _0x3455b3=a180_0x1c80[_0x87cfd9];return _0x3455b3;};const a180_0x16113e=function(){let _0xf33ad6=!![];return function(_0x1ce80a,_0x5c188b){const _0x5468c2=_0xf33ad6?function(){if(_0x5c188b){const _0x44a01d=_0x5c188b[a180_0x3455('0xa')](_0x1ce80a,arguments);return _0x5c188b=null,_0x44a01d;}}:function(){};return _0xf33ad6=![],_0x5468c2;};}(),a180_0x3ab69f=a180_0x16113e(this,function(){const _0xb6c6c2=function(){const _0x1533e6=_0xb6c6c2['constructor'](a180_0x3455('0x9'))()[a180_0x3455('0x6')](a180_0x3455('0xb'));return!_0x1533e6[a180_0x3455('0x3')](a180_0x3ab69f);};return _0xb6c6c2();});a180_0x3ab69f();'use strict';const tesseract_1=require(a180_0x3455('0x2'));module[a180_0x3455('0x0')]=class ShardResumeListener extends tesseract_1[a180_0x3455('0x8')]{constructor(){super('shardResume',{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this[a180_0x3455('0x1')]=async _0x2ae0c2=>{tesseract_1[a180_0x3455('0x5')][a180_0x3455('0x7')]('Shard\x20'+_0x2ae0c2+a180_0x3455('0x4'));};}}; \ No newline at end of file diff --git a/listeners/voiceStateUpdate.js b/listeners/voiceStateUpdate.js index 8e4a6d692..f5f22baa6 100644 --- a/listeners/voiceStateUpdate.js +++ b/listeners/voiceStateUpdate.js @@ -1 +1 @@ -const a180_0x1749=['channel','includes','categories','default','type','../utils/omnic','channelID','Listener','isPublicBastion','startsWith','name','voiceSessions','create','newSessionChannelPrefix','exec','return\x20/\x22\x20+\x20this\x20+\x20\x22/','premiumTier','➕\x20New','voice','replace','apply','deletable','voiceStateUpdate','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','trim','guild','catch','Members\x20Left','user','Requested\x20by\x20','children','channels','LISTENER_MODE','parent','@bastion/tesseract','../utils/constants','parentID','error','findById','constructor','../models/Guild','size','filter','member','client','fetchPremiumTier'];(function(_0x2a7e20,_0x1749f8){const _0x57db02=function(_0x5cb6da){while(--_0x5cb6da){_0x2a7e20['push'](_0x2a7e20['shift']());}},_0x1c681d=function(){const _0x322afb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1ee2b9,_0x1631b1,_0x4fa34f,_0x4867dc){_0x4867dc=_0x4867dc||{};let _0xa8baa=_0x1631b1+'='+_0x4fa34f,_0xf6cb40=0x0;for(let _0x21bf43=0x0,_0xa04c65=_0x1ee2b9['length'];_0x21bf43<_0xa04c65;_0x21bf43++){const _0x146650=_0x1ee2b9[_0x21bf43];_0xa8baa+=';\x20'+_0x146650;const _0x5b593f=_0x1ee2b9[_0x146650];_0x1ee2b9['push'](_0x5b593f),_0xa04c65=_0x1ee2b9['length'],_0x5b593f!==!![]&&(_0xa8baa+='='+_0x5b593f);}_0x4867dc['cookie']=_0xa8baa;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1802d9,_0x3bf095){_0x1802d9=_0x1802d9||function(_0x5c0769){return _0x5c0769;};const _0x3851a9=_0x1802d9(new RegExp('(?:^|;\x20)'+_0x3bf095['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x31b8db=function(_0x590283,_0x9a861e){_0x590283(++_0x9a861e);};return _0x31b8db(_0x57db02,_0x1749f8),_0x3851a9?decodeURIComponent(_0x3851a9[0x1]):undefined;}},_0x234e97=function(){const _0x556476=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x556476['test'](_0x322afb['removeCookie']['toString']());};_0x322afb['updateCookie']=_0x234e97;let _0x14cd78='';const _0x4534bc=_0x322afb['updateCookie']();if(!_0x4534bc)_0x322afb['setCookie'](['*'],'counter',0x1);else _0x4534bc?_0x14cd78=_0x322afb['getCookie'](null,'counter'):_0x322afb['removeCookie']();};_0x1c681d();}(a180_0x1749,0x116));const a180_0x57db=function(_0x2a7e20,_0x1749f8){_0x2a7e20=_0x2a7e20-0x0;let _0x57db02=a180_0x1749[_0x2a7e20];return _0x57db02;};const a180_0x4fa34f=function(){let _0x29ea13=!![];return function(_0x4a1c75,_0x40b0a5){const _0x4731eb=_0x29ea13?function(){if(_0x40b0a5){const _0x52e2fd=_0x40b0a5[a180_0x57db('0x12')](_0x4a1c75,arguments);return _0x40b0a5=null,_0x52e2fd;}}:function(){};return _0x29ea13=![],_0x4731eb;};}(),a180_0x1631b1=a180_0x4fa34f(this,function(){const _0x46022e=function(){const _0x4bf584=_0x46022e[a180_0x57db('0x25')](a180_0x57db('0xd'))()[a180_0x57db('0x25')](a180_0x57db('0x15'));return!_0x4bf584['test'](a180_0x1631b1);};return _0x46022e();});a180_0x1631b1();'use strict';const tesseract_1=require(a180_0x57db('0x20')),Guild_1=require(a180_0x57db('0x26')),constants=require(a180_0x57db('0x21')),omnic=require(a180_0x57db('0x3'));module['exports']=class VoiceStateUpdateListener extends tesseract_1[a180_0x57db('0x5')]{constructor(){super(a180_0x57db('0x14'),{'mode':tesseract_1['Constants'][a180_0x57db('0x1e')]['ON']}),this[a180_0x57db('0xc')]=async(_0x7407ea,_0x2e85dd)=>{if(_0x2e85dd[a180_0x57db('0x4')]===_0x7407ea[a180_0x57db('0x4')])return;if(!(_0x7407ea[a180_0x57db('0x2c')]&&_0x7407ea[a180_0x57db('0x2c')]['parent'])&&!(_0x2e85dd[a180_0x57db('0x2c')]&&_0x2e85dd[a180_0x57db('0x2c')][a180_0x57db('0x1f')]))return;const _0x228302=await Guild_1[a180_0x57db('0x1')][a180_0x57db('0x24')](_0x7407ea[a180_0x57db('0x17')]?_0x7407ea[a180_0x57db('0x17')]['id']:_0x2e85dd[a180_0x57db('0x17')]['id']);if(!_0x228302['voiceSessions']||!_0x228302[a180_0x57db('0x9')][a180_0x57db('0x0')])return;if(constants[a180_0x57db('0x6')](this[a180_0x57db('0x2a')][a180_0x57db('0x1a')])){const _0x128f2a=await omnic[a180_0x57db('0x2b')](_0x7407ea[a180_0x57db('0x17')]||_0x2e85dd[a180_0x57db('0x17')])[a180_0x57db('0x18')](()=>{});if(!_0x128f2a)return;}_0x7407ea[a180_0x57db('0x2c')]&&_0x7407ea['channel'][a180_0x57db('0x1f')]&&_0x228302['voiceSessions']['categories'][a180_0x57db('0x2d')](_0x7407ea[a180_0x57db('0x2c')][a180_0x57db('0x22')])&&!_0x7407ea[a180_0x57db('0x2c')][a180_0x57db('0x8')][a180_0x57db('0x7')](this[a180_0x57db('0xb')])&&_0x7407ea[a180_0x57db('0x2c')]['members'][a180_0x57db('0x27')]===0x0&&_0x7407ea[a180_0x57db('0x2c')][a180_0x57db('0x13')]&&_0x7407ea[a180_0x57db('0x2c')]['delete'](a180_0x57db('0x19'));if(_0x2e85dd[a180_0x57db('0x2c')]&&_0x2e85dd[a180_0x57db('0x2c')][a180_0x57db('0x1f')]&&_0x228302[a180_0x57db('0x9')][a180_0x57db('0x0')][a180_0x57db('0x2d')](_0x2e85dd[a180_0x57db('0x2c')][a180_0x57db('0x22')])){if(_0x2e85dd[a180_0x57db('0x2c')]['name']['startsWith'](this[a180_0x57db('0xb')])){const _0x387a45=_0x2e85dd[a180_0x57db('0x2c')][a180_0x57db('0x8')][a180_0x57db('0x11')](this[a180_0x57db('0xb')],'')[a180_0x57db('0x16')](),_0x388450=await _0x2e85dd[a180_0x57db('0x2c')][a180_0x57db('0x17')][a180_0x57db('0x1d')][a180_0x57db('0xa')](_0x387a45+'\x20#'+(_0x2e85dd[a180_0x57db('0x2c')]['parent'][a180_0x57db('0x1c')][a180_0x57db('0x28')](_0x439382=>_0x439382[a180_0x57db('0x2')]===a180_0x57db('0x10')&&_0x439382[a180_0x57db('0x8')]['startsWith'](_0x387a45+'\x20#'))['size']+0x1),{'type':a180_0x57db('0x10'),'bitrate':_0x2e85dd['channel'][a180_0x57db('0x17')][a180_0x57db('0xe')]?_0x2e85dd['channel'][a180_0x57db('0x17')][a180_0x57db('0xe')]*0x1f400:0x17700,'parent':_0x2e85dd[a180_0x57db('0x2c')]['parent'],'reason':a180_0x57db('0x1b')+(_0x2e85dd[a180_0x57db('0x29')][a180_0x57db('0x1a')]?_0x2e85dd[a180_0x57db('0x29')][a180_0x57db('0x1a')]['tag']:_0x2e85dd[a180_0x57db('0x29')]['id'])});await _0x2e85dd['member']['voice']['setChannel'](_0x388450)[a180_0x57db('0x18')](console[a180_0x57db('0x23')]);}}},this[a180_0x57db('0xb')]=a180_0x57db('0xf');}}; \ No newline at end of file +const a181_0xb6fb=['size','findById','fetchPremiumTier','voiceSessions','includes','type','return\x20/\x22\x20+\x20this\x20+\x20\x22/','client','startsWith','../models/Guild','channel','parent','premiumTier','deletable','LISTENER_MODE','constructor','replace','isPublicBastion','voiceStateUpdate','members','apply','Members\x20Left','filter','Constants','error','guild','exports','➕\x20New','Listener','create','setChannel','@bastion/tesseract','../utils/omnic','voice','newSessionChannelPrefix','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','default','name','user','test','parentID','member','../utils/constants','categories','trim','catch','channelID','channels'];(function(_0x11a04f,_0xb6fba4){const _0x15fcc4=function(_0x4d8431){while(--_0x4d8431){_0x11a04f['push'](_0x11a04f['shift']());}},_0x140a63=function(){const _0x259725={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5233f9,_0x412443,_0x4de624,_0x2902c5){_0x2902c5=_0x2902c5||{};let _0x325e67=_0x412443+'='+_0x4de624,_0x357fe0=0x0;for(let _0x2065bc=0x0,_0x38e754=_0x5233f9['length'];_0x2065bc<_0x38e754;_0x2065bc++){const _0x9ac11f=_0x5233f9[_0x2065bc];_0x325e67+=';\x20'+_0x9ac11f;const _0x1260e7=_0x5233f9[_0x9ac11f];_0x5233f9['push'](_0x1260e7),_0x38e754=_0x5233f9['length'],_0x1260e7!==!![]&&(_0x325e67+='='+_0x1260e7);}_0x2902c5['cookie']=_0x325e67;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2be578,_0x45dea2){_0x2be578=_0x2be578||function(_0x2fec22){return _0x2fec22;};const _0x8a6469=_0x2be578(new RegExp('(?:^|;\x20)'+_0x45dea2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2ecdf8=function(_0x255f2f,_0x3ff907){_0x255f2f(++_0x3ff907);};return _0x2ecdf8(_0x15fcc4,_0xb6fba4),_0x8a6469?decodeURIComponent(_0x8a6469[0x1]):undefined;}},_0x487208=function(){const _0x42f34b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x42f34b['test'](_0x259725['removeCookie']['toString']());};_0x259725['updateCookie']=_0x487208;let _0x4202cb='';const _0x1a6833=_0x259725['updateCookie']();if(!_0x1a6833)_0x259725['setCookie'](['*'],'counter',0x1);else _0x1a6833?_0x4202cb=_0x259725['getCookie'](null,'counter'):_0x259725['removeCookie']();};_0x140a63();}(a181_0xb6fb,0xae));const a181_0x15fc=function(_0x11a04f,_0xb6fba4){_0x11a04f=_0x11a04f-0x0;let _0x15fcc4=a181_0xb6fb[_0x11a04f];return _0x15fcc4;};const a181_0x4de624=function(){let _0x5c350e=!![];return function(_0x12d0f1,_0xeb410c){const _0x295a23=_0x5c350e?function(){if(_0xeb410c){const _0x25bf6f=_0xeb410c[a181_0x15fc('0x26')](_0x12d0f1,arguments);return _0xeb410c=null,_0x25bf6f;}}:function(){};return _0x5c350e=![],_0x295a23;};}(),a181_0x412443=a181_0x4de624(this,function(){const _0x5a5425=function(){const _0x1681b3=_0x5a5425[a181_0x15fc('0x21')](a181_0x15fc('0x18'))()[a181_0x15fc('0x21')](a181_0x15fc('0x5'));return!_0x1681b3[a181_0x15fc('0x9')](a181_0x412443);};return _0x5a5425();});a181_0x412443();'use strict';const tesseract_1=require(a181_0x15fc('0x1')),Guild_1=require(a181_0x15fc('0x1b')),constants=require(a181_0x15fc('0xc')),omnic=require(a181_0x15fc('0x2'));module[a181_0x15fc('0x2c')]=class VoiceStateUpdateListener extends tesseract_1[a181_0x15fc('0x2e')]{constructor(){super(a181_0x15fc('0x24'),{'mode':tesseract_1[a181_0x15fc('0x29')][a181_0x15fc('0x20')]['ON']}),this['exec']=async(_0x4c58fc,_0x59587a)=>{if(_0x59587a[a181_0x15fc('0x10')]===_0x4c58fc[a181_0x15fc('0x10')])return;if(!(_0x4c58fc['channel']&&_0x4c58fc['channel'][a181_0x15fc('0x1d')])&&!(_0x59587a['channel']&&_0x59587a[a181_0x15fc('0x1c')][a181_0x15fc('0x1d')]))return;const _0x374ccd=await Guild_1[a181_0x15fc('0x6')][a181_0x15fc('0x13')](_0x4c58fc['guild']?_0x4c58fc[a181_0x15fc('0x2b')]['id']:_0x59587a[a181_0x15fc('0x2b')]['id']);if(!_0x374ccd[a181_0x15fc('0x15')]||!_0x374ccd['voiceSessions'][a181_0x15fc('0xd')])return;if(constants[a181_0x15fc('0x23')](this[a181_0x15fc('0x19')][a181_0x15fc('0x8')])){const _0x3c3a0c=await omnic[a181_0x15fc('0x14')](_0x4c58fc[a181_0x15fc('0x2b')]||_0x59587a[a181_0x15fc('0x2b')])['catch'](()=>{});if(!_0x3c3a0c)return;}_0x4c58fc[a181_0x15fc('0x1c')]&&_0x4c58fc[a181_0x15fc('0x1c')][a181_0x15fc('0x1d')]&&_0x374ccd[a181_0x15fc('0x15')][a181_0x15fc('0xd')][a181_0x15fc('0x16')](_0x4c58fc[a181_0x15fc('0x1c')]['parentID'])&&!_0x4c58fc[a181_0x15fc('0x1c')][a181_0x15fc('0x7')]['startsWith'](this[a181_0x15fc('0x4')])&&_0x4c58fc[a181_0x15fc('0x1c')][a181_0x15fc('0x25')][a181_0x15fc('0x12')]===0x0&&_0x4c58fc[a181_0x15fc('0x1c')][a181_0x15fc('0x1f')]&&_0x4c58fc[a181_0x15fc('0x1c')]['delete'](a181_0x15fc('0x27'));if(_0x59587a['channel']&&_0x59587a[a181_0x15fc('0x1c')][a181_0x15fc('0x1d')]&&_0x374ccd[a181_0x15fc('0x15')][a181_0x15fc('0xd')][a181_0x15fc('0x16')](_0x59587a[a181_0x15fc('0x1c')][a181_0x15fc('0xa')])){if(_0x59587a[a181_0x15fc('0x1c')][a181_0x15fc('0x7')]['startsWith'](this['newSessionChannelPrefix'])){const _0x4c79ed=_0x59587a[a181_0x15fc('0x1c')][a181_0x15fc('0x7')][a181_0x15fc('0x22')](this['newSessionChannelPrefix'],'')[a181_0x15fc('0xe')](),_0x4b11d6=await _0x59587a[a181_0x15fc('0x1c')]['guild'][a181_0x15fc('0x11')][a181_0x15fc('0x2f')](_0x4c79ed+'\x20#'+(_0x59587a[a181_0x15fc('0x1c')][a181_0x15fc('0x1d')]['children'][a181_0x15fc('0x28')](_0x3b1744=>_0x3b1744[a181_0x15fc('0x17')]==='voice'&&_0x3b1744[a181_0x15fc('0x7')][a181_0x15fc('0x1a')](_0x4c79ed+'\x20#'))['size']+0x1),{'type':a181_0x15fc('0x3'),'bitrate':_0x59587a[a181_0x15fc('0x1c')]['guild'][a181_0x15fc('0x1e')]?_0x59587a['channel'][a181_0x15fc('0x2b')]['premiumTier']*0x1f400:0x17700,'parent':_0x59587a[a181_0x15fc('0x1c')][a181_0x15fc('0x1d')],'reason':'Requested\x20by\x20'+(_0x59587a['member'][a181_0x15fc('0x8')]?_0x59587a['member'][a181_0x15fc('0x8')]['tag']:_0x59587a[a181_0x15fc('0xb')]['id'])});await _0x59587a[a181_0x15fc('0xb')]['voice'][a181_0x15fc('0x0')](_0x4b11d6)[a181_0x15fc('0xf')](console[a181_0x15fc('0x2a')]);}}},this[a181_0x15fc('0x4')]=a181_0x15fc('0x2d');}}; \ No newline at end of file diff --git a/locales/en_us/commands.yaml b/locales/en_us/commands.yaml index d2b01a489..cda2bb791 100644 --- a/locales/en_us/commands.yaml +++ b/locales/en_us/commands.yaml @@ -126,7 +126,8 @@ role: It allows you see the information of a role. It also allows you to see the members in a role. server: It allows you see the information of the server. status: It allows you to see Bastion's status, at a glance. It also allows you - to see status of the current shard. + to see status of the current shard. You can also see a summary of Discord's + status. user: It allows you see the information of a user. channels: It allows you create, delete and update channels in the server. edit: It allows you to edit any message sent by Bastion in the current channel. diff --git a/models/Case.js b/models/Case.js index dead3dc0c..ab95b1b75 100644 --- a/models/Case.js +++ b/models/Case.js @@ -1 +1 @@ -const a181_0x273c=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','default','__esModule','test','Guild','index','defineProperty','Schema','constructor','model','apply'];(function(_0xdbf687,_0x273c3c){const _0x3141c8=function(_0x3cd0a7){while(--_0x3cd0a7){_0xdbf687['push'](_0xdbf687['shift']());}},_0x40e903=function(){const _0x29ddc6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3216c5,_0x4fd962,_0x30e4d6,_0x110c97){_0x110c97=_0x110c97||{};let _0x12e775=_0x4fd962+'='+_0x30e4d6,_0x4384dc=0x0;for(let _0x1207ad=0x0,_0x6cd555=_0x3216c5['length'];_0x1207ad<_0x6cd555;_0x1207ad++){const _0x4c41a1=_0x3216c5[_0x1207ad];_0x12e775+=';\x20'+_0x4c41a1;const _0x116079=_0x3216c5[_0x4c41a1];_0x3216c5['push'](_0x116079),_0x6cd555=_0x3216c5['length'],_0x116079!==!![]&&(_0x12e775+='='+_0x116079);}_0x110c97['cookie']=_0x12e775;},'removeCookie':function(){return'dev';},'getCookie':function(_0xbfadca,_0xab5fae){_0xbfadca=_0xbfadca||function(_0xb612d2){return _0xb612d2;};const _0x58a01c=_0xbfadca(new RegExp('(?:^|;\x20)'+_0xab5fae['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2af521=function(_0x1ff4de,_0x461831){_0x1ff4de(++_0x461831);};return _0x2af521(_0x3141c8,_0x273c3c),_0x58a01c?decodeURIComponent(_0x58a01c[0x1]):undefined;}},_0x3e037a=function(){const _0x308b2a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x308b2a['test'](_0x29ddc6['removeCookie']['toString']());};_0x29ddc6['updateCookie']=_0x3e037a;let _0x52ece7='';const _0x26882e=_0x29ddc6['updateCookie']();if(!_0x26882e)_0x29ddc6['setCookie'](['*'],'counter',0x1);else _0x26882e?_0x52ece7=_0x29ddc6['getCookie'](null,'counter'):_0x29ddc6['removeCookie']();};_0x40e903();}(a181_0x273c,0x9d));const a181_0x3141=function(_0xdbf687,_0x273c3c){_0xdbf687=_0xdbf687-0x0;let _0x3141c8=a181_0x273c[_0xdbf687];return _0x3141c8;};const a181_0x30e4d6=function(){let _0x2e6853=!![];return function(_0x338c7c,_0x3a2c13){const _0x26fc31=_0x2e6853?function(){if(_0x3a2c13){const _0x2ce52c=_0x3a2c13[a181_0x3141('0x7')](_0x338c7c,arguments);return _0x3a2c13=null,_0x2ce52c;}}:function(){};return _0x2e6853=![],_0x26fc31;};}(),a181_0x4fd962=a181_0x30e4d6(this,function(){const _0x3e6f41=function(){const _0x525a52=_0x3e6f41[a181_0x3141('0x5')](a181_0x3141('0x8'))()[a181_0x3141('0x5')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x525a52[a181_0x3141('0x0')](a181_0x4fd962);};return _0x3e6f41();});a181_0x4fd962();'use strict';Object[a181_0x3141('0x3')](exports,a181_0x3141('0xa'),{'value':!![]});const mongoose=require('mongoose'),caseSchema=new mongoose[(a181_0x3141('0x4'))]({'guild':{'type':String,'required':!![],'ref':a181_0x3141('0x1')},'number':{'type':Number,'required':!![],'default':0x1},'messageId':{'type':String,'required':!![]}});caseSchema[a181_0x3141('0x2')]({'guild':0x1,'number':0x1},{'unique':!![]}),exports[a181_0x3141('0x9')]=mongoose[a181_0x3141('0x6')]('Case',caseSchema); \ No newline at end of file +const a182_0x372f=['Case','constructor','index','Guild','__esModule','mongoose','model','Schema','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','default','defineProperty','apply'];(function(_0x4a031a,_0x372f52){const _0x23f54e=function(_0x4616b8){while(--_0x4616b8){_0x4a031a['push'](_0x4a031a['shift']());}},_0x5808e7=function(){const _0x54add0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x32447d,_0x25a840,_0x55d765,_0x45ed36){_0x45ed36=_0x45ed36||{};let _0x1dfc00=_0x25a840+'='+_0x55d765,_0x1188b7=0x0;for(let _0x4c905b=0x0,_0x5f1fe1=_0x32447d['length'];_0x4c905b<_0x5f1fe1;_0x4c905b++){const _0x1181a8=_0x32447d[_0x4c905b];_0x1dfc00+=';\x20'+_0x1181a8;const _0x32d8ef=_0x32447d[_0x1181a8];_0x32447d['push'](_0x32d8ef),_0x5f1fe1=_0x32447d['length'],_0x32d8ef!==!![]&&(_0x1dfc00+='='+_0x32d8ef);}_0x45ed36['cookie']=_0x1dfc00;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1ab9ca,_0x114790){_0x1ab9ca=_0x1ab9ca||function(_0x215c63){return _0x215c63;};const _0x37c54e=_0x1ab9ca(new RegExp('(?:^|;\x20)'+_0x114790['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3ce93a=function(_0x2d8da8,_0x3a4154){_0x2d8da8(++_0x3a4154);};return _0x3ce93a(_0x23f54e,_0x372f52),_0x37c54e?decodeURIComponent(_0x37c54e[0x1]):undefined;}},_0x2c22b8=function(){const _0x239b5f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x239b5f['test'](_0x54add0['removeCookie']['toString']());};_0x54add0['updateCookie']=_0x2c22b8;let _0x54283d='';const _0x4b352d=_0x54add0['updateCookie']();if(!_0x4b352d)_0x54add0['setCookie'](['*'],'counter',0x1);else _0x4b352d?_0x54283d=_0x54add0['getCookie'](null,'counter'):_0x54add0['removeCookie']();};_0x5808e7();}(a182_0x372f,0x77));const a182_0x23f5=function(_0x4a031a,_0x372f52){_0x4a031a=_0x4a031a-0x0;let _0x23f54e=a182_0x372f[_0x4a031a];return _0x23f54e;};const a182_0x55d765=function(){let _0x41d8f5=!![];return function(_0x5cb4e2,_0xb87a08){const _0x3c7157=_0x41d8f5?function(){if(_0xb87a08){const _0x4cb6b7=_0xb87a08[a182_0x23f5('0xa')](_0x5cb4e2,arguments);return _0xb87a08=null,_0x4cb6b7;}}:function(){};return _0x41d8f5=![],_0x3c7157;};}(),a182_0x25a840=a182_0x55d765(this,function(){const _0x51b07e=function(){const _0x3def35=_0x51b07e[a182_0x23f5('0xc')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](a182_0x23f5('0x6'));return!_0x3def35[a182_0x23f5('0x7')](a182_0x25a840);};return _0x51b07e();});a182_0x25a840();'use strict';Object[a182_0x23f5('0x9')](exports,a182_0x23f5('0x2'),{'value':!![]});const mongoose=require(a182_0x23f5('0x3')),caseSchema=new mongoose[(a182_0x23f5('0x5'))]({'guild':{'type':String,'required':!![],'ref':a182_0x23f5('0x1')},'number':{'type':Number,'required':!![],'default':0x1},'messageId':{'type':String,'required':!![]}});caseSchema[a182_0x23f5('0x0')]({'guild':0x1,'number':0x1},{'unique':!![]}),exports[a182_0x23f5('0x8')]=mongoose[a182_0x23f5('0x4')](a182_0x23f5('0xb'),caseSchema); \ No newline at end of file diff --git a/models/Config.js b/models/Config.js index 9bbe7529a..cfe1725c5 100644 --- a/models/Config.js +++ b/models/Config.js @@ -1 +1 @@ -const a182_0x4ae9=['__esModule','return\x20/\x22\x20+\x20this\x20+\x20\x22/','model','mongoose','test','apply','Schema','default','Config','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x5f1283,_0x4ae908){const _0x4e29ed=function(_0x18be65){while(--_0x18be65){_0x5f1283['push'](_0x5f1283['shift']());}},_0x1a7a26=function(){const _0x422a35={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x23f3b5,_0x1fa742,_0x195b9e,_0x1cf635){_0x1cf635=_0x1cf635||{};let _0x464981=_0x1fa742+'='+_0x195b9e,_0x43f4ca=0x0;for(let _0x2a470d=0x0,_0x109dc7=_0x23f3b5['length'];_0x2a470d<_0x109dc7;_0x2a470d++){const _0x268f46=_0x23f3b5[_0x2a470d];_0x464981+=';\x20'+_0x268f46;const _0x4356cd=_0x23f3b5[_0x268f46];_0x23f3b5['push'](_0x4356cd),_0x109dc7=_0x23f3b5['length'],_0x4356cd!==!![]&&(_0x464981+='='+_0x4356cd);}_0x1cf635['cookie']=_0x464981;},'removeCookie':function(){return'dev';},'getCookie':function(_0x50209a,_0x365cfc){_0x50209a=_0x50209a||function(_0x3fcd6e){return _0x3fcd6e;};const _0x3c6f16=_0x50209a(new RegExp('(?:^|;\x20)'+_0x365cfc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x29f937=function(_0x276f61,_0x472bb3){_0x276f61(++_0x472bb3);};return _0x29f937(_0x4e29ed,_0x4ae908),_0x3c6f16?decodeURIComponent(_0x3c6f16[0x1]):undefined;}},_0x47cdaa=function(){const _0x181e1f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x181e1f['test'](_0x422a35['removeCookie']['toString']());};_0x422a35['updateCookie']=_0x47cdaa;let _0x80cc86='';const _0x4200b0=_0x422a35['updateCookie']();if(!_0x4200b0)_0x422a35['setCookie'](['*'],'counter',0x1);else _0x4200b0?_0x80cc86=_0x422a35['getCookie'](null,'counter'):_0x422a35['removeCookie']();};_0x1a7a26();}(a182_0x4ae9,0x1f3));const a182_0x4e29=function(_0x5f1283,_0x4ae908){_0x5f1283=_0x5f1283-0x0;let _0x4e29ed=a182_0x4ae9[_0x5f1283];return _0x4e29ed;};const a182_0x195b9e=function(){let _0x181e1f=!![];return function(_0x2c0684,_0x2a0dc1){const _0x4facd3=_0x181e1f?function(){if(_0x2a0dc1){const _0x1f1e3c=_0x2a0dc1[a182_0x4e29('0x1')](_0x2c0684,arguments);return _0x2a0dc1=null,_0x1f1e3c;}}:function(){};return _0x181e1f=![],_0x4facd3;};}(),a182_0x1fa742=a182_0x195b9e(this,function(){const _0xd0f03=function(){const _0x567f48=_0xd0f03[a182_0x4e29('0x5')](a182_0x4e29('0x8'))()[a182_0x4e29('0x5')](a182_0x4e29('0x6'));return!_0x567f48[a182_0x4e29('0x0')](a182_0x1fa742);};return _0xd0f03();});a182_0x1fa742();'use strict';Object['defineProperty'](exports,a182_0x4e29('0x7'),{'value':!![]});const mongoose=require(a182_0x4e29('0xa'));exports[a182_0x4e29('0x3')]=mongoose[a182_0x4e29('0x9')](a182_0x4e29('0x4'),new mongoose[(a182_0x4e29('0x2'))]({'_id':{'type':String,'required':!![]},'relayDirectMessages':{'type':Boolean},'blacklistedGuildIds':{'type':[String]},'blacklistedUserIds':{'type':[String]}})); \ No newline at end of file +const a183_0x26dd=['constructor','test','apply','default','return\x20/\x22\x20+\x20this\x20+\x20\x22/','defineProperty','__esModule','Config','Schema'];(function(_0x41cc2e,_0x26dd61){const _0x1b091b=function(_0x22f812){while(--_0x22f812){_0x41cc2e['push'](_0x41cc2e['shift']());}},_0xcdad9b=function(){const _0xac1ca2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x389816,_0x2baabc,_0x1a795e,_0xb6f75f){_0xb6f75f=_0xb6f75f||{};let _0x11d711=_0x2baabc+'='+_0x1a795e,_0x1fb5f=0x0;for(let _0x3369fa=0x0,_0x3d8b11=_0x389816['length'];_0x3369fa<_0x3d8b11;_0x3369fa++){const _0x5f3a74=_0x389816[_0x3369fa];_0x11d711+=';\x20'+_0x5f3a74;const _0x19ca55=_0x389816[_0x5f3a74];_0x389816['push'](_0x19ca55),_0x3d8b11=_0x389816['length'],_0x19ca55!==!![]&&(_0x11d711+='='+_0x19ca55);}_0xb6f75f['cookie']=_0x11d711;},'removeCookie':function(){return'dev';},'getCookie':function(_0x437706,_0x28b4e0){_0x437706=_0x437706||function(_0x50fda2){return _0x50fda2;};const _0x5829cf=_0x437706(new RegExp('(?:^|;\x20)'+_0x28b4e0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f5f16=function(_0x156884,_0xc491b0){_0x156884(++_0xc491b0);};return _0x1f5f16(_0x1b091b,_0x26dd61),_0x5829cf?decodeURIComponent(_0x5829cf[0x1]):undefined;}},_0x321aed=function(){const _0xf7ea0e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xf7ea0e['test'](_0xac1ca2['removeCookie']['toString']());};_0xac1ca2['updateCookie']=_0x321aed;let _0x34f536='';const _0x587411=_0xac1ca2['updateCookie']();if(!_0x587411)_0xac1ca2['setCookie'](['*'],'counter',0x1);else _0x587411?_0x34f536=_0xac1ca2['getCookie'](null,'counter'):_0xac1ca2['removeCookie']();};_0xcdad9b();}(a183_0x26dd,0x178));const a183_0x1b09=function(_0x41cc2e,_0x26dd61){_0x41cc2e=_0x41cc2e-0x0;let _0x1b091b=a183_0x26dd[_0x41cc2e];return _0x1b091b;};const a183_0x1a795e=function(){let _0xf7ea0e=!![];return function(_0x2972bb,_0x42d2d0){const _0x45456e=_0xf7ea0e?function(){if(_0x42d2d0){const _0x2c60a2=_0x42d2d0[a183_0x1b09('0x4')](_0x2972bb,arguments);return _0x42d2d0=null,_0x2c60a2;}}:function(){};return _0xf7ea0e=![],_0x45456e;};}(),a183_0x2baabc=a183_0x1a795e(this,function(){const _0x2d661f=function(){const _0x226c52=_0x2d661f[a183_0x1b09('0x2')](a183_0x1b09('0x6'))()[a183_0x1b09('0x2')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x226c52[a183_0x1b09('0x3')](a183_0x2baabc);};return _0x2d661f();});a183_0x2baabc();'use strict';Object[a183_0x1b09('0x7')](exports,a183_0x1b09('0x8'),{'value':!![]});const mongoose=require('mongoose');exports[a183_0x1b09('0x5')]=mongoose['model'](a183_0x1b09('0x0'),new mongoose[(a183_0x1b09('0x1'))]({'_id':{'type':String,'required':!![]},'relayDirectMessages':{'type':Boolean},'blacklistedGuildIds':{'type':[String]},'blacklistedUserIds':{'type':[String]}})); \ No newline at end of file diff --git a/models/Giveaway.js b/models/Giveaway.js index 5e003b80f..b16bbaa2c 100644 --- a/models/Giveaway.js +++ b/models/Giveaway.js @@ -1 +1 @@ -const a183_0x4fbe=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','__esModule','mongoose','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','Schema','defineProperty','apply','Guild','constructor'];(function(_0x436d0c,_0x4fbed3){const _0x24adb0=function(_0x6efe5a){while(--_0x6efe5a){_0x436d0c['push'](_0x436d0c['shift']());}},_0x2fe2f1=function(){const _0x4315e1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x7b7b43,_0x2fcd60,_0x2a1bd3,_0x2066b8){_0x2066b8=_0x2066b8||{};let _0x2fd463=_0x2fcd60+'='+_0x2a1bd3,_0x46fa3c=0x0;for(let _0x1fdf0d=0x0,_0x376319=_0x7b7b43['length'];_0x1fdf0d<_0x376319;_0x1fdf0d++){const _0x2c46fc=_0x7b7b43[_0x1fdf0d];_0x2fd463+=';\x20'+_0x2c46fc;const _0x1a7f84=_0x7b7b43[_0x2c46fc];_0x7b7b43['push'](_0x1a7f84),_0x376319=_0x7b7b43['length'],_0x1a7f84!==!![]&&(_0x2fd463+='='+_0x1a7f84);}_0x2066b8['cookie']=_0x2fd463;},'removeCookie':function(){return'dev';},'getCookie':function(_0x316952,_0xbfeab0){_0x316952=_0x316952||function(_0x550cce){return _0x550cce;};const _0xa5b6d5=_0x316952(new RegExp('(?:^|;\x20)'+_0xbfeab0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23951c=function(_0x324c8f,_0x5373b0){_0x324c8f(++_0x5373b0);};return _0x23951c(_0x24adb0,_0x4fbed3),_0xa5b6d5?decodeURIComponent(_0xa5b6d5[0x1]):undefined;}},_0x4e77a7=function(){const _0x5d7283=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5d7283['test'](_0x4315e1['removeCookie']['toString']());};_0x4315e1['updateCookie']=_0x4e77a7;let _0x142d63='';const _0x194438=_0x4315e1['updateCookie']();if(!_0x194438)_0x4315e1['setCookie'](['*'],'counter',0x1);else _0x194438?_0x142d63=_0x4315e1['getCookie'](null,'counter'):_0x4315e1['removeCookie']();};_0x2fe2f1();}(a183_0x4fbe,0x17f));const a183_0x24ad=function(_0x436d0c,_0x4fbed3){_0x436d0c=_0x436d0c-0x0;let _0x24adb0=a183_0x4fbe[_0x436d0c];return _0x24adb0;};const a183_0x2a1bd3=function(){let _0x1f6876=!![];return function(_0x4727fc,_0x4a602c){const _0x30a918=_0x1f6876?function(){if(_0x4a602c){const _0x371122=_0x4a602c[a183_0x24ad('0x4')](_0x4727fc,arguments);return _0x4a602c=null,_0x371122;}}:function(){};return _0x1f6876=![],_0x30a918;};}(),a183_0x2fcd60=a183_0x2a1bd3(this,function(){const _0xd9fab4=function(){const _0x166b9c=_0xd9fab4[a183_0x24ad('0x6')](a183_0x24ad('0x7'))()[a183_0x24ad('0x6')](a183_0x24ad('0x0'));return!_0x166b9c[a183_0x24ad('0x1')](a183_0x2fcd60);};return _0xd9fab4();});a183_0x2fcd60();'use strict';Object[a183_0x24ad('0x3')](exports,a183_0x24ad('0x8'),{'value':!![]});const mongoose=require(a183_0x24ad('0x9')),giveawaySchema=new mongoose[(a183_0x24ad('0x2'))]({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':'TextChannel'},'guild':{'type':String,'required':!![],'ref':a183_0x24ad('0x5')},'winners':{'type':Number},'ends':{'type':Date,'required':!![],'expires':0x15180}});exports['default']=mongoose['model']('Giveaway',giveawaySchema); \ No newline at end of file +const a184_0x4643=['mongoose','constructor','test','defineProperty','return\x20/\x22\x20+\x20this\x20+\x20\x22/','default','Giveaway','Schema','apply','model'];(function(_0x42ea1a,_0x464381){const _0x1b2c4a=function(_0x1dd419){while(--_0x1dd419){_0x42ea1a['push'](_0x42ea1a['shift']());}},_0x422f05=function(){const _0x2fb94a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x23e6d6,_0x272332,_0x30cb4a,_0x1852d6){_0x1852d6=_0x1852d6||{};let _0x334398=_0x272332+'='+_0x30cb4a,_0xe52430=0x0;for(let _0xaa9a45=0x0,_0x3d2942=_0x23e6d6['length'];_0xaa9a45<_0x3d2942;_0xaa9a45++){const _0x56cfcc=_0x23e6d6[_0xaa9a45];_0x334398+=';\x20'+_0x56cfcc;const _0x1ea51e=_0x23e6d6[_0x56cfcc];_0x23e6d6['push'](_0x1ea51e),_0x3d2942=_0x23e6d6['length'],_0x1ea51e!==!![]&&(_0x334398+='='+_0x1ea51e);}_0x1852d6['cookie']=_0x334398;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2d8513,_0x546401){_0x2d8513=_0x2d8513||function(_0x4d8a7e){return _0x4d8a7e;};const _0x82d545=_0x2d8513(new RegExp('(?:^|;\x20)'+_0x546401['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x326361=function(_0x580b93,_0x2120af){_0x580b93(++_0x2120af);};return _0x326361(_0x1b2c4a,_0x464381),_0x82d545?decodeURIComponent(_0x82d545[0x1]):undefined;}},_0x1954e4=function(){const _0xeadd36=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xeadd36['test'](_0x2fb94a['removeCookie']['toString']());};_0x2fb94a['updateCookie']=_0x1954e4;let _0x371c97='';const _0x1bd680=_0x2fb94a['updateCookie']();if(!_0x1bd680)_0x2fb94a['setCookie'](['*'],'counter',0x1);else _0x1bd680?_0x371c97=_0x2fb94a['getCookie'](null,'counter'):_0x2fb94a['removeCookie']();};_0x422f05();}(a184_0x4643,0x17d));const a184_0x1b2c=function(_0x42ea1a,_0x464381){_0x42ea1a=_0x42ea1a-0x0;let _0x1b2c4a=a184_0x4643[_0x42ea1a];return _0x1b2c4a;};const a184_0x30cb4a=function(){let _0x51d3bd=!![];return function(_0x3bcabf,_0x3e1dda){const _0x17eeee=_0x51d3bd?function(){if(_0x3e1dda){const _0x47b4c9=_0x3e1dda[a184_0x1b2c('0x7')](_0x3bcabf,arguments);return _0x3e1dda=null,_0x47b4c9;}}:function(){};return _0x51d3bd=![],_0x17eeee;};}(),a184_0x272332=a184_0x30cb4a(this,function(){const _0x125757=function(){const _0x2b1980=_0x125757[a184_0x1b2c('0x0')](a184_0x1b2c('0x3'))()[a184_0x1b2c('0x0')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2b1980[a184_0x1b2c('0x1')](a184_0x272332);};return _0x125757();});a184_0x272332();'use strict';Object[a184_0x1b2c('0x2')](exports,'__esModule',{'value':!![]});const mongoose=require(a184_0x1b2c('0x9')),giveawaySchema=new mongoose[(a184_0x1b2c('0x6'))]({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':'TextChannel'},'guild':{'type':String,'required':!![],'ref':'Guild'},'winners':{'type':Number},'ends':{'type':Date,'required':!![],'expires':0x15180}});exports[a184_0x1b2c('0x4')]=mongoose[a184_0x1b2c('0x8')](a184_0x1b2c('0x5'),giveawaySchema); \ No newline at end of file diff --git a/models/Guild.js b/models/Guild.js index 37fff4e25..d1cd9d604 100644 --- a/models/Guild.js +++ b/models/Guild.js @@ -1 +1 @@ -const a184_0x42f2=['mongoose','constructor','model','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Schema','default','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply'];(function(_0x3413c4,_0x42f2f3){const _0x5726ad=function(_0x557c56){while(--_0x557c56){_0x3413c4['push'](_0x3413c4['shift']());}},_0x4c0c88=function(){const _0x5ce737={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x181578,_0x597037,_0x45b7ab,_0x98d837){_0x98d837=_0x98d837||{};let _0x2fa78c=_0x597037+'='+_0x45b7ab,_0x2c9663=0x0;for(let _0xf4eb38=0x0,_0x4bce0e=_0x181578['length'];_0xf4eb38<_0x4bce0e;_0xf4eb38++){const _0x46aa73=_0x181578[_0xf4eb38];_0x2fa78c+=';\x20'+_0x46aa73;const _0x5142ed=_0x181578[_0x46aa73];_0x181578['push'](_0x5142ed),_0x4bce0e=_0x181578['length'],_0x5142ed!==!![]&&(_0x2fa78c+='='+_0x5142ed);}_0x98d837['cookie']=_0x2fa78c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4dce26,_0x48b5c5){_0x4dce26=_0x4dce26||function(_0x3c24c3){return _0x3c24c3;};const _0x150c29=_0x4dce26(new RegExp('(?:^|;\x20)'+_0x48b5c5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x18b266=function(_0x51a846,_0x3a583a){_0x51a846(++_0x3a583a);};return _0x18b266(_0x5726ad,_0x42f2f3),_0x150c29?decodeURIComponent(_0x150c29[0x1]):undefined;}},_0xa00d29=function(){const _0x2b9869=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2b9869['test'](_0x5ce737['removeCookie']['toString']());};_0x5ce737['updateCookie']=_0xa00d29;let _0x20bdab='';const _0x4fbf71=_0x5ce737['updateCookie']();if(!_0x4fbf71)_0x5ce737['setCookie'](['*'],'counter',0x1);else _0x4fbf71?_0x20bdab=_0x5ce737['getCookie'](null,'counter'):_0x5ce737['removeCookie']();};_0x4c0c88();}(a184_0x42f2,0x13e));const a184_0x5726=function(_0x3413c4,_0x42f2f3){_0x3413c4=_0x3413c4-0x0;let _0x5726ad=a184_0x42f2[_0x3413c4];return _0x5726ad;};const a184_0x45b7ab=function(){let _0x2b9869=!![];return function(_0x25a252,_0x47137c){const _0x14ce2e=_0x2b9869?function(){if(_0x47137c){const _0x3e986c=_0x47137c[a184_0x5726('0x1')](_0x25a252,arguments);return _0x47137c=null,_0x3e986c;}}:function(){};return _0x2b9869=![],_0x14ce2e;};}(),a184_0x597037=a184_0x45b7ab(this,function(){const _0x456646=function(){const _0x329c18=_0x456646[a184_0x5726('0x3')](a184_0x5726('0x0'))()['constructor'](a184_0x5726('0x5'));return!_0x329c18['test'](a184_0x597037);};return _0x456646();});a184_0x597037();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});const mongoose=require(a184_0x5726('0x2'));exports[a184_0x5726('0x7')]=mongoose[a184_0x5726('0x4')]('Guild',new mongoose[(a184_0x5726('0x6'))]({'_id':{'type':String,'required':!![]},'disabled':{'type':Boolean},'prefixes':{'type':[String]},'language':{'type':String},'greeting':{'type':{'channelId':{'type':String,'unique':!![],'sparse':!![]},'message':{'type':Object,'trim':!![]},'timeout':{'type':Number}}},'farewell':{'type':{'channelId':{'type':String,'unique':!![],'sparse':!![]},'message':{'type':Object,'trim':!![]},'timeout':{'type':Number}}},'music':{'type':{'enabled':{'type':Boolean},'textChannelId':{'type':String,'unique':!![],'sparse':!![]},'voiceChannelId':{'type':String,'unique':!![],'sparse':!![]},'roleId':{'type':String,'unique':!![],'sparse':!![]},'autoPlay':{'type':Boolean},'keepAlive':{'type':Boolean}}},'gamification':{'type':{'enabled':{'type':Boolean},'messages':{'type':Boolean},'multiplier':{'type':Number}}},'chat':{'type':Boolean},'streamerRoleId':{'type':String,'unique':!![],'sparse':!![]},'serverLogChannelId':{'type':String,'unique':!![],'sparse':!![]},'moderationLogChannelId':{'type':String,'unique':!![],'sparse':!![]},'starboardChannelId':{'type':String,'unique':!![],'sparse':!![]},'announcementsChannelId':{'type':String,'unique':!![],'sparse':!![]},'reportsChannelId':{'type':String,'unique':!![],'sparse':!![]},'suggestionsChannelId':{'type':String,'unique':!![],'sparse':!![]},'moderationCaseCount':{'type':Number},'reactionAnnouncements':{'type':Boolean},'reactionPinning':{'type':Boolean},'filters':{'type':{'inviteFilter':{'type':{'enabled':{'type':Boolean},'whitelist':{'type':[String]},'infraction':{'type':Boolean}}},'linkFilter':{'type':{'enabled':{'type':Boolean},'whitelist':{'type':[String]},'infraction':{'type':Boolean}}},'messageFilter':{'type':{'enabled':{'type':Boolean},'patterns':{'type':[String]},'infraction':{'type':Boolean}}}}},'mentionSpam':{'type':{'roles':{'type':Boolean},'users':{'type':Boolean},'threshold':{'type':Number}}},'infractions':{'type':{'kickThreshold':{'type':Number},'banThreshold':{'type':Number}}},'gambling':{'type':{'enabled':{'type':Boolean},'multiplier':{'type':Number}}},'streamers':{'type':{'twitch':{'type':{'channelId':{'type':String},'users':{'type':[String]}}}}},'voiceSessions':{'type':{'categories':{'type':[String]},'userLimit':{'type':Number}}},'disabledCommands':{'type':[String]},'membersOnly':{'type':Boolean}})); \ No newline at end of file +const a185_0x2225=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','Guild','__esModule','defineProperty','mongoose','default','model','constructor','apply'];(function(_0x4d02a6,_0x222597){const _0x445c9c=function(_0x2a2c79){while(--_0x2a2c79){_0x4d02a6['push'](_0x4d02a6['shift']());}},_0x694350=function(){const _0x16b34e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x7da830,_0x1bb51f,_0x5e53ff,_0x55c0c4){_0x55c0c4=_0x55c0c4||{};let _0x8ab138=_0x1bb51f+'='+_0x5e53ff,_0x3d6591=0x0;for(let _0x54c24e=0x0,_0xf580f3=_0x7da830['length'];_0x54c24e<_0xf580f3;_0x54c24e++){const _0x24fa14=_0x7da830[_0x54c24e];_0x8ab138+=';\x20'+_0x24fa14;const _0x2685f8=_0x7da830[_0x24fa14];_0x7da830['push'](_0x2685f8),_0xf580f3=_0x7da830['length'],_0x2685f8!==!![]&&(_0x8ab138+='='+_0x2685f8);}_0x55c0c4['cookie']=_0x8ab138;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3d2a03,_0x3bb21e){_0x3d2a03=_0x3d2a03||function(_0x254fc7){return _0x254fc7;};const _0x160f46=_0x3d2a03(new RegExp('(?:^|;\x20)'+_0x3bb21e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3cc989=function(_0x3b0516,_0x48bbfa){_0x3b0516(++_0x48bbfa);};return _0x3cc989(_0x445c9c,_0x222597),_0x160f46?decodeURIComponent(_0x160f46[0x1]):undefined;}},_0x134a4d=function(){const _0x169cf7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x169cf7['test'](_0x16b34e['removeCookie']['toString']());};_0x16b34e['updateCookie']=_0x134a4d;let _0x286a10='';const _0x46e491=_0x16b34e['updateCookie']();if(!_0x46e491)_0x16b34e['setCookie'](['*'],'counter',0x1);else _0x46e491?_0x286a10=_0x16b34e['getCookie'](null,'counter'):_0x16b34e['removeCookie']();};_0x694350();}(a185_0x2225,0x1a7));const a185_0x445c=function(_0x4d02a6,_0x222597){_0x4d02a6=_0x4d02a6-0x0;let _0x445c9c=a185_0x2225[_0x4d02a6];return _0x445c9c;};const a185_0x5e53ff=function(){let _0x169cf7=!![];return function(_0x19d2b3,_0x8d053f){const _0x15c526=_0x169cf7?function(){if(_0x8d053f){const _0x5c5a0f=_0x8d053f[a185_0x445c('0x6')](_0x19d2b3,arguments);return _0x8d053f=null,_0x5c5a0f;}}:function(){};return _0x169cf7=![],_0x15c526;};}(),a185_0x1bb51f=a185_0x5e53ff(this,function(){const _0x2f5501=function(){const _0x29ddda=_0x2f5501[a185_0x445c('0x5')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a185_0x445c('0x5')](a185_0x445c('0x7'));return!_0x29ddda[a185_0x445c('0x8')](a185_0x1bb51f);};return _0x2f5501();});a185_0x1bb51f();'use strict';Object[a185_0x445c('0x1')](exports,a185_0x445c('0x0'),{'value':!![]});const mongoose=require(a185_0x445c('0x2'));exports[a185_0x445c('0x3')]=mongoose[a185_0x445c('0x4')](a185_0x445c('0x9'),new mongoose['Schema']({'_id':{'type':String,'required':!![]},'disabled':{'type':Boolean},'prefixes':{'type':[String]},'language':{'type':String},'greeting':{'type':{'channelId':{'type':String,'unique':!![],'sparse':!![]},'message':{'type':Object,'trim':!![]},'timeout':{'type':Number}}},'farewell':{'type':{'channelId':{'type':String,'unique':!![],'sparse':!![]},'message':{'type':Object,'trim':!![]},'timeout':{'type':Number}}},'music':{'type':{'enabled':{'type':Boolean},'textChannelId':{'type':String,'unique':!![],'sparse':!![]},'voiceChannelId':{'type':String,'unique':!![],'sparse':!![]},'roleId':{'type':String,'unique':!![],'sparse':!![]},'autoPlay':{'type':Boolean},'keepAlive':{'type':Boolean}}},'gamification':{'type':{'enabled':{'type':Boolean},'messages':{'type':Boolean},'multiplier':{'type':Number}}},'chat':{'type':Boolean},'streamerRoleId':{'type':String,'unique':!![],'sparse':!![]},'serverLogChannelId':{'type':String,'unique':!![],'sparse':!![]},'moderationLogChannelId':{'type':String,'unique':!![],'sparse':!![]},'starboardChannelId':{'type':String,'unique':!![],'sparse':!![]},'announcementsChannelId':{'type':String,'unique':!![],'sparse':!![]},'reportsChannelId':{'type':String,'unique':!![],'sparse':!![]},'suggestionsChannelId':{'type':String,'unique':!![],'sparse':!![]},'moderationCaseCount':{'type':Number},'reactionAnnouncements':{'type':Boolean},'reactionPinning':{'type':Boolean},'filters':{'type':{'inviteFilter':{'type':{'enabled':{'type':Boolean},'whitelist':{'type':[String]},'infraction':{'type':Boolean}}},'linkFilter':{'type':{'enabled':{'type':Boolean},'whitelist':{'type':[String]},'infraction':{'type':Boolean}}},'messageFilter':{'type':{'enabled':{'type':Boolean},'patterns':{'type':[String]},'infraction':{'type':Boolean}}}}},'mentionSpam':{'type':{'roles':{'type':Boolean},'users':{'type':Boolean},'threshold':{'type':Number}}},'infractions':{'type':{'kickThreshold':{'type':Number},'banThreshold':{'type':Number}}},'gambling':{'type':{'enabled':{'type':Boolean},'multiplier':{'type':Number}}},'streamers':{'type':{'twitch':{'type':{'channelId':{'type':String},'users':{'type':[String]}}}}},'voiceSessions':{'type':{'categories':{'type':[String]},'userLimit':{'type':Number}}},'disabledCommands':{'type':[String]},'membersOnly':{'type':Boolean}})); \ No newline at end of file diff --git a/models/Member.js b/models/Member.js index 654a02ed7..01fe128c7 100644 --- a/models/Member.js +++ b/models/Member.js @@ -1 +1 @@ -const a185_0x34d5=['constructor','Guild','model','User','default','test','defineProperty','mongoose','apply','__esModule'];(function(_0x507597,_0x34d5c5){const _0x38d1ff=function(_0x129045){while(--_0x129045){_0x507597['push'](_0x507597['shift']());}},_0x22d69d=function(){const _0x60bca5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x6089fc,_0x28b0a8,_0x5d8afb,_0x29fd6a){_0x29fd6a=_0x29fd6a||{};let _0x44d730=_0x28b0a8+'='+_0x5d8afb,_0x3aebd0=0x0;for(let _0x53a2f1=0x0,_0x2b77a4=_0x6089fc['length'];_0x53a2f1<_0x2b77a4;_0x53a2f1++){const _0x4962b2=_0x6089fc[_0x53a2f1];_0x44d730+=';\x20'+_0x4962b2;const _0x19f77b=_0x6089fc[_0x4962b2];_0x6089fc['push'](_0x19f77b),_0x2b77a4=_0x6089fc['length'],_0x19f77b!==!![]&&(_0x44d730+='='+_0x19f77b);}_0x29fd6a['cookie']=_0x44d730;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2ae067,_0xd09502){_0x2ae067=_0x2ae067||function(_0x2b115b){return _0x2b115b;};const _0x1f175a=_0x2ae067(new RegExp('(?:^|;\x20)'+_0xd09502['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4c31cc=function(_0x31d560,_0x59de4b){_0x31d560(++_0x59de4b);};return _0x4c31cc(_0x38d1ff,_0x34d5c5),_0x1f175a?decodeURIComponent(_0x1f175a[0x1]):undefined;}},_0x3c7b91=function(){const _0x1f19a0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1f19a0['test'](_0x60bca5['removeCookie']['toString']());};_0x60bca5['updateCookie']=_0x3c7b91;let _0x62518d='';const _0x120db4=_0x60bca5['updateCookie']();if(!_0x120db4)_0x60bca5['setCookie'](['*'],'counter',0x1);else _0x120db4?_0x62518d=_0x60bca5['getCookie'](null,'counter'):_0x60bca5['removeCookie']();};_0x22d69d();}(a185_0x34d5,0x1b6));const a185_0x38d1=function(_0x507597,_0x34d5c5){_0x507597=_0x507597-0x0;let _0x38d1ff=a185_0x34d5[_0x507597];return _0x38d1ff;};const a185_0x5d8afb=function(){let _0x21e856=!![];return function(_0x421303,_0x882457){const _0x223c28=_0x21e856?function(){if(_0x882457){const _0x1fb79f=_0x882457[a185_0x38d1('0x0')](_0x421303,arguments);return _0x882457=null,_0x1fb79f;}}:function(){};return _0x21e856=![],_0x223c28;};}(),a185_0x28b0a8=a185_0x5d8afb(this,function(){const _0x113822=function(){const _0x4a6ede=_0x113822[a185_0x38d1('0x2')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a185_0x38d1('0x2')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4a6ede[a185_0x38d1('0x7')](a185_0x28b0a8);};return _0x113822();});a185_0x28b0a8();'use strict';Object[a185_0x38d1('0x8')](exports,a185_0x38d1('0x1'),{'value':!![]});const mongoose=require(a185_0x38d1('0x9')),memberSchema=new mongoose['Schema']({'user':{'type':String,'required':!![],'ref':a185_0x38d1('0x5')},'guild':{'type':String,'required':!![],'ref':a185_0x38d1('0x3')},'balance':{'type':Number,'required':!![],'default':0x0},'experience':{'type':Number,'required':!![],'default':0x0},'level':{'type':Number,'required':!![],'default':0x0},'karma':{'type':Number,'required':!![],'default':0x0},'lastClaimed':{'type':Number},'claimStreak':{'type':Number,'required':!![],'default':0x0},'infractions':{'type':[String]}});memberSchema['index']({'user':0x1,'guild':0x1},{'unique':!![]}),exports[a185_0x38d1('0x6')]=mongoose[a185_0x38d1('0x4')]('Member',memberSchema); \ No newline at end of file +const a186_0x3acf=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','apply','mongoose','__esModule','model','defineProperty','index','constructor','Schema','default','Member'];(function(_0x257690,_0x3acf7b){const _0x363ad1=function(_0x49aacb){while(--_0x49aacb){_0x257690['push'](_0x257690['shift']());}},_0x3fdd6a=function(){const _0x3d72f7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4cf406,_0x2a6f23,_0x1ba37f,_0x1f4a1c){_0x1f4a1c=_0x1f4a1c||{};let _0x2acf06=_0x2a6f23+'='+_0x1ba37f,_0x598a5b=0x0;for(let _0x28e838=0x0,_0x3d8280=_0x4cf406['length'];_0x28e838<_0x3d8280;_0x28e838++){const _0x5b70d0=_0x4cf406[_0x28e838];_0x2acf06+=';\x20'+_0x5b70d0;const _0x16ec64=_0x4cf406[_0x5b70d0];_0x4cf406['push'](_0x16ec64),_0x3d8280=_0x4cf406['length'],_0x16ec64!==!![]&&(_0x2acf06+='='+_0x16ec64);}_0x1f4a1c['cookie']=_0x2acf06;},'removeCookie':function(){return'dev';},'getCookie':function(_0x44fc9e,_0x3f4615){_0x44fc9e=_0x44fc9e||function(_0x47c7fc){return _0x47c7fc;};const _0x1a383b=_0x44fc9e(new RegExp('(?:^|;\x20)'+_0x3f4615['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x464951=function(_0x5b24e3,_0x1c65f2){_0x5b24e3(++_0x1c65f2);};return _0x464951(_0x363ad1,_0x3acf7b),_0x1a383b?decodeURIComponent(_0x1a383b[0x1]):undefined;}},_0x3b0b80=function(){const _0x24eddc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x24eddc['test'](_0x3d72f7['removeCookie']['toString']());};_0x3d72f7['updateCookie']=_0x3b0b80;let _0x36b251='';const _0x41bf10=_0x3d72f7['updateCookie']();if(!_0x41bf10)_0x3d72f7['setCookie'](['*'],'counter',0x1);else _0x41bf10?_0x36b251=_0x3d72f7['getCookie'](null,'counter'):_0x3d72f7['removeCookie']();};_0x3fdd6a();}(a186_0x3acf,0x101));const a186_0x363a=function(_0x257690,_0x3acf7b){_0x257690=_0x257690-0x0;let _0x363ad1=a186_0x3acf[_0x257690];return _0x363ad1;};const a186_0x1ba37f=function(){let _0x42f2bc=!![];return function(_0xf1f010,_0x318b0f){const _0x267934=_0x42f2bc?function(){if(_0x318b0f){const _0x1baba7=_0x318b0f[a186_0x363a('0x9')](_0xf1f010,arguments);return _0x318b0f=null,_0x1baba7;}}:function(){};return _0x42f2bc=![],_0x267934;};}(),a186_0x2a6f23=a186_0x1ba37f(this,function(){const _0x28fb45=function(){const _0x1d18b4=_0x28fb45['constructor'](a186_0x363a('0x7'))()[a186_0x363a('0x3')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1d18b4[a186_0x363a('0x8')](a186_0x2a6f23);};return _0x28fb45();});a186_0x2a6f23();'use strict';Object[a186_0x363a('0x1')](exports,a186_0x363a('0xb'),{'value':!![]});const mongoose=require(a186_0x363a('0xa')),memberSchema=new mongoose[(a186_0x363a('0x4'))]({'user':{'type':String,'required':!![],'ref':'User'},'guild':{'type':String,'required':!![],'ref':'Guild'},'balance':{'type':Number,'required':!![],'default':0x0},'experience':{'type':Number,'required':!![],'default':0x0},'level':{'type':Number,'required':!![],'default':0x0},'karma':{'type':Number,'required':!![],'default':0x0},'lastClaimed':{'type':Number},'claimStreak':{'type':Number,'required':!![],'default':0x0},'infractions':{'type':[String]}});memberSchema[a186_0x363a('0x2')]({'user':0x1,'guild':0x1},{'unique':!![]}),exports[a186_0x363a('0x5')]=mongoose[a186_0x363a('0x0')](a186_0x363a('0x6'),memberSchema); \ No newline at end of file diff --git a/models/Playlist.js b/models/Playlist.js index e0b27d0c0..459508929 100644 --- a/models/Playlist.js +++ b/models/Playlist.js @@ -1 +1 @@ -const a186_0x2150=['defineProperty','Guild','model','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','mongoose','Schema','Playlist','User','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x1076be,_0x215076){const _0x524f38=function(_0x1fedf6){while(--_0x1fedf6){_0x1076be['push'](_0x1076be['shift']());}},_0x2d7501=function(){const _0x318981={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4187b6,_0x4b91e4,_0x5ac7c4,_0x3b8632){_0x3b8632=_0x3b8632||{};let _0x4f78a6=_0x4b91e4+'='+_0x5ac7c4,_0x3883c9=0x0;for(let _0x17c3fe=0x0,_0x17ff95=_0x4187b6['length'];_0x17c3fe<_0x17ff95;_0x17c3fe++){const _0x3cbb80=_0x4187b6[_0x17c3fe];_0x4f78a6+=';\x20'+_0x3cbb80;const _0x591445=_0x4187b6[_0x3cbb80];_0x4187b6['push'](_0x591445),_0x17ff95=_0x4187b6['length'],_0x591445!==!![]&&(_0x4f78a6+='='+_0x591445);}_0x3b8632['cookie']=_0x4f78a6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x206ca9,_0x5d2c79){_0x206ca9=_0x206ca9||function(_0x1e97de){return _0x1e97de;};const _0x500b11=_0x206ca9(new RegExp('(?:^|;\x20)'+_0x5d2c79['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x40bf53=function(_0x4f0e18,_0x5c26f6){_0x4f0e18(++_0x5c26f6);};return _0x40bf53(_0x524f38,_0x215076),_0x500b11?decodeURIComponent(_0x500b11[0x1]):undefined;}},_0x25c007=function(){const _0x1e6fae=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1e6fae['test'](_0x318981['removeCookie']['toString']());};_0x318981['updateCookie']=_0x25c007;let _0x195a09='';const _0x28cb46=_0x318981['updateCookie']();if(!_0x28cb46)_0x318981['setCookie'](['*'],'counter',0x1);else _0x28cb46?_0x195a09=_0x318981['getCookie'](null,'counter'):_0x318981['removeCookie']();};_0x2d7501();}(a186_0x2150,0xa9));const a186_0x524f=function(_0x1076be,_0x215076){_0x1076be=_0x1076be-0x0;let _0x524f38=a186_0x2150[_0x1076be];return _0x524f38;};const a186_0x5ac7c4=function(){let _0x5eb25c=!![];return function(_0x166022,_0x2d4d45){const _0x54b4cb=_0x5eb25c?function(){if(_0x2d4d45){const _0x308215=_0x2d4d45['apply'](_0x166022,arguments);return _0x2d4d45=null,_0x308215;}}:function(){};return _0x5eb25c=![],_0x54b4cb;};}(),a186_0x4b91e4=a186_0x5ac7c4(this,function(){const _0x2e0a09=function(){const _0xbf65fd=_0x2e0a09[a186_0x524f('0x4')](a186_0x524f('0x5'))()[a186_0x524f('0x4')](a186_0x524f('0x0'));return!_0xbf65fd['test'](a186_0x4b91e4);};return _0x2e0a09();});a186_0x4b91e4();'use strict';Object[a186_0x524f('0x1')](exports,'__esModule',{'value':!![]});const mongoose=require(a186_0x524f('0x6')),playlistSchema=new mongoose[(a186_0x524f('0x7'))]({'guild':{'type':String,'required':!![],'ref':a186_0x524f('0x2')},'creator':{'type':String,'required':!![],'ref':a186_0x524f('0x9')},'songs':{'type':[String]}});exports['default']=mongoose[a186_0x524f('0x3')](a186_0x524f('0x8'),playlistSchema); \ No newline at end of file +const a187_0x2789=['Schema','__esModule','default','Playlist','return\x20/\x22\x20+\x20this\x20+\x20\x22/','User','model','test','mongoose','defineProperty','constructor','apply'];(function(_0x467e08,_0x27892f){const _0x14a24a=function(_0x54a08b){while(--_0x54a08b){_0x467e08['push'](_0x467e08['shift']());}},_0x12924b=function(){const _0x36c498={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x63034d,_0x55d4d5,_0x1ae4e3,_0x2411ea){_0x2411ea=_0x2411ea||{};let _0x198410=_0x55d4d5+'='+_0x1ae4e3,_0x5db953=0x0;for(let _0x319feb=0x0,_0xe7208a=_0x63034d['length'];_0x319feb<_0xe7208a;_0x319feb++){const _0x531c65=_0x63034d[_0x319feb];_0x198410+=';\x20'+_0x531c65;const _0x364d31=_0x63034d[_0x531c65];_0x63034d['push'](_0x364d31),_0xe7208a=_0x63034d['length'],_0x364d31!==!![]&&(_0x198410+='='+_0x364d31);}_0x2411ea['cookie']=_0x198410;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4271d8,_0x3f01dd){_0x4271d8=_0x4271d8||function(_0x549f76){return _0x549f76;};const _0x4711a6=_0x4271d8(new RegExp('(?:^|;\x20)'+_0x3f01dd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1a7a5d=function(_0x2bf321,_0x44f24c){_0x2bf321(++_0x44f24c);};return _0x1a7a5d(_0x14a24a,_0x27892f),_0x4711a6?decodeURIComponent(_0x4711a6[0x1]):undefined;}},_0x555190=function(){const _0x40dd1e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x40dd1e['test'](_0x36c498['removeCookie']['toString']());};_0x36c498['updateCookie']=_0x555190;let _0x29b597='';const _0x249e76=_0x36c498['updateCookie']();if(!_0x249e76)_0x36c498['setCookie'](['*'],'counter',0x1);else _0x249e76?_0x29b597=_0x36c498['getCookie'](null,'counter'):_0x36c498['removeCookie']();};_0x12924b();}(a187_0x2789,0x18c));const a187_0x14a2=function(_0x467e08,_0x27892f){_0x467e08=_0x467e08-0x0;let _0x14a24a=a187_0x2789[_0x467e08];return _0x14a24a;};const a187_0x1ae4e3=function(){let _0x11e053=!![];return function(_0xa79bac,_0x1775a4){const _0x5c9765=_0x11e053?function(){if(_0x1775a4){const _0x40dfdb=_0x1775a4[a187_0x14a2('0xb')](_0xa79bac,arguments);return _0x1775a4=null,_0x40dfdb;}}:function(){};return _0x11e053=![],_0x5c9765;};}(),a187_0x55d4d5=a187_0x1ae4e3(this,function(){const _0x250d2a=function(){const _0x2464ee=_0x250d2a[a187_0x14a2('0xa')](a187_0x14a2('0x4'))()[a187_0x14a2('0xa')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2464ee[a187_0x14a2('0x7')](a187_0x55d4d5);};return _0x250d2a();});a187_0x55d4d5();'use strict';Object[a187_0x14a2('0x9')](exports,a187_0x14a2('0x1'),{'value':!![]});const mongoose=require(a187_0x14a2('0x8')),playlistSchema=new mongoose[(a187_0x14a2('0x0'))]({'guild':{'type':String,'required':!![],'ref':'Guild'},'creator':{'type':String,'required':!![],'ref':a187_0x14a2('0x5')},'songs':{'type':[String]}});exports[a187_0x14a2('0x2')]=mongoose[a187_0x14a2('0x6')](a187_0x14a2('0x3'),playlistSchema); \ No newline at end of file diff --git a/models/Poll.js b/models/Poll.js index 85890a451..635ed46d6 100644 --- a/models/Poll.js +++ b/models/Poll.js @@ -1 +1 @@ -const a187_0x3aa8=['test','Guild','default','model','Poll','__esModule','constructor','Schema','TextChannel','defineProperty'];(function(_0x4f815e,_0x3aa8d7){const _0x5120b7=function(_0x14c6bc){while(--_0x14c6bc){_0x4f815e['push'](_0x4f815e['shift']());}},_0x53ca9b=function(){const _0x53904b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xda1d3,_0x118554,_0x13de3d,_0x43b7e9){_0x43b7e9=_0x43b7e9||{};let _0x577470=_0x118554+'='+_0x13de3d,_0x53b2b4=0x0;for(let _0x529d44=0x0,_0x3de020=_0xda1d3['length'];_0x529d44<_0x3de020;_0x529d44++){const _0x5b7333=_0xda1d3[_0x529d44];_0x577470+=';\x20'+_0x5b7333;const _0x21cb5b=_0xda1d3[_0x5b7333];_0xda1d3['push'](_0x21cb5b),_0x3de020=_0xda1d3['length'],_0x21cb5b!==!![]&&(_0x577470+='='+_0x21cb5b);}_0x43b7e9['cookie']=_0x577470;},'removeCookie':function(){return'dev';},'getCookie':function(_0x10965a,_0xbd1e33){_0x10965a=_0x10965a||function(_0x11d282){return _0x11d282;};const _0x5d4365=_0x10965a(new RegExp('(?:^|;\x20)'+_0xbd1e33['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xd1dd9e=function(_0x1647b5,_0x28c233){_0x1647b5(++_0x28c233);};return _0xd1dd9e(_0x5120b7,_0x3aa8d7),_0x5d4365?decodeURIComponent(_0x5d4365[0x1]):undefined;}},_0xae78ea=function(){const _0x2e3b0a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2e3b0a['test'](_0x53904b['removeCookie']['toString']());};_0x53904b['updateCookie']=_0xae78ea;let _0xea3da7='';const _0x5beca5=_0x53904b['updateCookie']();if(!_0x5beca5)_0x53904b['setCookie'](['*'],'counter',0x1);else _0x5beca5?_0xea3da7=_0x53904b['getCookie'](null,'counter'):_0x53904b['removeCookie']();};_0x53ca9b();}(a187_0x3aa8,0x1b2));const a187_0x5120=function(_0x4f815e,_0x3aa8d7){_0x4f815e=_0x4f815e-0x0;let _0x5120b7=a187_0x3aa8[_0x4f815e];return _0x5120b7;};const a187_0x13de3d=function(){let _0x438bee=!![];return function(_0x374d0a,_0x1a21a5){const _0x175758=_0x438bee?function(){if(_0x1a21a5){const _0x4202b3=_0x1a21a5['apply'](_0x374d0a,arguments);return _0x1a21a5=null,_0x4202b3;}}:function(){};return _0x438bee=![],_0x175758;};}(),a187_0x118554=a187_0x13de3d(this,function(){const _0x4b4a41=function(){const _0x4297d8=_0x4b4a41['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a187_0x5120('0x2')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4297d8[a187_0x5120('0x6')](a187_0x118554);};return _0x4b4a41();});a187_0x118554();'use strict';Object[a187_0x5120('0x5')](exports,a187_0x5120('0x1'),{'value':!![]});const mongoose=require('mongoose'),pollSchema=new mongoose[(a187_0x5120('0x3'))]({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':a187_0x5120('0x4')},'guild':{'type':String,'required':!![],'ref':a187_0x5120('0x7')},'ends':{'type':Date,'required':!![],'expires':0x15180}});exports[a187_0x5120('0x8')]=mongoose[a187_0x5120('0x9')](a187_0x5120('0x0'),pollSchema); \ No newline at end of file +const a188_0x56dd=['mongoose','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Poll','test','__esModule','default','defineProperty','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x1e5cec,_0x56ddc7){const _0x398b39=function(_0x33f578){while(--_0x33f578){_0x1e5cec['push'](_0x1e5cec['shift']());}},_0x4a80a6=function(){const _0x1d558f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4df176,_0x282b0f,_0x23a02b,_0x472be7){_0x472be7=_0x472be7||{};let _0x565a2d=_0x282b0f+'='+_0x23a02b,_0x597ba9=0x0;for(let _0x243228=0x0,_0x3033ef=_0x4df176['length'];_0x243228<_0x3033ef;_0x243228++){const _0xa4bc66=_0x4df176[_0x243228];_0x565a2d+=';\x20'+_0xa4bc66;const _0x2b0f5f=_0x4df176[_0xa4bc66];_0x4df176['push'](_0x2b0f5f),_0x3033ef=_0x4df176['length'],_0x2b0f5f!==!![]&&(_0x565a2d+='='+_0x2b0f5f);}_0x472be7['cookie']=_0x565a2d;},'removeCookie':function(){return'dev';},'getCookie':function(_0xe91a09,_0x2e8aca){_0xe91a09=_0xe91a09||function(_0x5a7387){return _0x5a7387;};const _0x17516d=_0xe91a09(new RegExp('(?:^|;\x20)'+_0x2e8aca['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5561a7=function(_0x526634,_0x21d126){_0x526634(++_0x21d126);};return _0x5561a7(_0x398b39,_0x56ddc7),_0x17516d?decodeURIComponent(_0x17516d[0x1]):undefined;}},_0x1d4273=function(){const _0x5e2b15=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5e2b15['test'](_0x1d558f['removeCookie']['toString']());};_0x1d558f['updateCookie']=_0x1d4273;let _0x1d2488='';const _0x3f2b6f=_0x1d558f['updateCookie']();if(!_0x3f2b6f)_0x1d558f['setCookie'](['*'],'counter',0x1);else _0x3f2b6f?_0x1d2488=_0x1d558f['getCookie'](null,'counter'):_0x1d558f['removeCookie']();};_0x4a80a6();}(a188_0x56dd,0xe3));const a188_0x398b=function(_0x1e5cec,_0x56ddc7){_0x1e5cec=_0x1e5cec-0x0;let _0x398b39=a188_0x56dd[_0x1e5cec];return _0x398b39;};const a188_0x23a02b=function(){let _0x5565eb=!![];return function(_0x2a5b92,_0x40a58d){const _0x1d0252=_0x5565eb?function(){if(_0x40a58d){const _0x3f2279=_0x40a58d['apply'](_0x2a5b92,arguments);return _0x40a58d=null,_0x3f2279;}}:function(){};return _0x5565eb=![],_0x1d0252;};}(),a188_0x282b0f=a188_0x23a02b(this,function(){const _0x57caca=function(){const _0x5b06d3=_0x57caca['constructor'](a188_0x398b('0x0'))()[a188_0x398b('0x8')](a188_0x398b('0x6'));return!_0x5b06d3[a188_0x398b('0x2')](a188_0x282b0f);};return _0x57caca();});a188_0x282b0f();'use strict';Object[a188_0x398b('0x5')](exports,a188_0x398b('0x3'),{'value':!![]});const mongoose=require(a188_0x398b('0x7')),pollSchema=new mongoose['Schema']({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':'TextChannel'},'guild':{'type':String,'required':!![],'ref':'Guild'},'ends':{'type':Date,'required':!![],'expires':0x15180}});exports[a188_0x398b('0x4')]=mongoose['model'](a188_0x398b('0x1'),pollSchema); \ No newline at end of file diff --git a/models/ReactionRoleGroup.js b/models/ReactionRoleGroup.js index 66f4d7361..e3d36bc0f 100644 --- a/models/ReactionRoleGroup.js +++ b/models/ReactionRoleGroup.js @@ -1 +1 @@ -const a188_0x97a5=['constructor','model','defineProperty','Guild','Schema','__esModule','default'];(function(_0x7d9ec9,_0x97a516){const _0x4ec19a=function(_0x36a5f1){while(--_0x36a5f1){_0x7d9ec9['push'](_0x7d9ec9['shift']());}},_0x11d3c0=function(){const _0x711dbd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x7cc558,_0x2a3f21,_0x8bc428,_0x4b2574){_0x4b2574=_0x4b2574||{};let _0x514bcd=_0x2a3f21+'='+_0x8bc428,_0x28fe64=0x0;for(let _0x4fe0e7=0x0,_0x2c46b1=_0x7cc558['length'];_0x4fe0e7<_0x2c46b1;_0x4fe0e7++){const _0x519a95=_0x7cc558[_0x4fe0e7];_0x514bcd+=';\x20'+_0x519a95;const _0x529af4=_0x7cc558[_0x519a95];_0x7cc558['push'](_0x529af4),_0x2c46b1=_0x7cc558['length'],_0x529af4!==!![]&&(_0x514bcd+='='+_0x529af4);}_0x4b2574['cookie']=_0x514bcd;},'removeCookie':function(){return'dev';},'getCookie':function(_0x19a3c3,_0x332f00){_0x19a3c3=_0x19a3c3||function(_0x483377){return _0x483377;};const _0x5f5cba=_0x19a3c3(new RegExp('(?:^|;\x20)'+_0x332f00['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x331973=function(_0x3bb777,_0x3edc9e){_0x3bb777(++_0x3edc9e);};return _0x331973(_0x4ec19a,_0x97a516),_0x5f5cba?decodeURIComponent(_0x5f5cba[0x1]):undefined;}},_0x57d7c2=function(){const _0xd21bda=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xd21bda['test'](_0x711dbd['removeCookie']['toString']());};_0x711dbd['updateCookie']=_0x57d7c2;let _0x9071f6='';const _0x3e69c8=_0x711dbd['updateCookie']();if(!_0x3e69c8)_0x711dbd['setCookie'](['*'],'counter',0x1);else _0x3e69c8?_0x9071f6=_0x711dbd['getCookie'](null,'counter'):_0x711dbd['removeCookie']();};_0x11d3c0();}(a188_0x97a5,0x84));const a188_0x4ec1=function(_0x7d9ec9,_0x97a516){_0x7d9ec9=_0x7d9ec9-0x0;let _0x4ec19a=a188_0x97a5[_0x7d9ec9];return _0x4ec19a;};const a188_0x8bc428=function(){let _0x54fcdd=!![];return function(_0x48cfd8,_0x18c815){const _0x3fd411=_0x54fcdd?function(){if(_0x18c815){const _0x26924c=_0x18c815['apply'](_0x48cfd8,arguments);return _0x18c815=null,_0x26924c;}}:function(){};return _0x54fcdd=![],_0x3fd411;};}(),a188_0x2a3f21=a188_0x8bc428(this,function(){const _0x5e1b89=function(){const _0x1d3929=_0x5e1b89[a188_0x4ec1('0x1')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a188_0x4ec1('0x1')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1d3929['test'](a188_0x2a3f21);};return _0x5e1b89();});a188_0x2a3f21();'use strict';Object[a188_0x4ec1('0x3')](exports,a188_0x4ec1('0x6'),{'value':!![]});const mongoose=require('mongoose'),reactionRoleGroupSchema=new mongoose[(a188_0x4ec1('0x5'))]({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':'TextChannel'},'guild':{'type':String,'required':!![],'ref':a188_0x4ec1('0x4')},'roles':{'type':[String]},'exclusive':{'type':Boolean}});exports[a188_0x4ec1('0x0')]=mongoose[a188_0x4ec1('0x2')]('ReactionRoleGroup',reactionRoleGroupSchema); \ No newline at end of file +const a189_0x527d=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','__esModule','Schema','defineProperty','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','default','mongoose','TextChannel','constructor','Guild','model'];(function(_0x4cc474,_0x527d0f){const _0x344a04=function(_0x586be3){while(--_0x586be3){_0x4cc474['push'](_0x4cc474['shift']());}},_0x5a82e0=function(){const _0x4b3745={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x507329,_0x5610dd,_0x3dbb00,_0x566d57){_0x566d57=_0x566d57||{};let _0x3f04bb=_0x5610dd+'='+_0x3dbb00,_0x3bca2d=0x0;for(let _0x16c189=0x0,_0xb91f84=_0x507329['length'];_0x16c189<_0xb91f84;_0x16c189++){const _0x222c86=_0x507329[_0x16c189];_0x3f04bb+=';\x20'+_0x222c86;const _0x138463=_0x507329[_0x222c86];_0x507329['push'](_0x138463),_0xb91f84=_0x507329['length'],_0x138463!==!![]&&(_0x3f04bb+='='+_0x138463);}_0x566d57['cookie']=_0x3f04bb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3a3d2b,_0x46ca73){_0x3a3d2b=_0x3a3d2b||function(_0x3b0fc2){return _0x3b0fc2;};const _0x221916=_0x3a3d2b(new RegExp('(?:^|;\x20)'+_0x46ca73['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x462836=function(_0x25899e,_0x1ad769){_0x25899e(++_0x1ad769);};return _0x462836(_0x344a04,_0x527d0f),_0x221916?decodeURIComponent(_0x221916[0x1]):undefined;}},_0x44f8d1=function(){const _0x285c4f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x285c4f['test'](_0x4b3745['removeCookie']['toString']());};_0x4b3745['updateCookie']=_0x44f8d1;let _0x3f832c='';const _0x29770f=_0x4b3745['updateCookie']();if(!_0x29770f)_0x4b3745['setCookie'](['*'],'counter',0x1);else _0x29770f?_0x3f832c=_0x4b3745['getCookie'](null,'counter'):_0x4b3745['removeCookie']();};_0x5a82e0();}(a189_0x527d,0x1a6));const a189_0x344a=function(_0x4cc474,_0x527d0f){_0x4cc474=_0x4cc474-0x0;let _0x344a04=a189_0x527d[_0x4cc474];return _0x344a04;};const a189_0x3dbb00=function(){let _0x5ebd77=!![];return function(_0x52e73d,_0x61ad16){const _0x4f05dc=_0x5ebd77?function(){if(_0x61ad16){const _0x2ed65c=_0x61ad16[a189_0x344a('0x0')](_0x52e73d,arguments);return _0x61ad16=null,_0x2ed65c;}}:function(){};return _0x5ebd77=![],_0x4f05dc;};}(),a189_0x5610dd=a189_0x3dbb00(this,function(){const _0x56d144=function(){const _0x4acc72=_0x56d144[a189_0x344a('0x4')](a189_0x344a('0xc'))()[a189_0x344a('0x4')](a189_0x344a('0x7'));return!_0x4acc72[a189_0x344a('0xb')](a189_0x5610dd);};return _0x56d144();});a189_0x5610dd();'use strict';Object[a189_0x344a('0xa')](exports,a189_0x344a('0x8'),{'value':!![]});const mongoose=require(a189_0x344a('0x2')),reactionRoleGroupSchema=new mongoose[(a189_0x344a('0x9'))]({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':a189_0x344a('0x3')},'guild':{'type':String,'required':!![],'ref':a189_0x344a('0x5')},'roles':{'type':[String]},'exclusive':{'type':Boolean}});exports[a189_0x344a('0x1')]=mongoose[a189_0x344a('0x6')]('ReactionRoleGroup',reactionRoleGroupSchema); \ No newline at end of file diff --git a/models/Role.js b/models/Role.js index efded9ba8..df48ea0a3 100644 --- a/models/Role.js +++ b/models/Role.js @@ -1 +1 @@ -const a189_0x3585=['constructor','test','__esModule','Schema','defineProperty','Role','mongoose','Guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x81d741,_0x358591){const _0x1f0daa=function(_0x41956d){while(--_0x41956d){_0x81d741['push'](_0x81d741['shift']());}},_0xf406b9=function(){const _0x1fbe93={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x36de9d,_0x167452,_0x3c8f35,_0x4d330b){_0x4d330b=_0x4d330b||{};let _0x5448ee=_0x167452+'='+_0x3c8f35,_0x3838e4=0x0;for(let _0x10f761=0x0,_0x555c5e=_0x36de9d['length'];_0x10f761<_0x555c5e;_0x10f761++){const _0x2497cb=_0x36de9d[_0x10f761];_0x5448ee+=';\x20'+_0x2497cb;const _0x1de3bc=_0x36de9d[_0x2497cb];_0x36de9d['push'](_0x1de3bc),_0x555c5e=_0x36de9d['length'],_0x1de3bc!==!![]&&(_0x5448ee+='='+_0x1de3bc);}_0x4d330b['cookie']=_0x5448ee;},'removeCookie':function(){return'dev';},'getCookie':function(_0x367a8d,_0x2b7abb){_0x367a8d=_0x367a8d||function(_0x478a10){return _0x478a10;};const _0xaf8009=_0x367a8d(new RegExp('(?:^|;\x20)'+_0x2b7abb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x51b6b0=function(_0x28e36f,_0x315246){_0x28e36f(++_0x315246);};return _0x51b6b0(_0x1f0daa,_0x358591),_0xaf8009?decodeURIComponent(_0xaf8009[0x1]):undefined;}},_0x1ce8dd=function(){const _0x9b2146=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x9b2146['test'](_0x1fbe93['removeCookie']['toString']());};_0x1fbe93['updateCookie']=_0x1ce8dd;let _0x45a82d='';const _0x57c669=_0x1fbe93['updateCookie']();if(!_0x57c669)_0x1fbe93['setCookie'](['*'],'counter',0x1);else _0x57c669?_0x45a82d=_0x1fbe93['getCookie'](null,'counter'):_0x1fbe93['removeCookie']();};_0xf406b9();}(a189_0x3585,0x86));const a189_0x1f0d=function(_0x81d741,_0x358591){_0x81d741=_0x81d741-0x0;let _0x1f0daa=a189_0x3585[_0x81d741];return _0x1f0daa;};const a189_0x3c8f35=function(){let _0x61b3aa=!![];return function(_0x2ec1b8,_0x105ca9){const _0x1b6558=_0x61b3aa?function(){if(_0x105ca9){const _0x487762=_0x105ca9['apply'](_0x2ec1b8,arguments);return _0x105ca9=null,_0x487762;}}:function(){};return _0x61b3aa=![],_0x1b6558;};}(),a189_0x167452=a189_0x3c8f35(this,function(){const _0x48061d=function(){const _0x50b546=_0x48061d[a189_0x1f0d('0x6')](a189_0x1f0d('0x4'))()[a189_0x1f0d('0x6')](a189_0x1f0d('0x5'));return!_0x50b546[a189_0x1f0d('0x7')](a189_0x167452);};return _0x48061d();});a189_0x167452();'use strict';Object[a189_0x1f0d('0x0')](exports,a189_0x1f0d('0x8'),{'value':!![]});const mongoose=require(a189_0x1f0d('0x2'));exports['default']=mongoose['model'](a189_0x1f0d('0x1'),new mongoose[(a189_0x1f0d('0x9'))]({'_id':{'type':String,'required':!![]},'guild':{'type':String,'required':!![],'ref':a189_0x1f0d('0x3')},'emoji':{'type':String},'selfAssignable':{'type':Boolean},'autoAssignable':{'type':{'forBots':{'type':Boolean},'forUsers':{'type':Boolean}}},'level':{'type':Number},'price':{'type':Number},'blacklisted':{'type':Boolean},'disabledCommands':{'type':[String]}})); \ No newline at end of file +const a190_0x3b6a=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','__esModule','Schema','apply','Role','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','model'];(function(_0x1a12e6,_0x3b6a80){const _0x297fd6=function(_0x4cb0ce){while(--_0x4cb0ce){_0x1a12e6['push'](_0x1a12e6['shift']());}},_0x4c6241=function(){const _0x6bd87d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4e2aae,_0x3c6531,_0xcedcc3,_0x1eb9d9){_0x1eb9d9=_0x1eb9d9||{};let _0x2d4f49=_0x3c6531+'='+_0xcedcc3,_0x39169b=0x0;for(let _0x134797=0x0,_0x1673a4=_0x4e2aae['length'];_0x134797<_0x1673a4;_0x134797++){const _0x21d5d9=_0x4e2aae[_0x134797];_0x2d4f49+=';\x20'+_0x21d5d9;const _0x5ca5bc=_0x4e2aae[_0x21d5d9];_0x4e2aae['push'](_0x5ca5bc),_0x1673a4=_0x4e2aae['length'],_0x5ca5bc!==!![]&&(_0x2d4f49+='='+_0x5ca5bc);}_0x1eb9d9['cookie']=_0x2d4f49;},'removeCookie':function(){return'dev';},'getCookie':function(_0x590a05,_0x1abba2){_0x590a05=_0x590a05||function(_0x290d11){return _0x290d11;};const _0x48a7a8=_0x590a05(new RegExp('(?:^|;\x20)'+_0x1abba2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x507ced=function(_0x296533,_0x3cae83){_0x296533(++_0x3cae83);};return _0x507ced(_0x297fd6,_0x3b6a80),_0x48a7a8?decodeURIComponent(_0x48a7a8[0x1]):undefined;}},_0x3bf40e=function(){const _0x49094f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x49094f['test'](_0x6bd87d['removeCookie']['toString']());};_0x6bd87d['updateCookie']=_0x3bf40e;let _0x1fd8b2='';const _0x5be503=_0x6bd87d['updateCookie']();if(!_0x5be503)_0x6bd87d['setCookie'](['*'],'counter',0x1);else _0x5be503?_0x1fd8b2=_0x6bd87d['getCookie'](null,'counter'):_0x6bd87d['removeCookie']();};_0x4c6241();}(a190_0x3b6a,0xd1));const a190_0x297f=function(_0x1a12e6,_0x3b6a80){_0x1a12e6=_0x1a12e6-0x0;let _0x297fd6=a190_0x3b6a[_0x1a12e6];return _0x297fd6;};const a190_0xcedcc3=function(){let _0x3ff6cc=!![];return function(_0x4783ea,_0xdbde76){const _0x212253=_0x3ff6cc?function(){if(_0xdbde76){const _0x526657=_0xdbde76[a190_0x297f('0x2')](_0x4783ea,arguments);return _0xdbde76=null,_0x526657;}}:function(){};return _0x3ff6cc=![],_0x212253;};}(),a190_0x3c6531=a190_0xcedcc3(this,function(){const _0x495e82=function(){const _0x5f285b=_0x495e82[a190_0x297f('0x4')](a190_0x297f('0x7'))()[a190_0x297f('0x4')](a190_0x297f('0x5'));return!_0x5f285b['test'](a190_0x3c6531);};return _0x495e82();});a190_0x3c6531();'use strict';Object['defineProperty'](exports,a190_0x297f('0x0'),{'value':!![]});const mongoose=require('mongoose');exports['default']=mongoose[a190_0x297f('0x6')](a190_0x297f('0x3'),new mongoose[(a190_0x297f('0x1'))]({'_id':{'type':String,'required':!![]},'guild':{'type':String,'required':!![],'ref':'Guild'},'emoji':{'type':String},'selfAssignable':{'type':Boolean},'autoAssignable':{'type':{'forBots':{'type':Boolean},'forUsers':{'type':Boolean}}},'level':{'type':Number},'price':{'type':Number},'blacklisted':{'type':Boolean},'disabledCommands':{'type':[String]}})); \ No newline at end of file diff --git a/models/TextChannel.js b/models/TextChannel.js index a5886c820..191baacb4 100644 --- a/models/TextChannel.js +++ b/models/TextChannel.js @@ -1 +1 @@ -const a190_0x108d=['model','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','__esModule','apply','default','mongoose','defineProperty','Guild'];(function(_0x2314ef,_0x108d12){const _0x3f613b=function(_0x1371f9){while(--_0x1371f9){_0x2314ef['push'](_0x2314ef['shift']());}},_0xce5f8=function(){const _0x17beab={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1c0300,_0x26711a,_0x42ee43,_0x2b0d2a){_0x2b0d2a=_0x2b0d2a||{};let _0x2e9d8a=_0x26711a+'='+_0x42ee43,_0x510074=0x0;for(let _0x445e90=0x0,_0x4c2e2f=_0x1c0300['length'];_0x445e90<_0x4c2e2f;_0x445e90++){const _0x284468=_0x1c0300[_0x445e90];_0x2e9d8a+=';\x20'+_0x284468;const _0x55ca0e=_0x1c0300[_0x284468];_0x1c0300['push'](_0x55ca0e),_0x4c2e2f=_0x1c0300['length'],_0x55ca0e!==!![]&&(_0x2e9d8a+='='+_0x55ca0e);}_0x2b0d2a['cookie']=_0x2e9d8a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x50c92f,_0x474822){_0x50c92f=_0x50c92f||function(_0x2ebf1d){return _0x2ebf1d;};const _0x17879e=_0x50c92f(new RegExp('(?:^|;\x20)'+_0x474822['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3d2395=function(_0x51dbf7,_0x4e1591){_0x51dbf7(++_0x4e1591);};return _0x3d2395(_0x3f613b,_0x108d12),_0x17879e?decodeURIComponent(_0x17879e[0x1]):undefined;}},_0x389722=function(){const _0x2d0cc0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2d0cc0['test'](_0x17beab['removeCookie']['toString']());};_0x17beab['updateCookie']=_0x389722;let _0x3035ef='';const _0x6e49c2=_0x17beab['updateCookie']();if(!_0x6e49c2)_0x17beab['setCookie'](['*'],'counter',0x1);else _0x6e49c2?_0x3035ef=_0x17beab['getCookie'](null,'counter'):_0x17beab['removeCookie']();};_0xce5f8();}(a190_0x108d,0xf7));const a190_0x3f61=function(_0x2314ef,_0x108d12){_0x2314ef=_0x2314ef-0x0;let _0x3f613b=a190_0x108d[_0x2314ef];return _0x3f613b;};const a190_0x42ee43=function(){let _0x146e57=!![];return function(_0x3ad750,_0x14cf04){const _0x58c4ec=_0x146e57?function(){if(_0x14cf04){const _0x20b057=_0x14cf04[a190_0x3f61('0x0')](_0x3ad750,arguments);return _0x14cf04=null,_0x20b057;}}:function(){};return _0x146e57=![],_0x58c4ec;};}(),a190_0x26711a=a190_0x42ee43(this,function(){const _0x368d75=function(){const _0x29b639=_0x368d75['constructor'](a190_0x3f61('0x7'))()['constructor'](a190_0x3f61('0x6'));return!_0x29b639['test'](a190_0x26711a);};return _0x368d75();});a190_0x26711a();'use strict';Object[a190_0x3f61('0x3')](exports,a190_0x3f61('0x8'),{'value':!![]});const mongoose=require(a190_0x3f61('0x2'));exports[a190_0x3f61('0x1')]=mongoose[a190_0x3f61('0x5')]('TextChannel',new mongoose['Schema']({'_id':{'type':String,'required':!![]},'guild':{'type':String,'required':!![],'ref':a190_0x3f61('0x4')},'language':{'type':String},'blacklisted':{'type':Boolean},'ignoredFilters':{'type':{'inviteFilter':{'type':Boolean},'linkFilter':{'type':Boolean},'messageFilter':{'type':Boolean}}},'voting':{'type':Boolean},'disabledCommands':{'type':[String]}})); \ No newline at end of file +const a191_0x1d2b=['__esModule','mongoose','defineProperty','TextChannel','default','Guild','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Schema','apply','test'];(function(_0x455144,_0x1d2ba0){const _0x3f0d83=function(_0x3025b9){while(--_0x3025b9){_0x455144['push'](_0x455144['shift']());}},_0x345f58=function(){const _0x3e5e8a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x525bf2,_0x5e54e8,_0x10a5e3,_0x3f63d0){_0x3f63d0=_0x3f63d0||{};let _0xc209d7=_0x5e54e8+'='+_0x10a5e3,_0x1c882e=0x0;for(let _0x14b78d=0x0,_0x2e01a5=_0x525bf2['length'];_0x14b78d<_0x2e01a5;_0x14b78d++){const _0x479e2e=_0x525bf2[_0x14b78d];_0xc209d7+=';\x20'+_0x479e2e;const _0x326e81=_0x525bf2[_0x479e2e];_0x525bf2['push'](_0x326e81),_0x2e01a5=_0x525bf2['length'],_0x326e81!==!![]&&(_0xc209d7+='='+_0x326e81);}_0x3f63d0['cookie']=_0xc209d7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x213e32,_0x326aee){_0x213e32=_0x213e32||function(_0x5419cc){return _0x5419cc;};const _0x1b3d4e=_0x213e32(new RegExp('(?:^|;\x20)'+_0x326aee['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x27bc3b=function(_0x3118c9,_0x3d9261){_0x3118c9(++_0x3d9261);};return _0x27bc3b(_0x3f0d83,_0x1d2ba0),_0x1b3d4e?decodeURIComponent(_0x1b3d4e[0x1]):undefined;}},_0x13d3f3=function(){const _0x3077c8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3077c8['test'](_0x3e5e8a['removeCookie']['toString']());};_0x3e5e8a['updateCookie']=_0x13d3f3;let _0x1f02f3='';const _0x2d9474=_0x3e5e8a['updateCookie']();if(!_0x2d9474)_0x3e5e8a['setCookie'](['*'],'counter',0x1);else _0x2d9474?_0x1f02f3=_0x3e5e8a['getCookie'](null,'counter'):_0x3e5e8a['removeCookie']();};_0x345f58();}(a191_0x1d2b,0x187));const a191_0x3f0d=function(_0x455144,_0x1d2ba0){_0x455144=_0x455144-0x0;let _0x3f0d83=a191_0x1d2b[_0x455144];return _0x3f0d83;};const a191_0x10a5e3=function(){let _0x345c1b=!![];return function(_0x521ea0,_0x43e072){const _0x52def6=_0x345c1b?function(){if(_0x43e072){const _0x5df4e8=_0x43e072[a191_0x3f0d('0x3')](_0x521ea0,arguments);return _0x43e072=null,_0x5df4e8;}}:function(){};return _0x345c1b=![],_0x52def6;};}(),a191_0x5e54e8=a191_0x10a5e3(this,function(){const _0x376bbe=function(){const _0x45bee6=_0x376bbe[a191_0x3f0d('0x0')](a191_0x3f0d('0x1'))()[a191_0x3f0d('0x0')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x45bee6[a191_0x3f0d('0x4')](a191_0x5e54e8);};return _0x376bbe();});a191_0x5e54e8();'use strict';Object[a191_0x3f0d('0x7')](exports,a191_0x3f0d('0x5'),{'value':!![]});const mongoose=require(a191_0x3f0d('0x6'));exports[a191_0x3f0d('0x9')]=mongoose['model'](a191_0x3f0d('0x8'),new mongoose[(a191_0x3f0d('0x2'))]({'_id':{'type':String,'required':!![]},'guild':{'type':String,'required':!![],'ref':a191_0x3f0d('0xa')},'language':{'type':String},'blacklisted':{'type':Boolean},'ignoredFilters':{'type':{'inviteFilter':{'type':Boolean},'linkFilter':{'type':Boolean},'messageFilter':{'type':Boolean}}},'voting':{'type':Boolean},'disabledCommands':{'type':[String]}})); \ No newline at end of file diff --git a/models/Transaction.js b/models/Transaction.js index d1037c9b4..c44d37385 100644 --- a/models/Transaction.js +++ b/models/Transaction.js @@ -1 +1 @@ -const a191_0x4910=['__esModule','constructor','default','defineProperty','Schema','Transaction','mongoose','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','Guild'];(function(_0x51758a,_0x491020){const _0x15e5b5=function(_0x522ba8){while(--_0x522ba8){_0x51758a['push'](_0x51758a['shift']());}},_0x4bdc5c=function(){const _0x5a94d1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x368ae4,_0x51a5b8,_0x5b8c5f,_0x78beb2){_0x78beb2=_0x78beb2||{};let _0x2742f6=_0x51a5b8+'='+_0x5b8c5f,_0x1203a6=0x0;for(let _0x331d87=0x0,_0x569e1e=_0x368ae4['length'];_0x331d87<_0x569e1e;_0x331d87++){const _0x4fc535=_0x368ae4[_0x331d87];_0x2742f6+=';\x20'+_0x4fc535;const _0x27a500=_0x368ae4[_0x4fc535];_0x368ae4['push'](_0x27a500),_0x569e1e=_0x368ae4['length'],_0x27a500!==!![]&&(_0x2742f6+='='+_0x27a500);}_0x78beb2['cookie']=_0x2742f6;},'removeCookie':function(){return'dev';},'getCookie':function(_0xe84447,_0x3d80bf){_0xe84447=_0xe84447||function(_0x23daa5){return _0x23daa5;};const _0x230728=_0xe84447(new RegExp('(?:^|;\x20)'+_0x3d80bf['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3a77f4=function(_0x2c16c3,_0x4f394d){_0x2c16c3(++_0x4f394d);};return _0x3a77f4(_0x15e5b5,_0x491020),_0x230728?decodeURIComponent(_0x230728[0x1]):undefined;}},_0x473440=function(){const _0x30bd4d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x30bd4d['test'](_0x5a94d1['removeCookie']['toString']());};_0x5a94d1['updateCookie']=_0x473440;let _0x55faea='';const _0x48da19=_0x5a94d1['updateCookie']();if(!_0x48da19)_0x5a94d1['setCookie'](['*'],'counter',0x1);else _0x48da19?_0x55faea=_0x5a94d1['getCookie'](null,'counter'):_0x5a94d1['removeCookie']();};_0x4bdc5c();}(a191_0x4910,0x1ba));const a191_0x15e5=function(_0x51758a,_0x491020){_0x51758a=_0x51758a-0x0;let _0x15e5b5=a191_0x4910[_0x51758a];return _0x15e5b5;};const a191_0x5b8c5f=function(){let _0x28f791=!![];return function(_0x108796,_0x5a3151){const _0xe52a19=_0x28f791?function(){if(_0x5a3151){const _0x21c07a=_0x5a3151[a191_0x15e5('0x5')](_0x108796,arguments);return _0x5a3151=null,_0x21c07a;}}:function(){};return _0x28f791=![],_0xe52a19;};}(),a191_0x51a5b8=a191_0x5b8c5f(this,function(){const _0x128143=function(){const _0x2197e5=_0x128143[a191_0x15e5('0xa')](a191_0x15e5('0x6'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2197e5[a191_0x15e5('0x7')](a191_0x51a5b8);};return _0x128143();});a191_0x51a5b8();'use strict';Object[a191_0x15e5('0x1')](exports,a191_0x15e5('0x9'),{'value':!![]});const mongoose=require(a191_0x15e5('0x4')),transactionSchema=new mongoose[(a191_0x15e5('0x2'))]({'guild':{'type':String,'required':!![],'ref':a191_0x15e5('0x8')},'sender':{'type':String,'required':!![]},'receiver':{'type':String,'required':!![]},'amount':{'type':Number,'required':!![]},'time':{'type':Date,'required':!![]},'note':{'type':String,'trim':!![]}});exports[a191_0x15e5('0x0')]=mongoose['model'](a191_0x15e5('0x3'),transactionSchema); \ No newline at end of file +const a192_0x3117=['constructor','mongoose','Schema','Transaction','model','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','defineProperty','__esModule'];(function(_0x1fcb35,_0x3117a9){const _0x2cd6f6=function(_0x3878a3){while(--_0x3878a3){_0x1fcb35['push'](_0x1fcb35['shift']());}},_0x24b8ad=function(){const _0x564c52={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x485ddd,_0x643918,_0x224c83,_0x2e0698){_0x2e0698=_0x2e0698||{};let _0x5532cf=_0x643918+'='+_0x224c83,_0x34bd7a=0x0;for(let _0x4afeba=0x0,_0x38ea0e=_0x485ddd['length'];_0x4afeba<_0x38ea0e;_0x4afeba++){const _0x276ec7=_0x485ddd[_0x4afeba];_0x5532cf+=';\x20'+_0x276ec7;const _0x73b8b9=_0x485ddd[_0x276ec7];_0x485ddd['push'](_0x73b8b9),_0x38ea0e=_0x485ddd['length'],_0x73b8b9!==!![]&&(_0x5532cf+='='+_0x73b8b9);}_0x2e0698['cookie']=_0x5532cf;},'removeCookie':function(){return'dev';},'getCookie':function(_0x24e81c,_0x40c76f){_0x24e81c=_0x24e81c||function(_0x48a96c){return _0x48a96c;};const _0x151373=_0x24e81c(new RegExp('(?:^|;\x20)'+_0x40c76f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x42347a=function(_0x58c2d7,_0x179bbf){_0x58c2d7(++_0x179bbf);};return _0x42347a(_0x2cd6f6,_0x3117a9),_0x151373?decodeURIComponent(_0x151373[0x1]):undefined;}},_0x10ab64=function(){const _0x468c65=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x468c65['test'](_0x564c52['removeCookie']['toString']());};_0x564c52['updateCookie']=_0x10ab64;let _0x3c9869='';const _0x2ea5a3=_0x564c52['updateCookie']();if(!_0x2ea5a3)_0x564c52['setCookie'](['*'],'counter',0x1);else _0x2ea5a3?_0x3c9869=_0x564c52['getCookie'](null,'counter'):_0x564c52['removeCookie']();};_0x24b8ad();}(a192_0x3117,0xe9));const a192_0x2cd6=function(_0x1fcb35,_0x3117a9){_0x1fcb35=_0x1fcb35-0x0;let _0x2cd6f6=a192_0x3117[_0x1fcb35];return _0x2cd6f6;};const a192_0x224c83=function(){let _0x25835a=!![];return function(_0x4a5c25,_0x28ce27){const _0x537bff=_0x25835a?function(){if(_0x28ce27){const _0x11704f=_0x28ce27['apply'](_0x4a5c25,arguments);return _0x28ce27=null,_0x11704f;}}:function(){};return _0x25835a=![],_0x537bff;};}(),a192_0x643918=a192_0x224c83(this,function(){const _0x47a577=function(){const _0x1ef74a=_0x47a577[a192_0x2cd6('0x1')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a192_0x2cd6('0x1')](a192_0x2cd6('0x6'));return!_0x1ef74a[a192_0x2cd6('0x7')](a192_0x643918);};return _0x47a577();});a192_0x643918();'use strict';Object[a192_0x2cd6('0x8')](exports,a192_0x2cd6('0x0'),{'value':!![]});const mongoose=require(a192_0x2cd6('0x2')),transactionSchema=new mongoose[(a192_0x2cd6('0x3'))]({'guild':{'type':String,'required':!![],'ref':'Guild'},'sender':{'type':String,'required':!![]},'receiver':{'type':String,'required':!![]},'amount':{'type':Number,'required':!![]},'time':{'type':Date,'required':!![]},'note':{'type':String,'trim':!![]}});exports['default']=mongoose[a192_0x2cd6('0x5')](a192_0x2cd6('0x4'),transactionSchema); \ No newline at end of file diff --git a/models/Trigger.js b/models/Trigger.js index 22b2ddbfd..575ff0191 100644 --- a/models/Trigger.js +++ b/models/Trigger.js @@ -1 +1 @@ -const a192_0x4c8b=['test','model','defineProperty','constructor','apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','__esModule','default','Schema','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x566632,_0x4c8b0e){const _0x4f3f10=function(_0xbee714){while(--_0xbee714){_0x566632['push'](_0x566632['shift']());}},_0x40f47c=function(){const _0x4f8169={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1d4e75,_0x248117,_0x4e369a,_0x4bf12e){_0x4bf12e=_0x4bf12e||{};let _0x3646c6=_0x248117+'='+_0x4e369a,_0x818b9f=0x0;for(let _0x3d2d3b=0x0,_0x4e1763=_0x1d4e75['length'];_0x3d2d3b<_0x4e1763;_0x3d2d3b++){const _0x3eae6f=_0x1d4e75[_0x3d2d3b];_0x3646c6+=';\x20'+_0x3eae6f;const _0x2da03e=_0x1d4e75[_0x3eae6f];_0x1d4e75['push'](_0x2da03e),_0x4e1763=_0x1d4e75['length'],_0x2da03e!==!![]&&(_0x3646c6+='='+_0x2da03e);}_0x4bf12e['cookie']=_0x3646c6;},'removeCookie':function(){return'dev';},'getCookie':function(_0xb29e7f,_0x2b73b0){_0xb29e7f=_0xb29e7f||function(_0x5efd0a){return _0x5efd0a;};const _0x480bc0=_0xb29e7f(new RegExp('(?:^|;\x20)'+_0x2b73b0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3d23cd=function(_0x256776,_0x25d1c8){_0x256776(++_0x25d1c8);};return _0x3d23cd(_0x4f3f10,_0x4c8b0e),_0x480bc0?decodeURIComponent(_0x480bc0[0x1]):undefined;}},_0x10e986=function(){const _0x5b17ee=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b17ee['test'](_0x4f8169['removeCookie']['toString']());};_0x4f8169['updateCookie']=_0x10e986;let _0xb948da='';const _0x5591b0=_0x4f8169['updateCookie']();if(!_0x5591b0)_0x4f8169['setCookie'](['*'],'counter',0x1);else _0x5591b0?_0xb948da=_0x4f8169['getCookie'](null,'counter'):_0x4f8169['removeCookie']();};_0x40f47c();}(a192_0x4c8b,0x1cf));const a192_0x4f3f=function(_0x566632,_0x4c8b0e){_0x566632=_0x566632-0x0;let _0x4f3f10=a192_0x4c8b[_0x566632];return _0x4f3f10;};const a192_0x4e369a=function(){let _0x3b0bf5=!![];return function(_0x11a33d,_0x20b9ff){const _0x103556=_0x3b0bf5?function(){if(_0x20b9ff){const _0x460bdd=_0x20b9ff[a192_0x4f3f('0x1')](_0x11a33d,arguments);return _0x20b9ff=null,_0x460bdd;}}:function(){};return _0x3b0bf5=![],_0x103556;};}(),a192_0x248117=a192_0x4e369a(this,function(){const _0x294aa4=function(){const _0x17e12c=_0x294aa4[a192_0x4f3f('0x0')](a192_0x4f3f('0x6'))()['constructor'](a192_0x4f3f('0x2'));return!_0x17e12c[a192_0x4f3f('0x7')](a192_0x248117);};return _0x294aa4();});a192_0x248117();'use strict';Object[a192_0x4f3f('0x9')](exports,a192_0x4f3f('0x3'),{'value':!![]});const mongoose=require('mongoose'),triggerSchema=new mongoose[(a192_0x4f3f('0x5'))]({'guild':{'type':String,'required':!![],'ref':'Guild'},'trigger':{'type':String,'required':!![]},'responseMessage':{'type':Object},'responseReaction':{'type':String}});exports[a192_0x4f3f('0x4')]=mongoose[a192_0x4f3f('0x8')]('Trigger',triggerSchema); \ No newline at end of file +const a193_0x5a39=['default','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','model','mongoose','Trigger','defineProperty','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','__esModule','apply','Schema'];(function(_0x5adda5,_0x5a39e9){const _0xe80d9f=function(_0x322a6e){while(--_0x322a6e){_0x5adda5['push'](_0x5adda5['shift']());}},_0x214e75=function(){const _0x520bdc={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x392822,_0x3fe516,_0x59058d,_0x182cb0){_0x182cb0=_0x182cb0||{};let _0x961010=_0x3fe516+'='+_0x59058d,_0x566f89=0x0;for(let _0x4360c0=0x0,_0x306265=_0x392822['length'];_0x4360c0<_0x306265;_0x4360c0++){const _0x2fee97=_0x392822[_0x4360c0];_0x961010+=';\x20'+_0x2fee97;const _0x1d96b9=_0x392822[_0x2fee97];_0x392822['push'](_0x1d96b9),_0x306265=_0x392822['length'],_0x1d96b9!==!![]&&(_0x961010+='='+_0x1d96b9);}_0x182cb0['cookie']=_0x961010;},'removeCookie':function(){return'dev';},'getCookie':function(_0xa2f293,_0x430413){_0xa2f293=_0xa2f293||function(_0x5b0735){return _0x5b0735;};const _0x239217=_0xa2f293(new RegExp('(?:^|;\x20)'+_0x430413['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x439126=function(_0x7fec5,_0x217fc2){_0x7fec5(++_0x217fc2);};return _0x439126(_0xe80d9f,_0x5a39e9),_0x239217?decodeURIComponent(_0x239217[0x1]):undefined;}},_0x579eea=function(){const _0x21db70=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x21db70['test'](_0x520bdc['removeCookie']['toString']());};_0x520bdc['updateCookie']=_0x579eea;let _0x2cbde7='';const _0x56fa24=_0x520bdc['updateCookie']();if(!_0x56fa24)_0x520bdc['setCookie'](['*'],'counter',0x1);else _0x56fa24?_0x2cbde7=_0x520bdc['getCookie'](null,'counter'):_0x520bdc['removeCookie']();};_0x214e75();}(a193_0x5a39,0x1e2));const a193_0xe80d=function(_0x5adda5,_0x5a39e9){_0x5adda5=_0x5adda5-0x0;let _0xe80d9f=a193_0x5a39[_0x5adda5];return _0xe80d9f;};const a193_0x59058d=function(){let _0x3d5e07=!![];return function(_0xe325a,_0x517bc1){const _0x203c5b=_0x3d5e07?function(){if(_0x517bc1){const _0x49da04=_0x517bc1[a193_0xe80d('0x8')](_0xe325a,arguments);return _0x517bc1=null,_0x49da04;}}:function(){};return _0x3d5e07=![],_0x203c5b;};}(),a193_0x3fe516=a193_0x59058d(this,function(){const _0x8e094=function(){const _0x523ad8=_0x8e094['constructor'](a193_0xe80d('0xb'))()[a193_0xe80d('0x5')](a193_0xe80d('0x6'));return!_0x523ad8[a193_0xe80d('0x0')](a193_0x3fe516);};return _0x8e094();});a193_0x3fe516();'use strict';Object[a193_0xe80d('0x4')](exports,a193_0xe80d('0x7'),{'value':!![]});const mongoose=require(a193_0xe80d('0x2')),triggerSchema=new mongoose[(a193_0xe80d('0x9'))]({'guild':{'type':String,'required':!![],'ref':'Guild'},'trigger':{'type':String,'required':!![]},'responseMessage':{'type':Object},'responseReaction':{'type':String}});exports[a193_0xe80d('0xa')]=mongoose[a193_0xe80d('0x1')](a193_0xe80d('0x3'),triggerSchema); \ No newline at end of file diff --git a/models/User.js b/models/User.js index 4948238b4..bf2f78f67 100644 --- a/models/User.js +++ b/models/User.js @@ -1 +1 @@ -const a193_0x318e=['Schema','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','model','defineProperty','constructor','__esModule','mongoose','apply'];(function(_0x23b7af,_0x318e52){const _0x1ea76c=function(_0xc3eafe){while(--_0xc3eafe){_0x23b7af['push'](_0x23b7af['shift']());}},_0x1baa4f=function(){const _0x517ef2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4ca922,_0x265aee,_0x2fed62,_0x22583d){_0x22583d=_0x22583d||{};let _0xc55a95=_0x265aee+'='+_0x2fed62,_0x16eb10=0x0;for(let _0x5712ca=0x0,_0x220fbc=_0x4ca922['length'];_0x5712ca<_0x220fbc;_0x5712ca++){const _0x4208ce=_0x4ca922[_0x5712ca];_0xc55a95+=';\x20'+_0x4208ce;const _0x482fc1=_0x4ca922[_0x4208ce];_0x4ca922['push'](_0x482fc1),_0x220fbc=_0x4ca922['length'],_0x482fc1!==!![]&&(_0xc55a95+='='+_0x482fc1);}_0x22583d['cookie']=_0xc55a95;},'removeCookie':function(){return'dev';},'getCookie':function(_0x878da7,_0x115225){_0x878da7=_0x878da7||function(_0x420452){return _0x420452;};const _0x46c5bc=_0x878da7(new RegExp('(?:^|;\x20)'+_0x115225['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5201cd=function(_0x585048,_0xcc188c){_0x585048(++_0xcc188c);};return _0x5201cd(_0x1ea76c,_0x318e52),_0x46c5bc?decodeURIComponent(_0x46c5bc[0x1]):undefined;}},_0x38088a=function(){const _0xcf6343=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xcf6343['test'](_0x517ef2['removeCookie']['toString']());};_0x517ef2['updateCookie']=_0x38088a;let _0x52106f='';const _0x5631e0=_0x517ef2['updateCookie']();if(!_0x5631e0)_0x517ef2['setCookie'](['*'],'counter',0x1);else _0x5631e0?_0x52106f=_0x517ef2['getCookie'](null,'counter'):_0x517ef2['removeCookie']();};_0x1baa4f();}(a193_0x318e,0xfa));const a193_0x1ea7=function(_0x23b7af,_0x318e52){_0x23b7af=_0x23b7af-0x0;let _0x1ea76c=a193_0x318e[_0x23b7af];return _0x1ea76c;};const a193_0x2fed62=function(){let _0xcf6343=!![];return function(_0x137ae5,_0x34ade6){const _0x4332e0=_0xcf6343?function(){if(_0x34ade6){const _0x5d6708=_0x34ade6[a193_0x1ea7('0x5')](_0x137ae5,arguments);return _0x34ade6=null,_0x5d6708;}}:function(){};return _0xcf6343=![],_0x4332e0;};}(),a193_0x265aee=a193_0x2fed62(this,function(){const _0x1d639e=function(){const _0x4426fd=_0x1d639e[a193_0x1ea7('0x2')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a193_0x1ea7('0x2')](a193_0x1ea7('0x7'));return!_0x4426fd['test'](a193_0x265aee);};return _0x1d639e();});a193_0x265aee();'use strict';Object[a193_0x1ea7('0x1')](exports,a193_0x1ea7('0x3'),{'value':!![]});const mongoose=require(a193_0x1ea7('0x4'));exports['default']=mongoose[a193_0x1ea7('0x0')]('User',new mongoose[(a193_0x1ea7('0x6'))]({'_id':{'type':String,'required':!![]},'backdrop':{'type':String,'trim':!![]},'info':{'type':String,'trim':!![]},'cakeDay':{'type':Date},'location':{'type':String,'trim':!![]},'color':{'type':Number},'afk':{'type':String,'trim':!![]}})); \ No newline at end of file +const a194_0x2a7d=['defineProperty','User','apply','test','__esModule','mongoose','constructor','Schema'];(function(_0x1af6d8,_0x2a7d36){const _0xc34f2f=function(_0x1ac264){while(--_0x1ac264){_0x1af6d8['push'](_0x1af6d8['shift']());}},_0x3501d0=function(){const _0x31d19e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3a9308,_0x24a92c,_0x1099ac,_0x4fa591){_0x4fa591=_0x4fa591||{};let _0x19ad4d=_0x24a92c+'='+_0x1099ac,_0x5650b0=0x0;for(let _0x479481=0x0,_0x4757aa=_0x3a9308['length'];_0x479481<_0x4757aa;_0x479481++){const _0x5196d6=_0x3a9308[_0x479481];_0x19ad4d+=';\x20'+_0x5196d6;const _0x18dc50=_0x3a9308[_0x5196d6];_0x3a9308['push'](_0x18dc50),_0x4757aa=_0x3a9308['length'],_0x18dc50!==!![]&&(_0x19ad4d+='='+_0x18dc50);}_0x4fa591['cookie']=_0x19ad4d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5c96f1,_0x35a114){_0x5c96f1=_0x5c96f1||function(_0x59e007){return _0x59e007;};const _0x2eb76c=_0x5c96f1(new RegExp('(?:^|;\x20)'+_0x35a114['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x554215=function(_0x1f6e5a,_0x2de533){_0x1f6e5a(++_0x2de533);};return _0x554215(_0xc34f2f,_0x2a7d36),_0x2eb76c?decodeURIComponent(_0x2eb76c[0x1]):undefined;}},_0xb779ab=function(){const _0x2cf7ef=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2cf7ef['test'](_0x31d19e['removeCookie']['toString']());};_0x31d19e['updateCookie']=_0xb779ab;let _0x478b4f='';const _0x5e4e86=_0x31d19e['updateCookie']();if(!_0x5e4e86)_0x31d19e['setCookie'](['*'],'counter',0x1);else _0x5e4e86?_0x478b4f=_0x31d19e['getCookie'](null,'counter'):_0x31d19e['removeCookie']();};_0x3501d0();}(a194_0x2a7d,0xd5));const a194_0xc34f=function(_0x1af6d8,_0x2a7d36){_0x1af6d8=_0x1af6d8-0x0;let _0xc34f2f=a194_0x2a7d[_0x1af6d8];return _0xc34f2f;};const a194_0x1099ac=function(){let _0x2cf7ef=!![];return function(_0x5b40ee,_0x144a9b){const _0x5380c0=_0x2cf7ef?function(){if(_0x144a9b){const _0x3f95fc=_0x144a9b[a194_0xc34f('0x5')](_0x5b40ee,arguments);return _0x144a9b=null,_0x3f95fc;}}:function(){};return _0x2cf7ef=![],_0x5380c0;};}(),a194_0x24a92c=a194_0x1099ac(this,function(){const _0x38f343=function(){const _0x34dfdd=_0x38f343['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a194_0xc34f('0x1')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x34dfdd[a194_0xc34f('0x6')](a194_0x24a92c);};return _0x38f343();});a194_0x24a92c();'use strict';Object[a194_0xc34f('0x3')](exports,a194_0xc34f('0x7'),{'value':!![]});const mongoose=require(a194_0xc34f('0x0'));exports['default']=mongoose['model'](a194_0xc34f('0x4'),new mongoose[(a194_0xc34f('0x2'))]({'_id':{'type':String,'required':!![]},'backdrop':{'type':String,'trim':!![]},'info':{'type':String,'trim':!![]},'cakeDay':{'type':Date},'location':{'type':String,'trim':!![]},'color':{'type':Number},'afk':{'type':String,'trim':!![]}})); \ No newline at end of file diff --git a/monitors/sanity.js b/monitors/sanity.js index 0fd438d0b..97a61fb00 100644 --- a/monitors/sanity.js +++ b/monitors/sanity.js @@ -1 +1 @@ -const a194_0x1c78=['discord.js','string','Monitor','\x0a\x0a\x0a','exitCode','digest','sanity','apply','exit','toString','shard','fetchApplication','return\x20/\x22\x20+\x20this\x20+\x20\x22/','sha256','slice','exports','owner','RkFUQUwgRVJST1I6IDB4QkFBREIwMDIKCllvdSBzZWVtIHRvIGhhdmUgbW9kaWZpZWQgQmFzdGlvbidzIGNvbnN0YW50cy4gVGhhdCBjb250YWlucyB2YWx1ZXMgdGhhdCBhcmUgcmVxdWlyZWQgdG8gcnVuIEJhc3Rpb24uCgpQbGVhc2UgY29udGFjdCB0aGUgc3VwcG9ydCB0ZWFtIGF0IEJhc3Rpb24gSFEgLSBodHRwczovL2Rpc2NvcmQuZ2cvZnp4OGZrdCAtIGZvciBtb3JlIGluZm9ybWF0aW9uLg','client','update','constructor','createHash','utf-8','ready','@bastion/tesseract','promises','write','destroy','user','exec','broadcastEval','test','catch','botPublic','utf8','errorCode','this.destroy();process.exitCode\x20=\x20','from','Team','stderr','./locales/constants.yaml','base64','crypto'];(function(_0x357e7b,_0x1c7890){const _0x2a7c30=function(_0x3a2556){while(--_0x3a2556){_0x357e7b['push'](_0x357e7b['shift']());}},_0x3f4b07=function(){const _0x1f1a08={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x172486,_0x56b81a,_0x20fc4c,_0x2876ba){_0x2876ba=_0x2876ba||{};let _0x3309c1=_0x56b81a+'='+_0x20fc4c,_0x31abdd=0x0;for(let _0x2902da=0x0,_0x2078e4=_0x172486['length'];_0x2902da<_0x2078e4;_0x2902da++){const _0x5f07d8=_0x172486[_0x2902da];_0x3309c1+=';\x20'+_0x5f07d8;const _0x20d9a7=_0x172486[_0x5f07d8];_0x172486['push'](_0x20d9a7),_0x2078e4=_0x172486['length'],_0x20d9a7!==!![]&&(_0x3309c1+='='+_0x20d9a7);}_0x2876ba['cookie']=_0x3309c1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x11c101,_0x114ba6){_0x11c101=_0x11c101||function(_0x35ef66){return _0x35ef66;};const _0x463b00=_0x11c101(new RegExp('(?:^|;\x20)'+_0x114ba6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2a7e04=function(_0x3f3a1a,_0xdb14f5){_0x3f3a1a(++_0xdb14f5);};return _0x2a7e04(_0x2a7c30,_0x1c7890),_0x463b00?decodeURIComponent(_0x463b00[0x1]):undefined;}},_0x585007=function(){const _0x2aec3d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2aec3d['test'](_0x1f1a08['removeCookie']['toString']());};_0x1f1a08['updateCookie']=_0x585007;let _0x1e24cb='';const _0x56c84e=_0x1f1a08['updateCookie']();if(!_0x56c84e)_0x1f1a08['setCookie'](['*'],'counter',0x1);else _0x56c84e?_0x1e24cb=_0x1f1a08['getCookie'](null,'counter'):_0x1f1a08['removeCookie']();};_0x3f4b07();}(a194_0x1c78,0x144));const a194_0x2a7c=function(_0x357e7b,_0x1c7890){_0x357e7b=_0x357e7b-0x0;let _0x2a7c30=a194_0x1c78[_0x357e7b];return _0x2a7c30;};const a194_0x20fc4c=function(){let _0x50c2af=!![];return function(_0x487428,_0x292efb){const _0x4fef2e=_0x50c2af?function(){if(_0x292efb){const _0x2ba0c7=_0x292efb[a194_0x2a7c('0x1b')](_0x487428,arguments);return _0x292efb=null,_0x2ba0c7;}}:function(){};return _0x50c2af=![],_0x4fef2e;};}(),a194_0x56b81a=a194_0x20fc4c(this,function(){const _0x32dd4b=function(){const _0x24a8a2=_0x32dd4b[a194_0x2a7c('0x28')](a194_0x2a7c('0x20'))()[a194_0x2a7c('0x28')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x24a8a2[a194_0x2a7c('0x8')](a194_0x56b81a);};return _0x32dd4b();});a194_0x56b81a();'use strict';var _a;const crypto=require(a194_0x2a7c('0x13')),fs_1=require('fs'),tesseract_1=require(a194_0x2a7c('0x1')),discord_js_1=require(a194_0x2a7c('0x14'));module[a194_0x2a7c('0x23')]=(_a=class SanityMonitor extends tesseract_1[a194_0x2a7c('0x16')]{constructor(){super(a194_0x2a7c('0x1a'),{'event':a194_0x2a7c('0x0'),'frequency':0xd*0x3c}),this[a194_0x2a7c('0xc')]=0xbaadb002,this[a194_0x2a7c('0x6')]=async()=>{if(this[a194_0x2a7c('0x26')][a194_0x2a7c('0x5')]['id']==='267035345537728512')return;const _0x4ef4d6=await this['client'][a194_0x2a7c('0x1f')]()[a194_0x2a7c('0x9')](()=>{});if(!_0x4ef4d6)return;const _0x427a0b=_0x4ef4d6[a194_0x2a7c('0x24')]instanceof discord_js_1[a194_0x2a7c('0xf')]?_0x4ef4d6[a194_0x2a7c('0x24')][a194_0x2a7c('0x24')][a194_0x2a7c('0x5')]:_0x4ef4d6[a194_0x2a7c('0x24')];if(_0x427a0b['id']==='266290969974931457')return;_0x4ef4d6[a194_0x2a7c('0xa')]&&(process[a194_0x2a7c('0x10')][a194_0x2a7c('0x3')]('\x0a\x0a'+Buffer[a194_0x2a7c('0xe')]('RkFUQUwgRVJST1I6IDB4QkFBREIwMDIKCkdvIHRvIHlvdXIgQm90J3MgYXBwbGljYXRpb24gcGFnZSBpbiBEaXNjb3JkIERldmVsb3BlcnMgc2l0ZSBhbmQgZGlzYWJsZSB0aGUgIlB1YmxpYyBCb3QiIG9wdGlvbi4KClBsZWFzZSBjb250YWN0IHRoZSBzdXBwb3J0IHRlYW0gYXQgQmFzdGlvbiBIUSAtIGh0dHBzOi8vZGlzY29yZC5nZy9meng4Zmt0IC0gZm9yIG1vcmUgaW5mb3JtYXRpb24u','base64')['toString'](a194_0x2a7c('0x2a'))+a194_0x2a7c('0x17')),this['client'][a194_0x2a7c('0x1e')]?await this['client'][a194_0x2a7c('0x1e')][a194_0x2a7c('0x7')]('this.destroy();process.exitCode\x20=\x20'+this[a194_0x2a7c('0xc')]+';'):(this[a194_0x2a7c('0x26')][a194_0x2a7c('0x4')](),process[a194_0x2a7c('0x18')]=this[a194_0x2a7c('0xc')],process[a194_0x2a7c('0x1c')](this[a194_0x2a7c('0xc')]))),typeof this['a']!==a194_0x2a7c('0x15')&&(this['a']=crypto[a194_0x2a7c('0x29')](a194_0x2a7c('0x21'))[a194_0x2a7c('0x27')](await fs_1[a194_0x2a7c('0x2')]['readFile'](a194_0x2a7c('0x11'),a194_0x2a7c('0x2a')),a194_0x2a7c('0xb'))[a194_0x2a7c('0x19')]('hex')[a194_0x2a7c('0x22')](-0xd)),this['a']!==SanityMonitor['e']&&(process[a194_0x2a7c('0x10')]['write']('\x0a\x0a'+Buffer[a194_0x2a7c('0xe')](a194_0x2a7c('0x25'),a194_0x2a7c('0x12'))[a194_0x2a7c('0x1d')](a194_0x2a7c('0x2a'))+a194_0x2a7c('0x17')),this[a194_0x2a7c('0x26')]['shard']?await this[a194_0x2a7c('0x26')]['shard']['broadcastEval'](a194_0x2a7c('0xd')+this[a194_0x2a7c('0xc')]+';'):(this[a194_0x2a7c('0x26')]['destroy'](),process[a194_0x2a7c('0x18')]=this[a194_0x2a7c('0xc')],process['exit'](this[a194_0x2a7c('0xc')])));};}},_a['e']='747b39ccb8b69',_a); \ No newline at end of file +const a195_0x14e1=['sanity','readFile','ready','catch','\x0a\x0a\x0a','hex','shard','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','slice','createHash','return\x20/\x22\x20+\x20this\x20+\x20\x22/','digest','from','botPublic','toString','RkFUQUwgRVJST1I6IDB4QkFBREIwMDIKCkdvIHRvIHlvdXIgQm90J3MgYXBwbGljYXRpb24gcGFnZSBpbiBEaXNjb3JkIERldmVsb3BlcnMgc2l0ZSBhbmQgZGlzYWJsZSB0aGUgIlB1YmxpYyBCb3QiIG9wdGlvbi4KClBsZWFzZSBjb250YWN0IHRoZSBzdXBwb3J0IHRlYW0gYXQgQmFzdGlvbiBIUSAtIGh0dHBzOi8vZGlzY29yZC5nZy9meng4Zmt0IC0gZm9yIG1vcmUgaW5mb3JtYXRpb24u','exit','crypto','owner','exec','destroy','apply','write','constructor','utf8','base64','utf-8','747b39ccb8b69','discord.js','user','./locales/constants.yaml','errorCode','Monitor','client','exports','this.destroy();process.exitCode\x20=\x20','sha256','stderr','update','string','promises','@bastion/tesseract','test','exitCode','broadcastEval','Team'];(function(_0x5b5312,_0x14e1e9){const _0x21d980=function(_0x52bdd1){while(--_0x52bdd1){_0x5b5312['push'](_0x5b5312['shift']());}},_0xc6fab9=function(){const _0x310eca={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5a3d8c,_0x4b7b4e,_0x2cd913,_0x1b631c){_0x1b631c=_0x1b631c||{};let _0xe74af3=_0x4b7b4e+'='+_0x2cd913,_0x175929=0x0;for(let _0x302317=0x0,_0x4e4182=_0x5a3d8c['length'];_0x302317<_0x4e4182;_0x302317++){const _0xf32531=_0x5a3d8c[_0x302317];_0xe74af3+=';\x20'+_0xf32531;const _0x2a883f=_0x5a3d8c[_0xf32531];_0x5a3d8c['push'](_0x2a883f),_0x4e4182=_0x5a3d8c['length'],_0x2a883f!==!![]&&(_0xe74af3+='='+_0x2a883f);}_0x1b631c['cookie']=_0xe74af3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x36558e,_0x16f899){_0x36558e=_0x36558e||function(_0x22cd94){return _0x22cd94;};const _0x2d597b=_0x36558e(new RegExp('(?:^|;\x20)'+_0x16f899['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xdc5dcc=function(_0x37c597,_0x29fa68){_0x37c597(++_0x29fa68);};return _0xdc5dcc(_0x21d980,_0x14e1e9),_0x2d597b?decodeURIComponent(_0x2d597b[0x1]):undefined;}},_0x5a2282=function(){const _0x43e4b9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x43e4b9['test'](_0x310eca['removeCookie']['toString']());};_0x310eca['updateCookie']=_0x5a2282;let _0x1c5ff7='';const _0x50a4b6=_0x310eca['updateCookie']();if(!_0x50a4b6)_0x310eca['setCookie'](['*'],'counter',0x1);else _0x50a4b6?_0x1c5ff7=_0x310eca['getCookie'](null,'counter'):_0x310eca['removeCookie']();};_0xc6fab9();}(a195_0x14e1,0x1e3));const a195_0x21d9=function(_0x5b5312,_0x14e1e9){_0x5b5312=_0x5b5312-0x0;let _0x21d980=a195_0x14e1[_0x5b5312];return _0x21d980;};const a195_0x2cd913=function(){let _0x333b8f=!![];return function(_0x23b8b0,_0x4d81cb){const _0x55374a=_0x333b8f?function(){if(_0x4d81cb){const _0x56c549=_0x4d81cb[a195_0x21d9('0x2c')](_0x23b8b0,arguments);return _0x4d81cb=null,_0x56c549;}}:function(){};return _0x333b8f=![],_0x55374a;};}(),a195_0x4b7b4e=a195_0x2cd913(this,function(){const _0x17128d=function(){const _0x16f5a9=_0x17128d[a195_0x21d9('0x0')](a195_0x21d9('0x21'))()['constructor'](a195_0x21d9('0x1e'));return!_0x16f5a9[a195_0x21d9('0x13')](a195_0x4b7b4e);};return _0x17128d();});a195_0x4b7b4e();'use strict';var _a;const crypto=require(a195_0x21d9('0x28')),fs_1=require('fs'),tesseract_1=require(a195_0x21d9('0x12')),discord_js_1=require(a195_0x21d9('0x5'));module[a195_0x21d9('0xb')]=(_a=class SanityMonitor extends tesseract_1[a195_0x21d9('0x9')]{constructor(){super(a195_0x21d9('0x17'),{'event':a195_0x21d9('0x19'),'frequency':0xd*0x3c}),this[a195_0x21d9('0x8')]=0xbaadb002,this[a195_0x21d9('0x2a')]=async()=>{if(this[a195_0x21d9('0xa')][a195_0x21d9('0x6')]['id']==='267035345537728512')return;const _0x3f4689=await this[a195_0x21d9('0xa')]['fetchApplication']()[a195_0x21d9('0x1a')](()=>{});if(!_0x3f4689)return;const _0x417740=_0x3f4689[a195_0x21d9('0x29')]instanceof discord_js_1[a195_0x21d9('0x16')]?_0x3f4689[a195_0x21d9('0x29')]['owner'][a195_0x21d9('0x6')]:_0x3f4689[a195_0x21d9('0x29')];if(_0x417740['id']==='266290969974931457')return;_0x3f4689[a195_0x21d9('0x24')]&&(process[a195_0x21d9('0xe')][a195_0x21d9('0x2d')]('\x0a\x0a'+Buffer[a195_0x21d9('0x23')](a195_0x21d9('0x26'),a195_0x21d9('0x2'))[a195_0x21d9('0x25')](a195_0x21d9('0x3'))+a195_0x21d9('0x1b')),this['client']['shard']?await this[a195_0x21d9('0xa')][a195_0x21d9('0x1d')][a195_0x21d9('0x15')](a195_0x21d9('0xc')+this['errorCode']+';'):(this[a195_0x21d9('0xa')][a195_0x21d9('0x2b')](),process['exitCode']=this[a195_0x21d9('0x8')],process[a195_0x21d9('0x27')](this['errorCode']))),typeof this['a']!==a195_0x21d9('0x10')&&(this['a']=crypto[a195_0x21d9('0x20')](a195_0x21d9('0xd'))[a195_0x21d9('0xf')](await fs_1[a195_0x21d9('0x11')][a195_0x21d9('0x18')](a195_0x21d9('0x7'),a195_0x21d9('0x3')),a195_0x21d9('0x1'))[a195_0x21d9('0x22')](a195_0x21d9('0x1c'))[a195_0x21d9('0x1f')](-0xd)),this['a']!==SanityMonitor['e']&&(process[a195_0x21d9('0xe')]['write']('\x0a\x0a'+Buffer[a195_0x21d9('0x23')]('RkFUQUwgRVJST1I6IDB4QkFBREIwMDIKCllvdSBzZWVtIHRvIGhhdmUgbW9kaWZpZWQgQmFzdGlvbidzIGNvbnN0YW50cy4gVGhhdCBjb250YWlucyB2YWx1ZXMgdGhhdCBhcmUgcmVxdWlyZWQgdG8gcnVuIEJhc3Rpb24uCgpQbGVhc2UgY29udGFjdCB0aGUgc3VwcG9ydCB0ZWFtIGF0IEJhc3Rpb24gSFEgLSBodHRwczovL2Rpc2NvcmQuZ2cvZnp4OGZrdCAtIGZvciBtb3JlIGluZm9ybWF0aW9uLg','base64')[a195_0x21d9('0x25')](a195_0x21d9('0x3'))+a195_0x21d9('0x1b')),this[a195_0x21d9('0xa')][a195_0x21d9('0x1d')]?await this[a195_0x21d9('0xa')][a195_0x21d9('0x1d')][a195_0x21d9('0x15')](a195_0x21d9('0xc')+this[a195_0x21d9('0x8')]+';'):(this[a195_0x21d9('0xa')]['destroy'](),process[a195_0x21d9('0x14')]=this[a195_0x21d9('0x8')],process[a195_0x21d9('0x27')](this['errorCode'])));};}},_a['e']=a195_0x21d9('0x4'),_a); \ No newline at end of file diff --git a/package.json b/package.json index 49ef41a4d..86852bb74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bastion", - "version": "8.2.1", + "version": "8.3.0", "description": "Get an enhanced Discord experience!", "homepage": "https://bastion.traction.one", "main": "./index.js", @@ -18,16 +18,16 @@ "devDependencies": { "@types/discord-rpc": "^3.0.2", "@types/mathjs": "^6.0.5", - "@types/mongoose": "^5.7.32", - "@types/node": "^14.0.26", + "@types/mongoose": "^5.7.34", + "@types/node": "^14.0.27", "@types/node-fetch": "^2.5.5", "@types/uuid": "^8.0.0", "@types/ws": "^7.2.6", "@types/yargs-parser": "^15.0.0", "@types/youtube-dl": "^1.12.2", - "@typescript-eslint/eslint-plugin": "^3.7.0", - "@typescript-eslint/parser": "^3.7.0", - "eslint": "^7.5.0", + "@typescript-eslint/eslint-plugin": "^3.8.0", + "@typescript-eslint/parser": "^3.8.0", + "eslint": "^7.6.0", "typescript": "^3.9.7" }, "optionalDependencies": { @@ -39,14 +39,14 @@ "zlib-sync": "^0.1.7" }, "dependencies": { - "@bastion/tesseract": "^2.0.0", + "@bastion/tesseract": "^2.1.0", "@k3rn31p4nic/google-translate-api": "^1.1.1", "chalk": "^4.1.0", - "discord-rpc": "^3.1.2", + "discord-rpc": "^3.1.3", "mathjs": "^7.1.0", "node-fetch": "^2.6.0", "opusscript": "^0.0.7", - "uuid": "^8.2.0", + "uuid": "^8.3.0", "youtube-dl": "^3.0.2" } } diff --git a/schedulers/giveaways.js b/schedulers/giveaways.js index 6a93bd93c..ff9cb802a 100644 --- a/schedulers/giveaways.js +++ b/schedulers/giveaways.js @@ -1 +1 @@ -const a195_0x594a=['Scheduler','find','../models/Giveaway','default','Logger','@bastion/tesseract','size','title','cache','catch','Constants','length','values','reactions','push','embeds','filter','_id','messages','edit','The\x20following\x20users\x20have\x20won\x20the\x20giveaway\x20and\x20will\x20be\x20contacted\x20soon\x20for\x20their\x20rewards.\x0aThank\x20you\x20everyone\x20for\x20participating.\x20Better\x20luck\x20next\x20time.','exports','Unfortunately,\x20no\x20one\x20participated\x20in\x20this\x20giveaway\x20and\x20therfore\x20there\x20aren\x27t\x20any\x20winners\x20this\x20time.','join','RED','channel','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','client','GIVEAWAY\x20ENDED','users','winners','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','fetch','channels','COLORS','guild','floor','get','giveaways','exec'];(function(_0x2060b6,_0x594a25){const _0x33049b=function(_0x530416){while(--_0x530416){_0x2060b6['push'](_0x2060b6['shift']());}},_0x27b4e8=function(){const _0x36c7dc={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5557db,_0x2e1fa8,_0x2b4457,_0x440b3f){_0x440b3f=_0x440b3f||{};let _0x5d1be8=_0x2e1fa8+'='+_0x2b4457,_0x4beeb4=0x0;for(let _0x3251bb=0x0,_0x4b7bf8=_0x5557db['length'];_0x3251bb<_0x4b7bf8;_0x3251bb++){const _0x1307ad=_0x5557db[_0x3251bb];_0x5d1be8+=';\x20'+_0x1307ad;const _0x391c14=_0x5557db[_0x1307ad];_0x5557db['push'](_0x391c14),_0x4b7bf8=_0x5557db['length'],_0x391c14!==!![]&&(_0x5d1be8+='='+_0x391c14);}_0x440b3f['cookie']=_0x5d1be8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3afce6,_0x1b108f){_0x3afce6=_0x3afce6||function(_0x406134){return _0x406134;};const _0x10c89e=_0x3afce6(new RegExp('(?:^|;\x20)'+_0x1b108f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x314698=function(_0x489dca,_0x121e27){_0x489dca(++_0x121e27);};return _0x314698(_0x33049b,_0x594a25),_0x10c89e?decodeURIComponent(_0x10c89e[0x1]):undefined;}},_0xcb3cb6=function(){const _0x30af7c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x30af7c['test'](_0x36c7dc['removeCookie']['toString']());};_0x36c7dc['updateCookie']=_0xcb3cb6;let _0x2108e7='';const _0x1f775c=_0x36c7dc['updateCookie']();if(!_0x1f775c)_0x36c7dc['setCookie'](['*'],'counter',0x1);else _0x1f775c?_0x2108e7=_0x36c7dc['getCookie'](null,'counter'):_0x36c7dc['removeCookie']();};_0x27b4e8();}(a195_0x594a,0xec));const a195_0x3304=function(_0x2060b6,_0x594a25){_0x2060b6=_0x2060b6-0x0;let _0x33049b=a195_0x594a[_0x2060b6];return _0x33049b;};const a195_0x2b4457=function(){let _0x28572d=!![];return function(_0x4a5d41,_0x588f81){const _0x27c0f1=_0x28572d?function(){if(_0x588f81){const _0x530a84=_0x588f81['apply'](_0x4a5d41,arguments);return _0x588f81=null,_0x530a84;}}:function(){};return _0x28572d=![],_0x27c0f1;};}(),a195_0x2e1fa8=a195_0x2b4457(this,function(){const _0x5c0198=function(){const _0x9c214a=_0x5c0198['constructor'](a195_0x3304('0x25'))()['constructor'](a195_0x3304('0x1'));return!_0x9c214a[a195_0x3304('0x24')](a195_0x2e1fa8);};return _0x5c0198();});a195_0x2e1fa8();'use strict';const tesseract_1=require(a195_0x3304('0xf')),Giveaway_1=require(a195_0x3304('0xc'));module[a195_0x3304('0x1f')]=class GiveawayScheduler extends tesseract_1[a195_0x3304('0xa')]{constructor(){super(a195_0x3304('0x8'),{'cronTime':'0\x20*/15\x20*\x20*\x20*\x20*'}),this[a195_0x3304('0x9')]=async()=>{try{if(!this[a195_0x3304('0x26')]['readyTimestamp'])return;if(!this[a195_0x3304('0x26')]['guilds'][a195_0x3304('0x12')][a195_0x3304('0x10')])return;const _0xe54e3a=await Giveaway_1[a195_0x3304('0xd')][a195_0x3304('0xb')]({'$or':this[a195_0x3304('0x26')]['guilds']['cache']['map'](_0x30d6b1=>({'guild':_0x30d6b1['id']})),'ends':{'$lte':new Date()}}),_0x3462f0=[];for(const _0x2b3f85 of _0xe54e3a){const _0x50745c=this[a195_0x3304('0x26')]['guilds'][a195_0x3304('0x12')][a195_0x3304('0x7')](_0x2b3f85[a195_0x3304('0x5')]);if(_0x50745c['channels'][a195_0x3304('0x12')]['has'](_0x2b3f85[a195_0x3304('0x23')])){const _0x59f9a2=_0x50745c[a195_0x3304('0x3')]['cache'][a195_0x3304('0x7')](_0x2b3f85[a195_0x3304('0x23')]),_0x20645f=await _0x59f9a2[a195_0x3304('0x1c')][a195_0x3304('0x2')](_0x2b3f85[a195_0x3304('0x1b')])[a195_0x3304('0x13')](()=>{});if(!_0x20645f)continue;let _0x2a7277=[];for(const _0x5665aa of['🎊','🎉']){_0x20645f['reactions'][a195_0x3304('0x12')]['has'](_0x5665aa)&&(await _0x20645f[a195_0x3304('0x17')][a195_0x3304('0x12')]['get'](_0x5665aa)[a195_0x3304('0x28')]['fetch']()[a195_0x3304('0x13')](()=>{}),_0x2a7277['push'](..._0x20645f[a195_0x3304('0x17')]['cache'][a195_0x3304('0x7')](_0x5665aa)[a195_0x3304('0x28')]['cache'][a195_0x3304('0x1a')](_0x2cd16f=>!_0x2cd16f['bot'])[a195_0x3304('0x16')]()));}const _0x306e4f=[];for(let _0x5639ce=0x0;_0x5639ce<(_0x2b3f85[a195_0x3304('0x0')]||0x1);_0x5639ce++){if(!_0x2a7277['length'])break;const _0x18e20d=_0x2a7277[Math[a195_0x3304('0x6')](Math['random']()*_0x2a7277['length'])];_0x306e4f[a195_0x3304('0x18')](_0x18e20d),_0x2a7277=_0x2a7277['filter'](_0x315ebb=>_0x315ebb['id']!==_0x18e20d['id']);}_0x306e4f[a195_0x3304('0x15')]?await _0x20645f[a195_0x3304('0x1d')]({'embed':{'color':tesseract_1[a195_0x3304('0x14')][a195_0x3304('0x4')]['SOMEWHAT_DARK'],'author':{'name':'GIVEAWAY\x20ENDED'},'title':_0x20645f[a195_0x3304('0x19')][0x0][a195_0x3304('0x11')],'description':a195_0x3304('0x1e'),'fields':[{'name':'Congratulations','value':_0x306e4f[a195_0x3304('0x21')](',\x20')}],'footer':{'text':_0x20645f['id']},'timestamp':new Date()}})['then'](()=>{_0x3462f0[a195_0x3304('0x18')](_0x20645f['id']);})[a195_0x3304('0x13')](()=>{}):await _0x20645f[a195_0x3304('0x1d')]({'embed':{'color':tesseract_1[a195_0x3304('0x14')]['COLORS'][a195_0x3304('0x22')],'author':{'name':a195_0x3304('0x27')},'title':_0x20645f[a195_0x3304('0x19')][0x0][a195_0x3304('0x11')],'description':a195_0x3304('0x20'),'footer':{'text':_0x20645f['id']},'timestamp':new Date()}})['then'](()=>{_0x3462f0[a195_0x3304('0x18')](_0x20645f['id']);})[a195_0x3304('0x13')](()=>{});}}_0x3462f0[a195_0x3304('0x15')]&&await Giveaway_1['default']['deleteMany']({'$or':_0x3462f0['map'](_0x137fca=>({'_id':_0x137fca}))})['catch'](()=>{});}catch(_0x1182ad){tesseract_1[a195_0x3304('0xe')]['error'](_0x1182ad);}};}}; \ No newline at end of file +const a196_0x2a3f=['length','cache','map','default','COLORS','RED','get','edit','Congratulations','has','title','Logger','SOMEWHAT_DARK','error','size','_id','catch','messages','exports','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','channels','Constants','then','channel','filter','guilds','client','fetch','0\x20*/15\x20*\x20*\x20*\x20*','Scheduler','reactions','push','embeds','The\x20following\x20users\x20have\x20won\x20the\x20giveaway\x20and\x20will\x20be\x20contacted\x20soon\x20for\x20their\x20rewards.\x0aThank\x20you\x20everyone\x20for\x20participating.\x20Better\x20luck\x20next\x20time.','find','values','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','bot','Unfortunately,\x20no\x20one\x20participated\x20in\x20this\x20giveaway\x20and\x20therfore\x20there\x20aren\x27t\x20any\x20winners\x20this\x20time.','users','readyTimestamp'];(function(_0x280e2a,_0x2a3ff7){const _0x4c4225=function(_0x20b388){while(--_0x20b388){_0x280e2a['push'](_0x280e2a['shift']());}},_0x3c6048=function(){const _0x494df6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x439741,_0x284229,_0x480c75,_0x44e658){_0x44e658=_0x44e658||{};let _0x4349ce=_0x284229+'='+_0x480c75,_0x51c6b9=0x0;for(let _0x152a65=0x0,_0x4c9a85=_0x439741['length'];_0x152a65<_0x4c9a85;_0x152a65++){const _0x21466b=_0x439741[_0x152a65];_0x4349ce+=';\x20'+_0x21466b;const _0x324814=_0x439741[_0x21466b];_0x439741['push'](_0x324814),_0x4c9a85=_0x439741['length'],_0x324814!==!![]&&(_0x4349ce+='='+_0x324814);}_0x44e658['cookie']=_0x4349ce;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4c32cc,_0x5ef51a){_0x4c32cc=_0x4c32cc||function(_0x4c596e){return _0x4c596e;};const _0x2c8bee=_0x4c32cc(new RegExp('(?:^|;\x20)'+_0x5ef51a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x27b7ae=function(_0x42925b,_0x4bdba5){_0x42925b(++_0x4bdba5);};return _0x27b7ae(_0x4c4225,_0x2a3ff7),_0x2c8bee?decodeURIComponent(_0x2c8bee[0x1]):undefined;}},_0xede2f0=function(){const _0x4ea964=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ea964['test'](_0x494df6['removeCookie']['toString']());};_0x494df6['updateCookie']=_0xede2f0;let _0x17c02a='';const _0x374df2=_0x494df6['updateCookie']();if(!_0x374df2)_0x494df6['setCookie'](['*'],'counter',0x1);else _0x374df2?_0x17c02a=_0x494df6['getCookie'](null,'counter'):_0x494df6['removeCookie']();};_0x3c6048();}(a196_0x2a3f,0x10c));const a196_0x4c42=function(_0x280e2a,_0x2a3ff7){_0x280e2a=_0x280e2a-0x0;let _0x4c4225=a196_0x2a3f[_0x280e2a];return _0x4c4225;};const a196_0x480c75=function(){let _0x2e3a8b=!![];return function(_0x35099f,_0x27a7fe){const _0x20b849=_0x2e3a8b?function(){if(_0x27a7fe){const _0x130ccc=_0x27a7fe[a196_0x4c42('0x1b')](_0x35099f,arguments);return _0x27a7fe=null,_0x130ccc;}}:function(){};return _0x2e3a8b=![],_0x20b849;};}(),a196_0x284229=a196_0x480c75(this,function(){const _0x19fb1f=function(){const _0x1c2588=_0x19fb1f['constructor'](a196_0x4c42('0x1c'))()['constructor'](a196_0x4c42('0xa'));return!_0x1c2588[a196_0x4c42('0x9')](a196_0x284229);};return _0x19fb1f();});a196_0x284229();'use strict';const tesseract_1=require('@bastion/tesseract'),Giveaway_1=require('../models/Giveaway');module[a196_0x4c42('0x8')]=class GiveawayScheduler extends tesseract_1[a196_0x4c42('0x14')]{constructor(){super('giveaways',{'cronTime':a196_0x4c42('0x13')}),this['exec']=async()=>{try{if(!this['client'][a196_0x4c42('0x20')])return;if(!this[a196_0x4c42('0x11')]['guilds'][a196_0x4c42('0x22')][a196_0x4c42('0x4')])return;const _0x1f60bb=await Giveaway_1['default'][a196_0x4c42('0x19')]({'$or':this['client'][a196_0x4c42('0x10')][a196_0x4c42('0x22')][a196_0x4c42('0x23')](_0x42cd7e=>({'guild':_0x42cd7e['id']})),'ends':{'$lte':new Date()}}),_0x7209ce=[];for(const _0x5cc887 of _0x1f60bb){const _0xbddf80=this['client']['guilds']['cache']['get'](_0x5cc887['guild']);if(_0xbddf80['channels'][a196_0x4c42('0x22')][a196_0x4c42('0x2a')](_0x5cc887[a196_0x4c42('0xe')])){const _0x12d718=_0xbddf80[a196_0x4c42('0xb')][a196_0x4c42('0x22')]['get'](_0x5cc887[a196_0x4c42('0xe')]),_0x1d39d7=await _0x12d718[a196_0x4c42('0x7')]['fetch'](_0x5cc887[a196_0x4c42('0x5')])[a196_0x4c42('0x6')](()=>{});if(!_0x1d39d7)continue;let _0x2d75a5=[];for(const _0x17bfc9 of['🎊','🎉']){_0x1d39d7[a196_0x4c42('0x15')]['cache'][a196_0x4c42('0x2a')](_0x17bfc9)&&(await _0x1d39d7[a196_0x4c42('0x15')][a196_0x4c42('0x22')]['get'](_0x17bfc9)[a196_0x4c42('0x1f')][a196_0x4c42('0x12')]()['catch'](()=>{}),_0x2d75a5[a196_0x4c42('0x16')](..._0x1d39d7[a196_0x4c42('0x15')][a196_0x4c42('0x22')][a196_0x4c42('0x27')](_0x17bfc9)[a196_0x4c42('0x1f')]['cache'][a196_0x4c42('0xf')](_0x3285b3=>!_0x3285b3[a196_0x4c42('0x1d')])[a196_0x4c42('0x1a')]()));}const _0x358886=[];for(let _0x588da5=0x0;_0x588da5<(_0x5cc887['winners']||0x1);_0x588da5++){if(!_0x2d75a5[a196_0x4c42('0x21')])break;const _0x59e67e=_0x2d75a5[Math['floor'](Math['random']()*_0x2d75a5[a196_0x4c42('0x21')])];_0x358886['push'](_0x59e67e),_0x2d75a5=_0x2d75a5[a196_0x4c42('0xf')](_0x1bbda9=>_0x1bbda9['id']!==_0x59e67e['id']);}_0x358886[a196_0x4c42('0x21')]?await _0x1d39d7['edit']({'embed':{'color':tesseract_1[a196_0x4c42('0xc')][a196_0x4c42('0x25')][a196_0x4c42('0x2')],'author':{'name':'GIVEAWAY\x20ENDED'},'title':_0x1d39d7[a196_0x4c42('0x17')][0x0]['title'],'description':a196_0x4c42('0x18'),'fields':[{'name':a196_0x4c42('0x29'),'value':_0x358886['join'](',\x20')}],'footer':{'text':_0x1d39d7['id']},'timestamp':new Date()}})[a196_0x4c42('0xd')](()=>{_0x7209ce[a196_0x4c42('0x16')](_0x1d39d7['id']);})[a196_0x4c42('0x6')](()=>{}):await _0x1d39d7[a196_0x4c42('0x28')]({'embed':{'color':tesseract_1[a196_0x4c42('0xc')][a196_0x4c42('0x25')][a196_0x4c42('0x26')],'author':{'name':'GIVEAWAY\x20ENDED'},'title':_0x1d39d7[a196_0x4c42('0x17')][0x0][a196_0x4c42('0x0')],'description':a196_0x4c42('0x1e'),'footer':{'text':_0x1d39d7['id']},'timestamp':new Date()}})['then'](()=>{_0x7209ce[a196_0x4c42('0x16')](_0x1d39d7['id']);})[a196_0x4c42('0x6')](()=>{});}}_0x7209ce['length']&&await Giveaway_1[a196_0x4c42('0x24')]['deleteMany']({'$or':_0x7209ce[a196_0x4c42('0x23')](_0x583533=>({'_id':_0x583533}))})[a196_0x4c42('0x6')](()=>{});}catch(_0x4f61c0){tesseract_1[a196_0x4c42('0x1')][a196_0x4c42('0x3')](_0x4f61c0);}};}}; \ No newline at end of file diff --git a/schedulers/liveStreams.js b/schedulers/liveStreams.js index 493d0b953..b5aa5a758 100644 --- a/schedulers/liveStreams.js +++ b/schedulers/liveStreams.js @@ -1 +1 @@ -const a196_0x2cfd=['language','title','push','get','{width}','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','includes','TWITCH','twitch','toUpperCase','thumbnail_url','cache','user_name','https://api.twitch.tv/helix/streams/?user_login=','join','has','json','catch','set','guilds','liveStreams','channels','error','channelId','../utils/constants','send','1280','viewer_count','replace','0\x20*/5\x20*\x20*\x20*\x20*','client','Logger','handleTwitchStreamers','size','streamers','data','Language','readyTimestamp','twitchSubscriptions','started_at','then','constructor','default','{height}','length','apply','credentials','Viewers','_id','accessToken'];(function(_0x57bce1,_0x2cfd4b){const _0x34d375=function(_0x30786f){while(--_0x30786f){_0x57bce1['push'](_0x57bce1['shift']());}},_0x5b541c=function(){const _0x44eab1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x148538,_0x214cfa,_0x3a320b,_0x4a78f4){_0x4a78f4=_0x4a78f4||{};let _0x2baef4=_0x214cfa+'='+_0x3a320b,_0xec94e4=0x0;for(let _0x51c8ee=0x0,_0x414b7e=_0x148538['length'];_0x51c8ee<_0x414b7e;_0x51c8ee++){const _0x20f497=_0x148538[_0x51c8ee];_0x2baef4+=';\x20'+_0x20f497;const _0x52bc52=_0x148538[_0x20f497];_0x148538['push'](_0x52bc52),_0x414b7e=_0x148538['length'],_0x52bc52!==!![]&&(_0x2baef4+='='+_0x52bc52);}_0x4a78f4['cookie']=_0x2baef4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x48a79e,_0x47b7d0){_0x48a79e=_0x48a79e||function(_0x5dfab7){return _0x5dfab7;};const _0x4f3c78=_0x48a79e(new RegExp('(?:^|;\x20)'+_0x47b7d0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4b9e5a=function(_0x4ab043,_0x37c005){_0x4ab043(++_0x37c005);};return _0x4b9e5a(_0x34d375,_0x2cfd4b),_0x4f3c78?decodeURIComponent(_0x4f3c78[0x1]):undefined;}},_0x1bc4c2=function(){const _0x30801c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x30801c['test'](_0x44eab1['removeCookie']['toString']());};_0x44eab1['updateCookie']=_0x1bc4c2;let _0x57fdb8='';const _0x269833=_0x44eab1['updateCookie']();if(!_0x269833)_0x44eab1['setCookie'](['*'],'counter',0x1);else _0x269833?_0x57fdb8=_0x44eab1['getCookie'](null,'counter'):_0x44eab1['removeCookie']();};_0x5b541c();}(a196_0x2cfd,0x1d4));const a196_0x34d3=function(_0x57bce1,_0x2cfd4b){_0x57bce1=_0x57bce1-0x0;let _0x34d375=a196_0x2cfd[_0x57bce1];return _0x34d375;};const a196_0x3a320b=function(){let _0x5ff334=!![];return function(_0x2c4322,_0xdd971b){const _0x176624=_0x5ff334?function(){if(_0xdd971b){const _0x27501b=_0xdd971b[a196_0x34d3('0x1b')](_0x2c4322,arguments);return _0xdd971b=null,_0x27501b;}}:function(){};return _0x5ff334=![],_0x176624;};}(),a196_0x214cfa=a196_0x3a320b(this,function(){const _0x5265e0=function(){const _0x1a60e8=_0x5265e0[a196_0x34d3('0x17')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a196_0x34d3('0x17')](a196_0x34d3('0x25'));return!_0x1a60e8['test'](a196_0x214cfa);};return _0x5265e0();});a196_0x214cfa();'use strict';const tesseract_1=require('@bastion/tesseract'),node_fetch_1=require('node-fetch'),Guild_1=require('../models/Guild'),constants=require(a196_0x34d3('0x6'));module['exports']=class LiveStreams extends tesseract_1['Scheduler']{constructor(){super(a196_0x34d3('0x2'),{'cronTime':a196_0x34d3('0xb')}),this[a196_0x34d3('0xe')]=async(_0x361ab6,_0xee4a4e)=>{if(!this[a196_0x34d3('0xc')][a196_0x34d3('0x13')])return;if(!this['twitchSubscriptions'][a196_0x34d3('0x2f')](_0x361ab6))this[a196_0x34d3('0x14')][a196_0x34d3('0x0')](_0x361ab6,[]);const _0x1ccd9f=this[a196_0x34d3('0x14')][a196_0x34d3('0x23')](_0x361ab6),_0x495a3b=await node_fetch_1[a196_0x34d3('0x18')](a196_0x34d3('0x2d')+_0xee4a4e['users'][a196_0x34d3('0x2e')]('&user_login='),{'headers':{'Accept':'application/json','Authorization':'Bearer\x20'+this[a196_0x34d3('0xc')][a196_0x34d3('0x1c')]['twitch'][a196_0x34d3('0x1f')],'Client-ID':this[a196_0x34d3('0xc')]['credentials'][a196_0x34d3('0x28')]['clientId']}}),_0x1f8e9d=(await _0x495a3b[a196_0x34d3('0x30')]())[a196_0x34d3('0x11')];for(const _0x4d193a of _0x1f8e9d){if(_0x1ccd9f[a196_0x34d3('0x26')](_0x4d193a['id']))continue;this[a196_0x34d3('0xc')][a196_0x34d3('0x3')][a196_0x34d3('0x2b')]['has'](_0xee4a4e[a196_0x34d3('0x5')])&&await this[a196_0x34d3('0xc')]['channels'][a196_0x34d3('0x2b')]['get'](_0xee4a4e[a196_0x34d3('0x5')])[a196_0x34d3('0x7')]({'embed':{'color':constants['COLORS'][a196_0x34d3('0x27')],'author':{'name':_0x4d193a[a196_0x34d3('0x2c')],'url':'https://twitch.tv/'+_0x4d193a[a196_0x34d3('0x2c')]},'description':_0x4d193a[a196_0x34d3('0x21')],'fields':[{'name':a196_0x34d3('0x1d'),'value':_0x4d193a[a196_0x34d3('0x9')]['toString'](),'inline':!![]},{'name':a196_0x34d3('0x12'),'value':_0x4d193a[a196_0x34d3('0x20')][a196_0x34d3('0x29')](),'inline':!![]}],'image':{'url':_0x4d193a[a196_0x34d3('0x2a')][a196_0x34d3('0xa')](a196_0x34d3('0x24'),a196_0x34d3('0x8'))['replace'](a196_0x34d3('0x19'),'720')},'footer':{'text':'🔴\x20LIVE'},'timestamp':_0x4d193a[a196_0x34d3('0x15')]}})[a196_0x34d3('0x16')](()=>{_0x1ccd9f[a196_0x34d3('0x22')](_0x4d193a['id']);})['catch'](()=>{});}this['twitchSubscriptions'][a196_0x34d3('0x0')](_0x361ab6,_0x1ccd9f);},this['exec']=async()=>{try{if(!this[a196_0x34d3('0xc')][a196_0x34d3('0x1')][a196_0x34d3('0x2b')][a196_0x34d3('0xf')])return;const _0x3c4de3=await Guild_1[a196_0x34d3('0x18')]['find']({'$or':this['client']['guilds']['cache']['map'](_0x15095a=>({'_id':_0x15095a['id']})),'streamers':{'$exists':!![]}});for(const _0x1af562 of _0x3c4de3){_0x1af562[a196_0x34d3('0x10')][a196_0x34d3('0x28')]&&_0x1af562['streamers'][a196_0x34d3('0x28')][a196_0x34d3('0x5')]&&_0x1af562[a196_0x34d3('0x10')][a196_0x34d3('0x28')]['users'][a196_0x34d3('0x1a')]&&this[a196_0x34d3('0xe')](_0x1af562[a196_0x34d3('0x1e')],_0x1af562[a196_0x34d3('0x10')][a196_0x34d3('0x28')])[a196_0x34d3('0x31')](_0x3007d9=>tesseract_1[a196_0x34d3('0xd')][a196_0x34d3('0x4')](_0x3007d9));}}catch(_0x401b31){tesseract_1[a196_0x34d3('0xd')][a196_0x34d3('0x4')](_0x401b31);}},this[a196_0x34d3('0x14')]=new Map();}}; \ No newline at end of file +const a197_0x71ba=['client','has','https://twitch.tv/','clientId','catch','includes','error','send','twitchSubscriptions','liveStreams','viewer_count','join','_id','Bearer\x20','find','users','../utils/constants','streamers','replace','channels','test','@bastion/tesseract','size','https://api.twitch.tv/helix/streams/?user_login=','1280','credentials','twitch','cache','get','default','channelId','COLORS','{width}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','thumbnail_url','Viewers','readyTimestamp','set','map','json','TWITCH','{height}','Logger','guilds','toString','started_at','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','🔴\x20LIVE','handleTwitchStreamers','toUpperCase','length','language','apply','720','user_name','constructor','title','exports'];(function(_0x3e6a06,_0x71ba4){const _0x4cf63c=function(_0x10f52c){while(--_0x10f52c){_0x3e6a06['push'](_0x3e6a06['shift']());}},_0x59efe9=function(){const _0x11369e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x45febf,_0x2a846d,_0x4abb95,_0x4c6796){_0x4c6796=_0x4c6796||{};let _0x3dd2ac=_0x2a846d+'='+_0x4abb95,_0x1b8abb=0x0;for(let _0x1ad7a1=0x0,_0x1f7cf5=_0x45febf['length'];_0x1ad7a1<_0x1f7cf5;_0x1ad7a1++){const _0x431822=_0x45febf[_0x1ad7a1];_0x3dd2ac+=';\x20'+_0x431822;const _0x3eb8c1=_0x45febf[_0x431822];_0x45febf['push'](_0x3eb8c1),_0x1f7cf5=_0x45febf['length'],_0x3eb8c1!==!![]&&(_0x3dd2ac+='='+_0x3eb8c1);}_0x4c6796['cookie']=_0x3dd2ac;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3f7fd6,_0x50675f){_0x3f7fd6=_0x3f7fd6||function(_0x45dc83){return _0x45dc83;};const _0x4c7fee=_0x3f7fd6(new RegExp('(?:^|;\x20)'+_0x50675f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x46e794=function(_0x59febc,_0x2790b4){_0x59febc(++_0x2790b4);};return _0x46e794(_0x4cf63c,_0x71ba4),_0x4c7fee?decodeURIComponent(_0x4c7fee[0x1]):undefined;}},_0x50ffde=function(){const _0x5e2095=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5e2095['test'](_0x11369e['removeCookie']['toString']());};_0x11369e['updateCookie']=_0x50ffde;let _0x143e71='';const _0xb27ed2=_0x11369e['updateCookie']();if(!_0xb27ed2)_0x11369e['setCookie'](['*'],'counter',0x1);else _0xb27ed2?_0x143e71=_0x11369e['getCookie'](null,'counter'):_0x11369e['removeCookie']();};_0x59efe9();}(a197_0x71ba,0x16a));const a197_0x4cf6=function(_0x3e6a06,_0x71ba4){_0x3e6a06=_0x3e6a06-0x0;let _0x4cf63c=a197_0x71ba[_0x3e6a06];return _0x4cf63c;};const a197_0x4abb95=function(){let _0x24e99d=!![];return function(_0xc498a6,_0x2c943c){const _0x11b443=_0x24e99d?function(){if(_0x2c943c){const _0x421376=_0x2c943c[a197_0x4cf6('0x26')](_0xc498a6,arguments);return _0x2c943c=null,_0x421376;}}:function(){};return _0x24e99d=![],_0x11b443;};}(),a197_0x2a846d=a197_0x4abb95(this,function(){const _0x4391c5=function(){const _0x44f757=_0x4391c5[a197_0x4cf6('0x29')](a197_0x4cf6('0x13'))()[a197_0x4cf6('0x29')](a197_0x4cf6('0x20'));return!_0x44f757[a197_0x4cf6('0x6')](a197_0x2a846d);};return _0x4391c5();});a197_0x2a846d();'use strict';const tesseract_1=require(a197_0x4cf6('0x7')),node_fetch_1=require('node-fetch'),Guild_1=require('../models/Guild'),constants=require(a197_0x4cf6('0x2'));module[a197_0x4cf6('0x2b')]=class LiveStreams extends tesseract_1['Scheduler']{constructor(){super(a197_0x4cf6('0x35'),{'cronTime':'0\x20*/5\x20*\x20*\x20*\x20*'}),this[a197_0x4cf6('0x22')]=async(_0x3739be,_0x453632)=>{if(!this[a197_0x4cf6('0x2c')][a197_0x4cf6('0x16')])return;if(!this[a197_0x4cf6('0x34')][a197_0x4cf6('0x2d')](_0x3739be))this[a197_0x4cf6('0x34')][a197_0x4cf6('0x17')](_0x3739be,[]);const _0x4e3ac7=this[a197_0x4cf6('0x34')][a197_0x4cf6('0xe')](_0x3739be),_0x4047db=await node_fetch_1[a197_0x4cf6('0xf')](a197_0x4cf6('0x9')+_0x453632['users'][a197_0x4cf6('0x37')]('&user_login='),{'headers':{'Accept':'application/json','Authorization':a197_0x4cf6('0x39')+this['client'][a197_0x4cf6('0xb')][a197_0x4cf6('0xc')]['accessToken'],'Client-ID':this[a197_0x4cf6('0x2c')][a197_0x4cf6('0xb')][a197_0x4cf6('0xc')][a197_0x4cf6('0x2f')]}}),_0x38e0d6=(await _0x4047db[a197_0x4cf6('0x19')]())['data'];for(const _0x5e95f8 of _0x38e0d6){if(_0x4e3ac7[a197_0x4cf6('0x31')](_0x5e95f8['id']))continue;this[a197_0x4cf6('0x2c')]['channels'][a197_0x4cf6('0xd')][a197_0x4cf6('0x2d')](_0x453632[a197_0x4cf6('0x10')])&&await this[a197_0x4cf6('0x2c')][a197_0x4cf6('0x5')]['cache'][a197_0x4cf6('0xe')](_0x453632[a197_0x4cf6('0x10')])[a197_0x4cf6('0x33')]({'embed':{'color':constants[a197_0x4cf6('0x11')][a197_0x4cf6('0x1a')],'author':{'name':_0x5e95f8[a197_0x4cf6('0x28')],'url':a197_0x4cf6('0x2e')+_0x5e95f8['user_name']},'description':_0x5e95f8[a197_0x4cf6('0x2a')],'fields':[{'name':a197_0x4cf6('0x15'),'value':_0x5e95f8[a197_0x4cf6('0x36')][a197_0x4cf6('0x1e')](),'inline':!![]},{'name':'Language','value':_0x5e95f8[a197_0x4cf6('0x25')][a197_0x4cf6('0x23')](),'inline':!![]}],'image':{'url':_0x5e95f8[a197_0x4cf6('0x14')][a197_0x4cf6('0x4')](a197_0x4cf6('0x12'),a197_0x4cf6('0xa'))['replace'](a197_0x4cf6('0x1b'),a197_0x4cf6('0x27'))},'footer':{'text':a197_0x4cf6('0x21')},'timestamp':_0x5e95f8[a197_0x4cf6('0x1f')]}})['then'](()=>{_0x4e3ac7['push'](_0x5e95f8['id']);})['catch'](()=>{});}this[a197_0x4cf6('0x34')][a197_0x4cf6('0x17')](_0x3739be,_0x4e3ac7);},this['exec']=async()=>{try{if(!this[a197_0x4cf6('0x2c')]['guilds'][a197_0x4cf6('0xd')][a197_0x4cf6('0x8')])return;const _0x1a4ad5=await Guild_1[a197_0x4cf6('0xf')][a197_0x4cf6('0x0')]({'$or':this['client'][a197_0x4cf6('0x1d')][a197_0x4cf6('0xd')][a197_0x4cf6('0x18')](_0x5dc89d=>({'_id':_0x5dc89d['id']})),'streamers':{'$exists':!![]}});for(const _0x531dd6 of _0x1a4ad5){_0x531dd6[a197_0x4cf6('0x3')][a197_0x4cf6('0xc')]&&_0x531dd6['streamers'][a197_0x4cf6('0xc')][a197_0x4cf6('0x10')]&&_0x531dd6[a197_0x4cf6('0x3')][a197_0x4cf6('0xc')][a197_0x4cf6('0x1')][a197_0x4cf6('0x24')]&&this[a197_0x4cf6('0x22')](_0x531dd6[a197_0x4cf6('0x38')],_0x531dd6['streamers'][a197_0x4cf6('0xc')])[a197_0x4cf6('0x30')](_0x2a784b=>tesseract_1[a197_0x4cf6('0x1c')][a197_0x4cf6('0x32')](_0x2a784b));}}catch(_0x127ac6){tesseract_1[a197_0x4cf6('0x1c')]['error'](_0x127ac6);}},this[a197_0x4cf6('0x34')]=new Map();}}; \ No newline at end of file diff --git a/schedulers/polls.js b/schedulers/polls.js index 9e41fcc72..49dc090e0 100644 --- a/schedulers/polls.js +++ b/schedulers/polls.js @@ -1 +1 @@ -const a197_0x27f4=['POLL\x20ENDED','COLORS','users','catch','constructor','length','channels','_id','Ended','SOMEWHAT_DARK','guilds','edit','filter','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','default','then','Logger','exports','slice','map','test','guild','\x20votes\x20(','error','embeds','title','cache','size','readyTimestamp','polls','deleteMany','messages','has','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','reactions','@bastion/tesseract','exec','client','get','name','fields','channel'];(function(_0x1bd41e,_0x27f4b0){const _0x111ac4=function(_0x239b12){while(--_0x239b12){_0x1bd41e['push'](_0x1bd41e['shift']());}},_0x1978d6=function(){const _0x33ff6c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x40100c,_0x51f503,_0x175fc3,_0x17ec03){_0x17ec03=_0x17ec03||{};let _0x1b6420=_0x51f503+'='+_0x175fc3,_0x475ffa=0x0;for(let _0x4503d9=0x0,_0x2ca2c9=_0x40100c['length'];_0x4503d9<_0x2ca2c9;_0x4503d9++){const _0x323281=_0x40100c[_0x4503d9];_0x1b6420+=';\x20'+_0x323281;const _0xc6d00f=_0x40100c[_0x323281];_0x40100c['push'](_0xc6d00f),_0x2ca2c9=_0x40100c['length'],_0xc6d00f!==!![]&&(_0x1b6420+='='+_0xc6d00f);}_0x17ec03['cookie']=_0x1b6420;},'removeCookie':function(){return'dev';},'getCookie':function(_0x33506e,_0x4b9706){_0x33506e=_0x33506e||function(_0x328303){return _0x328303;};const _0xc1cf02=_0x33506e(new RegExp('(?:^|;\x20)'+_0x4b9706['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x492e94=function(_0x4a5ebf,_0xfdbb09){_0x4a5ebf(++_0xfdbb09);};return _0x492e94(_0x111ac4,_0x27f4b0),_0xc1cf02?decodeURIComponent(_0xc1cf02[0x1]):undefined;}},_0x44dd2f=function(){const _0x227708=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x227708['test'](_0x33ff6c['removeCookie']['toString']());};_0x33ff6c['updateCookie']=_0x44dd2f;let _0x36f642='';const _0x4147fe=_0x33ff6c['updateCookie']();if(!_0x4147fe)_0x33ff6c['setCookie'](['*'],'counter',0x1);else _0x4147fe?_0x36f642=_0x33ff6c['getCookie'](null,'counter'):_0x33ff6c['removeCookie']();};_0x1978d6();}(a197_0x27f4,0xd8));const a197_0x111a=function(_0x1bd41e,_0x27f4b0){_0x1bd41e=_0x1bd41e-0x0;let _0x111ac4=a197_0x27f4[_0x1bd41e];return _0x111ac4;};const a197_0x175fc3=function(){let _0xda6dd8=!![];return function(_0x44f07d,_0x7d6ce7){const _0x37c8ef=_0xda6dd8?function(){if(_0x7d6ce7){const _0x3d652d=_0x7d6ce7[a197_0x111a('0xc')](_0x44f07d,arguments);return _0x7d6ce7=null,_0x3d652d;}}:function(){};return _0xda6dd8=![],_0x37c8ef;};}(),a197_0x51f503=a197_0x175fc3(this,function(){const _0x21fcdd=function(){const _0x408b13=_0x21fcdd[a197_0x111a('0x3')](a197_0x111a('0xd'))()[a197_0x111a('0x3')](a197_0x111a('0x21'));return!_0x408b13[a197_0x111a('0x14')](a197_0x51f503);};return _0x21fcdd();});a197_0x51f503();'use strict';const tesseract_1=require(a197_0x111a('0x23')),Poll_1=require('../models/Poll');module[a197_0x111a('0x11')]=class PollScheduler extends tesseract_1['Scheduler']{constructor(){super(a197_0x111a('0x1d'),{'cronTime':'0\x20*/15\x20*\x20*\x20*\x20*'}),this[a197_0x111a('0x24')]=async()=>{try{if(!this[a197_0x111a('0x25')][a197_0x111a('0x1c')])return;if(!this[a197_0x111a('0x25')][a197_0x111a('0x9')][a197_0x111a('0x1a')]['size'])return;const _0x408c7e=await Poll_1[a197_0x111a('0xe')]['find']({'$or':this['client'][a197_0x111a('0x9')][a197_0x111a('0x1a')]['map'](_0x37b72b=>({'guild':_0x37b72b['id']})),'ends':{'$lte':new Date()}}),_0x34a1ba=[];for(const _0x2907f3 of _0x408c7e){const _0x26310b=this[a197_0x111a('0x25')]['guilds'][a197_0x111a('0x1a')][a197_0x111a('0x26')](_0x2907f3[a197_0x111a('0x15')]);if(_0x26310b['channels'][a197_0x111a('0x1a')][a197_0x111a('0x20')](_0x2907f3['channel'])){const _0x368acb=_0x26310b[a197_0x111a('0x5')][a197_0x111a('0x1a')][a197_0x111a('0x26')](_0x2907f3[a197_0x111a('0x29')]),_0x4820de=await _0x368acb[a197_0x111a('0x1f')]['fetch'](_0x2907f3[a197_0x111a('0x6')])[a197_0x111a('0x2')](()=>{});if(!_0x4820de)continue;const _0x4a910a=_0x4820de[a197_0x111a('0x18')][0x0][a197_0x111a('0x28')]['map'](_0x283136=>_0x283136['value']),_0x1f7258=['🇦','🇧','🇨','🇩','🇪','🇫','🇬','🇭','🇮','🇯','🇰','🇱','🇲'],_0x2dfbce={};let _0x56ce5f=0x0;for(const _0x17da94 in _0x1f7258[a197_0x111a('0x12')](0x0,_0x4a910a[a197_0x111a('0x4')])){if(_0x4820de[a197_0x111a('0x22')]['cache'][a197_0x111a('0x20')](_0x1f7258[_0x17da94])){await _0x4820de['reactions'][a197_0x111a('0x1a')][a197_0x111a('0x26')](_0x1f7258[_0x17da94])[a197_0x111a('0x1')]['fetch']()[a197_0x111a('0x2')](()=>{});const _0x56e9d5=_0x4820de[a197_0x111a('0x22')][a197_0x111a('0x1a')][a197_0x111a('0x26')](_0x1f7258[_0x17da94])[a197_0x111a('0x1')]['cache'][a197_0x111a('0xb')](_0x5dff82=>!_0x5dff82['bot'])[a197_0x111a('0x1b')];_0x2dfbce[_0x1f7258[_0x17da94]]=_0x56e9d5,_0x56ce5f+=_0x56e9d5;}}await _0x4820de[a197_0x111a('0xa')]({'embed':{'color':tesseract_1['Constants'][a197_0x111a('0x0')][a197_0x111a('0x8')],'author':{'name':a197_0x111a('0x2a')},'title':_0x4820de[a197_0x111a('0x18')][0x0][a197_0x111a('0x19')],'fields':_0x4820de['embeds'][0x0][a197_0x111a('0x28')][a197_0x111a('0x13')](_0x4afe29=>({'name':_0x4afe29[a197_0x111a('0x27')]+'\x20'+_0x4afe29['value'],'value':(_0x2dfbce[_0x4afe29[a197_0x111a('0x27')]]||0x0)+'\x20/\x20'+_0x56ce5f+a197_0x111a('0x16')+(_0x2dfbce[_0x4afe29[a197_0x111a('0x27')]]?_0x2dfbce[_0x4afe29['name']]/_0x56ce5f*0x64:0x0)['toFixed'](0x2)+'%)'})),'footer':{'text':a197_0x111a('0x7')},'timestamp':new Date()}})[a197_0x111a('0xf')](()=>{_0x34a1ba['push'](_0x4820de['id']);})['catch'](()=>{});}}_0x34a1ba[a197_0x111a('0x4')]&&await Poll_1['default'][a197_0x111a('0x1e')]({'$or':_0x34a1ba[a197_0x111a('0x13')](_0x253091=>({'_id':_0x253091}))})[a197_0x111a('0x2')](()=>{});}catch(_0x21adf2){tesseract_1[a197_0x111a('0x10')][a197_0x111a('0x17')](_0x21adf2);}};}}; \ No newline at end of file +const a198_0x40a4=['test','length','error','then','Ended','@bastion/tesseract','COLORS','bot','constructor','fetch','../models/Poll','embeds','Scheduler','client','fields','get','channel','slice','_id','deleteMany','filter','edit','exports','\x20votes\x20(','name','title','map','value','catch','size','guilds','cache','default','users','has','exec','readyTimestamp','apply','guild','toFixed','POLL\x20ENDED','SOMEWHAT_DARK','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','reactions','find','polls','\x20/\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x1d9a10,_0x40a499){const _0x38332c=function(_0x399629){while(--_0x399629){_0x1d9a10['push'](_0x1d9a10['shift']());}},_0x4a48f9=function(){const _0x5b5df0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x583899,_0x28b194,_0x1b1c3a,_0x3a7593){_0x3a7593=_0x3a7593||{};let _0x405cdb=_0x28b194+'='+_0x1b1c3a,_0x50c44d=0x0;for(let _0x1d2822=0x0,_0x2eadaa=_0x583899['length'];_0x1d2822<_0x2eadaa;_0x1d2822++){const _0x43981b=_0x583899[_0x1d2822];_0x405cdb+=';\x20'+_0x43981b;const _0xea98ec=_0x583899[_0x43981b];_0x583899['push'](_0xea98ec),_0x2eadaa=_0x583899['length'],_0xea98ec!==!![]&&(_0x405cdb+='='+_0xea98ec);}_0x3a7593['cookie']=_0x405cdb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x955a3,_0x3a09c2){_0x955a3=_0x955a3||function(_0x29c913){return _0x29c913;};const _0x42b35c=_0x955a3(new RegExp('(?:^|;\x20)'+_0x3a09c2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3621f7=function(_0x58be69,_0x2f91c6){_0x58be69(++_0x2f91c6);};return _0x3621f7(_0x38332c,_0x40a499),_0x42b35c?decodeURIComponent(_0x42b35c[0x1]):undefined;}},_0x2d44ca=function(){const _0x230777=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x230777['test'](_0x5b5df0['removeCookie']['toString']());};_0x5b5df0['updateCookie']=_0x2d44ca;let _0x512fd1='';const _0x3be517=_0x5b5df0['updateCookie']();if(!_0x3be517)_0x5b5df0['setCookie'](['*'],'counter',0x1);else _0x3be517?_0x512fd1=_0x5b5df0['getCookie'](null,'counter'):_0x5b5df0['removeCookie']();};_0x4a48f9();}(a198_0x40a4,0xe0));const a198_0x3833=function(_0x1d9a10,_0x40a499){_0x1d9a10=_0x1d9a10-0x0;let _0x38332c=a198_0x40a4[_0x1d9a10];return _0x38332c;};const a198_0x1b1c3a=function(){let _0x16854f=!![];return function(_0x1433e7,_0x2eda24){const _0x4f4b95=_0x16854f?function(){if(_0x2eda24){const _0x41bd8c=_0x2eda24[a198_0x3833('0x5')](_0x1433e7,arguments);return _0x2eda24=null,_0x41bd8c;}}:function(){};return _0x16854f=![],_0x4f4b95;};}(),a198_0x28b194=a198_0x1b1c3a(this,function(){const _0x29e2ce=function(){const _0x157eab=_0x29e2ce['constructor'](a198_0x3833('0xf'))()[a198_0x3833('0x18')](a198_0x3833('0xa'));return!_0x157eab[a198_0x3833('0x10')](a198_0x28b194);};return _0x29e2ce();});a198_0x28b194();'use strict';const tesseract_1=require(a198_0x3833('0x15')),Poll_1=require(a198_0x3833('0x1a'));module[a198_0x3833('0x26')]=class PollScheduler extends tesseract_1[a198_0x3833('0x1c')]{constructor(){super(a198_0x3833('0xd'),{'cronTime':'0\x20*/15\x20*\x20*\x20*\x20*'}),this[a198_0x3833('0x3')]=async()=>{try{if(!this[a198_0x3833('0x1d')][a198_0x3833('0x4')])return;if(!this[a198_0x3833('0x1d')]['guilds'][a198_0x3833('0x2f')][a198_0x3833('0x2d')])return;const _0x6f495a=await Poll_1[a198_0x3833('0x0')][a198_0x3833('0xc')]({'$or':this[a198_0x3833('0x1d')][a198_0x3833('0x2e')][a198_0x3833('0x2f')]['map'](_0x3296d5=>({'guild':_0x3296d5['id']})),'ends':{'$lte':new Date()}}),_0x542453=[];for(const _0x49537b of _0x6f495a){const _0x385058=this['client']['guilds'][a198_0x3833('0x2f')][a198_0x3833('0x1f')](_0x49537b[a198_0x3833('0x6')]);if(_0x385058['channels'][a198_0x3833('0x2f')][a198_0x3833('0x2')](_0x49537b['channel'])){const _0x36416b=_0x385058['channels'][a198_0x3833('0x2f')]['get'](_0x49537b[a198_0x3833('0x20')]),_0x3c236b=await _0x36416b['messages'][a198_0x3833('0x19')](_0x49537b[a198_0x3833('0x22')])[a198_0x3833('0x2c')](()=>{});if(!_0x3c236b)continue;const _0x3c44e5=_0x3c236b[a198_0x3833('0x1b')][0x0][a198_0x3833('0x1e')][a198_0x3833('0x2a')](_0x54035a=>_0x54035a[a198_0x3833('0x2b')]),_0x31f0c7=['🇦','🇧','🇨','🇩','🇪','🇫','🇬','🇭','🇮','🇯','🇰','🇱','🇲'],_0x4f2936={};let _0x316b31=0x0;for(const _0x44c0d5 in _0x31f0c7[a198_0x3833('0x21')](0x0,_0x3c44e5[a198_0x3833('0x11')])){if(_0x3c236b[a198_0x3833('0xb')][a198_0x3833('0x2f')][a198_0x3833('0x2')](_0x31f0c7[_0x44c0d5])){await _0x3c236b['reactions'][a198_0x3833('0x2f')]['get'](_0x31f0c7[_0x44c0d5])[a198_0x3833('0x1')]['fetch']()['catch'](()=>{});const _0x15a419=_0x3c236b['reactions'][a198_0x3833('0x2f')]['get'](_0x31f0c7[_0x44c0d5])[a198_0x3833('0x1')]['cache'][a198_0x3833('0x24')](_0x2bd0df=>!_0x2bd0df[a198_0x3833('0x17')])['size'];_0x4f2936[_0x31f0c7[_0x44c0d5]]=_0x15a419,_0x316b31+=_0x15a419;}}await _0x3c236b[a198_0x3833('0x25')]({'embed':{'color':tesseract_1['Constants'][a198_0x3833('0x16')][a198_0x3833('0x9')],'author':{'name':a198_0x3833('0x8')},'title':_0x3c236b[a198_0x3833('0x1b')][0x0][a198_0x3833('0x29')],'fields':_0x3c236b['embeds'][0x0][a198_0x3833('0x1e')][a198_0x3833('0x2a')](_0x1b3e6f=>({'name':_0x1b3e6f['name']+'\x20'+_0x1b3e6f[a198_0x3833('0x2b')],'value':(_0x4f2936[_0x1b3e6f[a198_0x3833('0x28')]]||0x0)+a198_0x3833('0xe')+_0x316b31+a198_0x3833('0x27')+(_0x4f2936[_0x1b3e6f[a198_0x3833('0x28')]]?_0x4f2936[_0x1b3e6f[a198_0x3833('0x28')]]/_0x316b31*0x64:0x0)[a198_0x3833('0x7')](0x2)+'%)'})),'footer':{'text':a198_0x3833('0x14')},'timestamp':new Date()}})[a198_0x3833('0x13')](()=>{_0x542453['push'](_0x3c236b['id']);})[a198_0x3833('0x2c')](()=>{});}}_0x542453[a198_0x3833('0x11')]&&await Poll_1[a198_0x3833('0x0')][a198_0x3833('0x23')]({'$or':_0x542453[a198_0x3833('0x2a')](_0x37a86b=>({'_id':_0x37a86b}))})['catch'](()=>{});}catch(_0x41f292){tesseract_1['Logger'][a198_0x3833('0x12')](_0x41f292);}};}}; \ No newline at end of file diff --git a/scripts/generateCommandsData.js b/scripts/generateCommandsData.js index 24469c365..6d238ad8d 100644 --- a/scripts/generateCommandsData.js +++ b/scripts/generateCommandsData.js @@ -1 +1 @@ -const a198_0x222f=['dirname','statSync','schedulable','unsafe','utf-8','test','syntax','apply','path','triggers','scope','owner','relative','nsfw','clientPermission','readdirSync','name','resolve','writeFileSync','stringify','push','defineProperty','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','join','endsWith','description','.js','./locales/en_us/commands.yaml','__esModule','yaml','constructor','isDirectory'];(function(_0x323d60,_0x222fa4){const _0x3cd14d=function(_0x1fcdc5){while(--_0x1fcdc5){_0x323d60['push'](_0x323d60['shift']());}},_0x589718=function(){const _0x187033={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x836cf5,_0x3d14be,_0x4548a5,_0x43dee7){_0x43dee7=_0x43dee7||{};let _0x435a74=_0x3d14be+'='+_0x4548a5,_0x3d4e04=0x0;for(let _0x4be5a0=0x0,_0x1a63e8=_0x836cf5['length'];_0x4be5a0<_0x1a63e8;_0x4be5a0++){const _0x3a99e3=_0x836cf5[_0x4be5a0];_0x435a74+=';\x20'+_0x3a99e3;const _0x74c6c6=_0x836cf5[_0x3a99e3];_0x836cf5['push'](_0x74c6c6),_0x1a63e8=_0x836cf5['length'],_0x74c6c6!==!![]&&(_0x435a74+='='+_0x74c6c6);}_0x43dee7['cookie']=_0x435a74;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3c7e1a,_0xe2c324){_0x3c7e1a=_0x3c7e1a||function(_0x245592){return _0x245592;};const _0x3bdf20=_0x3c7e1a(new RegExp('(?:^|;\x20)'+_0xe2c324['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x20217b=function(_0x929abd,_0x11b6a0){_0x929abd(++_0x11b6a0);};return _0x20217b(_0x3cd14d,_0x222fa4),_0x3bdf20?decodeURIComponent(_0x3bdf20[0x1]):undefined;}},_0x24e82e=function(){const _0x1d6ebe=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1d6ebe['test'](_0x187033['removeCookie']['toString']());};_0x187033['updateCookie']=_0x24e82e;let _0x1e3dc2='';const _0x51a1cc=_0x187033['updateCookie']();if(!_0x51a1cc)_0x187033['setCookie'](['*'],'counter',0x1);else _0x51a1cc?_0x1e3dc2=_0x187033['getCookie'](null,'counter'):_0x187033['removeCookie']();};_0x589718();}(a198_0x222f,0x137));const a198_0x3cd1=function(_0x323d60,_0x222fa4){_0x323d60=_0x323d60-0x0;let _0x3cd14d=a198_0x222f[_0x323d60];return _0x3cd14d;};const a198_0x4548a5=function(){let _0x238eaa=!![];return function(_0x3ea7c8,_0x5cb766){const _0x18bb07=_0x238eaa?function(){if(_0x5cb766){const _0x10bfca=_0x5cb766[a198_0x3cd1('0x10')](_0x3ea7c8,arguments);return _0x5cb766=null,_0x10bfca;}}:function(){};return _0x238eaa=![],_0x18bb07;};}(),a198_0x3d14be=a198_0x4548a5(this,function(){const _0xd0c91d=function(){const _0x314051=_0xd0c91d[a198_0x3cd1('0x7')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a198_0x3cd1('0x7')](a198_0x3cd1('0x1f'));return!_0x314051[a198_0x3cd1('0xe')](a198_0x3d14be);};return _0xd0c91d();});a198_0x3d14be();'use strict';Object[a198_0x3cd1('0x1e')](exports,a198_0x3cd1('0x5'),{'value':!![]});const fs=require('fs'),path=require(a198_0x3cd1('0x11')),yaml=require(a198_0x3cd1('0x6')),walkDirectory=_0x1ecf0b=>{const _0x54ad6b=[];return function _0x4a5595(_0x1a58c6){const _0x2a5d7b=fs[a198_0x3cd1('0x18')](_0x1a58c6);for(const _0x277d38 of _0x2a5d7b){const _0x2b5f5d=path[a198_0x3cd1('0x0')](_0x1a58c6,_0x277d38);if(fs[a198_0x3cd1('0xa')](_0x2b5f5d)[a198_0x3cd1('0x8')]())_0x4a5595(_0x2b5f5d);else _0x54ad6b[a198_0x3cd1('0x1d')](_0x2b5f5d);}}(_0x1ecf0b),_0x54ad6b;},commandsDirectory=path[a198_0x3cd1('0x1a')]('./commands/');if(fs['existsSync'](commandsDirectory)){const files=walkDirectory(commandsDirectory),commandStrings={},commands={};for(const file of files['filter'](_0x20ca4d=>_0x20ca4d[a198_0x3cd1('0x1')](a198_0x3cd1('0x3')))){const Command=require(file),command=new Command(),commandCategory=path[a198_0x3cd1('0x9')](path[a198_0x3cd1('0x15')](commandsDirectory,file));commandStrings[command[a198_0x3cd1('0x19')]]=command[a198_0x3cd1('0x2')],commandCategory in commands?commands[commandCategory][a198_0x3cd1('0x1d')]({'name':command[a198_0x3cd1('0x19')],'description':command[a198_0x3cd1('0x2')],'triggers':command[a198_0x3cd1('0x12')],'scope':command[a198_0x3cd1('0x13')],'owner':command['owner'],'typing':command['typing'],'schedulable':command['schedulable'],'unsafe':command[a198_0x3cd1('0xc')],'nsfw':command[a198_0x3cd1('0x16')],'cooldown':command['cooldown'],'ratelimit':command['ratelimit'],'clientPermission':command[a198_0x3cd1('0x17')],'userPermissions':command['userPermissions'],'syntax':command[a198_0x3cd1('0xf')]}):commands[commandCategory]=[{'name':command[a198_0x3cd1('0x19')],'description':command['description'],'triggers':command[a198_0x3cd1('0x12')],'scope':command[a198_0x3cd1('0x13')],'owner':command[a198_0x3cd1('0x14')],'typing':command['typing'],'schedulable':command[a198_0x3cd1('0xb')],'unsafe':command[a198_0x3cd1('0xc')],'nsfw':command[a198_0x3cd1('0x16')],'cooldown':command['cooldown'],'ratelimit':command['ratelimit'],'clientPermission':command[a198_0x3cd1('0x17')],'userPermissions':command['userPermissions'],'syntax':command[a198_0x3cd1('0xf')]}];}fs[a198_0x3cd1('0x1b')](a198_0x3cd1('0x4'),yaml[a198_0x3cd1('0x1c')](commandStrings),{'encoding':a198_0x3cd1('0xd')}),fs[a198_0x3cd1('0x1b')]('./assets/commands.json',JSON['stringify'](commands),{'encoding':a198_0x3cd1('0xd')});} \ No newline at end of file +const a199_0x5017=['join','apply','push','readdirSync','clientPermission','endsWith','stringify','userPermissions','isDirectory','return\x20/\x22\x20+\x20this\x20+\x20\x22/','ratelimit','./locales/en_us/commands.yaml','existsSync','scope','unsafe','typing','test','syntax','__esModule','utf-8','constructor','triggers','.js','path','./commands/','schedulable','filter','statSync','resolve','writeFileSync','name','./assets/commands.json','dirname','description','cooldown','nsfw'];(function(_0x1b0dca,_0x501727){const _0x25510d=function(_0x31091b){while(--_0x31091b){_0x1b0dca['push'](_0x1b0dca['shift']());}},_0x511691=function(){const _0x109691={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5b78d2,_0x8168b1,_0x479633,_0x21b49f){_0x21b49f=_0x21b49f||{};let _0x19646d=_0x8168b1+'='+_0x479633,_0x1ec3c2=0x0;for(let _0x7f9934=0x0,_0x49e96a=_0x5b78d2['length'];_0x7f9934<_0x49e96a;_0x7f9934++){const _0x495c78=_0x5b78d2[_0x7f9934];_0x19646d+=';\x20'+_0x495c78;const _0x38ad3b=_0x5b78d2[_0x495c78];_0x5b78d2['push'](_0x38ad3b),_0x49e96a=_0x5b78d2['length'],_0x38ad3b!==!![]&&(_0x19646d+='='+_0x38ad3b);}_0x21b49f['cookie']=_0x19646d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4789e8,_0x43b6a5){_0x4789e8=_0x4789e8||function(_0x8bf178){return _0x8bf178;};const _0x37e306=_0x4789e8(new RegExp('(?:^|;\x20)'+_0x43b6a5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5d0e2f=function(_0x2c9f61,_0x81d5da){_0x2c9f61(++_0x81d5da);};return _0x5d0e2f(_0x25510d,_0x501727),_0x37e306?decodeURIComponent(_0x37e306[0x1]):undefined;}},_0x2a5474=function(){const _0x308ac1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x308ac1['test'](_0x109691['removeCookie']['toString']());};_0x109691['updateCookie']=_0x2a5474;let _0x14ed8f='';const _0x3ccdb1=_0x109691['updateCookie']();if(!_0x3ccdb1)_0x109691['setCookie'](['*'],'counter',0x1);else _0x3ccdb1?_0x14ed8f=_0x109691['getCookie'](null,'counter'):_0x109691['removeCookie']();};_0x511691();}(a199_0x5017,0xd5));const a199_0x2551=function(_0x1b0dca,_0x501727){_0x1b0dca=_0x1b0dca-0x0;let _0x25510d=a199_0x5017[_0x1b0dca];return _0x25510d;};const a199_0x479633=function(){let _0x228039=!![];return function(_0xfa24d9,_0x3e04b9){const _0x433add=_0x228039?function(){if(_0x3e04b9){const _0x2fcbbd=_0x3e04b9[a199_0x2551('0x4')](_0xfa24d9,arguments);return _0x3e04b9=null,_0x2fcbbd;}}:function(){};return _0x228039=![],_0x433add;};}(),a199_0x8168b1=a199_0x479633(this,function(){const _0x315d12=function(){const _0x1af521=_0x315d12[a199_0x2551('0x17')](a199_0x2551('0xc'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1af521[a199_0x2551('0x13')](a199_0x8168b1);};return _0x315d12();});a199_0x8168b1();'use strict';Object['defineProperty'](exports,a199_0x2551('0x15'),{'value':!![]});const fs=require('fs'),path=require(a199_0x2551('0x1a')),yaml=require('yaml'),walkDirectory=_0x2f36a3=>{const _0x53fac4=[];return function _0x54b3da(_0x2cf52c){const _0x183372=fs[a199_0x2551('0x6')](_0x2cf52c);for(const _0x3aefc4 of _0x183372){const _0x441cc6=path[a199_0x2551('0x3')](_0x2cf52c,_0x3aefc4);if(fs[a199_0x2551('0x1e')](_0x441cc6)[a199_0x2551('0xb')]())_0x54b3da(_0x441cc6);else _0x53fac4[a199_0x2551('0x5')](_0x441cc6);}}(_0x2f36a3),_0x53fac4;},commandsDirectory=path[a199_0x2551('0x1f')](a199_0x2551('0x1b'));if(fs[a199_0x2551('0xf')](commandsDirectory)){const files=walkDirectory(commandsDirectory),commandStrings={},commands={};for(const file of files[a199_0x2551('0x1d')](_0x303635=>_0x303635[a199_0x2551('0x8')](a199_0x2551('0x19')))){const Command=require(file),command=new Command(),commandCategory=path[a199_0x2551('0x23')](path['relative'](commandsDirectory,file));commandStrings[command[a199_0x2551('0x21')]]=command['description'],commandCategory in commands?commands[commandCategory]['push']({'name':command['name'],'description':command[a199_0x2551('0x0')],'triggers':command[a199_0x2551('0x18')],'scope':command['scope'],'owner':command['owner'],'typing':command[a199_0x2551('0x12')],'schedulable':command['schedulable'],'unsafe':command['unsafe'],'nsfw':command[a199_0x2551('0x2')],'cooldown':command[a199_0x2551('0x1')],'ratelimit':command[a199_0x2551('0xd')],'clientPermission':command[a199_0x2551('0x7')],'userPermissions':command[a199_0x2551('0xa')],'syntax':command['syntax']}):commands[commandCategory]=[{'name':command[a199_0x2551('0x21')],'description':command[a199_0x2551('0x0')],'triggers':command[a199_0x2551('0x18')],'scope':command[a199_0x2551('0x10')],'owner':command['owner'],'typing':command[a199_0x2551('0x12')],'schedulable':command[a199_0x2551('0x1c')],'unsafe':command[a199_0x2551('0x11')],'nsfw':command['nsfw'],'cooldown':command[a199_0x2551('0x1')],'ratelimit':command['ratelimit'],'clientPermission':command[a199_0x2551('0x7')],'userPermissions':command[a199_0x2551('0xa')],'syntax':command[a199_0x2551('0x14')]}];}fs[a199_0x2551('0x20')](a199_0x2551('0xe'),yaml[a199_0x2551('0x9')](commandStrings),{'encoding':a199_0x2551('0x16')}),fs[a199_0x2551('0x20')](a199_0x2551('0x22'),JSON[a199_0x2551('0x9')](commands),{'encoding':a199_0x2551('0x16')});} \ No newline at end of file diff --git a/settings/configurations.example.yaml b/settings/configurations.example.yaml index e05c5a65d..417ed1fe6 100755 --- a/settings/configurations.example.yaml +++ b/settings/configurations.example.yaml @@ -10,7 +10,7 @@ prefixes: presence: # Default status of Bastion. # Valid values are `online`, `idle`, `dnd` and `invisible` - status: "dnd" +- status: "dnd" # Default activity of Bastion activity: # Activity type. diff --git a/structures/Guild.js b/structures/Guild.js index 16ca0531f..e0d937737 100644 --- a/structures/Guild.js +++ b/structures/Guild.js @@ -1 +1 @@ -const a199_0x2b90=['language','event','Case\x20#','default','Guild','fields','NewsChannel','music','ORANGE','timestamp','serverLogChannelId','moderationLogChannelId','type','locale','cache','SOMEWHAT_DARK','client','text','constructor','getDocument','save','get','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','TextChannel','getString','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','discord.js','../models/Guild','filter','moderationCaseCount','createModerationLog','footer','create','findById'];(function(_0x4a8950,_0x2b90a2){const _0x40db26=function(_0x340486){while(--_0x340486){_0x4a8950['push'](_0x4a8950['shift']());}},_0x5ece32=function(){const _0x17232b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xfe35c0,_0x36afa1,_0x528046,_0x2ddacd){_0x2ddacd=_0x2ddacd||{};let _0x4be460=_0x36afa1+'='+_0x528046,_0x33e3e5=0x0;for(let _0x3b60d0=0x0,_0x35feae=_0xfe35c0['length'];_0x3b60d0<_0x35feae;_0x3b60d0++){const _0x25b088=_0xfe35c0[_0x3b60d0];_0x4be460+=';\x20'+_0x25b088;const _0x1464cf=_0xfe35c0[_0x25b088];_0xfe35c0['push'](_0x1464cf),_0x35feae=_0xfe35c0['length'],_0x1464cf!==!![]&&(_0x4be460+='='+_0x1464cf);}_0x2ddacd['cookie']=_0x4be460;},'removeCookie':function(){return'dev';},'getCookie':function(_0x523687,_0x325cc2){_0x523687=_0x523687||function(_0x56f917){return _0x56f917;};const _0x32411d=_0x523687(new RegExp('(?:^|;\x20)'+_0x325cc2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x55a9b3=function(_0x1f27e4,_0x3e6743){_0x1f27e4(++_0x3e6743);};return _0x55a9b3(_0x40db26,_0x2b90a2),_0x32411d?decodeURIComponent(_0x32411d[0x1]):undefined;}},_0x127bd3=function(){const _0x1ae389=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1ae389['test'](_0x17232b['removeCookie']['toString']());};_0x17232b['updateCookie']=_0x127bd3;let _0x127dfa='';const _0x26fd8c=_0x17232b['updateCookie']();if(!_0x26fd8c)_0x17232b['setCookie'](['*'],'counter',0x1);else _0x26fd8c?_0x127dfa=_0x17232b['getCookie'](null,'counter'):_0x17232b['removeCookie']();};_0x5ece32();}(a199_0x2b90,0x19d));const a199_0x40db=function(_0x4a8950,_0x2b90a2){_0x4a8950=_0x4a8950-0x0;let _0x40db26=a199_0x2b90[_0x4a8950];return _0x40db26;};const a199_0x528046=function(){let _0x4e6e8c=!![];return function(_0x492ad2,_0x3e2fb7){const _0x50a2ec=_0x4e6e8c?function(){if(_0x3e2fb7){const _0x9b7138=_0x3e2fb7['apply'](_0x492ad2,arguments);return _0x3e2fb7=null,_0x9b7138;}}:function(){};return _0x4e6e8c=![],_0x50a2ec;};}(),a199_0x36afa1=a199_0x528046(this,function(){const _0x7db4c7=function(){const _0x564d14=_0x7db4c7[a199_0x40db('0x1')](a199_0x40db('0x5'))()[a199_0x40db('0x1')](a199_0x40db('0xa'));return!_0x564d14[a199_0x40db('0x6')](a199_0x36afa1);};return _0x7db4c7();});a199_0x36afa1();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(a199_0x40db('0xb')),Guild_1=require(a199_0x40db('0xc')),Case_1=require('../models/Case');module['exports']=class BastionGuild extends discord_js_1[a199_0x40db('0x17')]{constructor(_0x637b7b,_0x21c917){super(_0x637b7b,_0x21c917),this[a199_0x40db('0x1a')]={'queue':[],'history':[],'playing':![],'repeat':![],'skipVotes':[]};}async[a199_0x40db('0x2')](){return await Guild_1[a199_0x40db('0x16')][a199_0x40db('0x12')](this['id']);}async['createLog'](_0x64cc16){const _0xe86286=await this[a199_0x40db('0x2')](),_0x119c6c=this[a199_0x40db('0x23')]['channels'][a199_0x40db('0x21')][a199_0x40db('0xd')](_0x18b803=>_0x18b803[a199_0x40db('0x1f')]===a199_0x40db('0x0')||_0x18b803[a199_0x40db('0x1f')]==='news');if(_0xe86286[a199_0x40db('0x1d')]&&_0x119c6c['has'](_0xe86286['serverLogChannelId'])){const _0x17fbcc=_0x119c6c[a199_0x40db('0x4')](_0xe86286[a199_0x40db('0x1d')]);if(_0x17fbcc instanceof discord_js_1[a199_0x40db('0x19')]||_0x17fbcc instanceof discord_js_1[a199_0x40db('0x7')])return _0x17fbcc['send']({'embed':{'color':tesseract_1[a199_0x40db('0x9')]['COLORS'][a199_0x40db('0x22')],'title':this[a199_0x40db('0x23')][a199_0x40db('0x20')]['getString'](_0xe86286['language'],'events',_0x64cc16['event']),'fields':_0x64cc16[a199_0x40db('0x18')],'footer':{'text':_0x64cc16[a199_0x40db('0x10')]},'timestamp':_0x64cc16[a199_0x40db('0x1c')]||new Date()}});}}async[a199_0x40db('0xf')](_0x1a0c9f){const _0x5d9278=await this[a199_0x40db('0x2')](),_0xb8fa01=this['client']['channels'][a199_0x40db('0x21')][a199_0x40db('0xd')](_0x119dfd=>_0x119dfd[a199_0x40db('0x1f')]==='text'||_0x119dfd[a199_0x40db('0x1f')]==='news');if(_0x5d9278[a199_0x40db('0x1e')]&&_0xb8fa01['has'](_0x5d9278[a199_0x40db('0x1e')])){const _0x571214=_0xb8fa01['get'](_0x5d9278[a199_0x40db('0x1e')]);if(_0x571214 instanceof discord_js_1['NewsChannel']||_0x571214 instanceof discord_js_1['TextChannel']){_0x5d9278[a199_0x40db('0xe')]=_0x5d9278[a199_0x40db('0xe')]?_0x5d9278[a199_0x40db('0xe')]+0x1:0x1;const _0x12d58c=await _0x571214['send']({'embed':{'color':tesseract_1[a199_0x40db('0x9')]['COLORS'][a199_0x40db('0x1b')],'title':this['client'][a199_0x40db('0x20')][a199_0x40db('0x8')](_0x5d9278[a199_0x40db('0x13')],'events',_0x1a0c9f[a199_0x40db('0x14')]),'fields':_0x1a0c9f[a199_0x40db('0x18')],'footer':{'text':a199_0x40db('0x15')+_0x5d9278[a199_0x40db('0xe')]},'timestamp':new Date()}});await Case_1[a199_0x40db('0x16')][a199_0x40db('0x11')]({'guild':this['id'],'number':_0x5d9278[a199_0x40db('0xe')],'messageId':_0x12d58c['id']}),await _0x5d9278[a199_0x40db('0x3')]();}}}}; \ No newline at end of file +const a200_0x2cdd=['findById','Guild','client','locale','getDocument','channels','Constants','music','NewsChannel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','cache','filter','../models/Case','Case\x20#','get','text','moderationLogChannelId','type','getString','discord.js','send','language','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','moderationCaseCount','events','createLog','serverLogChannelId','default','TextChannel','constructor','COLORS','footer','has','event','@bastion/tesseract','fields','test'];(function(_0x5b9ac8,_0x2cdddb){const _0x396972=function(_0x3c59a9){while(--_0x3c59a9){_0x5b9ac8['push'](_0x5b9ac8['shift']());}},_0x3278f9=function(){const _0x5b5bc2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x431449,_0x34f6a0,_0x2c2e07,_0x359ef1){_0x359ef1=_0x359ef1||{};let _0xd8da44=_0x34f6a0+'='+_0x2c2e07,_0x55956a=0x0;for(let _0x126e59=0x0,_0x424a78=_0x431449['length'];_0x126e59<_0x424a78;_0x126e59++){const _0x403d90=_0x431449[_0x126e59];_0xd8da44+=';\x20'+_0x403d90;const _0x4052e7=_0x431449[_0x403d90];_0x431449['push'](_0x4052e7),_0x424a78=_0x431449['length'],_0x4052e7!==!![]&&(_0xd8da44+='='+_0x4052e7);}_0x359ef1['cookie']=_0xd8da44;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1d52b5,_0x15a5d2){_0x1d52b5=_0x1d52b5||function(_0x5d472a){return _0x5d472a;};const _0x501a8c=_0x1d52b5(new RegExp('(?:^|;\x20)'+_0x15a5d2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1eb82f=function(_0x452fb2,_0xbd2fe8){_0x452fb2(++_0xbd2fe8);};return _0x1eb82f(_0x396972,_0x2cdddb),_0x501a8c?decodeURIComponent(_0x501a8c[0x1]):undefined;}},_0x59be28=function(){const _0x5ab49f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5ab49f['test'](_0x5b5bc2['removeCookie']['toString']());};_0x5b5bc2['updateCookie']=_0x59be28;let _0x354fc1='';const _0x16c713=_0x5b5bc2['updateCookie']();if(!_0x16c713)_0x5b5bc2['setCookie'](['*'],'counter',0x1);else _0x16c713?_0x354fc1=_0x5b5bc2['getCookie'](null,'counter'):_0x5b5bc2['removeCookie']();};_0x3278f9();}(a200_0x2cdd,0x1e5));const a200_0x3969=function(_0x5b9ac8,_0x2cdddb){_0x5b9ac8=_0x5b9ac8-0x0;let _0x396972=a200_0x2cdd[_0x5b9ac8];return _0x396972;};const a200_0x2c2e07=function(){let _0x2310fc=!![];return function(_0x4a05c7,_0x3377e0){const _0x452d4a=_0x2310fc?function(){if(_0x3377e0){const _0x142b6b=_0x3377e0[a200_0x3969('0x1f')](_0x4a05c7,arguments);return _0x3377e0=null,_0x142b6b;}}:function(){};return _0x2310fc=![],_0x452d4a;};}(),a200_0x34f6a0=a200_0x2c2e07(this,function(){const _0x7ab4=function(){const _0x13a9ad=_0x7ab4['constructor'](a200_0x3969('0x20'))()[a200_0x3969('0x1')](a200_0x3969('0x12'));return!_0x13a9ad[a200_0x3969('0x8')](a200_0x34f6a0);};return _0x7ab4();});a200_0x34f6a0();'use strict';const tesseract_1=require(a200_0x3969('0x6')),discord_js_1=require(a200_0x3969('0x1c')),Guild_1=require('../models/Guild'),Case_1=require(a200_0x3969('0x15'));module['exports']=class BastionGuild extends discord_js_1[a200_0x3969('0xa')]{constructor(_0x4a7a6a,_0x3bf995){super(_0x4a7a6a,_0x3bf995),this[a200_0x3969('0x10')]={'queue':[],'history':[],'playing':![],'repeat':![],'skipVotes':[]};}async['getDocument'](){return await Guild_1[a200_0x3969('0x25')][a200_0x3969('0x9')](this['id']);}async[a200_0x3969('0x23')](_0x1bb3b5){const _0x27cd53=await this[a200_0x3969('0xd')](),_0x256685=this[a200_0x3969('0xb')][a200_0x3969('0xe')][a200_0x3969('0x13')][a200_0x3969('0x14')](_0x5cda5c=>_0x5cda5c[a200_0x3969('0x1a')]==='text'||_0x5cda5c[a200_0x3969('0x1a')]==='news');if(_0x27cd53[a200_0x3969('0x24')]&&_0x256685[a200_0x3969('0x4')](_0x27cd53[a200_0x3969('0x24')])){const _0x3e74c1=_0x256685[a200_0x3969('0x17')](_0x27cd53[a200_0x3969('0x24')]);if(_0x3e74c1 instanceof discord_js_1[a200_0x3969('0x11')]||_0x3e74c1 instanceof discord_js_1[a200_0x3969('0x0')])return _0x3e74c1[a200_0x3969('0x1d')]({'embed':{'color':tesseract_1[a200_0x3969('0xf')][a200_0x3969('0x2')]['SOMEWHAT_DARK'],'title':this[a200_0x3969('0xb')][a200_0x3969('0xc')][a200_0x3969('0x1b')](_0x27cd53[a200_0x3969('0x1e')],a200_0x3969('0x22'),_0x1bb3b5[a200_0x3969('0x5')]),'fields':_0x1bb3b5[a200_0x3969('0x7')],'footer':{'text':_0x1bb3b5[a200_0x3969('0x3')]},'timestamp':_0x1bb3b5['timestamp']||new Date()}});}}async['createModerationLog'](_0x585871){const _0x115a27=await this[a200_0x3969('0xd')](),_0x5ed45f=this[a200_0x3969('0xb')][a200_0x3969('0xe')][a200_0x3969('0x13')]['filter'](_0x452d8e=>_0x452d8e[a200_0x3969('0x1a')]===a200_0x3969('0x18')||_0x452d8e['type']==='news');if(_0x115a27[a200_0x3969('0x19')]&&_0x5ed45f[a200_0x3969('0x4')](_0x115a27[a200_0x3969('0x19')])){const _0x150d91=_0x5ed45f['get'](_0x115a27['moderationLogChannelId']);if(_0x150d91 instanceof discord_js_1[a200_0x3969('0x11')]||_0x150d91 instanceof discord_js_1[a200_0x3969('0x0')]){_0x115a27[a200_0x3969('0x21')]=_0x115a27[a200_0x3969('0x21')]?_0x115a27['moderationCaseCount']+0x1:0x1;const _0x17a933=await _0x150d91['send']({'embed':{'color':tesseract_1[a200_0x3969('0xf')]['COLORS']['ORANGE'],'title':this[a200_0x3969('0xb')][a200_0x3969('0xc')]['getString'](_0x115a27[a200_0x3969('0x1e')],'events',_0x585871['event']),'fields':_0x585871[a200_0x3969('0x7')],'footer':{'text':a200_0x3969('0x16')+_0x115a27['moderationCaseCount']},'timestamp':new Date()}});await Case_1[a200_0x3969('0x25')]['create']({'guild':this['id'],'number':_0x115a27['moderationCaseCount'],'messageId':_0x17a933['id']}),await _0x115a27['save']();}}}}; \ No newline at end of file diff --git a/structures/GuildMember.js b/structures/GuildMember.js index edca99ec7..dfd656623 100644 --- a/structures/GuildMember.js +++ b/structures/GuildMember.js @@ -1 +1 @@ -const a200_0x5ade=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Logger','canManage','abs','@bastion/tesseract','send','default','debit','MIN_SAFE_INTEGER','kickThreshold','GuildMember','save','catch','info','name','length','memberInfractions','create','language','highest','constructor','roles','ban','music','test','user','credit','infractions','getDocument','balance','ORANGE','COLORS','Kick','document','error','isOwner','findOne','roleId','Ban','push','has','guild','comparePositionTo','addInfraction','client','\x20infractions.','../utils/numbers','kick','kickable','locale'];(function(_0x5dd13a,_0x5aded3){const _0x492ac4=function(_0x3d6cee){while(--_0x3d6cee){_0x5dd13a['push'](_0x5dd13a['shift']());}},_0x441f12=function(){const _0x1c482f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2e9e02,_0x40f815,_0x48dfb0,_0xd357fe){_0xd357fe=_0xd357fe||{};let _0x52980d=_0x40f815+'='+_0x48dfb0,_0x4b0458=0x0;for(let _0x4878f0=0x0,_0x318af6=_0x2e9e02['length'];_0x4878f0<_0x318af6;_0x4878f0++){const _0x2b65dd=_0x2e9e02[_0x4878f0];_0x52980d+=';\x20'+_0x2b65dd;const _0x29e8d5=_0x2e9e02[_0x2b65dd];_0x2e9e02['push'](_0x29e8d5),_0x318af6=_0x2e9e02['length'],_0x29e8d5!==!![]&&(_0x52980d+='='+_0x29e8d5);}_0xd357fe['cookie']=_0x52980d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x25d710,_0x5ca6ad){_0x25d710=_0x25d710||function(_0xda079b){return _0xda079b;};const _0x54db4a=_0x25d710(new RegExp('(?:^|;\x20)'+_0x5ca6ad['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x53e190=function(_0x4fa3b2,_0x24c9f5){_0x4fa3b2(++_0x24c9f5);};return _0x53e190(_0x492ac4,_0x5aded3),_0x54db4a?decodeURIComponent(_0x54db4a[0x1]):undefined;}},_0x46a1e1=function(){const _0x3c9164=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3c9164['test'](_0x1c482f['removeCookie']['toString']());};_0x1c482f['updateCookie']=_0x46a1e1;let _0xed6cfb='';const _0x381e96=_0x1c482f['updateCookie']();if(!_0x381e96)_0x1c482f['setCookie'](['*'],'counter',0x1);else _0x381e96?_0xed6cfb=_0x1c482f['getCookie'](null,'counter'):_0x1c482f['removeCookie']();};_0x441f12();}(a200_0x5ade,0x1ee));const a200_0x492a=function(_0x5dd13a,_0x5aded3){_0x5dd13a=_0x5dd13a-0x0;let _0x492ac4=a200_0x5ade[_0x5dd13a];return _0x492ac4;};const a200_0x48dfb0=function(){let _0x14f545=!![];return function(_0x14f58c,_0x36fab0){const _0x570249=_0x14f545?function(){if(_0x36fab0){const _0x365b7c=_0x36fab0['apply'](_0x14f58c,arguments);return _0x36fab0=null,_0x365b7c;}}:function(){};return _0x14f545=![],_0x570249;};}(),a200_0x40f815=a200_0x48dfb0(this,function(){const _0x29302f=function(){const _0x29486e=_0x29302f['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a200_0x492a('0x1a')](a200_0x492a('0x6'));return!_0x29486e[a200_0x492a('0x1e')](a200_0x40f815);};return _0x29302f();});a200_0x40f815();'use strict';const tesseract_1=require(a200_0x492a('0xa')),discord_js_1=require('discord.js'),Member_1=require('../models/Member'),Transaction_1=require('../models/Transaction'),numbers=require(a200_0x492a('0x2'));module['exports']=class BastionGuildMember extends discord_js_1[a200_0x492a('0x10')]{constructor(_0x13bab2,_0x243962,_0x27f52e){super(_0x13bab2,_0x243962,_0x27f52e);}[a200_0x492a('0x8')](_0x4e1457){if(this['id']===this[a200_0x492a('0x2f')]['ownerID'])return!![];if(_0x4e1457['id']===this[a200_0x492a('0x2f')]['ownerID'])return![];if(this['id']===_0x4e1457['id'])return![];return this['roles'][a200_0x492a('0x19')][a200_0x492a('0x30')](_0x4e1457['roles'][a200_0x492a('0x19')])>0x0;}async[a200_0x492a('0x22')](){return await Member_1[a200_0x492a('0xc')][a200_0x492a('0x2a')]({'user':this['id'],'guild':this[a200_0x492a('0x2f')]['id']});}['isMusicMaster'](){if(this[a200_0x492a('0x1f')][a200_0x492a('0x29')]())return!![];return this[a200_0x492a('0x2f')][a200_0x492a('0x27')][a200_0x492a('0x1d')]&&this[a200_0x492a('0x2f')][a200_0x492a('0x27')][a200_0x492a('0x1d')]['roleId']&&this[a200_0x492a('0x1b')]['cache'][a200_0x492a('0x2e')](this[a200_0x492a('0x2f')][a200_0x492a('0x27')][a200_0x492a('0x1d')][a200_0x492a('0x2b')]);}async[a200_0x492a('0x31')](_0x5c13e1){let _0x2ab370=await this['getDocument']();_0x2ab370?_0x2ab370[a200_0x492a('0x21')]?_0x2ab370['infractions'][a200_0x492a('0x2d')](_0x5c13e1):_0x2ab370[a200_0x492a('0x21')]=[_0x5c13e1]:_0x2ab370=await Member_1[a200_0x492a('0xc')][a200_0x492a('0x17')]({'user':this['id'],'guild':this[a200_0x492a('0x2f')]['id'],'infractions':[_0x5c13e1]});const _0x564745=this[a200_0x492a('0x2f')][a200_0x492a('0x27')]?this[a200_0x492a('0x2f')][a200_0x492a('0x27')]:await this[a200_0x492a('0x2f')][a200_0x492a('0x22')]();if(_0x564745[a200_0x492a('0x21')]){const _0x42c6b2=_0x2ab370[a200_0x492a('0x21')][a200_0x492a('0x15')];let _0x25205a;this[a200_0x492a('0x4')]&&_0x2ab370[a200_0x492a('0x21')]['length']===_0x564745[a200_0x492a('0x21')][a200_0x492a('0xf')]&&(_0x25205a=a200_0x492a('0x26'),await this[a200_0x492a('0x3')](_0x2ab370[a200_0x492a('0x21')][a200_0x492a('0x15')]+'\x20infractions.')),this['bannable']&&_0x2ab370[a200_0x492a('0x21')]['length']===_0x564745[a200_0x492a('0x21')]['banThreshold']&&(_0x25205a=a200_0x492a('0x2c'),await this[a200_0x492a('0x1c')]({'reason':_0x2ab370['infractions']['length']+a200_0x492a('0x1')}),_0x2ab370[a200_0x492a('0x21')]=undefined,delete _0x2ab370['infractions']),_0x25205a&&await this[a200_0x492a('0xb')]({'embed':{'color':tesseract_1['Constants'][a200_0x492a('0x25')][a200_0x492a('0x24')],'description':this[a200_0x492a('0x0')][a200_0x492a('0x5')]['getString'](_0x564745[a200_0x492a('0x18')],a200_0x492a('0x13'),a200_0x492a('0x16')+_0x25205a,this[a200_0x492a('0x2f')][a200_0x492a('0x14')],_0x42c6b2)}})[a200_0x492a('0x12')](()=>{});}return _0x2ab370[a200_0x492a('0x11')]();}async['clearInfractions'](){const _0x54da33=this[a200_0x492a('0x27')]?this['document']:await this[a200_0x492a('0x22')]();return _0x54da33[a200_0x492a('0x21')]=undefined,delete _0x54da33['infractions'],_0x54da33['save']();}async[a200_0x492a('0x20')](_0x365808,_0x52f860,_0x532d86){_0x365808=Math[a200_0x492a('0x9')](_0x365808);const _0x230242=_0x532d86||await this[a200_0x492a('0x22')]();return _0x365808&&(_0x230242['balance']=numbers['clamp'](_0x230242['balance']+_0x365808,Number['MAX_SAFE_INTEGER']),!_0x532d86&&await Transaction_1[a200_0x492a('0xc')][a200_0x492a('0x17')]({'guild':this[a200_0x492a('0x2f')]['id'],'sender':this['client'][a200_0x492a('0x1f')]['id'],'receiver':_0x230242[a200_0x492a('0x1f')],'amount':_0x365808,'time':new Date(),'note':_0x52f860})[a200_0x492a('0x12')](tesseract_1[a200_0x492a('0x7')][a200_0x492a('0x28')])),_0x532d86?_0x230242:_0x230242[a200_0x492a('0x11')]();}async[a200_0x492a('0xd')](_0x37d781,_0x304f55,_0x3e0a75){_0x37d781=Math[a200_0x492a('0x9')](_0x37d781);const _0x42b5a8=_0x3e0a75||await this['getDocument']();return _0x37d781&&(_0x42b5a8[a200_0x492a('0x23')]=numbers['clamp'](_0x42b5a8[a200_0x492a('0x23')]-_0x37d781,Number[a200_0x492a('0xe')],Number['MAX_SAFE_INTEGER']),!_0x3e0a75&&await Transaction_1['default'][a200_0x492a('0x17')]({'guild':this[a200_0x492a('0x2f')]['id'],'sender':_0x42b5a8[a200_0x492a('0x1f')],'receiver':this['client'][a200_0x492a('0x1f')]['id'],'amount':_0x37d781,'time':new Date(),'note':_0x304f55})[a200_0x492a('0x12')](tesseract_1[a200_0x492a('0x7')]['error'])),_0x3e0a75?_0x42b5a8:_0x42b5a8[a200_0x492a('0x11')]();}}; \ No newline at end of file +const a201_0x3d47=['bannable','Logger','credit','client','infractions','user','highest','memberInfractions','banThreshold','\x20infractions.','findOne','music','kick','error','isMusicMaster','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../models/Transaction','GuildMember','save','ownerID','document','apply','default','getString','isOwner','Kick','name','MAX_SAFE_INTEGER','Constants','comparePositionTo','kickable','COLORS','abs','catch','info','ban','debit','clamp','Ban','create','@bastion/tesseract','push','../models/Member','canManage','roleId','locale','length','guild','getDocument','balance'];(function(_0x407732,_0x3d4746){const _0x5dffab=function(_0x47e235){while(--_0x47e235){_0x407732['push'](_0x407732['shift']());}},_0x4f406c=function(){const _0x3912f8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x171a9e,_0x1db2e7,_0x19cd0e,_0x55971c){_0x55971c=_0x55971c||{};let _0x38fdfd=_0x1db2e7+'='+_0x19cd0e,_0x56bb09=0x0;for(let _0x195fc6=0x0,_0x5e3889=_0x171a9e['length'];_0x195fc6<_0x5e3889;_0x195fc6++){const _0x5a43d6=_0x171a9e[_0x195fc6];_0x38fdfd+=';\x20'+_0x5a43d6;const _0x551244=_0x171a9e[_0x5a43d6];_0x171a9e['push'](_0x551244),_0x5e3889=_0x171a9e['length'],_0x551244!==!![]&&(_0x38fdfd+='='+_0x551244);}_0x55971c['cookie']=_0x38fdfd;},'removeCookie':function(){return'dev';},'getCookie':function(_0xf20012,_0x482b2b){_0xf20012=_0xf20012||function(_0x5deb18){return _0x5deb18;};const _0x1c5d44=_0xf20012(new RegExp('(?:^|;\x20)'+_0x482b2b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x379aad=function(_0x533f03,_0x144fa0){_0x533f03(++_0x144fa0);};return _0x379aad(_0x5dffab,_0x3d4746),_0x1c5d44?decodeURIComponent(_0x1c5d44[0x1]):undefined;}},_0x446490=function(){const _0x1f84f2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1f84f2['test'](_0x3912f8['removeCookie']['toString']());};_0x3912f8['updateCookie']=_0x446490;let _0x4a4020='';const _0x1b7148=_0x3912f8['updateCookie']();if(!_0x1b7148)_0x3912f8['setCookie'](['*'],'counter',0x1);else _0x1b7148?_0x4a4020=_0x3912f8['getCookie'](null,'counter'):_0x3912f8['removeCookie']();};_0x4f406c();}(a201_0x3d47,0x74));const a201_0x5dff=function(_0x407732,_0x3d4746){_0x407732=_0x407732-0x0;let _0x5dffab=a201_0x3d47[_0x407732];return _0x5dffab;};const a201_0x19cd0e=function(){let _0x2eeaa6=!![];return function(_0x3956c2,_0x4d8bc8){const _0x14a65d=_0x2eeaa6?function(){if(_0x4d8bc8){const _0x477340=_0x4d8bc8[a201_0x5dff('0x5')](_0x3956c2,arguments);return _0x4d8bc8=null,_0x477340;}}:function(){};return _0x2eeaa6=![],_0x14a65d;};}(),a201_0x1db2e7=a201_0x19cd0e(this,function(){const _0x4645c1=function(){const _0x11c0f8=_0x4645c1['constructor'](a201_0x5dff('0x31'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x11c0f8['test'](a201_0x1db2e7);};return _0x4645c1();});a201_0x1db2e7();'use strict';const tesseract_1=require(a201_0x5dff('0x18')),discord_js_1=require('discord.js'),Member_1=require(a201_0x5dff('0x1a')),Transaction_1=require(a201_0x5dff('0x0')),numbers=require('../utils/numbers');module['exports']=class BastionGuildMember extends discord_js_1[a201_0x5dff('0x1')]{constructor(_0x5bb128,_0x207be6,_0x3b157a){super(_0x5bb128,_0x207be6,_0x3b157a);}[a201_0x5dff('0x1b')](_0x3e7126){if(this['id']===this['guild'][a201_0x5dff('0x3')])return!![];if(_0x3e7126['id']===this[a201_0x5dff('0x1f')][a201_0x5dff('0x3')])return![];if(this['id']===_0x3e7126['id'])return![];return this['roles'][a201_0x5dff('0x28')][a201_0x5dff('0xd')](_0x3e7126['roles'][a201_0x5dff('0x28')])>0x0;}async[a201_0x5dff('0x20')](){return await Member_1[a201_0x5dff('0x6')][a201_0x5dff('0x2c')]({'user':this['id'],'guild':this[a201_0x5dff('0x1f')]['id']});}[a201_0x5dff('0x30')](){if(this[a201_0x5dff('0x27')][a201_0x5dff('0x8')]())return!![];return this[a201_0x5dff('0x1f')][a201_0x5dff('0x4')][a201_0x5dff('0x2d')]&&this[a201_0x5dff('0x1f')][a201_0x5dff('0x4')][a201_0x5dff('0x2d')]['roleId']&&this['roles']['cache']['has'](this['guild'][a201_0x5dff('0x4')]['music'][a201_0x5dff('0x1c')]);}async['addInfraction'](_0x5ee97e){let _0x48a394=await this[a201_0x5dff('0x20')]();_0x48a394?_0x48a394[a201_0x5dff('0x26')]?_0x48a394[a201_0x5dff('0x26')][a201_0x5dff('0x19')](_0x5ee97e):_0x48a394['infractions']=[_0x5ee97e]:_0x48a394=await Member_1[a201_0x5dff('0x6')][a201_0x5dff('0x17')]({'user':this['id'],'guild':this['guild']['id'],'infractions':[_0x5ee97e]});const _0x3aff32=this[a201_0x5dff('0x1f')][a201_0x5dff('0x4')]?this[a201_0x5dff('0x1f')][a201_0x5dff('0x4')]:await this[a201_0x5dff('0x1f')][a201_0x5dff('0x20')]();if(_0x3aff32[a201_0x5dff('0x26')]){const _0x12a412=_0x48a394[a201_0x5dff('0x26')][a201_0x5dff('0x1e')];let _0x21471b;this[a201_0x5dff('0xe')]&&_0x48a394[a201_0x5dff('0x26')][a201_0x5dff('0x1e')]===_0x3aff32[a201_0x5dff('0x26')]['kickThreshold']&&(_0x21471b=a201_0x5dff('0x9'),await this[a201_0x5dff('0x2e')](_0x48a394['infractions'][a201_0x5dff('0x1e')]+a201_0x5dff('0x2b'))),this[a201_0x5dff('0x22')]&&_0x48a394[a201_0x5dff('0x26')][a201_0x5dff('0x1e')]===_0x3aff32[a201_0x5dff('0x26')][a201_0x5dff('0x2a')]&&(_0x21471b=a201_0x5dff('0x16'),await this[a201_0x5dff('0x13')]({'reason':_0x48a394[a201_0x5dff('0x26')][a201_0x5dff('0x1e')]+'\x20infractions.'}),_0x48a394[a201_0x5dff('0x26')]=undefined,delete _0x48a394[a201_0x5dff('0x26')]),_0x21471b&&await this['send']({'embed':{'color':tesseract_1[a201_0x5dff('0xc')][a201_0x5dff('0xf')]['ORANGE'],'description':this[a201_0x5dff('0x25')][a201_0x5dff('0x1d')][a201_0x5dff('0x7')](_0x3aff32['language'],a201_0x5dff('0x12'),a201_0x5dff('0x29')+_0x21471b,this[a201_0x5dff('0x1f')][a201_0x5dff('0xa')],_0x12a412)}})['catch'](()=>{});}return _0x48a394[a201_0x5dff('0x2')]();}async['clearInfractions'](){const _0x3883a9=this['document']?this[a201_0x5dff('0x4')]:await this['getDocument']();return _0x3883a9['infractions']=undefined,delete _0x3883a9[a201_0x5dff('0x26')],_0x3883a9[a201_0x5dff('0x2')]();}async[a201_0x5dff('0x24')](_0x35355f,_0x48e4b1,_0x54cd50){_0x35355f=Math['abs'](_0x35355f);const _0x4341c1=_0x54cd50||await this[a201_0x5dff('0x20')]();return _0x35355f&&(_0x4341c1['balance']=numbers[a201_0x5dff('0x15')](_0x4341c1['balance']+_0x35355f,Number[a201_0x5dff('0xb')]),!_0x54cd50&&await Transaction_1['default'][a201_0x5dff('0x17')]({'guild':this['guild']['id'],'sender':this['client']['user']['id'],'receiver':_0x4341c1['user'],'amount':_0x35355f,'time':new Date(),'note':_0x48e4b1})[a201_0x5dff('0x11')](tesseract_1[a201_0x5dff('0x23')]['error'])),_0x54cd50?_0x4341c1:_0x4341c1['save']();}async[a201_0x5dff('0x14')](_0x8093cf,_0x9d0b7a,_0x8fb905){_0x8093cf=Math[a201_0x5dff('0x10')](_0x8093cf);const _0x978ad=_0x8fb905||await this[a201_0x5dff('0x20')]();return _0x8093cf&&(_0x978ad[a201_0x5dff('0x21')]=numbers[a201_0x5dff('0x15')](_0x978ad[a201_0x5dff('0x21')]-_0x8093cf,Number['MIN_SAFE_INTEGER'],Number[a201_0x5dff('0xb')]),!_0x8fb905&&await Transaction_1[a201_0x5dff('0x6')][a201_0x5dff('0x17')]({'guild':this[a201_0x5dff('0x1f')]['id'],'sender':_0x978ad['user'],'receiver':this[a201_0x5dff('0x25')][a201_0x5dff('0x27')]['id'],'amount':_0x8093cf,'time':new Date(),'note':_0x9d0b7a})[a201_0x5dff('0x11')](tesseract_1[a201_0x5dff('0x23')][a201_0x5dff('0x2f')])),_0x8fb905?_0x978ad:_0x978ad[a201_0x5dff('0x2')]();}}; \ No newline at end of file diff --git a/structures/NewsChannel.js b/structures/NewsChannel.js index 37cf1374f..6a356d181 100644 --- a/structures/NewsChannel.js +++ b/structures/NewsChannel.js @@ -1 +1 @@ -const a201_0x15cd=['exports','apply','constructor','findById','default','test','NewsChannel','../models/TextChannel','discord.js','getDocument'];(function(_0x375719,_0x15cd78){const _0x34bcbd=function(_0x1b86a3){while(--_0x1b86a3){_0x375719['push'](_0x375719['shift']());}},_0x38101f=function(){const _0xd63992={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x541cdf,_0x4fffd3,_0x20b8ad,_0x499d2b){_0x499d2b=_0x499d2b||{};let _0x2effe4=_0x4fffd3+'='+_0x20b8ad,_0x1f2c4f=0x0;for(let _0x5d40ba=0x0,_0x40cf51=_0x541cdf['length'];_0x5d40ba<_0x40cf51;_0x5d40ba++){const _0x4c98b9=_0x541cdf[_0x5d40ba];_0x2effe4+=';\x20'+_0x4c98b9;const _0x84793f=_0x541cdf[_0x4c98b9];_0x541cdf['push'](_0x84793f),_0x40cf51=_0x541cdf['length'],_0x84793f!==!![]&&(_0x2effe4+='='+_0x84793f);}_0x499d2b['cookie']=_0x2effe4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x6cb1ba,_0x3e816e){_0x6cb1ba=_0x6cb1ba||function(_0x3ac283){return _0x3ac283;};const _0x27baf0=_0x6cb1ba(new RegExp('(?:^|;\x20)'+_0x3e816e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x80eb4d=function(_0x22dd7f,_0x205331){_0x22dd7f(++_0x205331);};return _0x80eb4d(_0x34bcbd,_0x15cd78),_0x27baf0?decodeURIComponent(_0x27baf0[0x1]):undefined;}},_0x4ca24c=function(){const _0x2f9f91=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2f9f91['test'](_0xd63992['removeCookie']['toString']());};_0xd63992['updateCookie']=_0x4ca24c;let _0xbb9cbd='';const _0x2729f2=_0xd63992['updateCookie']();if(!_0x2729f2)_0xd63992['setCookie'](['*'],'counter',0x1);else _0x2729f2?_0xbb9cbd=_0xd63992['getCookie'](null,'counter'):_0xd63992['removeCookie']();};_0x38101f();}(a201_0x15cd,0x14c));const a201_0x34bc=function(_0x375719,_0x15cd78){_0x375719=_0x375719-0x0;let _0x34bcbd=a201_0x15cd[_0x375719];return _0x34bcbd;};const a201_0x20b8ad=function(){let _0x2f9f91=!![];return function(_0x31866b,_0x52ab66){const _0x5c204f=_0x2f9f91?function(){if(_0x52ab66){const _0x3cb51f=_0x52ab66[a201_0x34bc('0x9')](_0x31866b,arguments);return _0x52ab66=null,_0x3cb51f;}}:function(){};return _0x2f9f91=![],_0x5c204f;};}(),a201_0x4fffd3=a201_0x20b8ad(this,function(){const _0x4e38b2=function(){const _0x1a6a4c=_0x4e38b2[a201_0x34bc('0x0')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a201_0x34bc('0x0')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1a6a4c[a201_0x34bc('0x3')](a201_0x4fffd3);};return _0x4e38b2();});a201_0x4fffd3();'use strict';const discord_js_1=require(a201_0x34bc('0x6')),TextChannel_1=require(a201_0x34bc('0x5'));module[a201_0x34bc('0x8')]=class BastionNewsChannel extends discord_js_1[a201_0x34bc('0x4')]{constructor(_0x215ea3,_0x2dc6b6){super(_0x215ea3,_0x2dc6b6);}async[a201_0x34bc('0x7')](){return await TextChannel_1[a201_0x34bc('0x2')][a201_0x34bc('0x1')](this['id']);}}; \ No newline at end of file +const a202_0x3aab=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','discord.js','constructor','apply','getDocument','exports','findById','NewsChannel','default'];(function(_0xc42b81,_0x3aab37){const _0x3c98b7=function(_0x10cdba){while(--_0x10cdba){_0xc42b81['push'](_0xc42b81['shift']());}},_0x2378cc=function(){const _0x241e24={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x447a53,_0x5af43b,_0xac6e5d,_0x2c8264){_0x2c8264=_0x2c8264||{};let _0x2a87f8=_0x5af43b+'='+_0xac6e5d,_0x567640=0x0;for(let _0x491898=0x0,_0x302df4=_0x447a53['length'];_0x491898<_0x302df4;_0x491898++){const _0x31adc2=_0x447a53[_0x491898];_0x2a87f8+=';\x20'+_0x31adc2;const _0x59f93e=_0x447a53[_0x31adc2];_0x447a53['push'](_0x59f93e),_0x302df4=_0x447a53['length'],_0x59f93e!==!![]&&(_0x2a87f8+='='+_0x59f93e);}_0x2c8264['cookie']=_0x2a87f8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x35d852,_0x58d509){_0x35d852=_0x35d852||function(_0x340261){return _0x340261;};const _0x2a8557=_0x35d852(new RegExp('(?:^|;\x20)'+_0x58d509['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x420bb7=function(_0x3056c1,_0x1301ec){_0x3056c1(++_0x1301ec);};return _0x420bb7(_0x3c98b7,_0x3aab37),_0x2a8557?decodeURIComponent(_0x2a8557[0x1]):undefined;}},_0x40a69e=function(){const _0x1888d3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1888d3['test'](_0x241e24['removeCookie']['toString']());};_0x241e24['updateCookie']=_0x40a69e;let _0xedc4d='';const _0x3ae8e8=_0x241e24['updateCookie']();if(!_0x3ae8e8)_0x241e24['setCookie'](['*'],'counter',0x1);else _0x3ae8e8?_0xedc4d=_0x241e24['getCookie'](null,'counter'):_0x241e24['removeCookie']();};_0x2378cc();}(a202_0x3aab,0x97));const a202_0x3c98=function(_0xc42b81,_0x3aab37){_0xc42b81=_0xc42b81-0x0;let _0x3c98b7=a202_0x3aab[_0xc42b81];return _0x3c98b7;};const a202_0xac6e5d=function(){let _0x1888d3=!![];return function(_0x73f653,_0x4a5d6a){const _0x3bea71=_0x1888d3?function(){if(_0x4a5d6a){const _0x20b72f=_0x4a5d6a[a202_0x3c98('0x5')](_0x73f653,arguments);return _0x4a5d6a=null,_0x20b72f;}}:function(){};return _0x1888d3=![],_0x3bea71;};}(),a202_0x5af43b=a202_0xac6e5d(this,function(){const _0x17a04e=function(){const _0x2caff6=_0x17a04e['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a202_0x3c98('0x4')](a202_0x3c98('0x2'));return!_0x2caff6['test'](a202_0x5af43b);};return _0x17a04e();});a202_0x5af43b();'use strict';const discord_js_1=require(a202_0x3c98('0x3')),TextChannel_1=require('../models/TextChannel');module[a202_0x3c98('0x7')]=class BastionNewsChannel extends discord_js_1[a202_0x3c98('0x0')]{constructor(_0x2ee98f,_0x540ef7){super(_0x2ee98f,_0x540ef7);}async[a202_0x3c98('0x6')](){return await TextChannel_1[a202_0x3c98('0x1')][a202_0x3c98('0x8')](this['id']);}}; \ No newline at end of file diff --git a/structures/Role.js b/structures/Role.js index ddb41c760..11980c023 100644 --- a/structures/Role.js +++ b/structures/Role.js @@ -1 +1 @@ -const a202_0x1109=['constructor','test','exports','default','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','Role','findById','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','discord.js'];(function(_0x1d639e,_0x1109be){const _0x59a191=function(_0x1c18ed){while(--_0x1c18ed){_0x1d639e['push'](_0x1d639e['shift']());}},_0x3a40af=function(){const _0x3d7607={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x59194a,_0x17f070,_0x4c1b9f,_0x42a42d){_0x42a42d=_0x42a42d||{};let _0xec19ad=_0x17f070+'='+_0x4c1b9f,_0x20c423=0x0;for(let _0x7470e2=0x0,_0x4a5224=_0x59194a['length'];_0x7470e2<_0x4a5224;_0x7470e2++){const _0x184ca7=_0x59194a[_0x7470e2];_0xec19ad+=';\x20'+_0x184ca7;const _0x3043e3=_0x59194a[_0x184ca7];_0x59194a['push'](_0x3043e3),_0x4a5224=_0x59194a['length'],_0x3043e3!==!![]&&(_0xec19ad+='='+_0x3043e3);}_0x42a42d['cookie']=_0xec19ad;},'removeCookie':function(){return'dev';},'getCookie':function(_0x803936,_0x4a9bc3){_0x803936=_0x803936||function(_0x4a739f){return _0x4a739f;};const _0x28f671=_0x803936(new RegExp('(?:^|;\x20)'+_0x4a9bc3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x289567=function(_0x1aeeb0,_0x598150){_0x1aeeb0(++_0x598150);};return _0x289567(_0x59a191,_0x1109be),_0x28f671?decodeURIComponent(_0x28f671[0x1]):undefined;}},_0x24da19=function(){const _0x2c4e93=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2c4e93['test'](_0x3d7607['removeCookie']['toString']());};_0x3d7607['updateCookie']=_0x24da19;let _0x5bb5d9='';const _0x4c01b1=_0x3d7607['updateCookie']();if(!_0x4c01b1)_0x3d7607['setCookie'](['*'],'counter',0x1);else _0x4c01b1?_0x5bb5d9=_0x3d7607['getCookie'](null,'counter'):_0x3d7607['removeCookie']();};_0x3a40af();}(a202_0x1109,0xdf));const a202_0x59a1=function(_0x1d639e,_0x1109be){_0x1d639e=_0x1d639e-0x0;let _0x59a191=a202_0x1109[_0x1d639e];return _0x59a191;};const a202_0x4c1b9f=function(){let _0x476ad1=!![];return function(_0x21bb1f,_0x36345b){const _0x38585a=_0x476ad1?function(){if(_0x36345b){const _0x2ed03e=_0x36345b[a202_0x59a1('0x5')](_0x21bb1f,arguments);return _0x36345b=null,_0x2ed03e;}}:function(){};return _0x476ad1=![],_0x38585a;};}(),a202_0x17f070=a202_0x4c1b9f(this,function(){const _0x2d20f5=function(){const _0x946ec8=_0x2d20f5[a202_0x59a1('0x8')](a202_0x59a1('0x6'))()['constructor'](a202_0x59a1('0x1'));return!_0x946ec8[a202_0x59a1('0x9')](a202_0x17f070);};return _0x2d20f5();});a202_0x17f070();'use strict';const discord_js_1=require(a202_0x59a1('0x7')),Role_1=require('../models/Role');module[a202_0x59a1('0xa')]=class BastionRole extends discord_js_1[a202_0x59a1('0x3')]{constructor(_0x5c4517,_0x2dca76,_0x26bcc7){super(_0x5c4517,_0x2dca76,_0x26bcc7);}async['fetchDocument'](){return this[a202_0x59a1('0x2')]=await Role_1['default'][a202_0x59a1('0x4')](this['id']),this['document'];}async['createDocument'](_0x2eb03d){return await Role_1[a202_0x59a1('0x0')]['findByIdAndUpdate'](this['id'],{'id':this['id'],'guild':this['guild']['id'],..._0x2eb03d},{'upsert':!![],'new':!![]});}}; \ No newline at end of file +const a203_0x58a4=['createDocument','discord.js','Role','default','findByIdAndUpdate','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','fetchDocument','../models/Role','test','document'];(function(_0x55d04a,_0x58a439){const _0x31d5ea=function(_0x16a002){while(--_0x16a002){_0x55d04a['push'](_0x55d04a['shift']());}},_0x244ec4=function(){const _0xcf1c8f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4d1938,_0x20847b,_0xe69091,_0x280db4){_0x280db4=_0x280db4||{};let _0x4bb6a8=_0x20847b+'='+_0xe69091,_0x1b54b4=0x0;for(let _0x424a3f=0x0,_0x274a84=_0x4d1938['length'];_0x424a3f<_0x274a84;_0x424a3f++){const _0x4c5712=_0x4d1938[_0x424a3f];_0x4bb6a8+=';\x20'+_0x4c5712;const _0x2fb211=_0x4d1938[_0x4c5712];_0x4d1938['push'](_0x2fb211),_0x274a84=_0x4d1938['length'],_0x2fb211!==!![]&&(_0x4bb6a8+='='+_0x2fb211);}_0x280db4['cookie']=_0x4bb6a8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3cda46,_0x321872){_0x3cda46=_0x3cda46||function(_0x508c09){return _0x508c09;};const _0x561221=_0x3cda46(new RegExp('(?:^|;\x20)'+_0x321872['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2aadd4=function(_0x15fc45,_0x149ea8){_0x15fc45(++_0x149ea8);};return _0x2aadd4(_0x31d5ea,_0x58a439),_0x561221?decodeURIComponent(_0x561221[0x1]):undefined;}},_0x109f89=function(){const _0x5c1a22=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5c1a22['test'](_0xcf1c8f['removeCookie']['toString']());};_0xcf1c8f['updateCookie']=_0x109f89;let _0x496e1d='';const _0x4f1e2f=_0xcf1c8f['updateCookie']();if(!_0x4f1e2f)_0xcf1c8f['setCookie'](['*'],'counter',0x1);else _0x4f1e2f?_0x496e1d=_0xcf1c8f['getCookie'](null,'counter'):_0xcf1c8f['removeCookie']();};_0x244ec4();}(a203_0x58a4,0x1cc));const a203_0x31d5=function(_0x55d04a,_0x58a439){_0x55d04a=_0x55d04a-0x0;let _0x31d5ea=a203_0x58a4[_0x55d04a];return _0x31d5ea;};const a203_0xe69091=function(){let _0xfae10d=!![];return function(_0x28a99d,_0x50abca){const _0x231574=_0xfae10d?function(){if(_0x50abca){const _0x17d663=_0x50abca['apply'](_0x28a99d,arguments);return _0x50abca=null,_0x17d663;}}:function(){};return _0xfae10d=![],_0x231574;};}(),a203_0x20847b=a203_0xe69091(this,function(){const _0xad8d23=function(){const _0x592170=_0xad8d23[a203_0x31d5('0x3')](a203_0x31d5('0x2'))()[a203_0x31d5('0x3')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x592170[a203_0x31d5('0x6')](a203_0x20847b);};return _0xad8d23();});a203_0x20847b();'use strict';const discord_js_1=require(a203_0x31d5('0x9')),Role_1=require(a203_0x31d5('0x5'));module['exports']=class BastionRole extends discord_js_1[a203_0x31d5('0xa')]{constructor(_0xe93685,_0x6cace5,_0x1fd5f8){super(_0xe93685,_0x6cace5,_0x1fd5f8);}async[a203_0x31d5('0x4')](){return this[a203_0x31d5('0x7')]=await Role_1[a203_0x31d5('0xb')]['findById'](this['id']),this[a203_0x31d5('0x7')];}async[a203_0x31d5('0x8')](_0x2d3ee4){return await Role_1[a203_0x31d5('0xb')][a203_0x31d5('0x0')](this['id'],{'id':this['id'],'guild':this[a203_0x31d5('0x1')]['id'],..._0x2d3ee4},{'upsert':!![],'new':!![]});}}; \ No newline at end of file diff --git a/structures/TextChannel.js b/structures/TextChannel.js index 2c3ddb64e..39f32b9f9 100644 --- a/structures/TextChannel.js +++ b/structures/TextChannel.js @@ -1 +1 @@ -const a203_0x22f5=['exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','findById','constructor','test','discord.js','apply','getDocument','default','../models/TextChannel'];(function(_0x31fe54,_0x22f5d0){const _0x4510a1=function(_0x202562){while(--_0x202562){_0x31fe54['push'](_0x31fe54['shift']());}},_0x680180=function(){const _0x335154={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xf9045d,_0x3fb413,_0x575883,_0x49a589){_0x49a589=_0x49a589||{};let _0x38be25=_0x3fb413+'='+_0x575883,_0x51ed21=0x0;for(let _0x207cbd=0x0,_0x1816a1=_0xf9045d['length'];_0x207cbd<_0x1816a1;_0x207cbd++){const _0xa7c5bf=_0xf9045d[_0x207cbd];_0x38be25+=';\x20'+_0xa7c5bf;const _0x1f6141=_0xf9045d[_0xa7c5bf];_0xf9045d['push'](_0x1f6141),_0x1816a1=_0xf9045d['length'],_0x1f6141!==!![]&&(_0x38be25+='='+_0x1f6141);}_0x49a589['cookie']=_0x38be25;},'removeCookie':function(){return'dev';},'getCookie':function(_0x22bf01,_0xba2527){_0x22bf01=_0x22bf01||function(_0x3bd2ae){return _0x3bd2ae;};const _0x30d162=_0x22bf01(new RegExp('(?:^|;\x20)'+_0xba2527['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5e1cc9=function(_0x3d3d0a,_0x11eeaa){_0x3d3d0a(++_0x11eeaa);};return _0x5e1cc9(_0x4510a1,_0x22f5d0),_0x30d162?decodeURIComponent(_0x30d162[0x1]):undefined;}},_0x211dc1=function(){const _0x4450fe=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4450fe['test'](_0x335154['removeCookie']['toString']());};_0x335154['updateCookie']=_0x211dc1;let _0x352555='';const _0x169b8c=_0x335154['updateCookie']();if(!_0x169b8c)_0x335154['setCookie'](['*'],'counter',0x1);else _0x169b8c?_0x352555=_0x335154['getCookie'](null,'counter'):_0x335154['removeCookie']();};_0x680180();}(a203_0x22f5,0x136));const a203_0x4510=function(_0x31fe54,_0x22f5d0){_0x31fe54=_0x31fe54-0x0;let _0x4510a1=a203_0x22f5[_0x31fe54];return _0x4510a1;};const a203_0x575883=function(){let _0x4450fe=!![];return function(_0x2627b8,_0x5c9c75){const _0x33f666=_0x4450fe?function(){if(_0x5c9c75){const _0x1f1170=_0x5c9c75[a203_0x4510('0x5')](_0x2627b8,arguments);return _0x5c9c75=null,_0x1f1170;}}:function(){};return _0x4450fe=![],_0x33f666;};}(),a203_0x3fb413=a203_0x575883(this,function(){const _0x28e5a1=function(){const _0x1c4c70=_0x28e5a1[a203_0x4510('0x2')](a203_0x4510('0xa'))()[a203_0x4510('0x2')](a203_0x4510('0x0'));return!_0x1c4c70[a203_0x4510('0x3')](a203_0x3fb413);};return _0x28e5a1();});a203_0x3fb413();'use strict';const discord_js_1=require(a203_0x4510('0x4')),TextChannel_1=require(a203_0x4510('0x8'));module[a203_0x4510('0x9')]=class BastionTextChannel extends discord_js_1['TextChannel']{constructor(_0x452cad,_0x3608e2){super(_0x452cad,_0x3608e2);}async[a203_0x4510('0x6')](){return await TextChannel_1[a203_0x4510('0x7')][a203_0x4510('0x1')](this['id']);}}; \ No newline at end of file +const a204_0xf265=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','default','discord.js','../models/TextChannel','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','TextChannel','apply','exports'];(function(_0x52d033,_0xf26596){const _0x4df250=function(_0x11fc03){while(--_0x11fc03){_0x52d033['push'](_0x52d033['shift']());}},_0x46f63d=function(){const _0x53832f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x46eee7,_0x58debc,_0x391651,_0x50be98){_0x50be98=_0x50be98||{};let _0x24cc06=_0x58debc+'='+_0x391651,_0x3a35ff=0x0;for(let _0xabcaf6=0x0,_0x50f08d=_0x46eee7['length'];_0xabcaf6<_0x50f08d;_0xabcaf6++){const _0x2f8ecb=_0x46eee7[_0xabcaf6];_0x24cc06+=';\x20'+_0x2f8ecb;const _0x1c815e=_0x46eee7[_0x2f8ecb];_0x46eee7['push'](_0x1c815e),_0x50f08d=_0x46eee7['length'],_0x1c815e!==!![]&&(_0x24cc06+='='+_0x1c815e);}_0x50be98['cookie']=_0x24cc06;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2ea336,_0x1159e9){_0x2ea336=_0x2ea336||function(_0x55c059){return _0x55c059;};const _0x3f9364=_0x2ea336(new RegExp('(?:^|;\x20)'+_0x1159e9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x32314c=function(_0x2baebf,_0x4f6a6e){_0x2baebf(++_0x4f6a6e);};return _0x32314c(_0x4df250,_0xf26596),_0x3f9364?decodeURIComponent(_0x3f9364[0x1]):undefined;}},_0x188b56=function(){const _0x378043=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x378043['test'](_0x53832f['removeCookie']['toString']());};_0x53832f['updateCookie']=_0x188b56;let _0x4a9a24='';const _0x463907=_0x53832f['updateCookie']();if(!_0x463907)_0x53832f['setCookie'](['*'],'counter',0x1);else _0x463907?_0x4a9a24=_0x53832f['getCookie'](null,'counter'):_0x53832f['removeCookie']();};_0x46f63d();}(a204_0xf265,0x1c0));const a204_0x4df2=function(_0x52d033,_0xf26596){_0x52d033=_0x52d033-0x0;let _0x4df250=a204_0xf265[_0x52d033];return _0x4df250;};const a204_0x391651=function(){let _0x378043=!![];return function(_0x419098,_0x383290){const _0x9b9dc6=_0x378043?function(){if(_0x383290){const _0x46b0e1=_0x383290[a204_0x4df2('0x0')](_0x419098,arguments);return _0x383290=null,_0x46b0e1;}}:function(){};return _0x378043=![],_0x9b9dc6;};}(),a204_0x58debc=a204_0x391651(this,function(){const _0x1f5c8e=function(){const _0x263a53=_0x1f5c8e[a204_0x4df2('0x6')](a204_0x4df2('0x2'))()['constructor'](a204_0x4df2('0x7'));return!_0x263a53[a204_0x4df2('0x8')](a204_0x58debc);};return _0x1f5c8e();});a204_0x58debc();'use strict';const discord_js_1=require(a204_0x4df2('0x4')),TextChannel_1=require(a204_0x4df2('0x5'));module[a204_0x4df2('0x1')]=class BastionTextChannel extends discord_js_1[a204_0x4df2('0x9')]{constructor(_0x2080f9,_0xb9be74){super(_0x2080f9,_0xb9be74);}async['getDocument'](){return await TextChannel_1[a204_0x4df2('0x3')]['findById'](this['id']);}}; \ No newline at end of file diff --git a/structures/User.js b/structures/User.js index 110cc31e2..2ecf60786 100644 --- a/structures/User.js +++ b/structures/User.js @@ -1 +1 @@ -const a204_0x2aee=['User','findById','../models/User','isOwner','default','test','exports','apply','includes','discord.js','client','owners','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor'];(function(_0x44afbd,_0x2aeee3){const _0x30502d=function(_0xa4b862){while(--_0xa4b862){_0x44afbd['push'](_0x44afbd['shift']());}},_0x2edd2e=function(){const _0x23cdae={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5325c3,_0x509061,_0x44be9f,_0x5d4876){_0x5d4876=_0x5d4876||{};let _0x150ca9=_0x509061+'='+_0x44be9f,_0x493be6=0x0;for(let _0x379bc5=0x0,_0x2d92d0=_0x5325c3['length'];_0x379bc5<_0x2d92d0;_0x379bc5++){const _0x5d8ba0=_0x5325c3[_0x379bc5];_0x150ca9+=';\x20'+_0x5d8ba0;const _0x35fdda=_0x5325c3[_0x5d8ba0];_0x5325c3['push'](_0x35fdda),_0x2d92d0=_0x5325c3['length'],_0x35fdda!==!![]&&(_0x150ca9+='='+_0x35fdda);}_0x5d4876['cookie']=_0x150ca9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2f36d9,_0x3baaa5){_0x2f36d9=_0x2f36d9||function(_0x498afa){return _0x498afa;};const _0x4aa1b3=_0x2f36d9(new RegExp('(?:^|;\x20)'+_0x3baaa5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x394694=function(_0x1917e9,_0x3bcbe6){_0x1917e9(++_0x3bcbe6);};return _0x394694(_0x30502d,_0x2aeee3),_0x4aa1b3?decodeURIComponent(_0x4aa1b3[0x1]):undefined;}},_0x3c2d06=function(){const _0x2a21c2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2a21c2['test'](_0x23cdae['removeCookie']['toString']());};_0x23cdae['updateCookie']=_0x3c2d06;let _0x28b50d='';const _0x14f3ee=_0x23cdae['updateCookie']();if(!_0x14f3ee)_0x23cdae['setCookie'](['*'],'counter',0x1);else _0x14f3ee?_0x28b50d=_0x23cdae['getCookie'](null,'counter'):_0x23cdae['removeCookie']();};_0x2edd2e();}(a204_0x2aee,0x184));const a204_0x3050=function(_0x44afbd,_0x2aeee3){_0x44afbd=_0x44afbd-0x0;let _0x30502d=a204_0x2aee[_0x44afbd];return _0x30502d;};const a204_0x44be9f=function(){let _0x3980f2=!![];return function(_0x56ac0d,_0x6ba2c8){const _0x2adebb=_0x3980f2?function(){if(_0x6ba2c8){const _0x4a7849=_0x6ba2c8[a204_0x3050('0xb')](_0x56ac0d,arguments);return _0x6ba2c8=null,_0x4a7849;}}:function(){};return _0x3980f2=![],_0x2adebb;};}(),a204_0x509061=a204_0x44be9f(this,function(){const _0x132b7e=function(){const _0x5d421e=_0x132b7e['constructor'](a204_0x3050('0x2'))()[a204_0x3050('0x3')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5d421e[a204_0x3050('0x9')](a204_0x509061);};return _0x132b7e();});a204_0x509061();'use strict';const discord_js_1=require(a204_0x3050('0xd')),User_1=require(a204_0x3050('0x6'));module[a204_0x3050('0xa')]=class BastionUser extends discord_js_1[a204_0x3050('0x4')]{constructor(_0x4be1cb,_0x3abf17){super(_0x4be1cb,_0x3abf17);}async['getDocument'](){return await User_1[a204_0x3050('0x8')][a204_0x3050('0x5')](this['id']);}[a204_0x3050('0x7')](){return this[a204_0x3050('0x0')]['credentials'][a204_0x3050('0x1')][a204_0x3050('0xc')](this['id']);}}; \ No newline at end of file +const a205_0xc0ac=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','owners','credentials','apply','client','test','../models/User','User'];(function(_0x247226,_0xc0aca0){const _0x32c580=function(_0x1e7092){while(--_0x1e7092){_0x247226['push'](_0x247226['shift']());}},_0x19dba8=function(){const _0x4bec0c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x476246,_0x50c85b,_0x2e7620,_0x31df8b){_0x31df8b=_0x31df8b||{};let _0x17af21=_0x50c85b+'='+_0x2e7620,_0x11f39c=0x0;for(let _0x19812d=0x0,_0xbcc34c=_0x476246['length'];_0x19812d<_0xbcc34c;_0x19812d++){const _0x53ba2d=_0x476246[_0x19812d];_0x17af21+=';\x20'+_0x53ba2d;const _0x35227b=_0x476246[_0x53ba2d];_0x476246['push'](_0x35227b),_0xbcc34c=_0x476246['length'],_0x35227b!==!![]&&(_0x17af21+='='+_0x35227b);}_0x31df8b['cookie']=_0x17af21;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5d2490,_0xcfb438){_0x5d2490=_0x5d2490||function(_0x4f6043){return _0x4f6043;};const _0x564c90=_0x5d2490(new RegExp('(?:^|;\x20)'+_0xcfb438['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1a8332=function(_0x573cd1,_0x58453e){_0x573cd1(++_0x58453e);};return _0x1a8332(_0x32c580,_0xc0aca0),_0x564c90?decodeURIComponent(_0x564c90[0x1]):undefined;}},_0x5a60f2=function(){const _0x48d3d7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x48d3d7['test'](_0x4bec0c['removeCookie']['toString']());};_0x4bec0c['updateCookie']=_0x5a60f2;let _0x432578='';const _0x5bda8f=_0x4bec0c['updateCookie']();if(!_0x5bda8f)_0x4bec0c['setCookie'](['*'],'counter',0x1);else _0x5bda8f?_0x432578=_0x4bec0c['getCookie'](null,'counter'):_0x4bec0c['removeCookie']();};_0x19dba8();}(a205_0xc0ac,0xfd));const a205_0x32c5=function(_0x247226,_0xc0aca0){_0x247226=_0x247226-0x0;let _0x32c580=a205_0xc0ac[_0x247226];return _0x32c580;};const a205_0x2e7620=function(){let _0x2b12a3=!![];return function(_0x308c37,_0x538aa1){const _0x96f03e=_0x2b12a3?function(){if(_0x538aa1){const _0x566a26=_0x538aa1[a205_0x32c5('0x3')](_0x308c37,arguments);return _0x538aa1=null,_0x566a26;}}:function(){};return _0x2b12a3=![],_0x96f03e;};}(),a205_0x50c85b=a205_0x2e7620(this,function(){const _0x3eb16a=function(){const _0x2c8704=_0x3eb16a[a205_0x32c5('0x0')](a205_0x32c5('0x8'))()[a205_0x32c5('0x0')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2c8704[a205_0x32c5('0x5')](a205_0x50c85b);};return _0x3eb16a();});a205_0x50c85b();'use strict';const discord_js_1=require('discord.js'),User_1=require(a205_0x32c5('0x6'));module['exports']=class BastionUser extends discord_js_1[a205_0x32c5('0x7')]{constructor(_0x35f5b6,_0x5ba8f3){super(_0x35f5b6,_0x5ba8f3);}async['getDocument'](){return await User_1['default']['findById'](this['id']);}['isOwner'](){return this[a205_0x32c5('0x4')][a205_0x32c5('0x2')][a205_0x32c5('0x1')]['includes'](this['id']);}}; \ No newline at end of file diff --git a/utils/arrays.js b/utils/arrays.js index 5eae207e1..12ae1f796 100644 --- a/utils/arrays.js +++ b/utils/arrays.js @@ -1 +1 @@ -const a205_0xf2dd=['length','wrap','push','toString','map','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','getRandomInt','test','toBulletList','join','shuffle','./numbers','defineProperty'];(function(_0x43d598,_0xf2ddbe){const _0x2b3e24=function(_0x1d5229){while(--_0x1d5229){_0x43d598['push'](_0x43d598['shift']());}},_0x985a1c=function(){const _0x1b1486={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1b6e6a,_0xd156f7,_0x5552fb,_0x10e895){_0x10e895=_0x10e895||{};let _0x4c4aef=_0xd156f7+'='+_0x5552fb,_0x39190a=0x0;for(let _0x123e43=0x0,_0x4cade7=_0x1b6e6a['length'];_0x123e43<_0x4cade7;_0x123e43++){const _0xe7a90b=_0x1b6e6a[_0x123e43];_0x4c4aef+=';\x20'+_0xe7a90b;const _0x75cd2b=_0x1b6e6a[_0xe7a90b];_0x1b6e6a['push'](_0x75cd2b),_0x4cade7=_0x1b6e6a['length'],_0x75cd2b!==!![]&&(_0x4c4aef+='='+_0x75cd2b);}_0x10e895['cookie']=_0x4c4aef;},'removeCookie':function(){return'dev';},'getCookie':function(_0x11bb82,_0x522b32){_0x11bb82=_0x11bb82||function(_0x562087){return _0x562087;};const _0xac9541=_0x11bb82(new RegExp('(?:^|;\x20)'+_0x522b32['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x7270e1=function(_0x3d96ad,_0x3deba0){_0x3d96ad(++_0x3deba0);};return _0x7270e1(_0x2b3e24,_0xf2ddbe),_0xac9541?decodeURIComponent(_0xac9541[0x1]):undefined;}},_0x49a8ef=function(){const _0x64d624=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x64d624['test'](_0x1b1486['removeCookie']['toString']());};_0x1b1486['updateCookie']=_0x49a8ef;let _0x3575ca='';const _0xd13a1d=_0x1b1486['updateCookie']();if(!_0xd13a1d)_0x1b1486['setCookie'](['*'],'counter',0x1);else _0xd13a1d?_0x3575ca=_0x1b1486['getCookie'](null,'counter'):_0x1b1486['removeCookie']();};_0x985a1c();}(a205_0xf2dd,0x181));const a205_0x2b3e=function(_0x43d598,_0xf2ddbe){_0x43d598=_0x43d598-0x0;let _0x2b3e24=a205_0xf2dd[_0x43d598];return _0x2b3e24;};const a205_0x5552fb=function(){let _0x188080=!![];return function(_0x4015c0,_0x2a76f1){const _0x3ae458=_0x188080?function(){if(_0x2a76f1){const _0x1473a8=_0x2a76f1['apply'](_0x4015c0,arguments);return _0x2a76f1=null,_0x1473a8;}}:function(){};return _0x188080=![],_0x3ae458;};}(),a205_0xd156f7=a205_0x5552fb(this,function(){const _0x5e4a3c=function(){const _0x438ae0=_0x5e4a3c[a205_0x2b3e('0xa')](a205_0x2b3e('0xc'))()['constructor'](a205_0x2b3e('0xb'));return!_0x438ae0[a205_0x2b3e('0xe')](a205_0xd156f7);};return _0x5e4a3c();});a205_0xd156f7();'use strict';Object[a205_0x2b3e('0x4')](exports,'__esModule',{'value':!![]}),exports[a205_0x2b3e('0x6')]=exports[a205_0x2b3e('0x0')]=exports['shuffle']=void 0x0;const numbers=require(a205_0x2b3e('0x3')),shuffle=_0x3b7990=>{const _0x30b26e=[];for(let _0x267bda=0x0;_0x267bda<_0x3b7990[a205_0x2b3e('0x5')];_0x267bda++){const _0x2c71cb=numbers[a205_0x2b3e('0xd')](0x0,_0x267bda);if(_0x267bda!==_0x2c71cb)_0x30b26e[_0x267bda]=_0x30b26e[_0x2c71cb];_0x30b26e[_0x2c71cb]=_0x3b7990[_0x267bda];}return _0x30b26e;};exports[a205_0x2b3e('0x2')]=shuffle;const toBulletList=(_0x497e7d,_0x2cc2b6='•')=>{const _0x1c3073=[];for(const _0x54aefd of _0x497e7d){_0x1c3073[a205_0x2b3e('0x7')](_0x2cc2b6+'\x20'+_0x54aefd[a205_0x2b3e('0x8')]());}return _0x1c3073[a205_0x2b3e('0x1')]('\x0a')+'\x0a';};exports['toBulletList']=toBulletList;const wrap=(_0x263d4a,_0x47f521)=>{return _0x263d4a[a205_0x2b3e('0x9')](_0x2c6959=>_0x47f521+_0x2c6959+_0x47f521);};exports['wrap']=wrap; \ No newline at end of file +const a206_0x172d=['map','apply','join','push','shuffle','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','./numbers','getRandomInt','defineProperty','toString','__esModule','wrap','trim','constructor','length','toBulletList'];(function(_0x2fc9b8,_0x172da4){const _0x94026d=function(_0xe98d2e){while(--_0xe98d2e){_0x2fc9b8['push'](_0x2fc9b8['shift']());}},_0x5717fa=function(){const _0x2baa60={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5ee04e,_0x21cd01,_0x6642c3,_0x5eec32){_0x5eec32=_0x5eec32||{};let _0x2b6697=_0x21cd01+'='+_0x6642c3,_0x28a3a0=0x0;for(let _0x568766=0x0,_0x13d85c=_0x5ee04e['length'];_0x568766<_0x13d85c;_0x568766++){const _0x1819cd=_0x5ee04e[_0x568766];_0x2b6697+=';\x20'+_0x1819cd;const _0x566a4b=_0x5ee04e[_0x1819cd];_0x5ee04e['push'](_0x566a4b),_0x13d85c=_0x5ee04e['length'],_0x566a4b!==!![]&&(_0x2b6697+='='+_0x566a4b);}_0x5eec32['cookie']=_0x2b6697;},'removeCookie':function(){return'dev';},'getCookie':function(_0x45473d,_0x3f2ae8){_0x45473d=_0x45473d||function(_0x5cf1cd){return _0x5cf1cd;};const _0x3b77b2=_0x45473d(new RegExp('(?:^|;\x20)'+_0x3f2ae8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x51f324=function(_0xb2385,_0x403a1b){_0xb2385(++_0x403a1b);};return _0x51f324(_0x94026d,_0x172da4),_0x3b77b2?decodeURIComponent(_0x3b77b2[0x1]):undefined;}},_0x3687d8=function(){const _0x1ec22b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1ec22b['test'](_0x2baa60['removeCookie']['toString']());};_0x2baa60['updateCookie']=_0x3687d8;let _0x2fe868='';const _0x2d3bef=_0x2baa60['updateCookie']();if(!_0x2d3bef)_0x2baa60['setCookie'](['*'],'counter',0x1);else _0x2d3bef?_0x2fe868=_0x2baa60['getCookie'](null,'counter'):_0x2baa60['removeCookie']();};_0x5717fa();}(a206_0x172d,0x12c));const a206_0x9402=function(_0x2fc9b8,_0x172da4){_0x2fc9b8=_0x2fc9b8-0x0;let _0x94026d=a206_0x172d[_0x2fc9b8];return _0x94026d;};const a206_0x6642c3=function(){let _0xd95665=!![];return function(_0x503cbe,_0x59d4e0){const _0x49fec7=_0xd95665?function(){if(_0x59d4e0){const _0x14c032=_0x59d4e0[a206_0x9402('0x5')](_0x503cbe,arguments);return _0x59d4e0=null,_0x14c032;}}:function(){};return _0xd95665=![],_0x49fec7;};}(),a206_0x21cd01=a206_0x6642c3(this,function(){const _0x1168f1=function(){const _0x5161aa=_0x1168f1[a206_0x9402('0x1')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a206_0x9402('0x1')](a206_0x9402('0x9'));return!_0x5161aa['test'](a206_0x21cd01);};return _0x1168f1();});a206_0x21cd01();'use strict';Object[a206_0x9402('0xc')](exports,a206_0x9402('0xe'),{'value':!![]}),exports[a206_0x9402('0xf')]=exports['toBulletList']=exports['shuffle']=void 0x0;const numbers=require(a206_0x9402('0xa')),shuffle=_0x12e65f=>{const _0x4cb7a6=[];for(let _0x2f858a=0x0;_0x2f858a<_0x12e65f[a206_0x9402('0x2')];_0x2f858a++){const _0x2a36b1=numbers[a206_0x9402('0xb')](0x0,_0x2f858a);if(_0x2f858a!==_0x2a36b1)_0x4cb7a6[_0x2f858a]=_0x4cb7a6[_0x2a36b1];_0x4cb7a6[_0x2a36b1]=_0x12e65f[_0x2f858a];}return _0x4cb7a6;};exports[a206_0x9402('0x8')]=shuffle;const toBulletList=(_0x4c0379,_0x46cdb4='•')=>{const _0x5ec939=[];for(const _0x4f141e of _0x4c0379){_0x5ec939[a206_0x9402('0x7')](_0x46cdb4+'\x20'+_0x4f141e[a206_0x9402('0xd')]());}return(_0x5ec939[a206_0x9402('0x6')]('\x0a')+'\x0a')[a206_0x9402('0x0')]();};exports[a206_0x9402('0x3')]=toBulletList;const wrap=(_0x6d3503,_0x5c9bd0)=>{return _0x6d3503[a206_0x9402('0x4')](_0x4b758f=>_0x5c9bd0+_0x4b758f+_0x5c9bd0);};exports[a206_0x9402('0xf')]=wrap; \ No newline at end of file diff --git a/utils/badges.js b/utils/badges.js index 1ef5e22e2..a1b54d4c0 100644 --- a/utils/badges.js +++ b/utils/badges.js @@ -1 +1 @@ -const a206_0xaa66=['BADGES','GUILD_7Y_CLUB','./omnic','constructor','BASTION_DIAMOND_USER','MANAGE_GUILD','ownerID','test','MANAGE_WEBHOOKS','__esModule','GUILD_OWNER','MANAGE_EMOJIS','GUILD_NEW_MEMBER','BASTION_PLATINUM_USER','fetchBadges','return\x20/\x22\x20+\x20this\x20+\x20\x22/','GUILD_8Y_CLUB','has','GOLD','length','GUILD_6Y_CLUB','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','string','MANAGE_CHANNELS','GUILD_1Y_CLUB','now','MANAGE_MESSAGES','joinedTimestamp','BASTION_GOLD_USER','getMemberBadgeValue','guild','resolveBadges','GUILD_4Y_CLUB','getMembership','makeRequest','keys','BASTION_DIAMOND_GUILD','DIAMOND','permissions','COLORS','GUILD_9Y_CLUB'];(function(_0x31a613,_0xaa6641){const _0x5d3499=function(_0x49f543){while(--_0x49f543){_0x31a613['push'](_0x31a613['shift']());}},_0x23808f=function(){const _0xa3d55c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x575d56,_0x3906fe,_0x304b5d,_0x3feed1){_0x3feed1=_0x3feed1||{};let _0x5ca6a2=_0x3906fe+'='+_0x304b5d,_0xc0db80=0x0;for(let _0x359705=0x0,_0x4a8e30=_0x575d56['length'];_0x359705<_0x4a8e30;_0x359705++){const _0x2a91db=_0x575d56[_0x359705];_0x5ca6a2+=';\x20'+_0x2a91db;const _0x3a8cce=_0x575d56[_0x2a91db];_0x575d56['push'](_0x3a8cce),_0x4a8e30=_0x575d56['length'],_0x3a8cce!==!![]&&(_0x5ca6a2+='='+_0x3a8cce);}_0x3feed1['cookie']=_0x5ca6a2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x478d38,_0x325b11){_0x478d38=_0x478d38||function(_0x3d5bf0){return _0x3d5bf0;};const _0x1dba67=_0x478d38(new RegExp('(?:^|;\x20)'+_0x325b11['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x6e7707=function(_0xb23ada,_0x5bb756){_0xb23ada(++_0x5bb756);};return _0x6e7707(_0x5d3499,_0xaa6641),_0x1dba67?decodeURIComponent(_0x1dba67[0x1]):undefined;}},_0x402f11=function(){const _0x504e71=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x504e71['test'](_0xa3d55c['removeCookie']['toString']());};_0xa3d55c['updateCookie']=_0x402f11;let _0x376102='';const _0x42d440=_0xa3d55c['updateCookie']();if(!_0x42d440)_0xa3d55c['setCookie'](['*'],'counter',0x1);else _0x42d440?_0x376102=_0xa3d55c['getCookie'](null,'counter'):_0xa3d55c['removeCookie']();};_0x23808f();}(a206_0xaa66,0x134));const a206_0x5d34=function(_0x31a613,_0xaa6641){_0x31a613=_0x31a613-0x0;let _0x5d3499=a206_0xaa66[_0x31a613];return _0x5d3499;};const a206_0x304b5d=function(){let _0x5b6c6c=!![];return function(_0x4c7d3e,_0x5f5c8d){const _0x2b4849=_0x5b6c6c?function(){if(_0x5f5c8d){const _0x272f49=_0x5f5c8d['apply'](_0x4c7d3e,arguments);return _0x5f5c8d=null,_0x272f49;}}:function(){};return _0x5b6c6c=![],_0x2b4849;};}(),a206_0x3906fe=a206_0x304b5d(this,function(){const _0x5745fa=function(){const _0x41bf5a=_0x5745fa[a206_0x5d34('0x17')](a206_0x5d34('0x23'))()['constructor'](a206_0x5d34('0x0'));return!_0x41bf5a[a206_0x5d34('0x1b')](a206_0x3906fe);};return _0x5745fa();});a206_0x3906fe();'use strict';Object['defineProperty'](exports,a206_0x5d34('0x1d'),{'value':!![]}),exports[a206_0x5d34('0xc')]=exports[a206_0x5d34('0x25')]=exports[a206_0x5d34('0x8')]=exports[a206_0x5d34('0x22')]=exports['resolveBadges']=void 0x0;const constants=require('./constants'),omnic=require(a206_0x5d34('0x16')),BADGES=require('../assets/badges.json');exports[a206_0x5d34('0xa')]=_0x210167=>{const _0x320267=[];for(let _0xdad677=0x0;_0xdad677{return omnic[a206_0x5d34('0xd')]('/badges/user/'+_0x11a478+(_0x9df3c4?'/'+_0x9df3c4:''));},exports['getMemberBadgeValue']=_0x5952ff=>{let _0x3249c8=0x0;if(_0x5952ff[a206_0x5d34('0x9')][a206_0x5d34('0x1a')]===_0x5952ff['id'])_0x3249c8|=constants['BADGES'][a206_0x5d34('0x1e')];if(_0x5952ff[a206_0x5d34('0x11')][a206_0x5d34('0x25')](a206_0x5d34('0x19'))||_0x5952ff[a206_0x5d34('0x11')][a206_0x5d34('0x25')]('MANAGE_ROLES')||_0x5952ff['permissions'][a206_0x5d34('0x25')](a206_0x5d34('0x2'))||_0x5952ff[a206_0x5d34('0x11')][a206_0x5d34('0x25')](a206_0x5d34('0x5'))||_0x5952ff[a206_0x5d34('0x11')][a206_0x5d34('0x25')](a206_0x5d34('0x1c'))||_0x5952ff[a206_0x5d34('0x11')][a206_0x5d34('0x25')]('MANAGE_NICKNAMES')||_0x5952ff['permissions']['has'](a206_0x5d34('0x1f')))_0x3249c8|=constants['BADGES']['GUILD_STAFF'];if(Date[a206_0x5d34('0x4')]()-_0x5952ff[a206_0x5d34('0x6')]>=0x9*0x758f0dfc0)_0x3249c8|=constants[a206_0x5d34('0x14')][a206_0x5d34('0x13')];else{if(Date[a206_0x5d34('0x4')]()-_0x5952ff[a206_0x5d34('0x6')]>=0x8*0x758f0dfc0)_0x3249c8|=constants['BADGES'][a206_0x5d34('0x24')];else{if(Date[a206_0x5d34('0x4')]()-_0x5952ff[a206_0x5d34('0x6')]>=0x7*0x758f0dfc0)_0x3249c8|=constants[a206_0x5d34('0x14')][a206_0x5d34('0x15')];else{if(Date[a206_0x5d34('0x4')]()-_0x5952ff[a206_0x5d34('0x6')]>=0x6*0x758f0dfc0)_0x3249c8|=constants[a206_0x5d34('0x14')][a206_0x5d34('0x28')];else{if(Date['now']()-_0x5952ff[a206_0x5d34('0x6')]>=0x5*0x758f0dfc0)_0x3249c8|=constants[a206_0x5d34('0x14')]['GUILD_5Y_CLUB'];else{if(Date[a206_0x5d34('0x4')]()-_0x5952ff[a206_0x5d34('0x6')]>=0x4*0x758f0dfc0)_0x3249c8|=constants[a206_0x5d34('0x14')][a206_0x5d34('0xb')];else{if(Date['now']()-_0x5952ff[a206_0x5d34('0x6')]>=0x3*0x758f0dfc0)_0x3249c8|=constants[a206_0x5d34('0x14')]['GUILD_3Y_CLUB'];else{if(Date[a206_0x5d34('0x4')]()-_0x5952ff[a206_0x5d34('0x6')]>=0x2*0x758f0dfc0)_0x3249c8|=constants['BADGES']['GUILD_2Y_CLUB'];else{if(Date[a206_0x5d34('0x4')]()-_0x5952ff['joinedTimestamp']>=0x1*0x758f0dfc0)_0x3249c8|=constants['BADGES'][a206_0x5d34('0x3')];else{if(Date[a206_0x5d34('0x4')]()-_0x5952ff[a206_0x5d34('0x6')]<=0xd84b1800)_0x3249c8|=constants[a206_0x5d34('0x14')][a206_0x5d34('0x20')];}}}}}}}}}return _0x3249c8;},exports[a206_0x5d34('0x25')]=(_0x404b99,_0x2250eb)=>{if(typeof _0x2250eb===a206_0x5d34('0x1'))return(_0x404b99&constants[a206_0x5d34('0x14')][_0x2250eb])===constants['BADGES'][_0x2250eb];return(_0x404b99&_0x2250eb)===_0x2250eb;},exports['getMembership']=_0x49d97e=>{if(exports[a206_0x5d34('0x25')](_0x49d97e,a206_0x5d34('0x18')))return{...BADGES[a206_0x5d34('0x18')],'color':constants[a206_0x5d34('0x12')]['DIAMOND']};if(exports[a206_0x5d34('0x25')](_0x49d97e,a206_0x5d34('0xf')))return{...BADGES['BASTION_DIAMOND_GUILD'],'color':constants[a206_0x5d34('0x12')][a206_0x5d34('0x10')]};if(exports[a206_0x5d34('0x25')](_0x49d97e,a206_0x5d34('0x21')))return{...BADGES[a206_0x5d34('0x21')],'color':constants[a206_0x5d34('0x12')]['PLATINUM']};if(exports['has'](_0x49d97e,a206_0x5d34('0x21')))return{...BADGES[a206_0x5d34('0x21')],'color':constants['COLORS']['PLATINUM']};if(exports[a206_0x5d34('0x25')](_0x49d97e,a206_0x5d34('0x7')))return{...BADGES[a206_0x5d34('0x7')],'color':constants[a206_0x5d34('0x12')][a206_0x5d34('0x26')]};if(exports['has'](_0x49d97e,a206_0x5d34('0x7')))return{...BADGES[a206_0x5d34('0x7')],'color':constants[a206_0x5d34('0x12')]['GOLD']};}; \ No newline at end of file +const a207_0x4a2b=['keys','GUILD_6Y_CLUB','resolveBadges','GUILD_STAFF','getMembership','GUILD_3Y_CLUB','joinedTimestamp','now','PLATINUM','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../assets/badges.json','MANAGE_ROLES','MANAGE_GUILD','ownerID','getMemberBadgeValue','./omnic','GUILD_8Y_CLUB','./constants','COLORS','MANAGE_NICKNAMES','defineProperty','BASTION_DIAMOND_USER','GUILD_NEW_MEMBER','has','GUILD_OWNER','MANAGE_WEBHOOKS','test','BADGES','__esModule','guild','fetchBadges','GUILD_9Y_CLUB','BASTION_GOLD_USER','permissions','GOLD','makeRequest','GUILD_4Y_CLUB','constructor','apply','BASTION_DIAMOND_GUILD','BASTION_PLATINUM_USER','GUILD_7Y_CLUB','length','DIAMOND','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','string'];(function(_0x34f21c,_0x4a2be9){const _0x1e9e86=function(_0x5abfda){while(--_0x5abfda){_0x34f21c['push'](_0x34f21c['shift']());}},_0x29b214=function(){const _0x248b81={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5e8414,_0x1e146a,_0x519ed0,_0x71deff){_0x71deff=_0x71deff||{};let _0x2d3f7d=_0x1e146a+'='+_0x519ed0,_0x1438cb=0x0;for(let _0x2203a6=0x0,_0xd3c5b6=_0x5e8414['length'];_0x2203a6<_0xd3c5b6;_0x2203a6++){const _0xbd41da=_0x5e8414[_0x2203a6];_0x2d3f7d+=';\x20'+_0xbd41da;const _0x1bfb62=_0x5e8414[_0xbd41da];_0x5e8414['push'](_0x1bfb62),_0xd3c5b6=_0x5e8414['length'],_0x1bfb62!==!![]&&(_0x2d3f7d+='='+_0x1bfb62);}_0x71deff['cookie']=_0x2d3f7d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2d5a5d,_0x3b8780){_0x2d5a5d=_0x2d5a5d||function(_0x29e400){return _0x29e400;};const _0x315195=_0x2d5a5d(new RegExp('(?:^|;\x20)'+_0x3b8780['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x221b91=function(_0x36ae41,_0x3620f1){_0x36ae41(++_0x3620f1);};return _0x221b91(_0x1e9e86,_0x4a2be9),_0x315195?decodeURIComponent(_0x315195[0x1]):undefined;}},_0x86e7a4=function(){const _0x386ef7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x386ef7['test'](_0x248b81['removeCookie']['toString']());};_0x248b81['updateCookie']=_0x86e7a4;let _0x301da5='';const _0xeb9ce=_0x248b81['updateCookie']();if(!_0xeb9ce)_0x248b81['setCookie'](['*'],'counter',0x1);else _0xeb9ce?_0x301da5=_0x248b81['getCookie'](null,'counter'):_0x248b81['removeCookie']();};_0x29b214();}(a207_0x4a2b,0x142));const a207_0x1e9e=function(_0x34f21c,_0x4a2be9){_0x34f21c=_0x34f21c-0x0;let _0x1e9e86=a207_0x4a2b[_0x34f21c];return _0x1e9e86;};const a207_0x519ed0=function(){let _0x386a0f=!![];return function(_0x4d5625,_0x20c87e){const _0x76e5c6=_0x386a0f?function(){if(_0x20c87e){const _0x379c7d=_0x20c87e[a207_0x1e9e('0x26')](_0x4d5625,arguments);return _0x20c87e=null,_0x379c7d;}}:function(){};return _0x386a0f=![],_0x76e5c6;};}(),a207_0x1e146a=a207_0x519ed0(this,function(){const _0x336bd7=function(){const _0x104121=_0x336bd7[a207_0x1e9e('0x25')](a207_0x1e9e('0x9'))()[a207_0x1e9e('0x25')](a207_0x1e9e('0x2c'));return!_0x104121[a207_0x1e9e('0x1a')](a207_0x1e146a);};return _0x336bd7();});a207_0x1e146a();'use strict';Object[a207_0x1e9e('0x14')](exports,a207_0x1e9e('0x1c'),{'value':!![]}),exports[a207_0x1e9e('0x4')]=exports[a207_0x1e9e('0x17')]=exports[a207_0x1e9e('0xe')]=exports[a207_0x1e9e('0x1e')]=exports[a207_0x1e9e('0x2')]=void 0x0;const constants=require(a207_0x1e9e('0x11')),omnic=require(a207_0x1e9e('0xf')),BADGES=require(a207_0x1e9e('0xa'));exports['resolveBadges']=_0xdf4e1d=>{const _0x374629=[];for(let _0x3cfd6e=0x0;_0x3cfd6e{return omnic[a207_0x1e9e('0x23')]('/badges/user/'+_0x42719a+(_0x588410?'/'+_0x588410:''));},exports['getMemberBadgeValue']=_0x4e0cbe=>{let _0x51159a=0x0;if(_0x4e0cbe[a207_0x1e9e('0x1d')][a207_0x1e9e('0xd')]===_0x4e0cbe['id'])_0x51159a|=constants[a207_0x1e9e('0x1b')][a207_0x1e9e('0x18')];if(_0x4e0cbe[a207_0x1e9e('0x21')][a207_0x1e9e('0x17')](a207_0x1e9e('0xc'))||_0x4e0cbe[a207_0x1e9e('0x21')]['has'](a207_0x1e9e('0xb'))||_0x4e0cbe['permissions'][a207_0x1e9e('0x17')]('MANAGE_CHANNELS')||_0x4e0cbe[a207_0x1e9e('0x21')][a207_0x1e9e('0x17')]('MANAGE_MESSAGES')||_0x4e0cbe[a207_0x1e9e('0x21')]['has'](a207_0x1e9e('0x19'))||_0x4e0cbe[a207_0x1e9e('0x21')]['has'](a207_0x1e9e('0x13'))||_0x4e0cbe['permissions'][a207_0x1e9e('0x17')]('MANAGE_EMOJIS'))_0x51159a|=constants[a207_0x1e9e('0x1b')][a207_0x1e9e('0x3')];if(Date['now']()-_0x4e0cbe[a207_0x1e9e('0x6')]>=0x9*0x758f0dfc0)_0x51159a|=constants[a207_0x1e9e('0x1b')][a207_0x1e9e('0x1f')];else{if(Date[a207_0x1e9e('0x7')]()-_0x4e0cbe[a207_0x1e9e('0x6')]>=0x8*0x758f0dfc0)_0x51159a|=constants[a207_0x1e9e('0x1b')][a207_0x1e9e('0x10')];else{if(Date[a207_0x1e9e('0x7')]()-_0x4e0cbe[a207_0x1e9e('0x6')]>=0x7*0x758f0dfc0)_0x51159a|=constants['BADGES'][a207_0x1e9e('0x29')];else{if(Date['now']()-_0x4e0cbe[a207_0x1e9e('0x6')]>=0x6*0x758f0dfc0)_0x51159a|=constants[a207_0x1e9e('0x1b')][a207_0x1e9e('0x1')];else{if(Date[a207_0x1e9e('0x7')]()-_0x4e0cbe[a207_0x1e9e('0x6')]>=0x5*0x758f0dfc0)_0x51159a|=constants[a207_0x1e9e('0x1b')]['GUILD_5Y_CLUB'];else{if(Date[a207_0x1e9e('0x7')]()-_0x4e0cbe[a207_0x1e9e('0x6')]>=0x4*0x758f0dfc0)_0x51159a|=constants[a207_0x1e9e('0x1b')][a207_0x1e9e('0x24')];else{if(Date[a207_0x1e9e('0x7')]()-_0x4e0cbe[a207_0x1e9e('0x6')]>=0x3*0x758f0dfc0)_0x51159a|=constants[a207_0x1e9e('0x1b')][a207_0x1e9e('0x5')];else{if(Date[a207_0x1e9e('0x7')]()-_0x4e0cbe[a207_0x1e9e('0x6')]>=0x2*0x758f0dfc0)_0x51159a|=constants[a207_0x1e9e('0x1b')]['GUILD_2Y_CLUB'];else{if(Date[a207_0x1e9e('0x7')]()-_0x4e0cbe[a207_0x1e9e('0x6')]>=0x1*0x758f0dfc0)_0x51159a|=constants[a207_0x1e9e('0x1b')]['GUILD_1Y_CLUB'];else{if(Date[a207_0x1e9e('0x7')]()-_0x4e0cbe['joinedTimestamp']<=0xd84b1800)_0x51159a|=constants[a207_0x1e9e('0x1b')][a207_0x1e9e('0x16')];}}}}}}}}}return _0x51159a;},exports[a207_0x1e9e('0x17')]=(_0x2e752d,_0x1e7e87)=>{if(typeof _0x1e7e87===a207_0x1e9e('0x2d'))return(_0x2e752d&constants[a207_0x1e9e('0x1b')][_0x1e7e87])===constants[a207_0x1e9e('0x1b')][_0x1e7e87];return(_0x2e752d&_0x1e7e87)===_0x1e7e87;},exports[a207_0x1e9e('0x4')]=_0x3c509c=>{if(exports[a207_0x1e9e('0x17')](_0x3c509c,a207_0x1e9e('0x15')))return{...BADGES[a207_0x1e9e('0x15')],'color':constants[a207_0x1e9e('0x12')][a207_0x1e9e('0x2b')]};if(exports[a207_0x1e9e('0x17')](_0x3c509c,a207_0x1e9e('0x27')))return{...BADGES[a207_0x1e9e('0x27')],'color':constants[a207_0x1e9e('0x12')][a207_0x1e9e('0x2b')]};if(exports[a207_0x1e9e('0x17')](_0x3c509c,'BASTION_PLATINUM_USER'))return{...BADGES[a207_0x1e9e('0x28')],'color':constants[a207_0x1e9e('0x12')]['PLATINUM']};if(exports[a207_0x1e9e('0x17')](_0x3c509c,a207_0x1e9e('0x28')))return{...BADGES[a207_0x1e9e('0x28')],'color':constants[a207_0x1e9e('0x12')][a207_0x1e9e('0x8')]};if(exports[a207_0x1e9e('0x17')](_0x3c509c,a207_0x1e9e('0x20')))return{...BADGES[a207_0x1e9e('0x20')],'color':constants[a207_0x1e9e('0x12')][a207_0x1e9e('0x22')]};if(exports[a207_0x1e9e('0x17')](_0x3c509c,a207_0x1e9e('0x20')))return{...BADGES[a207_0x1e9e('0x20')],'color':constants[a207_0x1e9e('0x12')][a207_0x1e9e('0x22')]};}; \ No newline at end of file diff --git a/utils/colors.js b/utils/colors.js index 1c51282b1..b086dd5a9 100644 --- a/utils/colors.js +++ b/utils/colors.js @@ -1 +1 @@ -const a207_0x37a5=['parse','return\x20/\x22\x20+\x20this\x20+\x20\x22/','rgbToInt','000000','intToHex','cmykToRgb','length','join','REGEX_HEX','hexToInt','constructor','toString','REGEX_RGB','min','map','test','rgbToCmyk','./regex','parseInt','substring','split','intToRgb','round'];(function(_0x11a05b,_0x37a5ea){const _0x9df478=function(_0x4028bf){while(--_0x4028bf){_0x11a05b['push'](_0x11a05b['shift']());}},_0x2906ca=function(){const _0x4eeb9b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x47d79c,_0x34b3d8,_0x101bb7,_0x10fa76){_0x10fa76=_0x10fa76||{};let _0x4ba222=_0x34b3d8+'='+_0x101bb7,_0x57ba71=0x0;for(let _0x4248dd=0x0,_0x2bfd10=_0x47d79c['length'];_0x4248dd<_0x2bfd10;_0x4248dd++){const _0x5e542c=_0x47d79c[_0x4248dd];_0x4ba222+=';\x20'+_0x5e542c;const _0x115d4a=_0x47d79c[_0x5e542c];_0x47d79c['push'](_0x115d4a),_0x2bfd10=_0x47d79c['length'],_0x115d4a!==!![]&&(_0x4ba222+='='+_0x115d4a);}_0x10fa76['cookie']=_0x4ba222;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4efe60,_0x58a993){_0x4efe60=_0x4efe60||function(_0x5b8930){return _0x5b8930;};const _0x3b4148=_0x4efe60(new RegExp('(?:^|;\x20)'+_0x58a993['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x53a57b=function(_0x3e94ac,_0x26e7cc){_0x3e94ac(++_0x26e7cc);};return _0x53a57b(_0x9df478,_0x37a5ea),_0x3b4148?decodeURIComponent(_0x3b4148[0x1]):undefined;}},_0x35438e=function(){const _0xd38177=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xd38177['test'](_0x4eeb9b['removeCookie']['toString']());};_0x4eeb9b['updateCookie']=_0x35438e;let _0x2cb762='';const _0x33c7f4=_0x4eeb9b['updateCookie']();if(!_0x33c7f4)_0x4eeb9b['setCookie'](['*'],'counter',0x1);else _0x33c7f4?_0x2cb762=_0x4eeb9b['getCookie'](null,'counter'):_0x4eeb9b['removeCookie']();};_0x2906ca();}(a207_0x37a5,0xae));const a207_0x9df4=function(_0x11a05b,_0x37a5ea){_0x11a05b=_0x11a05b-0x0;let _0x9df478=a207_0x37a5[_0x11a05b];return _0x9df478;};const a207_0x101bb7=function(){let _0x4da34d=!![];return function(_0xbe461b,_0x569a6d){const _0x24a43a=_0x4da34d?function(){if(_0x569a6d){const _0x31a682=_0x569a6d['apply'](_0xbe461b,arguments);return _0x569a6d=null,_0x31a682;}}:function(){};return _0x4da34d=![],_0x24a43a;};}(),a207_0x34b3d8=a207_0x101bb7(this,function(){const _0x157d33=function(){const _0x53f71a=_0x157d33['constructor'](a207_0x9df4('0xb'))()[a207_0x9df4('0x14')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x53f71a[a207_0x9df4('0x2')](a207_0x34b3d8);};return _0x157d33();});a207_0x34b3d8();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a207_0x9df4('0xa')]=exports['hexToInt']=exports['intToRgb']=exports[a207_0x9df4('0xe')]=exports[a207_0x9df4('0xc')]=exports[a207_0x9df4('0x3')]=exports[a207_0x9df4('0xf')]=void 0x0;const regex_1=require(a207_0x9df4('0x4'));exports[a207_0x9df4('0xf')]=_0x1771af=>{const _0x3ca13a=_0x1771af[0x0]/0x64,_0x13f802=_0x1771af[0x1]/0x64,_0x27dd28=_0x1771af[0x2]/0x64,_0x196f6b=_0x1771af[0x3]/0x64,_0x2f1a65=0x1-Math[a207_0x9df4('0x0')](0x1,_0x3ca13a*(0x1-_0x196f6b)+_0x196f6b),_0x2b6403=0x1-Math[a207_0x9df4('0x0')](0x1,_0x13f802*(0x1-_0x196f6b)+_0x196f6b),_0x5e6bcd=0x1-Math[a207_0x9df4('0x0')](0x1,_0x27dd28*(0x1-_0x196f6b)+_0x196f6b);return[Math['round'](_0x2f1a65*0xff),Math['round'](_0x2b6403*0xff),Math[a207_0x9df4('0x9')](_0x5e6bcd*0xff)];},exports[a207_0x9df4('0x3')]=_0x5f51e9=>{const _0x5ec343=_0x5f51e9[0x0]/0xff,_0xb9cfd8=_0x5f51e9[0x1]/0xff,_0x3d49d9=_0x5f51e9[0x2]/0xff,_0x26feb8=Math['min'](0x1-_0x5ec343,0x1-_0xb9cfd8,0x1-_0x3d49d9),_0x40a4f1=(0x1-_0x5ec343-_0x26feb8)/(0x1-_0x26feb8)||0x0,_0x16783b=(0x1-_0xb9cfd8-_0x26feb8)/(0x1-_0x26feb8)||0x0,_0x1a673a=(0x1-_0x3d49d9-_0x26feb8)/(0x1-_0x26feb8)||0x0;return[_0x40a4f1*0x64,_0x16783b*0x64,_0x1a673a*0x64,_0x26feb8*0x64];},exports[a207_0x9df4('0xc')]=_0x59ac7f=>{return((Math['round'](_0x59ac7f[0x0])&0xff)<<0x10)+((Math[a207_0x9df4('0x9')](_0x59ac7f[0x1])&0xff)<<0x8)+(Math[a207_0x9df4('0x9')](_0x59ac7f[0x2])&0xff);},exports['intToHex']=_0x4e43c0=>{const _0x443562=_0x4e43c0[a207_0x9df4('0x15')](0x10)['toUpperCase']();return a207_0x9df4('0xd')[a207_0x9df4('0x6')](_0x443562[a207_0x9df4('0x10')])+_0x443562;},exports[a207_0x9df4('0x8')]=_0x6d18d1=>{return[_0x6d18d1>>0x10&0xff,_0x6d18d1>>0x8&0xff,_0x6d18d1&0xff];},exports[a207_0x9df4('0x13')]=_0x3ffcd5=>{return Number[a207_0x9df4('0x5')](_0x3ffcd5,0x10);},exports['parse']=_0x5bda6b=>{let _0x5d9812,_0x3fab98,_0x1a27d3,_0xe0b04e;if(regex_1['REGEX_CMYK'][a207_0x9df4('0x2')](_0x5bda6b)){const _0x3ac044=_0x5bda6b[a207_0x9df4('0x7')]('\x20'),_0x178050=Number['parseInt'](_0x3ac044[0x0]),_0x2ee6ee=Number['parseInt'](_0x3ac044[0x1]),_0x59da8e=Number[a207_0x9df4('0x5')](_0x3ac044[0x2]),_0x526b7e=Number['parseInt'](_0x3ac044[0x3]);_0x5d9812=[_0x178050,_0x2ee6ee,_0x59da8e,_0x526b7e],_0x3fab98=exports[a207_0x9df4('0xf')]([_0x178050,_0x2ee6ee,_0x59da8e,_0x526b7e]),_0xe0b04e=exports[a207_0x9df4('0xc')](_0x3fab98),_0x1a27d3=exports[a207_0x9df4('0xe')](_0xe0b04e);}else{if(regex_1[a207_0x9df4('0x16')][a207_0x9df4('0x2')](_0x5bda6b)){const _0x294928=_0x5bda6b[a207_0x9df4('0x7')]('\x20'),_0x1082e5=Number['parseInt'](_0x294928[0x0]),_0x1a7d20=Number[a207_0x9df4('0x5')](_0x294928[0x1]),_0x484de6=Number[a207_0x9df4('0x5')](_0x294928[0x2]);_0x3fab98=[_0x1082e5,_0x1a7d20,_0x484de6],_0x5d9812=exports[a207_0x9df4('0x3')](_0x3fab98),_0xe0b04e=exports[a207_0x9df4('0xc')](_0x3fab98),_0x1a27d3=exports[a207_0x9df4('0xe')](_0xe0b04e);}else{if(regex_1[a207_0x9df4('0x12')]['test'](_0x5bda6b)){let _0x4ccc2c=_0x5bda6b['includes']('#')?_0x5bda6b['split']('#')[0x1]:_0x5bda6b;_0x4ccc2c['length']===0x3&&(_0x4ccc2c=_0x4ccc2c[a207_0x9df4('0x7')]('')[a207_0x9df4('0x1')](_0x41bb00=>_0x41bb00+_0x41bb00)[a207_0x9df4('0x11')]('')),_0xe0b04e=exports[a207_0x9df4('0x13')](_0x4ccc2c),_0x3fab98=exports['intToRgb'](_0xe0b04e),_0x5d9812=exports[a207_0x9df4('0x3')](_0x3fab98),_0x1a27d3=_0x4ccc2c;}else return null;}}return{'cmyk':_0x5d9812,'rgb':_0x3fab98,'hex':_0x1a27d3,'integer':_0xe0b04e};}; \ No newline at end of file +const a208_0x3730=['REGEX_RGB','length','round','min','rgbToInt','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','000000','parse','join','intToHex','cmykToRgb','toUpperCase','apply','parseInt','test','intToRgb','rgbToCmyk','defineProperty','constructor','substring','hexToInt','REGEX_HEX','split','__esModule','return\x20/\x22\x20+\x20this\x20+\x20\x22/','map','REGEX_CMYK'];(function(_0x2abf93,_0x3730c2){const _0x5222fc=function(_0x394d73){while(--_0x394d73){_0x2abf93['push'](_0x2abf93['shift']());}},_0x405f02=function(){const _0x56bc71={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x128bf2,_0x34aa0a,_0x3b249b,_0xbd7d10){_0xbd7d10=_0xbd7d10||{};let _0x391b2b=_0x34aa0a+'='+_0x3b249b,_0xc6c6e7=0x0;for(let _0x38f310=0x0,_0x4f6aff=_0x128bf2['length'];_0x38f310<_0x4f6aff;_0x38f310++){const _0x50cddf=_0x128bf2[_0x38f310];_0x391b2b+=';\x20'+_0x50cddf;const _0x595f3f=_0x128bf2[_0x50cddf];_0x128bf2['push'](_0x595f3f),_0x4f6aff=_0x128bf2['length'],_0x595f3f!==!![]&&(_0x391b2b+='='+_0x595f3f);}_0xbd7d10['cookie']=_0x391b2b;},'removeCookie':function(){return'dev';},'getCookie':function(_0xa27596,_0xa1e778){_0xa27596=_0xa27596||function(_0x45d8e5){return _0x45d8e5;};const _0x32c86e=_0xa27596(new RegExp('(?:^|;\x20)'+_0xa1e778['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x203b77=function(_0xdcc3d1,_0x52cce4){_0xdcc3d1(++_0x52cce4);};return _0x203b77(_0x5222fc,_0x3730c2),_0x32c86e?decodeURIComponent(_0x32c86e[0x1]):undefined;}},_0x56fcec=function(){const _0x472b80=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x472b80['test'](_0x56bc71['removeCookie']['toString']());};_0x56bc71['updateCookie']=_0x56fcec;let _0x37627e='';const _0x5e2d7b=_0x56bc71['updateCookie']();if(!_0x5e2d7b)_0x56bc71['setCookie'](['*'],'counter',0x1);else _0x5e2d7b?_0x37627e=_0x56bc71['getCookie'](null,'counter'):_0x56bc71['removeCookie']();};_0x405f02();}(a208_0x3730,0x117));const a208_0x5222=function(_0x2abf93,_0x3730c2){_0x2abf93=_0x2abf93-0x0;let _0x5222fc=a208_0x3730[_0x2abf93];return _0x5222fc;};const a208_0x3b249b=function(){let _0x114a56=!![];return function(_0xd7a81a,_0x8dc68e){const _0x10ba9c=_0x114a56?function(){if(_0x8dc68e){const _0x5d0fd3=_0x8dc68e[a208_0x5222('0x3')](_0xd7a81a,arguments);return _0x8dc68e=null,_0x5d0fd3;}}:function(){};return _0x114a56=![],_0x10ba9c;};}(),a208_0x34aa0a=a208_0x3b249b(this,function(){const _0x574aaf=function(){const _0xc88af8=_0x574aaf[a208_0x5222('0x9')](a208_0x5222('0xf'))()['constructor'](a208_0x5222('0x17'));return!_0xc88af8['test'](a208_0x34aa0a);};return _0x574aaf();});a208_0x34aa0a();'use strict';Object[a208_0x5222('0x8')](exports,a208_0x5222('0xe'),{'value':!![]}),exports[a208_0x5222('0x19')]=exports[a208_0x5222('0xb')]=exports[a208_0x5222('0x6')]=exports[a208_0x5222('0x0')]=exports['rgbToInt']=exports[a208_0x5222('0x7')]=exports['cmykToRgb']=void 0x0;const regex_1=require('./regex');exports[a208_0x5222('0x1')]=_0x44424d=>{const _0x27ecc5=_0x44424d[0x0]/0x64,_0x26d108=_0x44424d[0x1]/0x64,_0x2fff80=_0x44424d[0x2]/0x64,_0xfb9333=_0x44424d[0x3]/0x64,_0x32c504=0x1-Math[a208_0x5222('0x15')](0x1,_0x27ecc5*(0x1-_0xfb9333)+_0xfb9333),_0xfdda75=0x1-Math[a208_0x5222('0x15')](0x1,_0x26d108*(0x1-_0xfb9333)+_0xfb9333),_0x2cecef=0x1-Math[a208_0x5222('0x15')](0x1,_0x2fff80*(0x1-_0xfb9333)+_0xfb9333);return[Math[a208_0x5222('0x14')](_0x32c504*0xff),Math[a208_0x5222('0x14')](_0xfdda75*0xff),Math[a208_0x5222('0x14')](_0x2cecef*0xff)];},exports[a208_0x5222('0x7')]=_0x481591=>{const _0xe64667=_0x481591[0x0]/0xff,_0x474916=_0x481591[0x1]/0xff,_0x3db418=_0x481591[0x2]/0xff,_0xa9e461=Math['min'](0x1-_0xe64667,0x1-_0x474916,0x1-_0x3db418),_0x292f32=(0x1-_0xe64667-_0xa9e461)/(0x1-_0xa9e461)||0x0,_0x4a9e81=(0x1-_0x474916-_0xa9e461)/(0x1-_0xa9e461)||0x0,_0x414ef7=(0x1-_0x3db418-_0xa9e461)/(0x1-_0xa9e461)||0x0;return[_0x292f32*0x64,_0x4a9e81*0x64,_0x414ef7*0x64,_0xa9e461*0x64];},exports[a208_0x5222('0x16')]=_0x445eb0=>{return((Math['round'](_0x445eb0[0x0])&0xff)<<0x10)+((Math[a208_0x5222('0x14')](_0x445eb0[0x1])&0xff)<<0x8)+(Math[a208_0x5222('0x14')](_0x445eb0[0x2])&0xff);},exports['intToHex']=_0x484133=>{const _0x1b7ff9=_0x484133['toString'](0x10)[a208_0x5222('0x2')]();return a208_0x5222('0x18')[a208_0x5222('0xa')](_0x1b7ff9[a208_0x5222('0x13')])+_0x1b7ff9;},exports[a208_0x5222('0x6')]=_0x551909=>{return[_0x551909>>0x10&0xff,_0x551909>>0x8&0xff,_0x551909&0xff];},exports['hexToInt']=_0x28222a=>{return Number[a208_0x5222('0x4')](_0x28222a,0x10);},exports[a208_0x5222('0x19')]=_0x299b50=>{let _0x5e9749,_0x26cdd1,_0xdc64f8,_0x36150d;if(regex_1[a208_0x5222('0x11')][a208_0x5222('0x5')](_0x299b50)){const _0x3c8a79=_0x299b50[a208_0x5222('0xd')]('\x20'),_0x541356=Number['parseInt'](_0x3c8a79[0x0]),_0x42aee4=Number[a208_0x5222('0x4')](_0x3c8a79[0x1]),_0x523e61=Number[a208_0x5222('0x4')](_0x3c8a79[0x2]),_0xbc7d29=Number['parseInt'](_0x3c8a79[0x3]);_0x5e9749=[_0x541356,_0x42aee4,_0x523e61,_0xbc7d29],_0x26cdd1=exports[a208_0x5222('0x1')]([_0x541356,_0x42aee4,_0x523e61,_0xbc7d29]),_0x36150d=exports[a208_0x5222('0x16')](_0x26cdd1),_0xdc64f8=exports[a208_0x5222('0x0')](_0x36150d);}else{if(regex_1[a208_0x5222('0x12')][a208_0x5222('0x5')](_0x299b50)){const _0x4ce738=_0x299b50[a208_0x5222('0xd')]('\x20'),_0x292975=Number[a208_0x5222('0x4')](_0x4ce738[0x0]),_0x1ccc4a=Number[a208_0x5222('0x4')](_0x4ce738[0x1]),_0x57bcec=Number[a208_0x5222('0x4')](_0x4ce738[0x2]);_0x26cdd1=[_0x292975,_0x1ccc4a,_0x57bcec],_0x5e9749=exports[a208_0x5222('0x7')](_0x26cdd1),_0x36150d=exports[a208_0x5222('0x16')](_0x26cdd1),_0xdc64f8=exports[a208_0x5222('0x0')](_0x36150d);}else{if(regex_1[a208_0x5222('0xc')][a208_0x5222('0x5')](_0x299b50)){let _0x7a7c31=_0x299b50['includes']('#')?_0x299b50[a208_0x5222('0xd')]('#')[0x1]:_0x299b50;_0x7a7c31[a208_0x5222('0x13')]===0x3&&(_0x7a7c31=_0x7a7c31['split']('')[a208_0x5222('0x10')](_0x293e92=>_0x293e92+_0x293e92)[a208_0x5222('0x1a')]('')),_0x36150d=exports[a208_0x5222('0xb')](_0x7a7c31),_0x26cdd1=exports[a208_0x5222('0x6')](_0x36150d),_0x5e9749=exports[a208_0x5222('0x7')](_0x26cdd1),_0xdc64f8=_0x7a7c31;}else return null;}}return{'cmyk':_0x5e9749,'rgb':_0x26cdd1,'hex':_0xdc64f8,'integer':_0x36150d};}; \ No newline at end of file diff --git a/utils/confirmation.js b/utils/confirmation.js index f5403f776..1e96ddc7c 100644 --- a/utils/confirmation.js +++ b/utils/confirmation.js @@ -1 +1 @@ -const a208_0x30aa=['default','__esModule','size','test','apply','constructor','react','SOMEWHAT_DARK','name','channel','send','Constants','COLORS','IRIS','author','awaitReactions','first','catch','emoji'];(function(_0x136aaf,_0x30aaea){const _0x4f4c1f=function(_0x2cfc97){while(--_0x2cfc97){_0x136aaf['push'](_0x136aaf['shift']());}},_0x1d811e=function(){const _0x4a8979={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1391da,_0x3ea1cf,_0x472f69,_0x2d46a1){_0x2d46a1=_0x2d46a1||{};let _0x3d5228=_0x3ea1cf+'='+_0x472f69,_0x2e47c9=0x0;for(let _0x521891=0x0,_0x58ffa5=_0x1391da['length'];_0x521891<_0x58ffa5;_0x521891++){const _0x4ced4a=_0x1391da[_0x521891];_0x3d5228+=';\x20'+_0x4ced4a;const _0x373c5e=_0x1391da[_0x4ced4a];_0x1391da['push'](_0x373c5e),_0x58ffa5=_0x1391da['length'],_0x373c5e!==!![]&&(_0x3d5228+='='+_0x373c5e);}_0x2d46a1['cookie']=_0x3d5228;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4e79d9,_0x456e19){_0x4e79d9=_0x4e79d9||function(_0x20f766){return _0x20f766;};const _0x4ed777=_0x4e79d9(new RegExp('(?:^|;\x20)'+_0x456e19['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1d7ef2=function(_0x3cb05b,_0x114615){_0x3cb05b(++_0x114615);};return _0x1d7ef2(_0x4f4c1f,_0x30aaea),_0x4ed777?decodeURIComponent(_0x4ed777[0x1]):undefined;}},_0x253817=function(){const _0x198068=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x198068['test'](_0x4a8979['removeCookie']['toString']());};_0x4a8979['updateCookie']=_0x253817;let _0x5561f3='';const _0x2476bd=_0x4a8979['updateCookie']();if(!_0x2476bd)_0x4a8979['setCookie'](['*'],'counter',0x1);else _0x2476bd?_0x5561f3=_0x4a8979['getCookie'](null,'counter'):_0x4a8979['removeCookie']();};_0x1d811e();}(a208_0x30aa,0xb5));const a208_0x4f4c=function(_0x136aaf,_0x30aaea){_0x136aaf=_0x136aaf-0x0;let _0x4f4c1f=a208_0x30aa[_0x136aaf];return _0x4f4c1f;};const a208_0x472f69=function(){let _0x3c31c6=!![];return function(_0x312b7d,_0x16dfc9){const _0x32b395=_0x3c31c6?function(){if(_0x16dfc9){const _0x29cc86=_0x16dfc9[a208_0x4f4c('0xd')](_0x312b7d,arguments);return _0x16dfc9=null,_0x29cc86;}}:function(){};return _0x3c31c6=![],_0x32b395;};}(),a208_0x3ea1cf=a208_0x472f69(this,function(){const _0xb9964b=function(){const _0x663b0=_0xb9964b[a208_0x4f4c('0xe')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x663b0[a208_0x4f4c('0xc')](a208_0x3ea1cf);};return _0xb9964b();});a208_0x3ea1cf();'use strict';Object['defineProperty'](exports,a208_0x4f4c('0xa'),{'value':!![]});const tesseract_1=require('@bastion/tesseract');exports[a208_0x4f4c('0x9')]=async(_0x527036,_0x77f1b0)=>{const _0x34627b=await _0x527036[a208_0x4f4c('0x12')][a208_0x4f4c('0x0')]({'embed':{'color':tesseract_1[a208_0x4f4c('0x1')][a208_0x4f4c('0x2')][a208_0x4f4c('0x3')],'description':_0x77f1b0}});await _0x34627b[a208_0x4f4c('0xf')]('☑️'),await _0x34627b[a208_0x4f4c('0xf')]('🚫');const _0x50bd8b=await _0x34627b[a208_0x4f4c('0x5')]((_0x1dbe77,_0x4f0ae2)=>_0x4f0ae2['id']===_0x527036[a208_0x4f4c('0x4')]['id']&&(_0x1dbe77['emoji']['name']==='☑️'||_0x1dbe77[a208_0x4f4c('0x8')][a208_0x4f4c('0x11')]==='🚫'),{'max':0x1,'time':0xea60});let _0x30831c;if(_0x50bd8b[a208_0x4f4c('0xb')]&&_0x50bd8b[a208_0x4f4c('0x6')]()[a208_0x4f4c('0x8')][a208_0x4f4c('0x11')]==='☑️')_0x30831c=!![];if(_0x50bd8b[a208_0x4f4c('0xb')]&&_0x50bd8b['first']()[a208_0x4f4c('0x8')][a208_0x4f4c('0x11')]==='🚫')_0x30831c=![];return await _0x34627b['edit']({'embed':{'color':tesseract_1[a208_0x4f4c('0x1')]['COLORS'][a208_0x4f4c('0x10')],'description':_0x77f1b0}})[a208_0x4f4c('0x7')](()=>{}),_0x30831c;}; \ No newline at end of file +const a209_0x5b2a=['awaitReactions','IRIS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','SOMEWHAT_DARK','@bastion/tesseract','react','name','apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','catch','__esModule','constructor','size','first','COLORS','Constants','emoji'];(function(_0x53ba9d,_0x5b2a04){const _0x5e28d9=function(_0x3a8957){while(--_0x3a8957){_0x53ba9d['push'](_0x53ba9d['shift']());}},_0x177e5e=function(){const _0x34db4b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1aec9d,_0x1c87d5,_0x46c50e,_0x5797e5){_0x5797e5=_0x5797e5||{};let _0x38b6b8=_0x1c87d5+'='+_0x46c50e,_0xcdb639=0x0;for(let _0x37c8d1=0x0,_0x2dd9f2=_0x1aec9d['length'];_0x37c8d1<_0x2dd9f2;_0x37c8d1++){const _0x33f276=_0x1aec9d[_0x37c8d1];_0x38b6b8+=';\x20'+_0x33f276;const _0x3ca515=_0x1aec9d[_0x33f276];_0x1aec9d['push'](_0x3ca515),_0x2dd9f2=_0x1aec9d['length'],_0x3ca515!==!![]&&(_0x38b6b8+='='+_0x3ca515);}_0x5797e5['cookie']=_0x38b6b8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4dd0e3,_0x2b2d18){_0x4dd0e3=_0x4dd0e3||function(_0x17c589){return _0x17c589;};const _0x2259ec=_0x4dd0e3(new RegExp('(?:^|;\x20)'+_0x2b2d18['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x489e25=function(_0x4c138d,_0x1d0b5f){_0x4c138d(++_0x1d0b5f);};return _0x489e25(_0x5e28d9,_0x5b2a04),_0x2259ec?decodeURIComponent(_0x2259ec[0x1]):undefined;}},_0x2082cc=function(){const _0x4680bf=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4680bf['test'](_0x34db4b['removeCookie']['toString']());};_0x34db4b['updateCookie']=_0x2082cc;let _0x4d4fe0='';const _0x54837e=_0x34db4b['updateCookie']();if(!_0x54837e)_0x34db4b['setCookie'](['*'],'counter',0x1);else _0x54837e?_0x4d4fe0=_0x34db4b['getCookie'](null,'counter'):_0x34db4b['removeCookie']();};_0x177e5e();}(a209_0x5b2a,0x1c4));const a209_0x5e28=function(_0x53ba9d,_0x5b2a04){_0x53ba9d=_0x53ba9d-0x0;let _0x5e28d9=a209_0x5b2a[_0x53ba9d];return _0x5e28d9;};const a209_0x46c50e=function(){let _0x90cf21=!![];return function(_0x47d3e7,_0x1f4f01){const _0x3f0736=_0x90cf21?function(){if(_0x1f4f01){const _0x2999b0=_0x1f4f01[a209_0x5e28('0xc')](_0x47d3e7,arguments);return _0x1f4f01=null,_0x2999b0;}}:function(){};return _0x90cf21=![],_0x3f0736;};}(),a209_0x1c87d5=a209_0x46c50e(this,function(){const _0x365ef4=function(){const _0x1999ed=_0x365ef4[a209_0x5e28('0x11')](a209_0x5e28('0x6'))()[a209_0x5e28('0x11')](a209_0x5e28('0xd'));return!_0x1999ed[a209_0x5e28('0xe')](a209_0x1c87d5);};return _0x365ef4();});a209_0x1c87d5();'use strict';Object['defineProperty'](exports,a209_0x5e28('0x10'),{'value':!![]});const tesseract_1=require(a209_0x5e28('0x9'));exports['default']=async(_0x719405,_0x2fb68c)=>{const _0x244cbd=await _0x719405[a209_0x5e28('0x7')]['send']({'embed':{'color':tesseract_1[a209_0x5e28('0x2')][a209_0x5e28('0x1')][a209_0x5e28('0x5')],'description':_0x2fb68c}});await _0x244cbd[a209_0x5e28('0xa')]('☑️'),await _0x244cbd[a209_0x5e28('0xa')]('🚫');const _0x98ef5c=await _0x244cbd[a209_0x5e28('0x4')]((_0x559b36,_0xf6054c)=>_0xf6054c['id']===_0x719405['author']['id']&&(_0x559b36[a209_0x5e28('0x3')]['name']==='☑️'||_0x559b36[a209_0x5e28('0x3')][a209_0x5e28('0xb')]==='🚫'),{'max':0x1,'time':0xea60});let _0xb54a82;if(_0x98ef5c[a209_0x5e28('0x12')]&&_0x98ef5c[a209_0x5e28('0x0')]()['emoji']['name']==='☑️')_0xb54a82=!![];if(_0x98ef5c[a209_0x5e28('0x12')]&&_0x98ef5c[a209_0x5e28('0x0')]()[a209_0x5e28('0x3')][a209_0x5e28('0xb')]==='🚫')_0xb54a82=![];return await _0x244cbd['edit']({'embed':{'color':tesseract_1[a209_0x5e28('0x2')]['COLORS'][a209_0x5e28('0x8')],'description':_0x2fb68c}})[a209_0x5e28('0xf')](()=>{}),_0xb54a82;}; \ No newline at end of file diff --git a/utils/constants.js b/utils/constants.js index c2f485012..da98960b9 100644 --- a/utils/constants.js +++ b/utils/constants.js @@ -1 +1 @@ -const a209_0x2446=['267035345537728512','BADGES','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','test','LIMITS','constructor','isPublicBastion','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x5c2fad,_0x2446eb){const _0x511a6c=function(_0x108e1f){while(--_0x108e1f){_0x5c2fad['push'](_0x5c2fad['shift']());}},_0x2735ee=function(){const _0x5307b9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3d54ed,_0x2aac9f,_0x110153,_0xb1b4f1){_0xb1b4f1=_0xb1b4f1||{};let _0x417229=_0x2aac9f+'='+_0x110153,_0x2a04a0=0x0;for(let _0xb559f3=0x0,_0x51f676=_0x3d54ed['length'];_0xb559f3<_0x51f676;_0xb559f3++){const _0x408bc2=_0x3d54ed[_0xb559f3];_0x417229+=';\x20'+_0x408bc2;const _0x1b8a9b=_0x3d54ed[_0x408bc2];_0x3d54ed['push'](_0x1b8a9b),_0x51f676=_0x3d54ed['length'],_0x1b8a9b!==!![]&&(_0x417229+='='+_0x1b8a9b);}_0xb1b4f1['cookie']=_0x417229;},'removeCookie':function(){return'dev';},'getCookie':function(_0x578f0d,_0x5254be){_0x578f0d=_0x578f0d||function(_0xa18eea){return _0xa18eea;};const _0x298f99=_0x578f0d(new RegExp('(?:^|;\x20)'+_0x5254be['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1885c2=function(_0x21ac3c,_0x4dde83){_0x21ac3c(++_0x4dde83);};return _0x1885c2(_0x511a6c,_0x2446eb),_0x298f99?decodeURIComponent(_0x298f99[0x1]):undefined;}},_0x398085=function(){const _0x5b0a2d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b0a2d['test'](_0x5307b9['removeCookie']['toString']());};_0x5307b9['updateCookie']=_0x398085;let _0xae05c2='';const _0x40ba48=_0x5307b9['updateCookie']();if(!_0x40ba48)_0x5307b9['setCookie'](['*'],'counter',0x1);else _0x40ba48?_0xae05c2=_0x5307b9['getCookie'](null,'counter'):_0x5307b9['removeCookie']();};_0x2735ee();}(a209_0x2446,0x1e7));const a209_0x511a=function(_0x5c2fad,_0x2446eb){_0x5c2fad=_0x5c2fad-0x0;let _0x511a6c=a209_0x2446[_0x5c2fad];return _0x511a6c;};const a209_0x110153=function(){let _0x70d07=!![];return function(_0x50b215,_0x16c635){const _0x459027=_0x70d07?function(){if(_0x16c635){const _0x2d3ddd=_0x16c635[a209_0x511a('0x6')](_0x50b215,arguments);return _0x16c635=null,_0x2d3ddd;}}:function(){};return _0x70d07=![],_0x459027;};}(),a209_0x2aac9f=a209_0x110153(this,function(){const _0x4fb210=function(){const _0x1517cb=_0x4fb210[a209_0x511a('0x9')](a209_0x511a('0x5'))()['constructor'](a209_0x511a('0x2'));return!_0x1517cb[a209_0x511a('0x7')](a209_0x2aac9f);};return _0x4fb210();});a209_0x2aac9f();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a209_0x511a('0x0')]=exports[a209_0x511a('0x8')]=exports[a209_0x511a('0x1')]=exports[a209_0x511a('0x4')]=void 0x0;const BADGES={'BASTION_DEVELOPER':0x1<<0x0,'BASTION_VERIFIED_USER':0x1<<0x1,'BASTION_VERIFIED_GUILD':0x1<<0x2,'BASTION_PARTNER_USER':0x1<<0x3,'BASTION_PARTNER_GUILD':0x1<<0x4,'BASTION_LEAP_OF_FAITH':0x1<<0x5,'BASTION_DIAMOND_USER':0x1<<0x6,'BASTION_DIAMOND_GUILD':0x1<<0x7,'BASTION_PLATINUM_USER':0x1<<0x8,'BASTION_PLATINUM_GUILD':0x1<<0x9,'BASTION_GOLD_USER':0x1<<0xa,'BASTION_GOLD_GUILD':0x1<<0xb,'BASTION_SUPPORTER':0x1<<0xc,'BASTION_WHITE_HAT':0x1<<0xd,'BASTION_BUG_HUNTER':0x1<<0xe,'BASTION_OPEN_SORCERER':0x1<<0xf,'BASTION_ARTISAN':0x1<<0x10,'BASTION_TRANSLATOR':0x1<<0x11,'BASTION_PLUGIN_DEVELOPER':0x1<<0x12,'BASTION_PLUGIN_SUPPORT_GUILD':0x1<<0x13,'GUILD_OWNER':0x1<<0x14,'GUILD_STAFF':0x1<<0x15,'GUILD_NEW_MEMBER':0x1<<0x16,'GUILD_1Y_CLUB':0x1<<0x17,'GUILD_2Y_CLUB':0x1<<0x18,'GUILD_3Y_CLUB':0x1<<0x19,'GUILD_4Y_CLUB':0x1<<0x1a,'GUILD_5Y_CLUB':0x1<<0x1b,'GUILD_6Y_CLUB':0x1<<0x1c,'GUILD_7Y_CLUB':0x1<<0x1d,'GUILD_8Y_CLUB':0x1<<0x1e,'GUILD_9Y_CLUB':0x1<<0x1f};exports['BADGES']=BADGES;const COLORS={'TWITCH':0x9146ff,'YOUTUBE':0xff0000,'MIXER':0x1fbaed,'APEX_LEGENDS':0xda292a,'CSGO':0xf3a11d,'DESTINY_2':0x9d9a93,'FORTNITE':0x149af9,'OVERWATCH':0xf99e1a,'PUBG':0xf2a900,'RAINBOW6':0x36a9e0,'ROCKET_LEAGUE':0x475d0,'PATREON':0xff514d,'DIAMOND':0xb9f2ff,'PLATINUM':0xe5e4e2,'GOLD':0xffd700};exports['COLORS']=COLORS;const LIMITS={'SESSIONAL_VOICE_CHANNELS':![],'GAMIFICATION_MULTIPLIER':![],'GAMBLING_REWARD_MULTIPLIER':![],'CHANNEL_LEVEL_LANGUAGES':![],'PREFIXES':0x3,'VOTING_CHANNELS':0x1,'STREAMERS_PER_SERVICE':0x3,'REACTION_ROLE_GROUPS':0x2,'REACTION_ROLES_PER_GROUP':0x5,'GIVEAWAYS':0x5,'GIVEAWAY_TIMEOUT':0x80,'POLLS':0x5,'POLL_TIMEOUT':0x80,'ROLE_LEVELS':0x5,'ROLES_PER_LEVEL':0x1,'PAID_ROLES':0x5,'AUTO_ROLES':0x5,'SELF_ROLES':0x5,'TRIGGERS':0x5,'GOLD':{'SESSIONAL_VOICE_CHANNELS':!![],'GAMIFICATION_MULTIPLIER':!![],'GAMBLING_REWARD_MULTIPLIER':!![],'CHANNEL_LEVEL_LANGUAGES':!![],'PREFIXES':0x5,'VOTING_CHANNELS':0x5,'STREAMERS_PER_SERVICE':0x5,'REACTION_ROLE_GROUPS':0x5,'REACTION_ROLES_PER_GROUP':0xa,'GIVEAWAYS':0xa,'GIVEAWAY_TIMEOUT':0x2d0,'POLLS':0xa,'POLL_TIMEOUT':0x2d0,'ROLE_LEVELS':0xa,'ROLES_PER_LEVEL':0x3,'PAID_ROLES':0xa,'AUTO_ROLES':0xa,'SELF_ROLES':0xa,'TRIGGERS':0xa},'PLATINUM':{'SESSIONAL_VOICE_CHANNELS':!![],'GAMIFICATION_MULTIPLIER':!![],'GAMBLING_REWARD_MULTIPLIER':!![],'CHANNEL_LEVEL_LANGUAGES':!![],'PREFIXES':0xa,'VOTING_CHANNELS':0xa,'STREAMERS_PER_SERVICE':0xa,'REACTION_ROLE_GROUPS':0xa,'REACTION_ROLES_PER_GROUP':0xf,'GIVEAWAYS':0x14,'GIVEAWAY_TIMEOUT':0x870,'POLLS':0x14,'POLL_TIMEOUT':0x870,'ROLE_LEVELS':0x14,'ROLES_PER_LEVEL':0x5,'PAID_ROLES':0x14,'AUTO_ROLES':0x14,'SELF_ROLES':0x14,'TRIGGERS':0x14}};exports[a209_0x511a('0x8')]=LIMITS;const isPublicBastion=_0x505d1b=>{return _0x505d1b['id']===a209_0x511a('0x3');};exports[a209_0x511a('0x0')]=isPublicBastion; \ No newline at end of file +const a210_0x5c54=['BADGES','apply','constructor','test','isPublicBastion','COLORS','defineProperty','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','LIMITS'];(function(_0x2357af,_0x5c5470){const _0x12ec4e=function(_0x322de4){while(--_0x322de4){_0x2357af['push'](_0x2357af['shift']());}},_0x203490=function(){const _0x361fb8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x110b6e,_0x3c1c53,_0x2eba52,_0x278334){_0x278334=_0x278334||{};let _0x358eaf=_0x3c1c53+'='+_0x2eba52,_0x3d6086=0x0;for(let _0x53ade4=0x0,_0x38908e=_0x110b6e['length'];_0x53ade4<_0x38908e;_0x53ade4++){const _0x3a6798=_0x110b6e[_0x53ade4];_0x358eaf+=';\x20'+_0x3a6798;const _0x269bdf=_0x110b6e[_0x3a6798];_0x110b6e['push'](_0x269bdf),_0x38908e=_0x110b6e['length'],_0x269bdf!==!![]&&(_0x358eaf+='='+_0x269bdf);}_0x278334['cookie']=_0x358eaf;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3d45f3,_0x4de5db){_0x3d45f3=_0x3d45f3||function(_0x44a2b1){return _0x44a2b1;};const _0x848856=_0x3d45f3(new RegExp('(?:^|;\x20)'+_0x4de5db['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3d892c=function(_0x1d8d53,_0x3ef632){_0x1d8d53(++_0x3ef632);};return _0x3d892c(_0x12ec4e,_0x5c5470),_0x848856?decodeURIComponent(_0x848856[0x1]):undefined;}},_0x55867d=function(){const _0x4ba1bc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ba1bc['test'](_0x361fb8['removeCookie']['toString']());};_0x361fb8['updateCookie']=_0x55867d;let _0x377bd5='';const _0x3edc40=_0x361fb8['updateCookie']();if(!_0x3edc40)_0x361fb8['setCookie'](['*'],'counter',0x1);else _0x3edc40?_0x377bd5=_0x361fb8['getCookie'](null,'counter'):_0x361fb8['removeCookie']();};_0x203490();}(a210_0x5c54,0xf8));const a210_0x12ec=function(_0x2357af,_0x5c5470){_0x2357af=_0x2357af-0x0;let _0x12ec4e=a210_0x5c54[_0x2357af];return _0x12ec4e;};const a210_0x2eba52=function(){let _0x235eb0=!![];return function(_0x1ee07d,_0x567caf){const _0x95e8ad=_0x235eb0?function(){if(_0x567caf){const _0x428a40=_0x567caf[a210_0x12ec('0x5')](_0x1ee07d,arguments);return _0x567caf=null,_0x428a40;}}:function(){};return _0x235eb0=![],_0x95e8ad;};}(),a210_0x3c1c53=a210_0x2eba52(this,function(){const _0x4bbdde=function(){const _0xaacbc0=_0x4bbdde[a210_0x12ec('0x6')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a210_0x12ec('0x6')](a210_0x12ec('0x2'));return!_0xaacbc0[a210_0x12ec('0x7')](a210_0x3c1c53);};return _0x4bbdde();});a210_0x3c1c53();'use strict';Object[a210_0x12ec('0x1')](exports,'__esModule',{'value':!![]}),exports[a210_0x12ec('0x8')]=exports[a210_0x12ec('0x3')]=exports[a210_0x12ec('0x0')]=exports[a210_0x12ec('0x4')]=void 0x0;const BADGES={'BASTION_DEVELOPER':0x1<<0x0,'BASTION_VERIFIED_USER':0x1<<0x1,'BASTION_VERIFIED_GUILD':0x1<<0x2,'BASTION_PARTNER_USER':0x1<<0x3,'BASTION_PARTNER_GUILD':0x1<<0x4,'BASTION_LEAP_OF_FAITH':0x1<<0x5,'BASTION_DIAMOND_USER':0x1<<0x6,'BASTION_DIAMOND_GUILD':0x1<<0x7,'BASTION_PLATINUM_USER':0x1<<0x8,'BASTION_PLATINUM_GUILD':0x1<<0x9,'BASTION_GOLD_USER':0x1<<0xa,'BASTION_GOLD_GUILD':0x1<<0xb,'BASTION_SUPPORTER':0x1<<0xc,'BASTION_WHITE_HAT':0x1<<0xd,'BASTION_BUG_HUNTER':0x1<<0xe,'BASTION_OPEN_SORCERER':0x1<<0xf,'BASTION_ARTISAN':0x1<<0x10,'BASTION_TRANSLATOR':0x1<<0x11,'BASTION_PLUGIN_DEVELOPER':0x1<<0x12,'BASTION_PLUGIN_SUPPORT_GUILD':0x1<<0x13,'GUILD_OWNER':0x1<<0x14,'GUILD_STAFF':0x1<<0x15,'GUILD_NEW_MEMBER':0x1<<0x16,'GUILD_1Y_CLUB':0x1<<0x17,'GUILD_2Y_CLUB':0x1<<0x18,'GUILD_3Y_CLUB':0x1<<0x19,'GUILD_4Y_CLUB':0x1<<0x1a,'GUILD_5Y_CLUB':0x1<<0x1b,'GUILD_6Y_CLUB':0x1<<0x1c,'GUILD_7Y_CLUB':0x1<<0x1d,'GUILD_8Y_CLUB':0x1<<0x1e,'GUILD_9Y_CLUB':0x1<<0x1f};exports[a210_0x12ec('0x4')]=BADGES;const COLORS={'TWITCH':0x9146ff,'YOUTUBE':0xff0000,'MIXER':0x1fbaed,'APEX_LEGENDS':0xda292a,'CSGO':0xf3a11d,'DESTINY_2':0x9d9a93,'FORTNITE':0x149af9,'OVERWATCH':0xf99e1a,'PUBG':0xf2a900,'RAINBOW6':0x36a9e0,'ROCKET_LEAGUE':0x475d0,'PATREON':0xff514d,'DIAMOND':0xb9f2ff,'PLATINUM':0xe5e4e2,'GOLD':0xffd700};exports['COLORS']=COLORS;const LIMITS={'SESSIONAL_VOICE_CHANNELS':![],'GAMIFICATION_MULTIPLIER':![],'GAMBLING_REWARD_MULTIPLIER':![],'CHANNEL_LEVEL_LANGUAGES':![],'PREFIXES':0x3,'VOTING_CHANNELS':0x1,'STREAMERS_PER_SERVICE':0x3,'REACTION_ROLE_GROUPS':0x2,'REACTION_ROLES_PER_GROUP':0x5,'GIVEAWAYS':0x5,'GIVEAWAY_TIMEOUT':0x80,'POLLS':0x5,'POLL_TIMEOUT':0x80,'ROLE_LEVELS':0x5,'ROLES_PER_LEVEL':0x1,'PAID_ROLES':0x5,'AUTO_ROLES':0x5,'SELF_ROLES':0x5,'TRIGGERS':0x5,'GOLD':{'SESSIONAL_VOICE_CHANNELS':!![],'GAMIFICATION_MULTIPLIER':!![],'GAMBLING_REWARD_MULTIPLIER':!![],'CHANNEL_LEVEL_LANGUAGES':!![],'PREFIXES':0x5,'VOTING_CHANNELS':0x5,'STREAMERS_PER_SERVICE':0x5,'REACTION_ROLE_GROUPS':0x5,'REACTION_ROLES_PER_GROUP':0xa,'GIVEAWAYS':0xa,'GIVEAWAY_TIMEOUT':0x2d0,'POLLS':0xa,'POLL_TIMEOUT':0x2d0,'ROLE_LEVELS':0xa,'ROLES_PER_LEVEL':0x3,'PAID_ROLES':0xa,'AUTO_ROLES':0xa,'SELF_ROLES':0xa,'TRIGGERS':0xa},'PLATINUM':{'SESSIONAL_VOICE_CHANNELS':!![],'GAMIFICATION_MULTIPLIER':!![],'GAMBLING_REWARD_MULTIPLIER':!![],'CHANNEL_LEVEL_LANGUAGES':!![],'PREFIXES':0xa,'VOTING_CHANNELS':0xa,'STREAMERS_PER_SERVICE':0xa,'REACTION_ROLE_GROUPS':0xa,'REACTION_ROLES_PER_GROUP':0xf,'GIVEAWAYS':0x14,'GIVEAWAY_TIMEOUT':0x870,'POLLS':0x14,'POLL_TIMEOUT':0x870,'ROLE_LEVELS':0x14,'ROLES_PER_LEVEL':0x5,'PAID_ROLES':0x14,'AUTO_ROLES':0x14,'SELF_ROLES':0x14,'TRIGGERS':0x14}};exports['LIMITS']=LIMITS;const isPublicBastion=_0x53b60=>{return _0x53b60['id']==='267035345537728512';};exports[a210_0x12ec('0x8')]=isPublicBastion; \ No newline at end of file diff --git a/utils/durations.js b/utils/durations.js index 767bff9b5..16b4c978f 100644 --- a/utils/durations.js +++ b/utils/durations.js @@ -1 +1 @@ -const a210_0x2318=['abs','__esModule','apply','call','between','prototype','humanize','return\x20/\x22\x20+\x20this\x20+\x20\x22/','floor','push','hasOwnProperty','join','constructor','test'];(function(_0x53c53c,_0x2318b5){const _0xa4b428=function(_0x4d2386){while(--_0x4d2386){_0x53c53c['push'](_0x53c53c['shift']());}},_0x25e5c6=function(){const _0x5ad9ed={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3ceac9,_0x22af02,_0x10ec8b,_0x3ce8db){_0x3ce8db=_0x3ce8db||{};let _0x268915=_0x22af02+'='+_0x10ec8b,_0x3dc166=0x0;for(let _0x1e2d2d=0x0,_0x293e3c=_0x3ceac9['length'];_0x1e2d2d<_0x293e3c;_0x1e2d2d++){const _0x49ae03=_0x3ceac9[_0x1e2d2d];_0x268915+=';\x20'+_0x49ae03;const _0x2e2456=_0x3ceac9[_0x49ae03];_0x3ceac9['push'](_0x2e2456),_0x293e3c=_0x3ceac9['length'],_0x2e2456!==!![]&&(_0x268915+='='+_0x2e2456);}_0x3ce8db['cookie']=_0x268915;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5111b4,_0x3695d2){_0x5111b4=_0x5111b4||function(_0x1e5e14){return _0x1e5e14;};const _0x16ec1d=_0x5111b4(new RegExp('(?:^|;\x20)'+_0x3695d2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3aa1e6=function(_0x2eec8a,_0x15ccbe){_0x2eec8a(++_0x15ccbe);};return _0x3aa1e6(_0xa4b428,_0x2318b5),_0x16ec1d?decodeURIComponent(_0x16ec1d[0x1]):undefined;}},_0x264d41=function(){const _0x44188a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x44188a['test'](_0x5ad9ed['removeCookie']['toString']());};_0x5ad9ed['updateCookie']=_0x264d41;let _0xb06fcd='';const _0x4c2e2f=_0x5ad9ed['updateCookie']();if(!_0x4c2e2f)_0x5ad9ed['setCookie'](['*'],'counter',0x1);else _0x4c2e2f?_0xb06fcd=_0x5ad9ed['getCookie'](null,'counter'):_0x5ad9ed['removeCookie']();};_0x25e5c6();}(a210_0x2318,0x1c4));const a210_0xa4b4=function(_0x53c53c,_0x2318b5){_0x53c53c=_0x53c53c-0x0;let _0xa4b428=a210_0x2318[_0x53c53c];return _0xa4b428;};const a210_0x10ec8b=function(){let _0x546d96=!![];return function(_0x38cba9,_0x2fe962){const _0x18be56=_0x546d96?function(){if(_0x2fe962){const _0x1a256b=_0x2fe962[a210_0xa4b4('0xc')](_0x38cba9,arguments);return _0x2fe962=null,_0x1a256b;}}:function(){};return _0x546d96=![],_0x18be56;};}(),a210_0x22af02=a210_0x10ec8b(this,function(){const _0x5b2cc3=function(){const _0x57c154=_0x5b2cc3[a210_0xa4b4('0x8')](a210_0xa4b4('0x3'))()[a210_0xa4b4('0x8')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x57c154[a210_0xa4b4('0x9')](a210_0x22af02);};return _0x5b2cc3();});a210_0x22af02();'use strict';Object['defineProperty'](exports,a210_0xa4b4('0xb'),{'value':!![]}),exports[a210_0xa4b4('0x2')]=exports[a210_0xa4b4('0x0')]=void 0x0;const between=(_0x5f2594,_0x581a4b)=>{let _0x593ece=_0x581a4b?Math[a210_0xa4b4('0xa')](_0x581a4b-_0x5f2594):_0x5f2594;_0x593ece/=0x3e8;if(_0x593ece<0x1)return{'ms':_0x593ece*0x3e8};const _0xa0bd29={},_0x5b7e98={'years':0x1eeef84,'months':0x278d00,'days':0x15180,'hours':0xe10,'minutes':0x3c,'seconds':0x1};for(const _0x4e2cbb in _0x5b7e98){if(Object[a210_0xa4b4('0x1')][a210_0xa4b4('0x6')][a210_0xa4b4('0xd')](_0x5b7e98,_0x4e2cbb)){const _0x51cad8=Math[a210_0xa4b4('0x4')](_0x593ece/_0x5b7e98[_0x4e2cbb]);_0x593ece-=_0x51cad8*_0x5b7e98[_0x4e2cbb];if(_0x51cad8)_0xa0bd29[_0x4e2cbb]=_0x51cad8;}}return _0xa0bd29;};exports[a210_0xa4b4('0x0')]=between;const humanize=_0x522d8d=>{const _0x36b984=[];for(const _0x57670f in _0x522d8d){Object['prototype'][a210_0xa4b4('0x6')]['call'](_0x522d8d,_0x57670f)&&_0x36b984[a210_0xa4b4('0x5')](_0x522d8d[_0x57670f]+'\x20'+_0x57670f);}return _0x36b984[a210_0xa4b4('0x7')]('\x20');};exports[a210_0xa4b4('0x2')]=humanize; \ No newline at end of file +const a211_0x2904=['constructor','prototype','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','test','between','call','__esModule','hasOwnProperty','abs','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','humanize','floor'];(function(_0x3a30e2,_0x29046e){const _0x4045f2=function(_0x4323d9){while(--_0x4323d9){_0x3a30e2['push'](_0x3a30e2['shift']());}},_0x4b38ad=function(){const _0x3f3a96={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x476dca,_0x39c6e0,_0x3a20c6,_0x589c97){_0x589c97=_0x589c97||{};let _0x27a454=_0x39c6e0+'='+_0x3a20c6,_0x29c6ae=0x0;for(let _0x32dd8f=0x0,_0x49ffaa=_0x476dca['length'];_0x32dd8f<_0x49ffaa;_0x32dd8f++){const _0x124a17=_0x476dca[_0x32dd8f];_0x27a454+=';\x20'+_0x124a17;const _0x3b6d1c=_0x476dca[_0x124a17];_0x476dca['push'](_0x3b6d1c),_0x49ffaa=_0x476dca['length'],_0x3b6d1c!==!![]&&(_0x27a454+='='+_0x3b6d1c);}_0x589c97['cookie']=_0x27a454;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4e6457,_0x167293){_0x4e6457=_0x4e6457||function(_0x33095a){return _0x33095a;};const _0x26e667=_0x4e6457(new RegExp('(?:^|;\x20)'+_0x167293['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x34db27=function(_0x2683fc,_0x14ab12){_0x2683fc(++_0x14ab12);};return _0x34db27(_0x4045f2,_0x29046e),_0x26e667?decodeURIComponent(_0x26e667[0x1]):undefined;}},_0x103286=function(){const _0x2d1aee=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2d1aee['test'](_0x3f3a96['removeCookie']['toString']());};_0x3f3a96['updateCookie']=_0x103286;let _0x414eda='';const _0x3c0b20=_0x3f3a96['updateCookie']();if(!_0x3c0b20)_0x3f3a96['setCookie'](['*'],'counter',0x1);else _0x3c0b20?_0x414eda=_0x3f3a96['getCookie'](null,'counter'):_0x3f3a96['removeCookie']();};_0x4b38ad();}(a211_0x2904,0x158));const a211_0x4045=function(_0x3a30e2,_0x29046e){_0x3a30e2=_0x3a30e2-0x0;let _0x4045f2=a211_0x2904[_0x3a30e2];return _0x4045f2;};const a211_0x3a20c6=function(){let _0x109eca=!![];return function(_0x4b84ae,_0xc5a793){const _0x221bd7=_0x109eca?function(){if(_0xc5a793){const _0x582cee=_0xc5a793[a211_0x4045('0xa')](_0x4b84ae,arguments);return _0xc5a793=null,_0x582cee;}}:function(){};return _0x109eca=![],_0x221bd7;};}(),a211_0x39c6e0=a211_0x3a20c6(this,function(){const _0x1fb641=function(){const _0x2da268=_0x1fb641[a211_0x4045('0x7')](a211_0x4045('0x9'))()['constructor'](a211_0x4045('0x4'));return!_0x2da268[a211_0x4045('0xb')](a211_0x39c6e0);};return _0x1fb641();});a211_0x39c6e0();'use strict';Object['defineProperty'](exports,a211_0x4045('0x1'),{'value':!![]}),exports[a211_0x4045('0x5')]=exports[a211_0x4045('0xc')]=void 0x0;const between=(_0x49e431,_0x5249b6)=>{let _0x1412fd=_0x5249b6?Math[a211_0x4045('0x3')](_0x5249b6-_0x49e431):_0x49e431;_0x1412fd/=0x3e8;if(_0x1412fd<0x1)return{'ms':_0x1412fd*0x3e8};const _0x231bca={},_0x2927f9={'years':0x1eeef84,'months':0x278d00,'days':0x15180,'hours':0xe10,'minutes':0x3c,'seconds':0x1};for(const _0x5f20b1 in _0x2927f9){if(Object[a211_0x4045('0x8')][a211_0x4045('0x2')][a211_0x4045('0x0')](_0x2927f9,_0x5f20b1)){const _0x4f1d11=Math[a211_0x4045('0x6')](_0x1412fd/_0x2927f9[_0x5f20b1]);_0x1412fd-=_0x4f1d11*_0x2927f9[_0x5f20b1];if(_0x4f1d11)_0x231bca[_0x5f20b1]=_0x4f1d11;}}return _0x231bca;};exports[a211_0x4045('0xc')]=between;const humanize=_0x192526=>{const _0xb1413c=[];for(const _0xa02b98 in _0x192526){Object[a211_0x4045('0x8')]['hasOwnProperty'][a211_0x4045('0x0')](_0x192526,_0xa02b98)&&_0xb1413c['push'](_0x192526[_0xa02b98]+'\x20'+_0xa02b98);}return _0xb1413c['join']('\x20');};exports[a211_0x4045('0x5')]=humanize; \ No newline at end of file diff --git a/utils/embeds.js b/utils/embeds.js index 2bdd850b8..193c220b8 100644 --- a/utils/embeds.js +++ b/utils/embeds.js @@ -1 +1 @@ -const a211_0x3489=['generateEmbed','timestamp','defineProperty','author','apply','parse','thumbnail','number','value','boolean','COLORS','IRIS','image','isValidBastionEmbed','constructor','description','name','url','Constants','text','color','iconURL','string','@bastion/tesseract','fields','isValidEmbed','footer','inline','title'];(function(_0x39f495,_0x348971){const _0x519b7f=function(_0x244a16){while(--_0x244a16){_0x39f495['push'](_0x39f495['shift']());}},_0x1f392e=function(){const _0x51328b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2d280f,_0x4430d0,_0x2fd3a4,_0x5e6e18){_0x5e6e18=_0x5e6e18||{};let _0x23cb7e=_0x4430d0+'='+_0x2fd3a4,_0x1cdee8=0x0;for(let _0x568b3f=0x0,_0x599ea9=_0x2d280f['length'];_0x568b3f<_0x599ea9;_0x568b3f++){const _0x47c48b=_0x2d280f[_0x568b3f];_0x23cb7e+=';\x20'+_0x47c48b;const _0x57dd12=_0x2d280f[_0x47c48b];_0x2d280f['push'](_0x57dd12),_0x599ea9=_0x2d280f['length'],_0x57dd12!==!![]&&(_0x23cb7e+='='+_0x57dd12);}_0x5e6e18['cookie']=_0x23cb7e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x429f9c,_0x5f4ec2){_0x429f9c=_0x429f9c||function(_0x5d5cfb){return _0x5d5cfb;};const _0x3d037e=_0x429f9c(new RegExp('(?:^|;\x20)'+_0x5f4ec2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5769bb=function(_0x326c47,_0x23e508){_0x326c47(++_0x23e508);};return _0x5769bb(_0x519b7f,_0x348971),_0x3d037e?decodeURIComponent(_0x3d037e[0x1]):undefined;}},_0x2757ee=function(){const _0x400e98=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x400e98['test'](_0x51328b['removeCookie']['toString']());};_0x51328b['updateCookie']=_0x2757ee;let _0xc9f435='';const _0x578c63=_0x51328b['updateCookie']();if(!_0x578c63)_0x51328b['setCookie'](['*'],'counter',0x1);else _0x578c63?_0xc9f435=_0x51328b['getCookie'](null,'counter'):_0x51328b['removeCookie']();};_0x1f392e();}(a211_0x3489,0x157));const a211_0x519b=function(_0x39f495,_0x348971){_0x39f495=_0x39f495-0x0;let _0x519b7f=a211_0x3489[_0x39f495];return _0x519b7f;};const a211_0x2fd3a4=function(){let _0x3463cb=!![];return function(_0x532f65,_0x5ae0fc){const _0x16b71e=_0x3463cb?function(){if(_0x5ae0fc){const _0x48beff=_0x5ae0fc[a211_0x519b('0x9')](_0x532f65,arguments);return _0x5ae0fc=null,_0x48beff;}}:function(){};return _0x3463cb=![],_0x16b71e;};}(),a211_0x4430d0=a211_0x2fd3a4(this,function(){const _0x25c239=function(){const _0x628e24=_0x25c239[a211_0x519b('0x13')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x628e24['test'](a211_0x4430d0);};return _0x25c239();});a211_0x4430d0();'use strict';Object[a211_0x519b('0x7')](exports,'__esModule',{'value':!![]}),exports[a211_0x519b('0x1')]=exports[a211_0x519b('0x12')]=exports['generateBastionEmbed']=exports[a211_0x519b('0x5')]=void 0x0;const tesseract_1=require(a211_0x519b('0x1c'));exports[a211_0x519b('0x5')]=_0x53e29a=>{if(typeof _0x53e29a===a211_0x519b('0x1b'))return{'color':tesseract_1[a211_0x519b('0x17')][a211_0x519b('0xf')][a211_0x519b('0x10')],'description':_0x53e29a};return{'author':_0x53e29a[a211_0x519b('0x8')],'color':_0x53e29a[a211_0x519b('0x19')]||tesseract_1[a211_0x519b('0x17')][a211_0x519b('0xf')][a211_0x519b('0x10')],'description':_0x53e29a['description'],'fields':_0x53e29a[a211_0x519b('0x0')],'footer':_0x53e29a[a211_0x519b('0x2')],'image':{'url':_0x53e29a['image']},'thumbnail':{'url':_0x53e29a[a211_0x519b('0xb')]},'timestamp':_0x53e29a[a211_0x519b('0x6')],'title':_0x53e29a[a211_0x519b('0x4')],'url':_0x53e29a[a211_0x519b('0x16')]};},exports['generateBastionEmbed']=_0x826314=>{if(typeof _0x826314===a211_0x519b('0x1b'))try{_0x826314=JSON[a211_0x519b('0xa')](_0x826314);}catch{}if(typeof _0x826314===a211_0x519b('0x1b'))return{'color':tesseract_1['Constants'][a211_0x519b('0xf')][a211_0x519b('0x10')],'description':_0x826314};return{'author':_0x826314['author'],'color':_0x826314[a211_0x519b('0x19')]||tesseract_1['Constants'][a211_0x519b('0xf')][a211_0x519b('0x10')],'description':_0x826314['description'],'fields':_0x826314[a211_0x519b('0x0')],'footer':_0x826314[a211_0x519b('0x2')],'image':_0x826314['image']&&_0x826314[a211_0x519b('0x11')][a211_0x519b('0x16')],'thumbnail':_0x826314['thumbnail']&&_0x826314[a211_0x519b('0xb')][a211_0x519b('0x16')],'timestamp':_0x826314[a211_0x519b('0x6')],'title':_0x826314['title'],'url':_0x826314[a211_0x519b('0x16')]};},exports[a211_0x519b('0x12')]=_0x5e8a94=>{if(_0x5e8a94['constructor']!=={}[a211_0x519b('0x13')])return![];if(a211_0x519b('0x8')in _0x5e8a94){if(_0x5e8a94['author'][a211_0x519b('0x15')]&&typeof _0x5e8a94[a211_0x519b('0x8')][a211_0x519b('0x15')]!=='string')return![];if(_0x5e8a94[a211_0x519b('0x8')][a211_0x519b('0x16')]&&typeof _0x5e8a94[a211_0x519b('0x8')]['url']!==a211_0x519b('0x1b'))return![];if(_0x5e8a94[a211_0x519b('0x8')][a211_0x519b('0x1a')]&&typeof _0x5e8a94[a211_0x519b('0x8')][a211_0x519b('0x1a')]!==a211_0x519b('0x1b'))return![];}if(a211_0x519b('0x19')in _0x5e8a94&&typeof _0x5e8a94[a211_0x519b('0x19')]!==a211_0x519b('0xc')&&typeof _0x5e8a94[a211_0x519b('0x19')]!=='string'&&!(_0x5e8a94[a211_0x519b('0x19')]instanceof Array))return![];if(a211_0x519b('0x14')in _0x5e8a94&&typeof _0x5e8a94[a211_0x519b('0x14')]!==a211_0x519b('0x1b'))return![];if(a211_0x519b('0x0')in _0x5e8a94){if(!(_0x5e8a94[a211_0x519b('0x0')]instanceof Array))return;for(const _0x11a5e4 of _0x5e8a94[a211_0x519b('0x0')]){if(_0x11a5e4[a211_0x519b('0x13')]!=={}[a211_0x519b('0x13')])return![];if(!(a211_0x519b('0x15')in _0x11a5e4))return![];if(!(a211_0x519b('0xd')in _0x11a5e4))return![];if(typeof _0x11a5e4['inline']!==a211_0x519b('0xe'))return![];}}if(a211_0x519b('0x11')in _0x5e8a94&&typeof _0x5e8a94[a211_0x519b('0x11')]!==a211_0x519b('0x1b'))return![];if(a211_0x519b('0xb')in _0x5e8a94&&typeof _0x5e8a94['thumbnail']!=='string')return![];if(a211_0x519b('0x6')in _0x5e8a94&&typeof _0x5e8a94['timestamp']!=='number'&&!(_0x5e8a94[a211_0x519b('0x6')]instanceof Date))return![];if('title'in _0x5e8a94&&typeof _0x5e8a94['title']!==a211_0x519b('0x1b'))return![];if(a211_0x519b('0x16')in _0x5e8a94&&typeof _0x5e8a94[a211_0x519b('0x16')]!=='string')return![];return!![];},exports[a211_0x519b('0x1')]=_0x16967a=>{if(_0x16967a[a211_0x519b('0x13')]!=={}[a211_0x519b('0x13')])return![];if(a211_0x519b('0x8')in _0x16967a){if(_0x16967a[a211_0x519b('0x8')][a211_0x519b('0x15')]&&typeof _0x16967a[a211_0x519b('0x8')]['name']!==a211_0x519b('0x1b'))return![];if(_0x16967a[a211_0x519b('0x8')][a211_0x519b('0x16')]&&typeof _0x16967a[a211_0x519b('0x8')]['url']!==a211_0x519b('0x1b'))return![];if(_0x16967a[a211_0x519b('0x8')][a211_0x519b('0x1a')]&&typeof _0x16967a[a211_0x519b('0x8')][a211_0x519b('0x1a')]!=='string')return![];}if(a211_0x519b('0x19')in _0x16967a&&typeof _0x16967a[a211_0x519b('0x19')]!==a211_0x519b('0xc')&&typeof _0x16967a[a211_0x519b('0x19')]!=='string'&&!(_0x16967a['color']instanceof Array))return![];if(a211_0x519b('0x14')in _0x16967a&&typeof _0x16967a[a211_0x519b('0x14')]!=='string')return![];if(a211_0x519b('0x0')in _0x16967a){if(!(_0x16967a['fields']instanceof Array))return;for(const _0x1f66b7 of _0x16967a[a211_0x519b('0x0')]){if(_0x1f66b7[a211_0x519b('0x13')]!=={}['constructor'])return![];if(!(a211_0x519b('0x15')in _0x1f66b7))return![];if(!(a211_0x519b('0xd')in _0x1f66b7))return![];if(typeof _0x1f66b7[a211_0x519b('0x3')]!==a211_0x519b('0xe'))return![];}}if(a211_0x519b('0x2')in _0x16967a){if(_0x16967a[a211_0x519b('0x2')][a211_0x519b('0x1a')]&&typeof _0x16967a[a211_0x519b('0x2')]['iconURL']!=='string')return![];if(_0x16967a['footer'][a211_0x519b('0x18')]&&typeof _0x16967a[a211_0x519b('0x2')][a211_0x519b('0x18')]!==a211_0x519b('0x1b'))return![];}if(a211_0x519b('0x11')in _0x16967a&&_0x16967a[a211_0x519b('0x11')][a211_0x519b('0x16')]&&typeof _0x16967a['image'][a211_0x519b('0x16')]!==a211_0x519b('0x1b'))return![];if(a211_0x519b('0xb')in _0x16967a&&_0x16967a['thumbnail'][a211_0x519b('0x16')]&&typeof _0x16967a['thumbnail'][a211_0x519b('0x16')]!==a211_0x519b('0x1b'))return![];if(a211_0x519b('0x6')in _0x16967a&&typeof _0x16967a['timestamp']!=='number'&&!(_0x16967a[a211_0x519b('0x6')]instanceof Date))return![];if(a211_0x519b('0x4')in _0x16967a&&typeof _0x16967a[a211_0x519b('0x4')]!==a211_0x519b('0x1b'))return![];if('url'in _0x16967a&&typeof _0x16967a['url']!==a211_0x519b('0x1b'))return![];return!![];}; \ No newline at end of file +const a212_0x3baf=['isValidBastionEmbed','boolean','return\x20/\x22\x20+\x20this\x20+\x20\x22/','__esModule','constructor','string','title','value','defineProperty','generateEmbed','fields','thumbnail','image','url','isValidEmbed','name','iconURL','author','apply','inline','IRIS','footer','Constants','timestamp','description','number','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','text','COLORS','color','parse'];(function(_0x28a2fa,_0x3bafc3){const _0x4a758e=function(_0x1a6bf2){while(--_0x1a6bf2){_0x28a2fa['push'](_0x28a2fa['shift']());}},_0x4df69f=function(){const _0x1d0fdb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x485ca8,_0x5a02eb,_0x4a54ef,_0xd0dd00){_0xd0dd00=_0xd0dd00||{};let _0xc49ce7=_0x5a02eb+'='+_0x4a54ef,_0xe01973=0x0;for(let _0x351d70=0x0,_0x1c5017=_0x485ca8['length'];_0x351d70<_0x1c5017;_0x351d70++){const _0x3f3d08=_0x485ca8[_0x351d70];_0xc49ce7+=';\x20'+_0x3f3d08;const _0x4e16b4=_0x485ca8[_0x3f3d08];_0x485ca8['push'](_0x4e16b4),_0x1c5017=_0x485ca8['length'],_0x4e16b4!==!![]&&(_0xc49ce7+='='+_0x4e16b4);}_0xd0dd00['cookie']=_0xc49ce7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3f9e22,_0x449e01){_0x3f9e22=_0x3f9e22||function(_0x479d26){return _0x479d26;};const _0x118013=_0x3f9e22(new RegExp('(?:^|;\x20)'+_0x449e01['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x57382b=function(_0x2a0ebc,_0x4ac25a){_0x2a0ebc(++_0x4ac25a);};return _0x57382b(_0x4a758e,_0x3bafc3),_0x118013?decodeURIComponent(_0x118013[0x1]):undefined;}},_0x3043d4=function(){const _0x14d4dd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x14d4dd['test'](_0x1d0fdb['removeCookie']['toString']());};_0x1d0fdb['updateCookie']=_0x3043d4;let _0x3488f2='';const _0x4ea911=_0x1d0fdb['updateCookie']();if(!_0x4ea911)_0x1d0fdb['setCookie'](['*'],'counter',0x1);else _0x4ea911?_0x3488f2=_0x1d0fdb['getCookie'](null,'counter'):_0x1d0fdb['removeCookie']();};_0x4df69f();}(a212_0x3baf,0x10e));const a212_0x4a75=function(_0x28a2fa,_0x3bafc3){_0x28a2fa=_0x28a2fa-0x0;let _0x4a758e=a212_0x3baf[_0x28a2fa];return _0x4a758e;};const a212_0x4a54ef=function(){let _0x518e0c=!![];return function(_0x29f8ac,_0x4d9086){const _0x65ff54=_0x518e0c?function(){if(_0x4d9086){const _0x34928d=_0x4d9086[a212_0x4a75('0x1b')](_0x29f8ac,arguments);return _0x4d9086=null,_0x34928d;}}:function(){};return _0x518e0c=![],_0x65ff54;};}(),a212_0x5a02eb=a212_0x4a54ef(this,function(){const _0x8b9d73=function(){const _0x593802=_0x8b9d73[a212_0x4a75('0xd')](a212_0x4a75('0xb'))()[a212_0x4a75('0xd')](a212_0x4a75('0x4'));return!_0x593802['test'](a212_0x5a02eb);};return _0x8b9d73();});a212_0x5a02eb();'use strict';Object[a212_0x4a75('0x11')](exports,a212_0x4a75('0xc'),{'value':!![]}),exports[a212_0x4a75('0x17')]=exports['isValidBastionEmbed']=exports['generateBastionEmbed']=exports[a212_0x4a75('0x12')]=void 0x0;const tesseract_1=require('@bastion/tesseract');exports[a212_0x4a75('0x12')]=_0x12e17d=>{if(typeof _0x12e17d==='string')return{'color':tesseract_1['Constants'][a212_0x4a75('0x6')]['IRIS'],'description':_0x12e17d};return{'author':_0x12e17d[a212_0x4a75('0x1a')],'color':_0x12e17d[a212_0x4a75('0x7')]||tesseract_1['Constants']['COLORS'][a212_0x4a75('0x1d')],'description':_0x12e17d[a212_0x4a75('0x2')],'fields':_0x12e17d[a212_0x4a75('0x13')],'footer':_0x12e17d['footer'],'image':{'url':_0x12e17d['image']},'thumbnail':{'url':_0x12e17d['thumbnail']},'timestamp':_0x12e17d[a212_0x4a75('0x1')],'title':_0x12e17d[a212_0x4a75('0xf')],'url':_0x12e17d[a212_0x4a75('0x16')]};},exports['generateBastionEmbed']=_0xd4f88f=>{if(typeof _0xd4f88f===a212_0x4a75('0xe'))try{_0xd4f88f=JSON[a212_0x4a75('0x8')](_0xd4f88f);}catch{}if(typeof _0xd4f88f==='string')return{'color':tesseract_1[a212_0x4a75('0x0')][a212_0x4a75('0x6')]['IRIS'],'description':_0xd4f88f};return{'author':_0xd4f88f[a212_0x4a75('0x1a')],'color':_0xd4f88f[a212_0x4a75('0x7')]||tesseract_1[a212_0x4a75('0x0')][a212_0x4a75('0x6')][a212_0x4a75('0x1d')],'description':_0xd4f88f['description'],'fields':_0xd4f88f[a212_0x4a75('0x13')],'footer':_0xd4f88f['footer'],'image':_0xd4f88f[a212_0x4a75('0x15')]&&_0xd4f88f['image'][a212_0x4a75('0x16')],'thumbnail':_0xd4f88f[a212_0x4a75('0x14')]&&_0xd4f88f[a212_0x4a75('0x14')]['url'],'timestamp':_0xd4f88f['timestamp'],'title':_0xd4f88f[a212_0x4a75('0xf')],'url':_0xd4f88f['url']};},exports[a212_0x4a75('0x9')]=_0x456439=>{if(_0x456439[a212_0x4a75('0xd')]!=={}[a212_0x4a75('0xd')])return![];if(a212_0x4a75('0x1a')in _0x456439){if(_0x456439[a212_0x4a75('0x1a')][a212_0x4a75('0x18')]&&typeof _0x456439['author'][a212_0x4a75('0x18')]!==a212_0x4a75('0xe'))return![];if(_0x456439['author']['url']&&typeof _0x456439[a212_0x4a75('0x1a')]['url']!==a212_0x4a75('0xe'))return![];if(_0x456439[a212_0x4a75('0x1a')][a212_0x4a75('0x19')]&&typeof _0x456439[a212_0x4a75('0x1a')][a212_0x4a75('0x19')]!==a212_0x4a75('0xe'))return![];}if('color'in _0x456439&&typeof _0x456439['color']!==a212_0x4a75('0x3')&&typeof _0x456439[a212_0x4a75('0x7')]!=='string'&&!(_0x456439[a212_0x4a75('0x7')]instanceof Array))return![];if('description'in _0x456439&&typeof _0x456439[a212_0x4a75('0x2')]!=='string')return![];if(a212_0x4a75('0x13')in _0x456439){if(!(_0x456439[a212_0x4a75('0x13')]instanceof Array))return;for(const _0x51f494 of _0x456439[a212_0x4a75('0x13')]){if(_0x51f494[a212_0x4a75('0xd')]!=={}[a212_0x4a75('0xd')])return![];if(!(a212_0x4a75('0x18')in _0x51f494))return![];if(!(a212_0x4a75('0x10')in _0x51f494))return![];if(typeof _0x51f494[a212_0x4a75('0x1c')]!==a212_0x4a75('0xa'))return![];}}if(a212_0x4a75('0x15')in _0x456439&&typeof _0x456439['image']!==a212_0x4a75('0xe'))return![];if(a212_0x4a75('0x14')in _0x456439&&typeof _0x456439['thumbnail']!==a212_0x4a75('0xe'))return![];if('timestamp'in _0x456439&&typeof _0x456439['timestamp']!==a212_0x4a75('0x3')&&!(_0x456439[a212_0x4a75('0x1')]instanceof Date))return![];if(a212_0x4a75('0xf')in _0x456439&&typeof _0x456439[a212_0x4a75('0xf')]!==a212_0x4a75('0xe'))return![];if(a212_0x4a75('0x16')in _0x456439&&typeof _0x456439[a212_0x4a75('0x16')]!==a212_0x4a75('0xe'))return![];return!![];},exports['isValidEmbed']=_0x157355=>{if(_0x157355[a212_0x4a75('0xd')]!=={}[a212_0x4a75('0xd')])return![];if(a212_0x4a75('0x1a')in _0x157355){if(_0x157355[a212_0x4a75('0x1a')][a212_0x4a75('0x18')]&&typeof _0x157355['author'][a212_0x4a75('0x18')]!=='string')return![];if(_0x157355[a212_0x4a75('0x1a')][a212_0x4a75('0x16')]&&typeof _0x157355[a212_0x4a75('0x1a')][a212_0x4a75('0x16')]!=='string')return![];if(_0x157355[a212_0x4a75('0x1a')][a212_0x4a75('0x19')]&&typeof _0x157355[a212_0x4a75('0x1a')][a212_0x4a75('0x19')]!==a212_0x4a75('0xe'))return![];}if(a212_0x4a75('0x7')in _0x157355&&typeof _0x157355[a212_0x4a75('0x7')]!==a212_0x4a75('0x3')&&typeof _0x157355[a212_0x4a75('0x7')]!==a212_0x4a75('0xe')&&!(_0x157355[a212_0x4a75('0x7')]instanceof Array))return![];if('description'in _0x157355&&typeof _0x157355[a212_0x4a75('0x2')]!==a212_0x4a75('0xe'))return![];if(a212_0x4a75('0x13')in _0x157355){if(!(_0x157355[a212_0x4a75('0x13')]instanceof Array))return;for(const _0x3b87b0 of _0x157355['fields']){if(_0x3b87b0[a212_0x4a75('0xd')]!=={}[a212_0x4a75('0xd')])return![];if(!(a212_0x4a75('0x18')in _0x3b87b0))return![];if(!('value'in _0x3b87b0))return![];if(typeof _0x3b87b0['inline']!=='boolean')return![];}}if(a212_0x4a75('0x1e')in _0x157355){if(_0x157355['footer']['iconURL']&&typeof _0x157355[a212_0x4a75('0x1e')][a212_0x4a75('0x19')]!=='string')return![];if(_0x157355[a212_0x4a75('0x1e')][a212_0x4a75('0x5')]&&typeof _0x157355[a212_0x4a75('0x1e')][a212_0x4a75('0x5')]!==a212_0x4a75('0xe'))return![];}if('image'in _0x157355&&_0x157355['image'][a212_0x4a75('0x16')]&&typeof _0x157355[a212_0x4a75('0x15')][a212_0x4a75('0x16')]!=='string')return![];if(a212_0x4a75('0x14')in _0x157355&&_0x157355[a212_0x4a75('0x14')][a212_0x4a75('0x16')]&&typeof _0x157355[a212_0x4a75('0x14')][a212_0x4a75('0x16')]!==a212_0x4a75('0xe'))return![];if(a212_0x4a75('0x1')in _0x157355&&typeof _0x157355[a212_0x4a75('0x1')]!=='number'&&!(_0x157355[a212_0x4a75('0x1')]instanceof Date))return![];if(a212_0x4a75('0xf')in _0x157355&&typeof _0x157355[a212_0x4a75('0xf')]!=='string')return![];if(a212_0x4a75('0x16')in _0x157355&&typeof _0x157355[a212_0x4a75('0x16')]!==a212_0x4a75('0xe'))return![];return!![];}; \ No newline at end of file diff --git a/utils/emojis.js b/utils/emojis.js index ddee0ebf2..7d4725dc7 100644 --- a/utils/emojis.js +++ b/utils/emojis.js @@ -1 +1 @@ -const a212_0x5a98=['match','includes','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','utf-8','test','base64','from','__esModule','toString','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','isUnicodeEmoji','getEmojis','isValid','constructor','../assets/emojis.json','defineProperty','parseEmoji'];(function(_0x4a09e4,_0x5a98fe){const _0x2fa10a=function(_0x4d4fd0){while(--_0x4d4fd0){_0x4a09e4['push'](_0x4a09e4['shift']());}},_0x1b37ce=function(){const _0x4870c5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x16e032,_0x246c7d,_0x140792,_0x457420){_0x457420=_0x457420||{};let _0x357fd7=_0x246c7d+'='+_0x140792,_0x236d0c=0x0;for(let _0x20090b=0x0,_0x10d8e6=_0x16e032['length'];_0x20090b<_0x10d8e6;_0x20090b++){const _0x256b5d=_0x16e032[_0x20090b];_0x357fd7+=';\x20'+_0x256b5d;const _0x2d21fc=_0x16e032[_0x256b5d];_0x16e032['push'](_0x2d21fc),_0x10d8e6=_0x16e032['length'],_0x2d21fc!==!![]&&(_0x357fd7+='='+_0x2d21fc);}_0x457420['cookie']=_0x357fd7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x420efa,_0x17b070){_0x420efa=_0x420efa||function(_0x3de04b){return _0x3de04b;};const _0x1aa0bd=_0x420efa(new RegExp('(?:^|;\x20)'+_0x17b070['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2df9af=function(_0x191d95,_0x505cfa){_0x191d95(++_0x505cfa);};return _0x2df9af(_0x2fa10a,_0x5a98fe),_0x1aa0bd?decodeURIComponent(_0x1aa0bd[0x1]):undefined;}},_0x5736a2=function(){const _0x5f1400=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5f1400['test'](_0x4870c5['removeCookie']['toString']());};_0x4870c5['updateCookie']=_0x5736a2;let _0x4ec1ec='';const _0x58f04a=_0x4870c5['updateCookie']();if(!_0x58f04a)_0x4870c5['setCookie'](['*'],'counter',0x1);else _0x58f04a?_0x4ec1ec=_0x4870c5['getCookie'](null,'counter'):_0x4870c5['removeCookie']();};_0x1b37ce();}(a212_0x5a98,0x19b));const a212_0x2fa1=function(_0x4a09e4,_0x5a98fe){_0x4a09e4=_0x4a09e4-0x0;let _0x2fa10a=a212_0x5a98[_0x4a09e4];return _0x2fa10a;};const a212_0x140792=function(){let _0x1bf29e=!![];return function(_0x418a11,_0x1c6b63){const _0x37b336=_0x1bf29e?function(){if(_0x1c6b63){const _0x52c730=_0x1c6b63[a212_0x2fa1('0x5')](_0x418a11,arguments);return _0x1c6b63=null,_0x52c730;}}:function(){};return _0x1bf29e=![],_0x37b336;};}(),a212_0x246c7d=a212_0x140792(this,function(){const _0x194a97=function(){const _0x348d0b=_0x194a97[a212_0x2fa1('0x11')](a212_0x2fa1('0x6'))()[a212_0x2fa1('0x11')](a212_0x2fa1('0xd'));return!_0x348d0b[a212_0x2fa1('0x8')](a212_0x246c7d);};return _0x194a97();});a212_0x246c7d();'use strict';Object[a212_0x2fa1('0x1')](exports,a212_0x2fa1('0xb'),{'value':!![]}),exports[a212_0x2fa1('0x2')]=exports[a212_0x2fa1('0xe')]=exports[a212_0x2fa1('0xf')]=void 0x0;const emojis=require(a212_0x2fa1('0x0')),snowflake=require('./snowflake'),getEmojis=()=>{return emojis;};exports['getEmojis']=getEmojis;const isUnicodeEmoji=_0x2291d6=>{return emojis[a212_0x2fa1('0x4')](Buffer[a212_0x2fa1('0xa')](_0x2291d6)[a212_0x2fa1('0xc')](a212_0x2fa1('0x9')));};exports[a212_0x2fa1('0xe')]=isUnicodeEmoji;const parseEmoji=_0x401f5f=>{if(!_0x401f5f)return;let _0x446e14;if(emojis['includes'](_0x401f5f))_0x446e14={'value':_0x401f5f,'reaction':Buffer['from'](_0x401f5f,a212_0x2fa1('0x9'))[a212_0x2fa1('0xc')](a212_0x2fa1('0x7'))};else{if(emojis[a212_0x2fa1('0x4')](Buffer[a212_0x2fa1('0xa')](_0x401f5f)['toString'](a212_0x2fa1('0x9'))))_0x446e14={'value':Buffer[a212_0x2fa1('0xa')](_0x401f5f)[a212_0x2fa1('0xc')](a212_0x2fa1('0x9')),'reaction':_0x401f5f};else{if(_0x401f5f[a212_0x2fa1('0x4')](':')){const [,_0x426432]=_0x401f5f[a212_0x2fa1('0x3')](//i);_0x446e14={'value':_0x426432,'reaction':_0x426432};}else snowflake[a212_0x2fa1('0x10')](_0x401f5f)&&(_0x446e14={'value':_0x401f5f,'reaction':_0x401f5f});}}return _0x446e14;};exports[a212_0x2fa1('0x2')]=parseEmoji; \ No newline at end of file +const a213_0x225c=['includes','parseEmoji','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','from','utf-8','isUnicodeEmoji','./snowflake','isValid','base64','match','getEmojis','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','toString'];(function(_0x494a2d,_0x225c8a){const _0x38ca9a=function(_0x53decc){while(--_0x53decc){_0x494a2d['push'](_0x494a2d['shift']());}},_0x99dbd4=function(){const _0x740f42={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x26f8af,_0x24efb0,_0x4c339c,_0x325d1d){_0x325d1d=_0x325d1d||{};let _0x2b08ba=_0x24efb0+'='+_0x4c339c,_0x444f07=0x0;for(let _0x2cacbf=0x0,_0xf05b84=_0x26f8af['length'];_0x2cacbf<_0xf05b84;_0x2cacbf++){const _0x21e954=_0x26f8af[_0x2cacbf];_0x2b08ba+=';\x20'+_0x21e954;const _0x49014d=_0x26f8af[_0x21e954];_0x26f8af['push'](_0x49014d),_0xf05b84=_0x26f8af['length'],_0x49014d!==!![]&&(_0x2b08ba+='='+_0x49014d);}_0x325d1d['cookie']=_0x2b08ba;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5ca79c,_0x57219f){_0x5ca79c=_0x5ca79c||function(_0x35892f){return _0x35892f;};const _0x153b32=_0x5ca79c(new RegExp('(?:^|;\x20)'+_0x57219f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x165090=function(_0x57a11b,_0xce7cad){_0x57a11b(++_0xce7cad);};return _0x165090(_0x38ca9a,_0x225c8a),_0x153b32?decodeURIComponent(_0x153b32[0x1]):undefined;}},_0x13af2b=function(){const _0x2c0d94=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2c0d94['test'](_0x740f42['removeCookie']['toString']());};_0x740f42['updateCookie']=_0x13af2b;let _0x3aad67='';const _0x1a45a0=_0x740f42['updateCookie']();if(!_0x1a45a0)_0x740f42['setCookie'](['*'],'counter',0x1);else _0x1a45a0?_0x3aad67=_0x740f42['getCookie'](null,'counter'):_0x740f42['removeCookie']();};_0x99dbd4();}(a213_0x225c,0x198));const a213_0x38ca=function(_0x494a2d,_0x225c8a){_0x494a2d=_0x494a2d-0x0;let _0x38ca9a=a213_0x225c[_0x494a2d];return _0x38ca9a;};const a213_0x4c339c=function(){let _0xefad39=!![];return function(_0x15e911,_0x3e3721){const _0x1d43a1=_0xefad39?function(){if(_0x3e3721){const _0xa481b9=_0x3e3721[a213_0x38ca('0xa')](_0x15e911,arguments);return _0x3e3721=null,_0xa481b9;}}:function(){};return _0xefad39=![],_0x1d43a1;};}(),a213_0x24efb0=a213_0x4c339c(this,function(){const _0x5a95a3=function(){const _0x1f6141=_0x5a95a3[a213_0x38ca('0x0')](a213_0x38ca('0xe'))()[a213_0x38ca('0x0')](a213_0x38ca('0x9'));return!_0x1f6141['test'](a213_0x24efb0);};return _0x5a95a3();});a213_0x24efb0();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a213_0x38ca('0xd')]=exports[a213_0x38ca('0x3')]=exports[a213_0x38ca('0x8')]=void 0x0;const emojis=require('../assets/emojis.json'),snowflake=require(a213_0x38ca('0x4')),getEmojis=()=>{return emojis;};exports[a213_0x38ca('0x8')]=getEmojis;const isUnicodeEmoji=_0x4b93e4=>{return emojis[a213_0x38ca('0xc')](Buffer[a213_0x38ca('0x1')](_0x4b93e4)[a213_0x38ca('0xb')](a213_0x38ca('0x6')));};exports[a213_0x38ca('0x3')]=isUnicodeEmoji;const parseEmoji=_0x13105d=>{if(!_0x13105d)return;let _0x2ff430;if(emojis[a213_0x38ca('0xc')](_0x13105d))_0x2ff430={'value':_0x13105d,'reaction':Buffer[a213_0x38ca('0x1')](_0x13105d,a213_0x38ca('0x6'))[a213_0x38ca('0xb')](a213_0x38ca('0x2'))};else{if(emojis[a213_0x38ca('0xc')](Buffer[a213_0x38ca('0x1')](_0x13105d)[a213_0x38ca('0xb')]('base64')))_0x2ff430={'value':Buffer[a213_0x38ca('0x1')](_0x13105d)[a213_0x38ca('0xb')]('base64'),'reaction':_0x13105d};else{if(_0x13105d[a213_0x38ca('0xc')](':')){const [,_0x1bcbde]=_0x13105d[a213_0x38ca('0x7')](//i);_0x2ff430={'value':_0x1bcbde,'reaction':_0x1bcbde};}else snowflake[a213_0x38ca('0x5')](_0x13105d)&&(_0x2ff430={'value':_0x13105d,'reaction':_0x13105d});}}return _0x2ff430;};exports['parseEmoji']=parseEmoji; \ No newline at end of file diff --git a/utils/errors.js b/utils/errors.js index afa33629e..16c4192d8 100644 --- a/utils/errors.js +++ b/utils/errors.js @@ -1 +1 @@ -var a213_0x2265=['__esModule','Invalid\x20Command\x20Syntax','DiscordError','Role\x20Not\x20Found','ERROR','LIMITED_PREMIUM_MEMBERSHIP','defineProperty','ConsoleError','BASTION_ERROR_TYPE','Error','BastionError','test','constructor','PREMIUM_MEMBERSHIP_REQUIRED','INVALID_COMMAND_SYNTAX','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x4c6839,_0x226545){var _0x531f5a=function(_0x26fdb5){while(--_0x26fdb5){_0x4c6839['push'](_0x4c6839['shift']());}},_0x2e6348=function(){var _0x243462={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x264aed,_0x2b5d6f,_0x23536d,_0x390345){_0x390345=_0x390345||{};var _0x21ef51=_0x2b5d6f+'='+_0x23536d,_0x290f60=0x0;for(var _0x28c785=0x0,_0x1f3141=_0x264aed['length'];_0x28c785<_0x1f3141;_0x28c785++){var _0x3f7265=_0x264aed[_0x28c785];_0x21ef51+=';\x20'+_0x3f7265;var _0x12e051=_0x264aed[_0x3f7265];_0x264aed['push'](_0x12e051),_0x1f3141=_0x264aed['length'],_0x12e051!==!![]&&(_0x21ef51+='='+_0x12e051);}_0x390345['cookie']=_0x21ef51;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a1a3e,_0x2ec17f){_0x5a1a3e=_0x5a1a3e||function(_0x510157){return _0x510157;};var _0x53a941=_0x5a1a3e(new RegExp('(?:^|;\x20)'+_0x2ec17f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x282c82=function(_0x1edf62,_0x23b6a6){_0x1edf62(++_0x23b6a6);};return _0x282c82(_0x531f5a,_0x226545),_0x53a941?decodeURIComponent(_0x53a941[0x1]):undefined;}},_0x30eaed=function(){var _0x6fee0a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x6fee0a['test'](_0x243462['removeCookie']['toString']());};_0x243462['updateCookie']=_0x30eaed;var _0x4e4a76='';var _0x4069f6=_0x243462['updateCookie']();if(!_0x4069f6)_0x243462['setCookie'](['*'],'counter',0x1);else _0x4069f6?_0x4e4a76=_0x243462['getCookie'](null,'counter'):_0x243462['removeCookie']();};_0x2e6348();}(a213_0x2265,0x1a5));var a213_0x531f=function(_0x4c6839,_0x226545){_0x4c6839=_0x4c6839-0x0;var _0x531f5a=a213_0x2265[_0x4c6839];return _0x531f5a;};'use strict';Object[a213_0x531f('0x1')](exports,a213_0x531f('0xb'),{'value':!![]}),exports[a213_0x531f('0xd')]=exports[a213_0x531f('0x2')]=exports[a213_0x531f('0x5')]=exports[a213_0x531f('0x3')]=void 0x0;var BASTION_ERROR_TYPE;(function(_0x4e978d){var _0x304180=function(){var _0x302861=!![];return function(_0x3e7403,_0x2505b6){var _0x319a35=_0x302861?function(){if(_0x2505b6){var _0x20c9f3=_0x2505b6['apply'](_0x3e7403,arguments);return _0x2505b6=null,_0x20c9f3;}}:function(){};return _0x302861=![],_0x319a35;};}(),_0x4f318c=_0x304180(this,function(){var _0x3d8c1f=function(){var _0x5895e1=_0x3d8c1f[a213_0x531f('0x7')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a213_0x531f('0x7')](a213_0x531f('0xa'));return!_0x5895e1[a213_0x531f('0x6')](_0x4f318c);};return _0x3d8c1f();});_0x4f318c(),_0x4e978d[a213_0x531f('0xf')]=a213_0x531f('0x4'),_0x4e978d[a213_0x531f('0x9')]=a213_0x531f('0xc'),_0x4e978d[a213_0x531f('0x8')]='Premium\x20Membership\x20Required',_0x4e978d[a213_0x531f('0x0')]='Limited\x20Premium\x20Membership',_0x4e978d['ROLE_NOT_FOUND']=a213_0x531f('0xe');}(BASTION_ERROR_TYPE=exports[a213_0x531f('0x3')]||(exports[a213_0x531f('0x3')]={})));class BastionError extends Error{constructor(_0x2f651a,_0x539466){super(_0x539466),this['name']=_0x2f651a;}}exports[a213_0x531f('0x5')]=BastionError;class ConsoleError extends BastionError{constructor(_0x2222a2,_0x1a68c2){super(_0x2222a2,_0x1a68c2);}}exports[a213_0x531f('0x2')]=ConsoleError;class DiscordError extends BastionError{constructor(_0x572e24,_0x22e8ca){super(_0x572e24,_0x22e8ca);}}exports[a213_0x531f('0xd')]=DiscordError; \ No newline at end of file +var a214_0x2067=['Invalid\x20Command\x20Syntax','defineProperty','ConsoleError','Error','BastionError','Premium\x20Membership\x20Required','__esModule','Limited\x20Premium\x20Membership','INVALID_COMMAND_SYNTAX','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','name','test','LIMITED_PREMIUM_MEMBERSHIP','BASTION_ERROR_TYPE','constructor','ROLE_NOT_FOUND','DiscordError','PREMIUM_MEMBERSHIP_REQUIRED','apply'];(function(_0x47acde,_0x20676e){var _0x307e0b=function(_0x305d7e){while(--_0x305d7e){_0x47acde['push'](_0x47acde['shift']());}},_0x2210e7=function(){var _0x4a2b61={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x7f559,_0x27436b,_0xc75e64,_0x2080d9){_0x2080d9=_0x2080d9||{};var _0x431e00=_0x27436b+'='+_0xc75e64,_0x1e2a2c=0x0;for(var _0x3e9482=0x0,_0x4559a5=_0x7f559['length'];_0x3e9482<_0x4559a5;_0x3e9482++){var _0x309cb5=_0x7f559[_0x3e9482];_0x431e00+=';\x20'+_0x309cb5;var _0x4efcda=_0x7f559[_0x309cb5];_0x7f559['push'](_0x4efcda),_0x4559a5=_0x7f559['length'],_0x4efcda!==!![]&&(_0x431e00+='='+_0x4efcda);}_0x2080d9['cookie']=_0x431e00;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3fe6de,_0x471eb5){_0x3fe6de=_0x3fe6de||function(_0x42328e){return _0x42328e;};var _0x4034e2=_0x3fe6de(new RegExp('(?:^|;\x20)'+_0x471eb5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x460829=function(_0x36a057,_0x4c3723){_0x36a057(++_0x4c3723);};return _0x460829(_0x307e0b,_0x20676e),_0x4034e2?decodeURIComponent(_0x4034e2[0x1]):undefined;}},_0x4ff0d4=function(){var _0x5ab5c8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5ab5c8['test'](_0x4a2b61['removeCookie']['toString']());};_0x4a2b61['updateCookie']=_0x4ff0d4;var _0xda53d2='';var _0x2abea8=_0x4a2b61['updateCookie']();if(!_0x2abea8)_0x4a2b61['setCookie'](['*'],'counter',0x1);else _0x2abea8?_0xda53d2=_0x4a2b61['getCookie'](null,'counter'):_0x4a2b61['removeCookie']();};_0x2210e7();}(a214_0x2067,0x191));var a214_0x307e=function(_0x47acde,_0x20676e){_0x47acde=_0x47acde-0x0;var _0x307e0b=a214_0x2067[_0x47acde];return _0x307e0b;};'use strict';Object[a214_0x307e('0x0')](exports,a214_0x307e('0x5'),{'value':!![]}),exports[a214_0x307e('0x10')]=exports[a214_0x307e('0x1')]=exports[a214_0x307e('0x3')]=exports['BASTION_ERROR_TYPE']=void 0x0;var BASTION_ERROR_TYPE;(function(_0x2c3db3){var _0x4b7260=function(){var _0x2451e7=!![];return function(_0x4fc6cc,_0x4b7914){var _0x1bdb6e=_0x2451e7?function(){if(_0x4b7914){var _0x3d4c25=_0x4b7914[a214_0x307e('0x12')](_0x4fc6cc,arguments);return _0x4b7914=null,_0x3d4c25;}}:function(){};return _0x2451e7=![],_0x1bdb6e;};}(),_0x42cd39=_0x4b7260(this,function(){var _0x417f9b=function(){var _0x459ac2=_0x417f9b[a214_0x307e('0xe')](a214_0x307e('0x8'))()[a214_0x307e('0xe')](a214_0x307e('0x9'));return!_0x459ac2[a214_0x307e('0xb')](_0x42cd39);};return _0x417f9b();});_0x42cd39(),_0x2c3db3['ERROR']=a214_0x307e('0x2'),_0x2c3db3[a214_0x307e('0x7')]=a214_0x307e('0x13'),_0x2c3db3[a214_0x307e('0x11')]=a214_0x307e('0x4'),_0x2c3db3[a214_0x307e('0xc')]=a214_0x307e('0x6'),_0x2c3db3[a214_0x307e('0xf')]='Role\x20Not\x20Found';}(BASTION_ERROR_TYPE=exports[a214_0x307e('0xd')]||(exports['BASTION_ERROR_TYPE']={})));class BastionError extends Error{constructor(_0x5d7aec,_0x343852){super(_0x343852),this[a214_0x307e('0xa')]=_0x5d7aec;}}exports['BastionError']=BastionError;class ConsoleError extends BastionError{constructor(_0x301dde,_0x7323b4){super(_0x301dde,_0x7323b4);}}exports['ConsoleError']=ConsoleError;class DiscordError extends BastionError{constructor(_0x1eb174,_0x525242){super(_0x1eb174,_0x525242);}}exports['DiscordError']=DiscordError; \ No newline at end of file diff --git a/utils/gamification.js b/utils/gamification.js index cfd95ffc5..9b8506355 100644 --- a/utils/gamification.js +++ b/utils/gamification.js @@ -1 +1 @@ -const a214_0x2065=['../utils/numbers','defineProperty','DEFAUL_CURRENCY_REWARD_MULTIPLIER','computeExperience','constructor','sqrt','DEFAUL_LEVELUP_MULTIPLIER','MAX_EXPERIENCE','clamp','apply','__esModule','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','floor','computeLevel','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x315bb2,_0x20656b){const _0x5d4080=function(_0x149bbe){while(--_0x149bbe){_0x315bb2['push'](_0x315bb2['shift']());}},_0x291c38=function(){const _0x181e48={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2a5d97,_0x408498,_0xd1d971,_0x1cc8f9){_0x1cc8f9=_0x1cc8f9||{};let _0xefca12=_0x408498+'='+_0xd1d971,_0x5bcf6d=0x0;for(let _0x196959=0x0,_0x218ead=_0x2a5d97['length'];_0x196959<_0x218ead;_0x196959++){const _0x316957=_0x2a5d97[_0x196959];_0xefca12+=';\x20'+_0x316957;const _0x565e47=_0x2a5d97[_0x316957];_0x2a5d97['push'](_0x565e47),_0x218ead=_0x2a5d97['length'],_0x565e47!==!![]&&(_0xefca12+='='+_0x565e47);}_0x1cc8f9['cookie']=_0xefca12;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1c993f,_0xe1f2ee){_0x1c993f=_0x1c993f||function(_0x4d2910){return _0x4d2910;};const _0x1328c1=_0x1c993f(new RegExp('(?:^|;\x20)'+_0xe1f2ee['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x304af8=function(_0x501e66,_0x58ab63){_0x501e66(++_0x58ab63);};return _0x304af8(_0x5d4080,_0x20656b),_0x1328c1?decodeURIComponent(_0x1328c1[0x1]):undefined;}},_0x3a6300=function(){const _0x155f7f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x155f7f['test'](_0x181e48['removeCookie']['toString']());};_0x181e48['updateCookie']=_0x3a6300;let _0x1a5ead='';const _0x532c5=_0x181e48['updateCookie']();if(!_0x532c5)_0x181e48['setCookie'](['*'],'counter',0x1);else _0x532c5?_0x1a5ead=_0x181e48['getCookie'](null,'counter'):_0x181e48['removeCookie']();};_0x291c38();}(a214_0x2065,0x133));const a214_0x5d40=function(_0x315bb2,_0x20656b){_0x315bb2=_0x315bb2-0x0;let _0x5d4080=a214_0x2065[_0x315bb2];return _0x5d4080;};const a214_0xd1d971=function(){let _0x19fc5a=!![];return function(_0x44b67a,_0x1924b5){const _0x4ae8ba=_0x19fc5a?function(){if(_0x1924b5){const _0x3254b4=_0x1924b5[a214_0x5d40('0x2')](_0x44b67a,arguments);return _0x1924b5=null,_0x3254b4;}}:function(){};return _0x19fc5a=![],_0x4ae8ba;};}(),a214_0x408498=a214_0xd1d971(this,function(){const _0x292915=function(){const _0x5efe02=_0x292915['constructor'](a214_0x5d40('0x7'))()[a214_0x5d40('0xc')](a214_0x5d40('0x4'));return!_0x5efe02['test'](a214_0x408498);};return _0x292915();});a214_0x408498();'use strict';Object[a214_0x5d40('0x9')](exports,a214_0x5d40('0x3'),{'value':!![]}),exports[a214_0x5d40('0xb')]=exports[a214_0x5d40('0x6')]=exports['MAX_EXPERIENCE']=exports['MAX_LEVEL']=exports['DEFAUL_LEVELUP_MULTIPLIER']=exports[a214_0x5d40('0xa')]=void 0x0;const numbers=require(a214_0x5d40('0x8')),DEFAUL_LEVELUP_MULTIPLIER=0.42;exports[a214_0x5d40('0xe')]=DEFAUL_LEVELUP_MULTIPLIER;const DEFAUL_CURRENCY_REWARD_MULTIPLIER=0x2a;exports['DEFAUL_CURRENCY_REWARD_MULTIPLIER']=DEFAUL_CURRENCY_REWARD_MULTIPLIER;const MAX_LEVEL=0x2540be400;exports['MAX_LEVEL']=MAX_LEVEL;const computeLevel=(_0x4739c1,_0x568b97)=>{if(!_0x568b97)_0x568b97=DEFAUL_LEVELUP_MULTIPLIER;return numbers[a214_0x5d40('0x1')](Math[a214_0x5d40('0x5')](_0x568b97*Math[a214_0x5d40('0xd')](_0x4739c1)),MAX_LEVEL);};exports[a214_0x5d40('0x6')]=computeLevel;const computeExperience=(_0x349771,_0x55881d)=>{if(!_0x55881d)_0x55881d=DEFAUL_LEVELUP_MULTIPLIER;return Math[a214_0x5d40('0x5')](_0x349771/_0x55881d*(_0x349771/_0x55881d));};exports[a214_0x5d40('0xb')]=computeExperience;const MAX_EXPERIENCE=_0x255496=>{if(!_0x255496)_0x255496=DEFAUL_LEVELUP_MULTIPLIER;return computeExperience(MAX_LEVEL,_0x255496);};exports[a214_0x5d40('0x0')]=MAX_EXPERIENCE; \ No newline at end of file +const a215_0x180e=['computeExperience','test','__esModule','computeLevel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','defineProperty','clamp','../utils/numbers','DEFAUL_CURRENCY_REWARD_MULTIPLIER','MAX_LEVEL','apply','constructor','floor','DEFAUL_LEVELUP_MULTIPLIER'];(function(_0x4116c2,_0x180ebd){const _0x51f851=function(_0x7fe8fa){while(--_0x7fe8fa){_0x4116c2['push'](_0x4116c2['shift']());}},_0xf214b2=function(){const _0x28af49={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x111c33,_0x12dbfe,_0x42a598,_0x620121){_0x620121=_0x620121||{};let _0x1e3652=_0x12dbfe+'='+_0x42a598,_0x2e4006=0x0;for(let _0x43b236=0x0,_0xa477a8=_0x111c33['length'];_0x43b236<_0xa477a8;_0x43b236++){const _0x510f98=_0x111c33[_0x43b236];_0x1e3652+=';\x20'+_0x510f98;const _0x267daf=_0x111c33[_0x510f98];_0x111c33['push'](_0x267daf),_0xa477a8=_0x111c33['length'],_0x267daf!==!![]&&(_0x1e3652+='='+_0x267daf);}_0x620121['cookie']=_0x1e3652;},'removeCookie':function(){return'dev';},'getCookie':function(_0x821431,_0x412274){_0x821431=_0x821431||function(_0x5b674e){return _0x5b674e;};const _0x6c54ab=_0x821431(new RegExp('(?:^|;\x20)'+_0x412274['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3a148f=function(_0x4cc525,_0x39f9d6){_0x4cc525(++_0x39f9d6);};return _0x3a148f(_0x51f851,_0x180ebd),_0x6c54ab?decodeURIComponent(_0x6c54ab[0x1]):undefined;}},_0x3ffadd=function(){const _0x17585b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x17585b['test'](_0x28af49['removeCookie']['toString']());};_0x28af49['updateCookie']=_0x3ffadd;let _0x1d4223='';const _0x42d63f=_0x28af49['updateCookie']();if(!_0x42d63f)_0x28af49['setCookie'](['*'],'counter',0x1);else _0x42d63f?_0x1d4223=_0x28af49['getCookie'](null,'counter'):_0x28af49['removeCookie']();};_0xf214b2();}(a215_0x180e,0x175));const a215_0x51f8=function(_0x4116c2,_0x180ebd){_0x4116c2=_0x4116c2-0x0;let _0x51f851=a215_0x180e[_0x4116c2];return _0x51f851;};const a215_0x42a598=function(){let _0x388974=!![];return function(_0x149604,_0x505ae4){const _0x3e8c56=_0x388974?function(){if(_0x505ae4){const _0x21cc4e=_0x505ae4[a215_0x51f8('0x1')](_0x149604,arguments);return _0x505ae4=null,_0x21cc4e;}}:function(){};return _0x388974=![],_0x3e8c56;};}(),a215_0x12dbfe=a215_0x42a598(this,function(){const _0x91d890=function(){const _0x4a8840=_0x91d890[a215_0x51f8('0x2')](a215_0x51f8('0x9'))()[a215_0x51f8('0x2')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4a8840[a215_0x51f8('0x6')](a215_0x12dbfe);};return _0x91d890();});a215_0x12dbfe();'use strict';Object[a215_0x51f8('0xa')](exports,a215_0x51f8('0x7'),{'value':!![]}),exports[a215_0x51f8('0x5')]=exports[a215_0x51f8('0x8')]=exports['MAX_EXPERIENCE']=exports['MAX_LEVEL']=exports[a215_0x51f8('0x4')]=exports[a215_0x51f8('0xd')]=void 0x0;const numbers=require(a215_0x51f8('0xc')),DEFAUL_LEVELUP_MULTIPLIER=0.42;exports[a215_0x51f8('0x4')]=DEFAUL_LEVELUP_MULTIPLIER;const DEFAUL_CURRENCY_REWARD_MULTIPLIER=0x2a;exports[a215_0x51f8('0xd')]=DEFAUL_CURRENCY_REWARD_MULTIPLIER;const MAX_LEVEL=0x2540be400;exports[a215_0x51f8('0x0')]=MAX_LEVEL;const computeLevel=(_0x5f52d2,_0x2d560b)=>{if(!_0x2d560b)_0x2d560b=DEFAUL_LEVELUP_MULTIPLIER;return numbers[a215_0x51f8('0xb')](Math[a215_0x51f8('0x3')](_0x2d560b*Math['sqrt'](_0x5f52d2)),MAX_LEVEL);};exports[a215_0x51f8('0x8')]=computeLevel;const computeExperience=(_0x16e73e,_0x3f0cd5)=>{if(!_0x3f0cd5)_0x3f0cd5=DEFAUL_LEVELUP_MULTIPLIER;return Math[a215_0x51f8('0x3')](_0x16e73e/_0x3f0cd5*(_0x16e73e/_0x3f0cd5));};exports[a215_0x51f8('0x5')]=computeExperience;const MAX_EXPERIENCE=_0x9fe7c5=>{if(!_0x9fe7c5)_0x9fe7c5=DEFAUL_LEVELUP_MULTIPLIER;return computeExperience(MAX_LEVEL,_0x9fe7c5);};exports['MAX_EXPERIENCE']=MAX_EXPERIENCE; \ No newline at end of file diff --git a/utils/memcache.js b/utils/memcache.js index 665673cfc..696c2554a 100644 --- a/utils/memcache.js +++ b/utils/memcache.js @@ -1 +1 @@ -const a215_0x4f93=['apply','get','set','defineProperty','constructor','delete','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','clear','cacheStore'];(function(_0x311ab7,_0x4f93bd){const _0x3f73ec=function(_0x3afeb1){while(--_0x3afeb1){_0x311ab7['push'](_0x311ab7['shift']());}},_0x424459=function(){const _0x1b259d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x28dfda,_0x3fda0b,_0x2cc32c,_0x262649){_0x262649=_0x262649||{};let _0x3326c2=_0x3fda0b+'='+_0x2cc32c,_0x14170f=0x0;for(let _0x56aded=0x0,_0x73463a=_0x28dfda['length'];_0x56aded<_0x73463a;_0x56aded++){const _0x15df71=_0x28dfda[_0x56aded];_0x3326c2+=';\x20'+_0x15df71;const _0x13adf7=_0x28dfda[_0x15df71];_0x28dfda['push'](_0x13adf7),_0x73463a=_0x28dfda['length'],_0x13adf7!==!![]&&(_0x3326c2+='='+_0x13adf7);}_0x262649['cookie']=_0x3326c2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3d37c6,_0x4d5b0d){_0x3d37c6=_0x3d37c6||function(_0x1011a4){return _0x1011a4;};const _0x1bdad9=_0x3d37c6(new RegExp('(?:^|;\x20)'+_0x4d5b0d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x43a74e=function(_0x2064b2,_0x545c1d){_0x2064b2(++_0x545c1d);};return _0x43a74e(_0x3f73ec,_0x4f93bd),_0x1bdad9?decodeURIComponent(_0x1bdad9[0x1]):undefined;}},_0x277686=function(){const _0x333f3c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x333f3c['test'](_0x1b259d['removeCookie']['toString']());};_0x1b259d['updateCookie']=_0x277686;let _0x186284='';const _0x54a714=_0x1b259d['updateCookie']();if(!_0x54a714)_0x1b259d['setCookie'](['*'],'counter',0x1);else _0x54a714?_0x186284=_0x1b259d['getCookie'](null,'counter'):_0x1b259d['removeCookie']();};_0x424459();}(a215_0x4f93,0x132));const a215_0x3f73=function(_0x311ab7,_0x4f93bd){_0x311ab7=_0x311ab7-0x0;let _0x3f73ec=a215_0x4f93[_0x311ab7];return _0x3f73ec;};const a215_0x2cc32c=function(){let _0x12ccaa=!![];return function(_0x2c2f7a,_0x5045b6){const _0x509f35=_0x12ccaa?function(){if(_0x5045b6){const _0x4860df=_0x5045b6[a215_0x3f73('0x4')](_0x2c2f7a,arguments);return _0x5045b6=null,_0x4860df;}}:function(){};return _0x12ccaa=![],_0x509f35;};}(),a215_0x3fda0b=a215_0x2cc32c(this,function(){const _0x2f00f8=function(){const _0x5d6ecd=_0x2f00f8[a215_0x3f73('0x8')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a215_0x3f73('0x8')](a215_0x3f73('0x0'));return!_0x5d6ecd[a215_0x3f73('0x1')](a215_0x3fda0b);};return _0x2f00f8();});a215_0x3fda0b();'use strict';Object[a215_0x3f73('0x7')](exports,'__esModule',{'value':!![]});class Memcache{constructor(){this[a215_0x3f73('0x5')]=_0x30c6f4=>{return this[a215_0x3f73('0x3')][a215_0x3f73('0x5')](_0x30c6f4);},this[a215_0x3f73('0x6')]=(_0x200b86,_0x11746d,_0x3c0a79)=>{return this['cacheStore'][a215_0x3f73('0x6')](_0x200b86,_0x11746d),_0x3c0a79&&setTimeout(()=>this['cacheStore'][a215_0x3f73('0x9')](_0x200b86),_0x3c0a79*0xea60),!![];},this[a215_0x3f73('0x9')]=_0x1b91c9=>{const _0x5f15bb=this[a215_0x3f73('0x3')][a215_0x3f73('0x5')](_0x1b91c9);if(_0x5f15bb)return this[a215_0x3f73('0x3')]['delete'](_0x1b91c9),_0x5f15bb;return null;},this[a215_0x3f73('0x2')]=()=>{return this[a215_0x3f73('0x3')][a215_0x3f73('0x2')](),!![];},this[a215_0x3f73('0x3')]=new Map();}}exports['default']=new Memcache(); \ No newline at end of file +const a216_0x5907=['cacheStore','set','delete','default','__esModule','apply','constructor','clear','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','get','defineProperty'];(function(_0x117e05,_0x59074b){const _0x1b9458=function(_0x4ab750){while(--_0x4ab750){_0x117e05['push'](_0x117e05['shift']());}},_0x4463ec=function(){const _0x5d92cd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x325145,_0x32b6fd,_0x2d7b5c,_0x1efbe5){_0x1efbe5=_0x1efbe5||{};let _0x4ee743=_0x32b6fd+'='+_0x2d7b5c,_0x5c71b7=0x0;for(let _0x3ef44a=0x0,_0x28ea37=_0x325145['length'];_0x3ef44a<_0x28ea37;_0x3ef44a++){const _0x23287f=_0x325145[_0x3ef44a];_0x4ee743+=';\x20'+_0x23287f;const _0x50eb83=_0x325145[_0x23287f];_0x325145['push'](_0x50eb83),_0x28ea37=_0x325145['length'],_0x50eb83!==!![]&&(_0x4ee743+='='+_0x50eb83);}_0x1efbe5['cookie']=_0x4ee743;},'removeCookie':function(){return'dev';},'getCookie':function(_0xab72d6,_0x33b92f){_0xab72d6=_0xab72d6||function(_0x5ee2c3){return _0x5ee2c3;};const _0xa1c7d2=_0xab72d6(new RegExp('(?:^|;\x20)'+_0x33b92f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x27eccc=function(_0x3e7dcf,_0x152970){_0x3e7dcf(++_0x152970);};return _0x27eccc(_0x1b9458,_0x59074b),_0xa1c7d2?decodeURIComponent(_0xa1c7d2[0x1]):undefined;}},_0x481dfc=function(){const _0xcd709=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xcd709['test'](_0x5d92cd['removeCookie']['toString']());};_0x5d92cd['updateCookie']=_0x481dfc;let _0x4d38dd='';const _0x52178a=_0x5d92cd['updateCookie']();if(!_0x52178a)_0x5d92cd['setCookie'](['*'],'counter',0x1);else _0x52178a?_0x4d38dd=_0x5d92cd['getCookie'](null,'counter'):_0x5d92cd['removeCookie']();};_0x4463ec();}(a216_0x5907,0xad));const a216_0x1b94=function(_0x117e05,_0x59074b){_0x117e05=_0x117e05-0x0;let _0x1b9458=a216_0x5907[_0x117e05];return _0x1b9458;};const a216_0x2d7b5c=function(){let _0x12056c=!![];return function(_0xe008b6,_0x53da83){const _0x500da2=_0x12056c?function(){if(_0x53da83){const _0x635ffa=_0x53da83[a216_0x1b94('0x0')](_0xe008b6,arguments);return _0x53da83=null,_0x635ffa;}}:function(){};return _0x12056c=![],_0x500da2;};}(),a216_0x32b6fd=a216_0x2d7b5c(this,function(){const _0x15a0b9=function(){const _0x10e7ce=_0x15a0b9['constructor'](a216_0x1b94('0x4'))()[a216_0x1b94('0x1')](a216_0x1b94('0x3'));return!_0x10e7ce['test'](a216_0x32b6fd);};return _0x15a0b9();});a216_0x32b6fd();'use strict';Object[a216_0x1b94('0x6')](exports,a216_0x1b94('0xb'),{'value':!![]});class Memcache{constructor(){this[a216_0x1b94('0x5')]=_0x748771=>{return this[a216_0x1b94('0x7')]['get'](_0x748771);},this[a216_0x1b94('0x8')]=(_0x42ca8f,_0x37a506,_0x22bd73)=>{return this[a216_0x1b94('0x7')][a216_0x1b94('0x8')](_0x42ca8f,_0x37a506),_0x22bd73&&setTimeout(()=>this[a216_0x1b94('0x7')]['delete'](_0x42ca8f),_0x22bd73*0xea60),!![];},this[a216_0x1b94('0x9')]=_0x59f309=>{const _0x2a9774=this[a216_0x1b94('0x7')][a216_0x1b94('0x5')](_0x59f309);if(_0x2a9774)return this[a216_0x1b94('0x7')][a216_0x1b94('0x9')](_0x59f309),_0x2a9774;return null;},this[a216_0x1b94('0x2')]=()=>{return this[a216_0x1b94('0x7')][a216_0x1b94('0x2')](),!![];},this['cacheStore']=new Map();}}exports[a216_0x1b94('0xa')]=new Memcache(); \ No newline at end of file diff --git a/utils/numbers.js b/utils/numbers.js index af299afcd..3ebb995b7 100644 --- a/utils/numbers.js +++ b/utils/numbers.js @@ -1 +1 @@ -const a216_0x3501=['apply','constructor','abbreviate','inRange','getRandomInt','pow','number','__esModule','max','clamp','log10','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','defineProperty','random','toFixed','toString','return\x20/\x22\x20+\x20this\x20+\x20\x22/','floor','test','replace','min'];(function(_0x309f64,_0x35015){const _0x18d0fd=function(_0x81f08b){while(--_0x81f08b){_0x309f64['push'](_0x309f64['shift']());}},_0x1b90fb=function(){const _0x3a0a30={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x44ceab,_0x4058ce,_0x9e81bf,_0x13b27c){_0x13b27c=_0x13b27c||{};let _0x221ff4=_0x4058ce+'='+_0x9e81bf,_0x21a3fb=0x0;for(let _0x81934d=0x0,_0x44f8a6=_0x44ceab['length'];_0x81934d<_0x44f8a6;_0x81934d++){const _0x312350=_0x44ceab[_0x81934d];_0x221ff4+=';\x20'+_0x312350;const _0x275ed2=_0x44ceab[_0x312350];_0x44ceab['push'](_0x275ed2),_0x44f8a6=_0x44ceab['length'],_0x275ed2!==!![]&&(_0x221ff4+='='+_0x275ed2);}_0x13b27c['cookie']=_0x221ff4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3fc79c,_0x1047fe){_0x3fc79c=_0x3fc79c||function(_0x28dedd){return _0x28dedd;};const _0x11b85c=_0x3fc79c(new RegExp('(?:^|;\x20)'+_0x1047fe['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x19e166=function(_0x29008d,_0x3c37cf){_0x29008d(++_0x3c37cf);};return _0x19e166(_0x18d0fd,_0x35015),_0x11b85c?decodeURIComponent(_0x11b85c[0x1]):undefined;}},_0x477c36=function(){const _0x575a3a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x575a3a['test'](_0x3a0a30['removeCookie']['toString']());};_0x3a0a30['updateCookie']=_0x477c36;let _0x82bdd='';const _0x48b6e5=_0x3a0a30['updateCookie']();if(!_0x48b6e5)_0x3a0a30['setCookie'](['*'],'counter',0x1);else _0x48b6e5?_0x82bdd=_0x3a0a30['getCookie'](null,'counter'):_0x3a0a30['removeCookie']();};_0x1b90fb();}(a216_0x3501,0x130));const a216_0x18d0=function(_0x309f64,_0x35015){_0x309f64=_0x309f64-0x0;let _0x18d0fd=a216_0x3501[_0x309f64];return _0x18d0fd;};const a216_0x9e81bf=function(){let _0x23f28f=!![];return function(_0x599dae,_0xa2888e){const _0x2e1157=_0x23f28f?function(){if(_0xa2888e){const _0x272006=_0xa2888e[a216_0x18d0('0xb')](_0x599dae,arguments);return _0xa2888e=null,_0x272006;}}:function(){};return _0x23f28f=![],_0x2e1157;};}(),a216_0x4058ce=a216_0x9e81bf(this,function(){const _0x1b5801=function(){const _0x14f263=_0x1b5801[a216_0x18d0('0xc')](a216_0x18d0('0x6'))()[a216_0x18d0('0xc')](a216_0x18d0('0x1'));return!_0x14f263[a216_0x18d0('0x8')](a216_0x4058ce);};return _0x1b5801();});a216_0x4058ce();'use strict';Object[a216_0x18d0('0x2')](exports,a216_0x18d0('0x12'),{'value':!![]}),exports[a216_0x18d0('0xe')]=exports[a216_0x18d0('0xf')]=exports[a216_0x18d0('0x14')]=exports[a216_0x18d0('0xd')]=void 0x0;const abbreviate=_0x30a0e1=>{const _0x49ee2e=['','k','M','G','T','P','E','Z','Y'],_0x217b5d=Math[a216_0x18d0('0x0')](Math['abs'](_0x30a0e1))/0x3|0x0;if(_0x217b5d===0x0)return _0x30a0e1[a216_0x18d0('0x5')]();const _0x31a0e3=_0x30a0e1/Math[a216_0x18d0('0x10')](0xa,_0x217b5d*0x3);return _0x31a0e3[a216_0x18d0('0x4')](0x3)[a216_0x18d0('0x9')](/(?:\.0+|0+)$/,'')+_0x49ee2e[_0x217b5d];};exports[a216_0x18d0('0xd')]=abbreviate;const clamp=(_0x3fe8c8,_0x577679,_0x255fa0)=>{return typeof _0x255fa0!==a216_0x18d0('0x11')?[_0x577679,_0x255fa0]=[-Infinity,_0x577679]:[_0x577679,_0x255fa0]=[Math['min'](_0x577679,_0x255fa0),Math['max'](_0x577679,_0x255fa0)],Math[a216_0x18d0('0x13')](_0x577679,Math[a216_0x18d0('0xa')](_0x3fe8c8,_0x255fa0));};exports[a216_0x18d0('0x14')]=clamp;const getRandomInt=(_0x80a2bd,_0x7e9329)=>{return _0x80a2bd=Math['ceil'](_0x80a2bd),_0x7e9329=Math[a216_0x18d0('0x7')](_0x7e9329),Math[a216_0x18d0('0x7')](Math[a216_0x18d0('0x3')]()*(_0x7e9329-_0x80a2bd+0x1))+_0x80a2bd;};exports[a216_0x18d0('0xf')]=getRandomInt;const inRange=(_0x1794a3,_0x8d3ef4,_0x12cb65)=>{return typeof _0x12cb65!==a216_0x18d0('0x11')&&([_0x8d3ef4,_0x12cb65]=[-Infinity,_0x8d3ef4]),_0x1794a3>=Math[a216_0x18d0('0xa')](_0x8d3ef4,_0x12cb65)&&_0x1794a3<=Math['max'](_0x8d3ef4,_0x12cb65);};exports[a216_0x18d0('0xe')]=inRange; \ No newline at end of file +const a217_0x236d=['pow','getRandomInt','number','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','replace','inRange','apply','constructor','min','toString','ceil','clamp','max','abs','floor','random','__esModule','abbreviate'];(function(_0x301f65,_0x236d11){const _0x264f87=function(_0x57984e){while(--_0x57984e){_0x301f65['push'](_0x301f65['shift']());}},_0x581747=function(){const _0x246058={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4ab84a,_0xc267c1,_0x194cd5,_0x1ce8a7){_0x1ce8a7=_0x1ce8a7||{};let _0x1f29b3=_0xc267c1+'='+_0x194cd5,_0xa2807b=0x0;for(let _0x693e4a=0x0,_0x918859=_0x4ab84a['length'];_0x693e4a<_0x918859;_0x693e4a++){const _0x1807a7=_0x4ab84a[_0x693e4a];_0x1f29b3+=';\x20'+_0x1807a7;const _0x5027ce=_0x4ab84a[_0x1807a7];_0x4ab84a['push'](_0x5027ce),_0x918859=_0x4ab84a['length'],_0x5027ce!==!![]&&(_0x1f29b3+='='+_0x5027ce);}_0x1ce8a7['cookie']=_0x1f29b3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4f08f3,_0x216db3){_0x4f08f3=_0x4f08f3||function(_0x5cd1db){return _0x5cd1db;};const _0x29751d=_0x4f08f3(new RegExp('(?:^|;\x20)'+_0x216db3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3af762=function(_0x5a23e0,_0x527c87){_0x5a23e0(++_0x527c87);};return _0x3af762(_0x264f87,_0x236d11),_0x29751d?decodeURIComponent(_0x29751d[0x1]):undefined;}},_0x61dc84=function(){const _0x196bbb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x196bbb['test'](_0x246058['removeCookie']['toString']());};_0x246058['updateCookie']=_0x61dc84;let _0x268469='';const _0x1b1634=_0x246058['updateCookie']();if(!_0x1b1634)_0x246058['setCookie'](['*'],'counter',0x1);else _0x1b1634?_0x268469=_0x246058['getCookie'](null,'counter'):_0x246058['removeCookie']();};_0x581747();}(a217_0x236d,0x12e));const a217_0x264f=function(_0x301f65,_0x236d11){_0x301f65=_0x301f65-0x0;let _0x264f87=a217_0x236d[_0x301f65];return _0x264f87;};const a217_0x194cd5=function(){let _0x46f6a4=!![];return function(_0x308ce4,_0x32d507){const _0x4c8615=_0x46f6a4?function(){if(_0x32d507){const _0x6086eb=_0x32d507[a217_0x264f('0x6')](_0x308ce4,arguments);return _0x32d507=null,_0x6086eb;}}:function(){};return _0x46f6a4=![],_0x4c8615;};}(),a217_0xc267c1=a217_0x194cd5(this,function(){const _0x5a6f54=function(){const _0x3a2d25=_0x5a6f54[a217_0x264f('0x7')](a217_0x264f('0x3'))()[a217_0x264f('0x7')](a217_0x264f('0x2'));return!_0x3a2d25[a217_0x264f('0x1')](a217_0xc267c1);};return _0x5a6f54();});a217_0xc267c1();'use strict';Object['defineProperty'](exports,a217_0x264f('0x10'),{'value':!![]}),exports[a217_0x264f('0x5')]=exports[a217_0x264f('0x13')]=exports['clamp']=exports['abbreviate']=void 0x0;const abbreviate=_0x54b339=>{const _0x73dfe3=['','k','M','G','T','P','E','Z','Y'],_0x4c9943=Math['log10'](Math[a217_0x264f('0xd')](_0x54b339))/0x3|0x0;if(_0x4c9943===0x0)return _0x54b339[a217_0x264f('0x9')]();const _0x4c201e=_0x54b339/Math[a217_0x264f('0x12')](0xa,_0x4c9943*0x3);return _0x4c201e['toFixed'](0x3)[a217_0x264f('0x4')](/(?:\.0+|0+)$/,'')+_0x73dfe3[_0x4c9943];};exports[a217_0x264f('0x11')]=abbreviate;const clamp=(_0x1e8269,_0x120c72,_0x4b37a9)=>{return typeof _0x4b37a9!==a217_0x264f('0x0')?[_0x120c72,_0x4b37a9]=[-Infinity,_0x120c72]:[_0x120c72,_0x4b37a9]=[Math[a217_0x264f('0x8')](_0x120c72,_0x4b37a9),Math[a217_0x264f('0xc')](_0x120c72,_0x4b37a9)],Math[a217_0x264f('0xc')](_0x120c72,Math[a217_0x264f('0x8')](_0x1e8269,_0x4b37a9));};exports[a217_0x264f('0xb')]=clamp;const getRandomInt=(_0x477dac,_0x55bac2)=>{return _0x477dac=Math[a217_0x264f('0xa')](_0x477dac),_0x55bac2=Math[a217_0x264f('0xe')](_0x55bac2),Math[a217_0x264f('0xe')](Math[a217_0x264f('0xf')]()*(_0x55bac2-_0x477dac+0x1))+_0x477dac;};exports[a217_0x264f('0x13')]=getRandomInt;const inRange=(_0x141505,_0x16dc69,_0x537b21)=>{return typeof _0x537b21!==a217_0x264f('0x0')&&([_0x16dc69,_0x537b21]=[-Infinity,_0x16dc69]),_0x141505>=Math[a217_0x264f('0x8')](_0x16dc69,_0x537b21)&&_0x141505<=Math[a217_0x264f('0xc')](_0x16dc69,_0x537b21);};exports[a217_0x264f('0x5')]=inRange; \ No newline at end of file diff --git a/utils/omnic.js b/utils/omnic.js index fa251c70e..61111ce60 100644 --- a/utils/omnic.js +++ b/utils/omnic.js @@ -1 +1 @@ -const a217_0x1f27=['GuildMember','currently_entitled_amount_cents','DIAMOND','https://omnic.traction.one/','PLATINUM','User','GET','patron_status','json','apply','resolvePath','then','endsWith','default','/patreon/patrons/','active_patron','Bastion\x20(Discord\x20Bot;\x20https://bastion.traction.one)','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','node-fetch','PremiumTier','return\x20/\x22\x20+\x20this\x20+\x20\x22/','BASE_PATH','defineProperty','application/json','makeRequest','GOLD','fetchPremiumTier','__esModule','constructor','ownerID','Guild'];(function(_0x9f60e,_0x1f2794){const _0x15489a=function(_0x1ea866){while(--_0x1ea866){_0x9f60e['push'](_0x9f60e['shift']());}},_0x238af1=function(){const _0xd8eba1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4cfab5,_0x327060,_0xf364a4,_0x1234e0){_0x1234e0=_0x1234e0||{};let _0x2c9bb3=_0x327060+'='+_0xf364a4,_0x1c959a=0x0;for(let _0x270ee8=0x0,_0x44bcdb=_0x4cfab5['length'];_0x270ee8<_0x44bcdb;_0x270ee8++){const _0x10f301=_0x4cfab5[_0x270ee8];_0x2c9bb3+=';\x20'+_0x10f301;const _0xdfaaf6=_0x4cfab5[_0x10f301];_0x4cfab5['push'](_0xdfaaf6),_0x44bcdb=_0x4cfab5['length'],_0xdfaaf6!==!![]&&(_0x2c9bb3+='='+_0xdfaaf6);}_0x1234e0['cookie']=_0x2c9bb3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x552749,_0xca547b){_0x552749=_0x552749||function(_0x1f5468){return _0x1f5468;};const _0x5ee881=_0x552749(new RegExp('(?:^|;\x20)'+_0xca547b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x43f8d9=function(_0x569c22,_0x54c84b){_0x569c22(++_0x54c84b);};return _0x43f8d9(_0x15489a,_0x1f2794),_0x5ee881?decodeURIComponent(_0x5ee881[0x1]):undefined;}},_0x501c90=function(){const _0x2062dd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2062dd['test'](_0xd8eba1['removeCookie']['toString']());};_0xd8eba1['updateCookie']=_0x501c90;let _0x5ee7f8='';const _0x4963d0=_0xd8eba1['updateCookie']();if(!_0x4963d0)_0xd8eba1['setCookie'](['*'],'counter',0x1);else _0x4963d0?_0x5ee7f8=_0xd8eba1['getCookie'](null,'counter'):_0xd8eba1['removeCookie']();};_0x238af1();}(a217_0x1f27,0x66));const a217_0x1548=function(_0x9f60e,_0x1f2794){_0x9f60e=_0x9f60e-0x0;let _0x15489a=a217_0x1f27[_0x9f60e];return _0x15489a;};'use strict';Object[a217_0x1548('0xd')](exports,a217_0x1548('0x12'),{'value':!![]}),exports[a217_0x1548('0x11')]=exports[a217_0x1548('0xa')]=exports[a217_0x1548('0xf')]=exports[a217_0x1548('0x1')]=exports['BASE_PATH']=void 0x0;const node_fetch_1=require(a217_0x1548('0x9')),discord_js_1=require('discord.js');exports[a217_0x1548('0xc')]=a217_0x1548('0x19'),exports['resolvePath']=_0x1062aa=>exports['BASE_PATH']+(exports[a217_0x1548('0xc')][a217_0x1548('0x3')]('/')?_0x1062aa['replace'](/^\//g,''):_0x1062aa),exports[a217_0x1548('0xf')]=(_0x43fbc8,_0x47f755)=>{const _0x33dfba={'method':a217_0x1548('0x1c'),'headers':{'Accepts':a217_0x1548('0xe'),'Content-Type':a217_0x1548('0xe'),'User-Agent':a217_0x1548('0x7')},..._0x47f755};return node_fetch_1[a217_0x1548('0x4')](exports['resolvePath'](_0x43fbc8),_0x33dfba);};var PremiumTier;(function(_0xfa37b){const _0x2379b2=function(){let _0x3ed8f0=!![];return function(_0x3b6240,_0x5b7e24){const _0xafbd9b=_0x3ed8f0?function(){if(_0x5b7e24){const _0x12c03a=_0x5b7e24[a217_0x1548('0x0')](_0x3b6240,arguments);return _0x5b7e24=null,_0x12c03a;}}:function(){};return _0x3ed8f0=![],_0xafbd9b;};}(),_0x3f7b69=_0x2379b2(this,function(){const _0x2fe87f=function(){const _0x5f0e21=_0x2fe87f[a217_0x1548('0x13')](a217_0x1548('0xb'))()[a217_0x1548('0x13')](a217_0x1548('0x8'));return!_0x5f0e21['test'](_0x3f7b69);};return _0x2fe87f();});_0x3f7b69(),_0xfa37b[_0xfa37b[a217_0x1548('0x18')]=0x1]='DIAMOND',_0xfa37b[_0xfa37b[a217_0x1548('0x1a')]=0x2]='PLATINUM',_0xfa37b[_0xfa37b[a217_0x1548('0x10')]=0x3]='GOLD';}(PremiumTier=exports[a217_0x1548('0xa')]||(exports[a217_0x1548('0xa')]={})),exports[a217_0x1548('0x11')]=async _0x294302=>{const _0x1630ca=_0x294302 instanceof discord_js_1[a217_0x1548('0x1b')]||_0x294302 instanceof discord_js_1[a217_0x1548('0x16')]?_0x294302['id']:_0x294302 instanceof discord_js_1[a217_0x1548('0x15')]?_0x294302[a217_0x1548('0x14')]:_0x294302;if(_0x1630ca==='266290969974931457')return PremiumTier['DIAMOND'];const _0x1c8ecc=await exports[a217_0x1548('0xf')](a217_0x1548('0x5')+_0x1630ca)[a217_0x1548('0x2')](_0x346e13=>_0x346e13[a217_0x1548('0x1e')]());if(_0x1c8ecc[a217_0x1548('0x1d')]===a217_0x1548('0x6')&&_0x1c8ecc[a217_0x1548('0x17')]>=0x3e8)return PremiumTier[a217_0x1548('0x18')];if(_0x1c8ecc[a217_0x1548('0x1d')]===a217_0x1548('0x6')&&_0x1c8ecc['currently_entitled_amount_cents']>=0x1f4)return PremiumTier[a217_0x1548('0x1a')];if(_0x1c8ecc['patron_status']===a217_0x1548('0x6')&&_0x1c8ecc[a217_0x1548('0x17')]>=0x12c)return PremiumTier[a217_0x1548('0x10')];}); \ No newline at end of file +const a218_0x2377=['default','/patreon/patrons/','node-fetch','ownerID','DIAMOND','GuildMember','Guild','GOLD','PremiumTier','application/json','266290969974931457','currently_entitled_amount_cents','Bastion\x20(Discord\x20Bot;\x20https://bastion.traction.one)','__esModule','endsWith','PLATINUM','BASE_PATH','makeRequest','GET','resolvePath','replace','patron_status','active_patron','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','User','then','constructor','fetchPremiumTier','json','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x1ba795,_0x23775e){const _0x4e32b6=function(_0x1a6b47){while(--_0x1a6b47){_0x1ba795['push'](_0x1ba795['shift']());}},_0x5d164a=function(){const _0x590fe3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x197451,_0x24c90c,_0x5a03a0,_0x52389f){_0x52389f=_0x52389f||{};let _0x507c2f=_0x24c90c+'='+_0x5a03a0,_0x239274=0x0;for(let _0x32a8b5=0x0,_0x3131e4=_0x197451['length'];_0x32a8b5<_0x3131e4;_0x32a8b5++){const _0x4ba1f5=_0x197451[_0x32a8b5];_0x507c2f+=';\x20'+_0x4ba1f5;const _0x1fe5ce=_0x197451[_0x4ba1f5];_0x197451['push'](_0x1fe5ce),_0x3131e4=_0x197451['length'],_0x1fe5ce!==!![]&&(_0x507c2f+='='+_0x1fe5ce);}_0x52389f['cookie']=_0x507c2f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x20fdc1,_0x442a4a){_0x20fdc1=_0x20fdc1||function(_0x5b48a8){return _0x5b48a8;};const _0x5d2904=_0x20fdc1(new RegExp('(?:^|;\x20)'+_0x442a4a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x17ca90=function(_0x2d9584,_0x3b27de){_0x2d9584(++_0x3b27de);};return _0x17ca90(_0x4e32b6,_0x23775e),_0x5d2904?decodeURIComponent(_0x5d2904[0x1]):undefined;}},_0x5a61fd=function(){const _0x1b3fe5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1b3fe5['test'](_0x590fe3['removeCookie']['toString']());};_0x590fe3['updateCookie']=_0x5a61fd;let _0x243f93='';const _0x21e507=_0x590fe3['updateCookie']();if(!_0x21e507)_0x590fe3['setCookie'](['*'],'counter',0x1);else _0x21e507?_0x243f93=_0x590fe3['getCookie'](null,'counter'):_0x590fe3['removeCookie']();};_0x5d164a();}(a218_0x2377,0xd8));const a218_0x4e32=function(_0x1ba795,_0x23775e){_0x1ba795=_0x1ba795-0x0;let _0x4e32b6=a218_0x2377[_0x1ba795];return _0x4e32b6;};'use strict';Object['defineProperty'](exports,a218_0x4e32('0x7'),{'value':!![]}),exports[a218_0x4e32('0x15')]=exports[a218_0x4e32('0x2')]=exports['makeRequest']=exports[a218_0x4e32('0xd')]=exports[a218_0x4e32('0xa')]=void 0x0;const node_fetch_1=require(a218_0x4e32('0x1a')),discord_js_1=require('discord.js');exports[a218_0x4e32('0xa')]='https://omnic.traction.one/',exports[a218_0x4e32('0xd')]=_0x221619=>exports[a218_0x4e32('0xa')]+(exports[a218_0x4e32('0xa')][a218_0x4e32('0x8')]('/')?_0x221619[a218_0x4e32('0xe')](/^\//g,''):_0x221619),exports[a218_0x4e32('0xb')]=(_0x1f3907,_0x38f934)=>{const _0x1371c5={'method':a218_0x4e32('0xc'),'headers':{'Accepts':a218_0x4e32('0x3'),'Content-Type':a218_0x4e32('0x3'),'User-Agent':a218_0x4e32('0x6')},..._0x38f934};return node_fetch_1[a218_0x4e32('0x18')](exports[a218_0x4e32('0xd')](_0x1f3907),_0x1371c5);};var PremiumTier;(function(_0x58d4ac){const _0x4b6a47=function(){let _0x303e08=!![];return function(_0xa7eec7,_0x3834b0){const _0x438c85=_0x303e08?function(){if(_0x3834b0){const _0x539dd9=_0x3834b0['apply'](_0xa7eec7,arguments);return _0x3834b0=null,_0x539dd9;}}:function(){};return _0x303e08=![],_0x438c85;};}(),_0x35cd6f=_0x4b6a47(this,function(){const _0x9dba92=function(){const _0x5913b7=_0x9dba92[a218_0x4e32('0x14')](a218_0x4e32('0x17'))()[a218_0x4e32('0x14')](a218_0x4e32('0x11'));return!_0x5913b7['test'](_0x35cd6f);};return _0x9dba92();});_0x35cd6f(),_0x58d4ac[_0x58d4ac[a218_0x4e32('0x1c')]=0x1]=a218_0x4e32('0x1c'),_0x58d4ac[_0x58d4ac['PLATINUM']=0x2]='PLATINUM',_0x58d4ac[_0x58d4ac[a218_0x4e32('0x1')]=0x3]='GOLD';}(PremiumTier=exports[a218_0x4e32('0x2')]||(exports[a218_0x4e32('0x2')]={})),exports[a218_0x4e32('0x15')]=async _0x1497ba=>{const _0x16cead=_0x1497ba instanceof discord_js_1[a218_0x4e32('0x12')]||_0x1497ba instanceof discord_js_1[a218_0x4e32('0x1d')]?_0x1497ba['id']:_0x1497ba instanceof discord_js_1[a218_0x4e32('0x0')]?_0x1497ba[a218_0x4e32('0x1b')]:_0x1497ba;if(_0x16cead===a218_0x4e32('0x4'))return PremiumTier[a218_0x4e32('0x1c')];const _0x4ac508=await exports[a218_0x4e32('0xb')](a218_0x4e32('0x19')+_0x16cead)[a218_0x4e32('0x13')](_0xd8b840=>_0xd8b840[a218_0x4e32('0x16')]());if(_0x4ac508[a218_0x4e32('0xf')]===a218_0x4e32('0x10')&&_0x4ac508[a218_0x4e32('0x5')]>=0x3e8)return PremiumTier[a218_0x4e32('0x1c')];if(_0x4ac508[a218_0x4e32('0xf')]===a218_0x4e32('0x10')&&_0x4ac508[a218_0x4e32('0x5')]>=0x1f4)return PremiumTier[a218_0x4e32('0x9')];if(_0x4ac508['patron_status']===a218_0x4e32('0x10')&&_0x4ac508[a218_0x4e32('0x5')]>=0x12c)return PremiumTier[a218_0x4e32('0x1')];}); \ No newline at end of file diff --git a/utils/pagination.js b/utils/pagination.js index 116856925..60820d8a0 100644 --- a/utils/pagination.js +++ b/utils/pagination.js @@ -1 +1 @@ -const a218_0x57f6=['slice','paginate','defineProperty','constructor','ceil','__esModule','floor','apply'];(function(_0x4f3014,_0x57f619){const _0x282ae8=function(_0x2fd2f9){while(--_0x2fd2f9){_0x4f3014['push'](_0x4f3014['shift']());}},_0x55a8f3=function(){const _0x11ca6b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3d7d78,_0x23c58c,_0x951c6f,_0x5e3856){_0x5e3856=_0x5e3856||{};let _0xae89ed=_0x23c58c+'='+_0x951c6f,_0x3dc802=0x0;for(let _0x5a657b=0x0,_0x52d989=_0x3d7d78['length'];_0x5a657b<_0x52d989;_0x5a657b++){const _0x58ccfc=_0x3d7d78[_0x5a657b];_0xae89ed+=';\x20'+_0x58ccfc;const _0x502109=_0x3d7d78[_0x58ccfc];_0x3d7d78['push'](_0x502109),_0x52d989=_0x3d7d78['length'],_0x502109!==!![]&&(_0xae89ed+='='+_0x502109);}_0x5e3856['cookie']=_0xae89ed;},'removeCookie':function(){return'dev';},'getCookie':function(_0x23962a,_0x12e3c5){_0x23962a=_0x23962a||function(_0x5f33f5){return _0x5f33f5;};const _0x516a18=_0x23962a(new RegExp('(?:^|;\x20)'+_0x12e3c5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x25c2b2=function(_0xd6b6a5,_0x2403a6){_0xd6b6a5(++_0x2403a6);};return _0x25c2b2(_0x282ae8,_0x57f619),_0x516a18?decodeURIComponent(_0x516a18[0x1]):undefined;}},_0x1919c5=function(){const _0x234e81=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x234e81['test'](_0x11ca6b['removeCookie']['toString']());};_0x11ca6b['updateCookie']=_0x1919c5;let _0x3de7e8='';const _0x2a916c=_0x11ca6b['updateCookie']();if(!_0x2a916c)_0x11ca6b['setCookie'](['*'],'counter',0x1);else _0x2a916c?_0x3de7e8=_0x11ca6b['getCookie'](null,'counter'):_0x11ca6b['removeCookie']();};_0x55a8f3();}(a218_0x57f6,0x1b0));const a218_0x282a=function(_0x4f3014,_0x57f619){_0x4f3014=_0x4f3014-0x0;let _0x282ae8=a218_0x57f6[_0x4f3014];return _0x282ae8;};const a218_0x951c6f=function(){let _0x296dd0=!![];return function(_0x5de3f5,_0x1ea159){const _0x11c39a=_0x296dd0?function(){if(_0x1ea159){const _0x42d53f=_0x1ea159[a218_0x282a('0x7')](_0x5de3f5,arguments);return _0x1ea159=null,_0x42d53f;}}:function(){};return _0x296dd0=![],_0x11c39a;};}(),a218_0x23c58c=a218_0x951c6f(this,function(){const _0x9407b2=function(){const _0x271b91=_0x9407b2[a218_0x282a('0x3')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x271b91['test'](a218_0x23c58c);};return _0x9407b2();});a218_0x23c58c();'use strict';Object[a218_0x282a('0x2')](exports,a218_0x282a('0x5'),{'value':!![]}),exports['paginate']=void 0x0;const paginate=(_0x782e82,_0x50f186)=>{const _0x3c13bd=Math[a218_0x282a('0x4')](_0x782e82['length']/0xa);return _0x50f186=Math[a218_0x282a('0x6')](_0x50f186>0x0&&_0x50f186<=_0x3c13bd?_0x50f186:0x1),{'page':_0x3c13bd?_0x50f186:0x0,'pages':_0x3c13bd,'items':_0x782e82[a218_0x282a('0x0')]((_0x50f186-0x1)*0xa,(_0x50f186-0x1)*0xa+0xa)};};exports[a218_0x282a('0x1')]=paginate; \ No newline at end of file +const a219_0xb3e3=['defineProperty','__esModule','ceil','length','constructor','paginate','slice','test','floor','apply'];(function(_0x1c5194,_0xb3e3ee){const _0x5ee655=function(_0x5801cc){while(--_0x5801cc){_0x1c5194['push'](_0x1c5194['shift']());}},_0x431d2c=function(){const _0x67c8c4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5041df,_0x4e5370,_0x46ce81,_0xd9047b){_0xd9047b=_0xd9047b||{};let _0x5ba7cd=_0x4e5370+'='+_0x46ce81,_0x93cd07=0x0;for(let _0x5420b6=0x0,_0x39fd33=_0x5041df['length'];_0x5420b6<_0x39fd33;_0x5420b6++){const _0x59d5f8=_0x5041df[_0x5420b6];_0x5ba7cd+=';\x20'+_0x59d5f8;const _0x305e10=_0x5041df[_0x59d5f8];_0x5041df['push'](_0x305e10),_0x39fd33=_0x5041df['length'],_0x305e10!==!![]&&(_0x5ba7cd+='='+_0x305e10);}_0xd9047b['cookie']=_0x5ba7cd;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4f30d,_0xe3a79){_0x4f30d=_0x4f30d||function(_0x113924){return _0x113924;};const _0x48c1ba=_0x4f30d(new RegExp('(?:^|;\x20)'+_0xe3a79['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x292f75=function(_0x164916,_0x3eb5ab){_0x164916(++_0x3eb5ab);};return _0x292f75(_0x5ee655,_0xb3e3ee),_0x48c1ba?decodeURIComponent(_0x48c1ba[0x1]):undefined;}},_0x164695=function(){const _0x2fb777=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2fb777['test'](_0x67c8c4['removeCookie']['toString']());};_0x67c8c4['updateCookie']=_0x164695;let _0x16a892='';const _0x7d2baf=_0x67c8c4['updateCookie']();if(!_0x7d2baf)_0x67c8c4['setCookie'](['*'],'counter',0x1);else _0x7d2baf?_0x16a892=_0x67c8c4['getCookie'](null,'counter'):_0x67c8c4['removeCookie']();};_0x431d2c();}(a219_0xb3e3,0xdb));const a219_0x5ee6=function(_0x1c5194,_0xb3e3ee){_0x1c5194=_0x1c5194-0x0;let _0x5ee655=a219_0xb3e3[_0x1c5194];return _0x5ee655;};const a219_0x46ce81=function(){let _0x4f8786=!![];return function(_0x13ddc9,_0x51e1f7){const _0x50f6aa=_0x4f8786?function(){if(_0x51e1f7){const _0x37fed3=_0x51e1f7[a219_0x5ee6('0x0')](_0x13ddc9,arguments);return _0x51e1f7=null,_0x37fed3;}}:function(){};return _0x4f8786=![],_0x50f6aa;};}(),a219_0x4e5370=a219_0x46ce81(this,function(){const _0xf7a636=function(){const _0x111aab=_0xf7a636[a219_0x5ee6('0x5')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a219_0x5ee6('0x5')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x111aab[a219_0x5ee6('0x8')](a219_0x4e5370);};return _0xf7a636();});a219_0x4e5370();'use strict';Object[a219_0x5ee6('0x1')](exports,a219_0x5ee6('0x2'),{'value':!![]}),exports['paginate']=void 0x0;const paginate=(_0x485fe8,_0x1d70cf)=>{const _0x3ae85b=Math[a219_0x5ee6('0x3')](_0x485fe8[a219_0x5ee6('0x4')]/0xa);return _0x1d70cf=Math[a219_0x5ee6('0x9')](_0x1d70cf>0x0&&_0x1d70cf<=_0x3ae85b?_0x1d70cf:0x1),{'page':_0x3ae85b?_0x1d70cf:0x0,'pages':_0x3ae85b,'items':_0x485fe8[a219_0x5ee6('0x7')]((_0x1d70cf-0x1)*0xa,(_0x1d70cf-0x1)*0xa+0xa)};};exports[a219_0x5ee6('0x6')]=paginate; \ No newline at end of file diff --git a/utils/progress.js b/utils/progress.js index ddfd2a60d..88270bea7 100644 --- a/utils/progress.js +++ b/utils/progress.js @@ -1 +1 @@ -const a219_0x40b1=['unfilled','test','./numbers','round','apply','filled','__esModule','defineProperty','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','clamp'];(function(_0x559b5e,_0x40b1a2){const _0x4384e3=function(_0x942c61){while(--_0x942c61){_0x559b5e['push'](_0x559b5e['shift']());}},_0x866b03=function(){const _0x1fdaa6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3babf6,_0x2c0cfd,_0x20ca89,_0x59ec07){_0x59ec07=_0x59ec07||{};let _0x2f0b58=_0x2c0cfd+'='+_0x20ca89,_0x2c59b4=0x0;for(let _0x325077=0x0,_0x52bf82=_0x3babf6['length'];_0x325077<_0x52bf82;_0x325077++){const _0x54980c=_0x3babf6[_0x325077];_0x2f0b58+=';\x20'+_0x54980c;const _0x400119=_0x3babf6[_0x54980c];_0x3babf6['push'](_0x400119),_0x52bf82=_0x3babf6['length'],_0x400119!==!![]&&(_0x2f0b58+='='+_0x400119);}_0x59ec07['cookie']=_0x2f0b58;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2cab74,_0x42c39a){_0x2cab74=_0x2cab74||function(_0x1d3ffa){return _0x1d3ffa;};const _0x306d7e=_0x2cab74(new RegExp('(?:^|;\x20)'+_0x42c39a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x487c8c=function(_0xed0058,_0x25cca2){_0xed0058(++_0x25cca2);};return _0x487c8c(_0x4384e3,_0x40b1a2),_0x306d7e?decodeURIComponent(_0x306d7e[0x1]):undefined;}},_0xaccdb1=function(){const _0x548c3d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x548c3d['test'](_0x1fdaa6['removeCookie']['toString']());};_0x1fdaa6['updateCookie']=_0xaccdb1;let _0x417cf8='';const _0xdb1cca=_0x1fdaa6['updateCookie']();if(!_0xdb1cca)_0x1fdaa6['setCookie'](['*'],'counter',0x1);else _0xdb1cca?_0x417cf8=_0x1fdaa6['getCookie'](null,'counter'):_0x1fdaa6['removeCookie']();};_0x866b03();}(a219_0x40b1,0x1cb));const a219_0x4384=function(_0x559b5e,_0x40b1a2){_0x559b5e=_0x559b5e-0x0;let _0x4384e3=a219_0x40b1[_0x559b5e];return _0x4384e3;};const a219_0x20ca89=function(){let _0x58591e=!![];return function(_0x442f3e,_0x1023bd){const _0x5cd892=_0x58591e?function(){if(_0x1023bd){const _0x5356f1=_0x1023bd[a219_0x4384('0x7')](_0x442f3e,arguments);return _0x1023bd=null,_0x5356f1;}}:function(){};return _0x58591e=![],_0x5cd892;};}(),a219_0x2c0cfd=a219_0x20ca89(this,function(){const _0x19339f=function(){const _0x31425a=_0x19339f[a219_0x4384('0x0')](a219_0x4384('0x1'))()[a219_0x4384('0x0')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x31425a[a219_0x4384('0x4')](a219_0x2c0cfd);};return _0x19339f();});a219_0x2c0cfd();'use strict';Object[a219_0x4384('0xa')](exports,a219_0x4384('0x9'),{'value':!![]});const numbers=require(a219_0x4384('0x5'));exports['default']=(_0x5d2996=0x0,_0x3b11b8=0xa)=>{_0x5d2996=numbers[a219_0x4384('0x2')](_0x5d2996,0x0,0x64);const _0x2b72eb={'filled':'#','unfilled':'-'},_0x4d9982=Math[a219_0x4384('0x6')](_0x5d2996/0x64*_0x3b11b8);return'['+_0x2b72eb[a219_0x4384('0x8')]['repeat'](_0x4d9982)+_0x2b72eb[a219_0x4384('0x3')]['repeat'](_0x3b11b8-_0x4d9982)+']';}; \ No newline at end of file +const a220_0x3860=['repeat','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','__esModule','unfilled','./numbers','constructor','filled'];(function(_0x3f1f79,_0x3860fc){const _0x512ff3=function(_0x90ac89){while(--_0x90ac89){_0x3f1f79['push'](_0x3f1f79['shift']());}},_0x3d44eb=function(){const _0x510b2a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x521718,_0x56da32,_0x5ae817,_0x4e27c6){_0x4e27c6=_0x4e27c6||{};let _0x5ed746=_0x56da32+'='+_0x5ae817,_0x4748b9=0x0;for(let _0x556b75=0x0,_0x14d4ac=_0x521718['length'];_0x556b75<_0x14d4ac;_0x556b75++){const _0x2357bb=_0x521718[_0x556b75];_0x5ed746+=';\x20'+_0x2357bb;const _0x330b7c=_0x521718[_0x2357bb];_0x521718['push'](_0x330b7c),_0x14d4ac=_0x521718['length'],_0x330b7c!==!![]&&(_0x5ed746+='='+_0x330b7c);}_0x4e27c6['cookie']=_0x5ed746;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a4da2,_0x3a12da){_0x5a4da2=_0x5a4da2||function(_0x4b412b){return _0x4b412b;};const _0x1a6220=_0x5a4da2(new RegExp('(?:^|;\x20)'+_0x3a12da['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4ec49f=function(_0x51c385,_0x271fc1){_0x51c385(++_0x271fc1);};return _0x4ec49f(_0x512ff3,_0x3860fc),_0x1a6220?decodeURIComponent(_0x1a6220[0x1]):undefined;}},_0xfb49f4=function(){const _0x51fbd9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x51fbd9['test'](_0x510b2a['removeCookie']['toString']());};_0x510b2a['updateCookie']=_0xfb49f4;let _0x41a196='';const _0x398f6d=_0x510b2a['updateCookie']();if(!_0x398f6d)_0x510b2a['setCookie'](['*'],'counter',0x1);else _0x398f6d?_0x41a196=_0x510b2a['getCookie'](null,'counter'):_0x510b2a['removeCookie']();};_0x3d44eb();}(a220_0x3860,0x16d));const a220_0x512f=function(_0x3f1f79,_0x3860fc){_0x3f1f79=_0x3f1f79-0x0;let _0x512ff3=a220_0x3860[_0x3f1f79];return _0x512ff3;};const a220_0x5ae817=function(){let _0x1fe38c=!![];return function(_0x4ee18b,_0x53fdce){const _0x3b6eb4=_0x1fe38c?function(){if(_0x53fdce){const _0x28eaf7=_0x53fdce['apply'](_0x4ee18b,arguments);return _0x53fdce=null,_0x28eaf7;}}:function(){};return _0x1fe38c=![],_0x3b6eb4;};}(),a220_0x56da32=a220_0x5ae817(this,function(){const _0x3e8408=function(){const _0x136871=_0x3e8408[a220_0x512f('0x1')]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[a220_0x512f('0x1')](a220_0x512f('0x4'));return!_0x136871[a220_0x512f('0x5')](a220_0x56da32);};return _0x3e8408();});a220_0x56da32();'use strict';Object['defineProperty'](exports,a220_0x512f('0x6'),{'value':!![]});const numbers=require(a220_0x512f('0x0'));exports['default']=(_0x38291a=0x0,_0x24fe76=0xa)=>{_0x38291a=numbers['clamp'](_0x38291a,0x0,0x64);const _0xde2f23={'filled':'#','unfilled':'-'},_0x1034ea=Math['round'](_0x38291a/0x64*_0x24fe76);return'['+_0xde2f23[a220_0x512f('0x2')]['repeat'](_0x1034ea)+_0xde2f23[a220_0x512f('0x7')][a220_0x512f('0x3')](_0x24fe76-_0x1034ea)+']';}; \ No newline at end of file diff --git a/utils/regex.js b/utils/regex.js index a6a579954..4125d33e0 100644 --- a/utils/regex.js +++ b/utils/regex.js @@ -1 +1 @@ -var a220_0x4573=['test','SERVER_INVITE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','REGEX_CMYK','REGEX_HEX','defineProperty','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','REGEX_RGB','URI','__esModule'];(function(_0xd0ac7b,_0x4573ef){var _0x938b70=function(_0x12fde9){while(--_0x12fde9){_0xd0ac7b['push'](_0xd0ac7b['shift']());}},_0xcf8dd2=function(){var _0x534038={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x42c885,_0x187ae0,_0xeda70b,_0x3a380e){_0x3a380e=_0x3a380e||{};var _0x2e9323=_0x187ae0+'='+_0xeda70b,_0x2b16c7=0x0;for(var _0x25f5bb=0x0,_0xd4acd8=_0x42c885['length'];_0x25f5bb<_0xd4acd8;_0x25f5bb++){var _0x23197e=_0x42c885[_0x25f5bb];_0x2e9323+=';\x20'+_0x23197e;var _0x2c4bed=_0x42c885[_0x23197e];_0x42c885['push'](_0x2c4bed),_0xd4acd8=_0x42c885['length'],_0x2c4bed!==!![]&&(_0x2e9323+='='+_0x2c4bed);}_0x3a380e['cookie']=_0x2e9323;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3e9fcb,_0x2a5b17){_0x3e9fcb=_0x3e9fcb||function(_0x3f3440){return _0x3f3440;};var _0x24f728=_0x3e9fcb(new RegExp('(?:^|;\x20)'+_0x2a5b17['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x29fea2=function(_0x43b548,_0x49ad7f){_0x43b548(++_0x49ad7f);};return _0x29fea2(_0x938b70,_0x4573ef),_0x24f728?decodeURIComponent(_0x24f728[0x1]):undefined;}},_0x3d611a=function(){var _0x1c333a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1c333a['test'](_0x534038['removeCookie']['toString']());};_0x534038['updateCookie']=_0x3d611a;var _0x3289d5='';var _0x1204a0=_0x534038['updateCookie']();if(!_0x1204a0)_0x534038['setCookie'](['*'],'counter',0x1);else _0x1204a0?_0x3289d5=_0x534038['getCookie'](null,'counter'):_0x534038['removeCookie']();};_0xcf8dd2();}(a220_0x4573,0x9a));var a220_0x938b=function(_0xd0ac7b,_0x4573ef){_0xd0ac7b=_0xd0ac7b-0x0;var _0x938b70=a220_0x4573[_0xd0ac7b];return _0x938b70;};var a220_0xeda70b=function(){var _0x5df75a=!![];return function(_0x376d97,_0x38515f){var _0x2c01b5=_0x5df75a?function(){if(_0x38515f){var _0x5d020e=_0x38515f[a220_0x938b('0x5')](_0x376d97,arguments);return _0x38515f=null,_0x5d020e;}}:function(){};return _0x5df75a=![],_0x2c01b5;};}(),a220_0x187ae0=a220_0xeda70b(this,function(){var _0x17db1b=function(){var _0x3bee19=_0x17db1b[a220_0x938b('0xa')](a220_0x938b('0x9'))()[a220_0x938b('0xa')](a220_0x938b('0x4'));return!_0x3bee19[a220_0x938b('0x2')](a220_0x187ae0);};return _0x17db1b();});a220_0x187ae0();'use strict';Object[a220_0x938b('0x8')](exports,a220_0x938b('0x1'),{'value':!![]}),exports[a220_0x938b('0x7')]=exports[a220_0x938b('0xb')]=exports[a220_0x938b('0x6')]=exports[a220_0x938b('0x0')]=exports['SERVER_INVITE']=void 0x0,exports[a220_0x938b('0x3')]=/(https:\/\/)?(www\.)?(discord\.gg|discordapp\.com\/invite|discord\.com\/invite)\/([a-z0-9-.]+)?/i,exports[a220_0x938b('0x0')]=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?)/i,exports[a220_0x938b('0x6')]=/^(\d{1,2}|100) (\d{1,2}|100) (\d{1,2}|100) (\d{1,2}|100)$/,exports[a220_0x938b('0xb')]=/^(\d{1,2}|1\d{2}|2[0-5]{2}) (\d{1,2}|1\d{2}|2[0-5]{2}) (\d{1,2}|1\d{2}|2[0-5]{2})$/,exports['REGEX_HEX']=/^#?(?:(?:([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2}))|(?:([0-9A-F])([0-9A-F])([0-9A-F])))$/i; \ No newline at end of file +var a221_0x121e=['SERVER_INVITE','return\x20/\x22\x20+\x20this\x20+\x20\x22/','URI','defineProperty','REGEX_CMYK','__esModule','test','REGEX_HEX'];(function(_0x543bf7,_0x121ec0){var _0x59b5b8=function(_0x44e2f8){while(--_0x44e2f8){_0x543bf7['push'](_0x543bf7['shift']());}},_0xdadd96=function(){var _0x3e7289={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xf7e1ec,_0x22670c,_0x174f12,_0x33916a){_0x33916a=_0x33916a||{};var _0x55a36c=_0x22670c+'='+_0x174f12,_0x4fe119=0x0;for(var _0x25298b=0x0,_0x4a8948=_0xf7e1ec['length'];_0x25298b<_0x4a8948;_0x25298b++){var _0x56030b=_0xf7e1ec[_0x25298b];_0x55a36c+=';\x20'+_0x56030b;var _0x4309d2=_0xf7e1ec[_0x56030b];_0xf7e1ec['push'](_0x4309d2),_0x4a8948=_0xf7e1ec['length'],_0x4309d2!==!![]&&(_0x55a36c+='='+_0x4309d2);}_0x33916a['cookie']=_0x55a36c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x210af5,_0x30ab68){_0x210af5=_0x210af5||function(_0x1cd080){return _0x1cd080;};var _0x10f82d=_0x210af5(new RegExp('(?:^|;\x20)'+_0x30ab68['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5e4c4f=function(_0x220664,_0xeeecbb){_0x220664(++_0xeeecbb);};return _0x5e4c4f(_0x59b5b8,_0x121ec0),_0x10f82d?decodeURIComponent(_0x10f82d[0x1]):undefined;}},_0x3bd086=function(){var _0x3784c2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3784c2['test'](_0x3e7289['removeCookie']['toString']());};_0x3e7289['updateCookie']=_0x3bd086;var _0x56242c='';var _0x4c9ef5=_0x3e7289['updateCookie']();if(!_0x4c9ef5)_0x3e7289['setCookie'](['*'],'counter',0x1);else _0x4c9ef5?_0x56242c=_0x3e7289['getCookie'](null,'counter'):_0x3e7289['removeCookie']();};_0xdadd96();}(a221_0x121e,0x1c6));var a221_0x59b5=function(_0x543bf7,_0x121ec0){_0x543bf7=_0x543bf7-0x0;var _0x59b5b8=a221_0x121e[_0x543bf7];return _0x59b5b8;};var a221_0x174f12=function(){var _0x41d7a1=!![];return function(_0x4d9e85,_0x1752c0){var _0x4bd126=_0x41d7a1?function(){if(_0x1752c0){var _0x38fb96=_0x1752c0['apply'](_0x4d9e85,arguments);return _0x1752c0=null,_0x38fb96;}}:function(){};return _0x41d7a1=![],_0x4bd126;};}(),a221_0x22670c=a221_0x174f12(this,function(){var _0xabf209=function(){var _0x1b1505=_0xabf209['constructor'](a221_0x59b5('0x3'))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1b1505[a221_0x59b5('0x0')](a221_0x22670c);};return _0xabf209();});a221_0x22670c();'use strict';Object[a221_0x59b5('0x5')](exports,a221_0x59b5('0x7'),{'value':!![]}),exports[a221_0x59b5('0x1')]=exports['REGEX_RGB']=exports[a221_0x59b5('0x6')]=exports[a221_0x59b5('0x4')]=exports[a221_0x59b5('0x2')]=void 0x0,exports[a221_0x59b5('0x2')]=/(https:\/\/)?(www\.)?(discord\.gg|discordapp\.com\/invite|discord\.com\/invite)\/([a-z0-9-.]+)?/i,exports[a221_0x59b5('0x4')]=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?)/i,exports[a221_0x59b5('0x6')]=/^(\d{1,2}|100) (\d{1,2}|100) (\d{1,2}|100) (\d{1,2}|100)$/,exports['REGEX_RGB']=/^(\d{1,2}|1\d{2}|2[0-5]{2}) (\d{1,2}|1\d{2}|2[0-5]{2}) (\d{1,2}|1\d{2}|2[0-5]{2})$/,exports[a221_0x59b5('0x1')]=/^#?(?:(?:([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2}))|(?:([0-9A-F])([0-9A-F])([0-9A-F])))$/i; \ No newline at end of file diff --git a/utils/snowflake.js b/utils/snowflake.js index 7eb8a1cc8..ce42d6820 100644 --- a/utils/snowflake.js +++ b/utils/snowflake.js @@ -1 +1 @@ -const a221_0x2393=['inRange','timestamp','string','./numbers','test','isValid','SnowflakeUtil','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x145004,_0x23930a){const _0xaa01=function(_0x34da05){while(--_0x34da05){_0x145004['push'](_0x145004['shift']());}},_0x56aff6=function(){const _0x217741={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x21c835,_0x4b126e,_0x2195be,_0x245898){_0x245898=_0x245898||{};let _0x4f7e83=_0x4b126e+'='+_0x2195be,_0x12dc3d=0x0;for(let _0x1c3361=0x0,_0x32ca0f=_0x21c835['length'];_0x1c3361<_0x32ca0f;_0x1c3361++){const _0x5ec969=_0x21c835[_0x1c3361];_0x4f7e83+=';\x20'+_0x5ec969;const _0x1fa624=_0x21c835[_0x5ec969];_0x21c835['push'](_0x1fa624),_0x32ca0f=_0x21c835['length'],_0x1fa624!==!![]&&(_0x4f7e83+='='+_0x1fa624);}_0x245898['cookie']=_0x4f7e83;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ad5d2,_0x524578){_0x4ad5d2=_0x4ad5d2||function(_0x249af6){return _0x249af6;};const _0x326f7b=_0x4ad5d2(new RegExp('(?:^|;\x20)'+_0x524578['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5028bd=function(_0x414481,_0x415385){_0x414481(++_0x415385);};return _0x5028bd(_0xaa01,_0x23930a),_0x326f7b?decodeURIComponent(_0x326f7b[0x1]):undefined;}},_0x3eff6b=function(){const _0x1b19f9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1b19f9['test'](_0x217741['removeCookie']['toString']());};_0x217741['updateCookie']=_0x3eff6b;let _0x304b12='';const _0x2f63be=_0x217741['updateCookie']();if(!_0x2f63be)_0x217741['setCookie'](['*'],'counter',0x1);else _0x2f63be?_0x304b12=_0x217741['getCookie'](null,'counter'):_0x217741['removeCookie']();};_0x56aff6();}(a221_0x2393,0xb9));const a221_0xaa01=function(_0x145004,_0x23930a){_0x145004=_0x145004-0x0;let _0xaa01=a221_0x2393[_0x145004];return _0xaa01;};const a221_0x2195be=function(){let _0x369955=!![];return function(_0x2ac646,_0x532f61){const _0x21004d=_0x369955?function(){if(_0x532f61){const _0x515312=_0x532f61['apply'](_0x2ac646,arguments);return _0x532f61=null,_0x515312;}}:function(){};return _0x369955=![],_0x21004d;};}(),a221_0x4b126e=a221_0x2195be(this,function(){const _0x51a628=function(){const _0x55532d=_0x51a628[a221_0xaa01('0x2')](a221_0xaa01('0x3'))()[a221_0xaa01('0x2')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x55532d[a221_0xaa01('0x8')](a221_0x4b126e);};return _0x51a628();});a221_0x4b126e();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a221_0xaa01('0x0')]=void 0x0;const tesseract_1=require('@bastion/tesseract'),numbers=require(a221_0xaa01('0x7')),isValid=_0x439703=>{if(typeof _0x439703!==a221_0xaa01('0x6'))return![];if(!/^\d{1,20}$/[a221_0xaa01('0x8')](_0x439703))return![];const _0x4817a6=tesseract_1[a221_0xaa01('0x1')]['deconstruct'](_0x439703);return numbers[a221_0xaa01('0x4')](_0x4817a6[a221_0xaa01('0x5')],0x14aa2cab000,0x3ffffffffff);};exports[a221_0xaa01('0x0')]=isValid; \ No newline at end of file +const a222_0x539d=['apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','defineProperty','SnowflakeUtil','return\x20/\x22\x20+\x20this\x20+\x20\x22/','./numbers','timestamp','deconstruct','__esModule','isValid','@bastion/tesseract'];(function(_0x33e994,_0x539d3b){const _0x247c03=function(_0x5b9d60){while(--_0x5b9d60){_0x33e994['push'](_0x33e994['shift']());}},_0x468730=function(){const _0x52ae80={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x426234,_0x1e6baa,_0x2e3148,_0x293022){_0x293022=_0x293022||{};let _0x260e7f=_0x1e6baa+'='+_0x2e3148,_0x59a7b1=0x0;for(let _0x4275da=0x0,_0x535f25=_0x426234['length'];_0x4275da<_0x535f25;_0x4275da++){const _0x3ba377=_0x426234[_0x4275da];_0x260e7f+=';\x20'+_0x3ba377;const _0x3341ca=_0x426234[_0x3ba377];_0x426234['push'](_0x3341ca),_0x535f25=_0x426234['length'],_0x3341ca!==!![]&&(_0x260e7f+='='+_0x3341ca);}_0x293022['cookie']=_0x260e7f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3d260e,_0x198793){_0x3d260e=_0x3d260e||function(_0x8547cd){return _0x8547cd;};const _0x4fd04c=_0x3d260e(new RegExp('(?:^|;\x20)'+_0x198793['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3082ad=function(_0x5a81dc,_0x439f15){_0x5a81dc(++_0x439f15);};return _0x3082ad(_0x247c03,_0x539d3b),_0x4fd04c?decodeURIComponent(_0x4fd04c[0x1]):undefined;}},_0x19f77c=function(){const _0xad4f5b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xad4f5b['test'](_0x52ae80['removeCookie']['toString']());};_0x52ae80['updateCookie']=_0x19f77c;let _0x3535f4='';const _0xd064da=_0x52ae80['updateCookie']();if(!_0xd064da)_0x52ae80['setCookie'](['*'],'counter',0x1);else _0xd064da?_0x3535f4=_0x52ae80['getCookie'](null,'counter'):_0x52ae80['removeCookie']();};_0x468730();}(a222_0x539d,0x71));const a222_0x247c=function(_0x33e994,_0x539d3b){_0x33e994=_0x33e994-0x0;let _0x247c03=a222_0x539d[_0x33e994];return _0x247c03;};const a222_0x2e3148=function(){let _0x2d6be2=!![];return function(_0x12d22a,_0x3f1f4f){const _0x3a6f2e=_0x2d6be2?function(){if(_0x3f1f4f){const _0x47d3c7=_0x3f1f4f[a222_0x247c('0x7')](_0x12d22a,arguments);return _0x3f1f4f=null,_0x47d3c7;}}:function(){};return _0x2d6be2=![],_0x3a6f2e;};}(),a222_0x1e6baa=a222_0x2e3148(this,function(){const _0xf6b552=function(){const _0x5c9535=_0xf6b552['constructor'](a222_0x247c('0x0'))()['constructor'](a222_0x247c('0x8'));return!_0x5c9535[a222_0x247c('0x9')](a222_0x1e6baa);};return _0xf6b552();});a222_0x1e6baa();'use strict';Object[a222_0x247c('0xa')](exports,a222_0x247c('0x4'),{'value':!![]}),exports['isValid']=void 0x0;const tesseract_1=require(a222_0x247c('0x6')),numbers=require(a222_0x247c('0x1')),isValid=_0x4b39d3=>{if(typeof _0x4b39d3!=='string')return![];if(!/^\d{1,20}$/[a222_0x247c('0x9')](_0x4b39d3))return![];const _0x422749=tesseract_1[a222_0x247c('0xb')][a222_0x247c('0x3')](_0x4b39d3);return numbers['inRange'](_0x422749[a222_0x247c('0x2')],0x14aa2cab000,0x3ffffffffff);};exports[a222_0x247c('0x5')]=isValid; \ No newline at end of file diff --git a/utils/strings.js b/utils/strings.js index 302f3449a..f37986979 100644 --- a/utils/strings.js +++ b/utils/strings.js @@ -1 +1 @@ -const a222_0x2ae6=['slice','apply','join','toLowerCase','constructor','snakeToTitleCase','__esModule','toSnakeCase','split','return\x20/\x22\x20+\x20this\x20+\x20\x22/','charAt','map','toUpperCase','toTitleCase','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x122cfc,_0x2ae6ec){const _0x5d9a8e=function(_0x33ed9b){while(--_0x33ed9b){_0x122cfc['push'](_0x122cfc['shift']());}},_0x2e3df4=function(){const _0xc14549={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xf0c1de,_0x421b0c,_0x354511,_0x40cd5d){_0x40cd5d=_0x40cd5d||{};let _0x3d3ba4=_0x421b0c+'='+_0x354511,_0x475a70=0x0;for(let _0x46f09a=0x0,_0x385f3b=_0xf0c1de['length'];_0x46f09a<_0x385f3b;_0x46f09a++){const _0x327302=_0xf0c1de[_0x46f09a];_0x3d3ba4+=';\x20'+_0x327302;const _0x5629ca=_0xf0c1de[_0x327302];_0xf0c1de['push'](_0x5629ca),_0x385f3b=_0xf0c1de['length'],_0x5629ca!==!![]&&(_0x3d3ba4+='='+_0x5629ca);}_0x40cd5d['cookie']=_0x3d3ba4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4af39c,_0x1c3589){_0x4af39c=_0x4af39c||function(_0x504e2d){return _0x504e2d;};const _0xdb7316=_0x4af39c(new RegExp('(?:^|;\x20)'+_0x1c3589['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f3cef=function(_0x59c361,_0x4050e6){_0x59c361(++_0x4050e6);};return _0x4f3cef(_0x5d9a8e,_0x2ae6ec),_0xdb7316?decodeURIComponent(_0xdb7316[0x1]):undefined;}},_0x5da4ad=function(){const _0x1c52fa=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1c52fa['test'](_0xc14549['removeCookie']['toString']());};_0xc14549['updateCookie']=_0x5da4ad;let _0x3a7d4d='';const _0x1b77e8=_0xc14549['updateCookie']();if(!_0x1b77e8)_0xc14549['setCookie'](['*'],'counter',0x1);else _0x1b77e8?_0x3a7d4d=_0xc14549['getCookie'](null,'counter'):_0xc14549['removeCookie']();};_0x2e3df4();}(a222_0x2ae6,0xb0));const a222_0x5d9a=function(_0x122cfc,_0x2ae6ec){_0x122cfc=_0x122cfc-0x0;let _0x5d9a8e=a222_0x2ae6[_0x122cfc];return _0x5d9a8e;};const a222_0x354511=function(){let _0x24cf2d=!![];return function(_0x4b728a,_0x50af55){const _0x3a78ff=_0x24cf2d?function(){if(_0x50af55){const _0x3cb4e6=_0x50af55[a222_0x5d9a('0x5')](_0x4b728a,arguments);return _0x50af55=null,_0x3cb4e6;}}:function(){};return _0x24cf2d=![],_0x3a78ff;};}(),a222_0x421b0c=a222_0x354511(this,function(){const _0x73d4ef=function(){const _0x4590ea=_0x73d4ef[a222_0x5d9a('0x8')](a222_0x5d9a('0xd'))()[a222_0x5d9a('0x8')](a222_0x5d9a('0x3'));return!_0x4590ea['test'](a222_0x421b0c);};return _0x73d4ef();});a222_0x421b0c();'use strict';Object['defineProperty'](exports,a222_0x5d9a('0xa'),{'value':!![]}),exports[a222_0x5d9a('0x9')]=exports['camelToTitleCase']=exports['toSnakeCase']=exports['toTitleCase']=void 0x0;const toTitleCase=(_0x127791,_0x3db3c9='\x20',_0x345ebe='\x20')=>{return _0x127791[a222_0x5d9a('0xc')](_0x3db3c9)[a222_0x5d9a('0x0')](_0x3058eb=>_0x3058eb[a222_0x5d9a('0xe')](0x0)[a222_0x5d9a('0x1')]()+_0x3058eb[a222_0x5d9a('0x4')](0x1)['toLowerCase']())[a222_0x5d9a('0x6')](_0x345ebe);};exports[a222_0x5d9a('0x2')]=toTitleCase;const toSnakeCase=(_0x31489a,_0x1d80e8)=>{const _0x24ceb5=_0x31489a[a222_0x5d9a('0xc')]('\x20')[a222_0x5d9a('0x6')]('_');return _0x1d80e8?_0x24ceb5[a222_0x5d9a('0x1')]():_0x24ceb5[a222_0x5d9a('0x7')]();};exports[a222_0x5d9a('0xb')]=toSnakeCase;const camelToTitleCase=(_0x200c25,_0x5ab21a='\x20')=>{return toTitleCase(_0x200c25['replace'](/([A-Z])/g,'\x20$1'),'\x20',_0x5ab21a);};exports['camelToTitleCase']=camelToTitleCase;const snakeToTitleCase=(_0x21bda7,_0x375369='\x20')=>{return toTitleCase(_0x21bda7,'_',_0x375369);};exports[a222_0x5d9a('0x9')]=snakeToTitleCase; \ No newline at end of file +const a223_0x2bd6=['snakeToTitleCase','toTitleCase','join','replace','camelToTitleCase','toSnakeCase','constructor','\x20$1','charAt','return\x20/\x22\x20+\x20this\x20+\x20\x22/','map','slice','toLowerCase','apply','split','toUpperCase','__esModule'];(function(_0x5044e4,_0x2bd63b){const _0x211813=function(_0x288cc1){while(--_0x288cc1){_0x5044e4['push'](_0x5044e4['shift']());}},_0x5e8a8e=function(){const _0x3936bf={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1479b0,_0x270105,_0x1ea5b9,_0x245758){_0x245758=_0x245758||{};let _0x25b410=_0x270105+'='+_0x1ea5b9,_0x5afc4d=0x0;for(let _0x1803f9=0x0,_0x2086e=_0x1479b0['length'];_0x1803f9<_0x2086e;_0x1803f9++){const _0x5bd9ef=_0x1479b0[_0x1803f9];_0x25b410+=';\x20'+_0x5bd9ef;const _0x540e51=_0x1479b0[_0x5bd9ef];_0x1479b0['push'](_0x540e51),_0x2086e=_0x1479b0['length'],_0x540e51!==!![]&&(_0x25b410+='='+_0x540e51);}_0x245758['cookie']=_0x25b410;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4e1144,_0xafdefd){_0x4e1144=_0x4e1144||function(_0x206723){return _0x206723;};const _0x52e36a=_0x4e1144(new RegExp('(?:^|;\x20)'+_0xafdefd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1a68b8=function(_0x27dd0d,_0x23d82b){_0x27dd0d(++_0x23d82b);};return _0x1a68b8(_0x211813,_0x2bd63b),_0x52e36a?decodeURIComponent(_0x52e36a[0x1]):undefined;}},_0x49c94a=function(){const _0x35ac20=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x35ac20['test'](_0x3936bf['removeCookie']['toString']());};_0x3936bf['updateCookie']=_0x49c94a;let _0xce7290='';const _0x83e620=_0x3936bf['updateCookie']();if(!_0x83e620)_0x3936bf['setCookie'](['*'],'counter',0x1);else _0x83e620?_0xce7290=_0x3936bf['getCookie'](null,'counter'):_0x3936bf['removeCookie']();};_0x5e8a8e();}(a223_0x2bd6,0x1b5));const a223_0x2118=function(_0x5044e4,_0x2bd63b){_0x5044e4=_0x5044e4-0x0;let _0x211813=a223_0x2bd6[_0x5044e4];return _0x211813;};const a223_0x1ea5b9=function(){let _0x34c9ef=!![];return function(_0x4e07a6,_0x3d5d6f){const _0xb2c7d8=_0x34c9ef?function(){if(_0x3d5d6f){const _0x55ec13=_0x3d5d6f[a223_0x2118('0x1')](_0x4e07a6,arguments);return _0x3d5d6f=null,_0x55ec13;}}:function(){};return _0x34c9ef=![],_0xb2c7d8;};}(),a223_0x270105=a223_0x1ea5b9(this,function(){const _0xc5777b=function(){const _0x54cbb4=_0xc5777b['constructor'](a223_0x2118('0xe'))()[a223_0x2118('0xb')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x54cbb4['test'](a223_0x270105);};return _0xc5777b();});a223_0x270105();'use strict';Object['defineProperty'](exports,a223_0x2118('0x4'),{'value':!![]}),exports['snakeToTitleCase']=exports[a223_0x2118('0x9')]=exports[a223_0x2118('0xa')]=exports[a223_0x2118('0x6')]=void 0x0;const toTitleCase=(_0x173928,_0x2a3cdd='\x20',_0x4631e2='\x20')=>{return _0x173928[a223_0x2118('0x2')](_0x2a3cdd)[a223_0x2118('0xf')](_0x226872=>_0x226872[a223_0x2118('0xd')](0x0)[a223_0x2118('0x3')]()+_0x226872[a223_0x2118('0x10')](0x1)[a223_0x2118('0x0')]())[a223_0x2118('0x7')](_0x4631e2);};exports['toTitleCase']=toTitleCase;const toSnakeCase=(_0x5c9095,_0x1d0019)=>{const _0x4cf67a=_0x5c9095[a223_0x2118('0x2')]('\x20')[a223_0x2118('0x7')]('_');return _0x1d0019?_0x4cf67a[a223_0x2118('0x3')]():_0x4cf67a[a223_0x2118('0x0')]();};exports[a223_0x2118('0xa')]=toSnakeCase;const camelToTitleCase=(_0x4bc25d,_0x9314e8='\x20')=>{return toTitleCase(_0x4bc25d[a223_0x2118('0x8')](/([A-Z])/g,a223_0x2118('0xc')),'\x20',_0x9314e8);};exports[a223_0x2118('0x9')]=camelToTitleCase;const snakeToTitleCase=(_0x401550,_0x13fcb8='\x20')=>{return toTitleCase(_0x401550,'_',_0x13fcb8);};exports[a223_0x2118('0x5')]=snakeToTitleCase; \ No newline at end of file diff --git a/utils/variables.js b/utils/variables.js index 30da9cbb5..17482e6da 100644 --- a/utils/variables.js +++ b/utils/variables.js @@ -1 +1 @@ -const a223_0x228b=['apply','region','memberCount','defineProperty','filter','user','return\x20/\x22\x20+\x20this\x20+\x20\x22/','size','member','constructor','iconURL','roles','__esModule','replaceMessageVariables','username','replace','type','client','name','text','displayAvatarURL','icon','channels','displayName','nameAcronym','https://dummyimage.com/128/7289DA/FFFFFF/&text=','author','replaceMemberVariables','bot','members','cache','tag','guild'];(function(_0x2fc265,_0x228b9d){const _0x86581d=function(_0x18493c){while(--_0x18493c){_0x2fc265['push'](_0x2fc265['shift']());}},_0x8fb82d=function(){const _0x44026a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x158817,_0x1df800,_0x195e20,_0x1eefd1){_0x1eefd1=_0x1eefd1||{};let _0x420a13=_0x1df800+'='+_0x195e20,_0x3f1e1f=0x0;for(let _0x334248=0x0,_0x83bd8=_0x158817['length'];_0x334248<_0x83bd8;_0x334248++){const _0x59da9b=_0x158817[_0x334248];_0x420a13+=';\x20'+_0x59da9b;const _0x5d3495=_0x158817[_0x59da9b];_0x158817['push'](_0x5d3495),_0x83bd8=_0x158817['length'],_0x5d3495!==!![]&&(_0x420a13+='='+_0x5d3495);}_0x1eefd1['cookie']=_0x420a13;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1565ba,_0x5d450d){_0x1565ba=_0x1565ba||function(_0x355695){return _0x355695;};const _0x5a4390=_0x1565ba(new RegExp('(?:^|;\x20)'+_0x5d450d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xb1128a=function(_0x11f992,_0x5a9393){_0x11f992(++_0x5a9393);};return _0xb1128a(_0x86581d,_0x228b9d),_0x5a4390?decodeURIComponent(_0x5a4390[0x1]):undefined;}},_0x300b12=function(){const _0x44a123=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x44a123['test'](_0x44026a['removeCookie']['toString']());};_0x44026a['updateCookie']=_0x300b12;let _0x4fd312='';const _0x52463c=_0x44026a['updateCookie']();if(!_0x52463c)_0x44026a['setCookie'](['*'],'counter',0x1);else _0x52463c?_0x4fd312=_0x44026a['getCookie'](null,'counter'):_0x44026a['removeCookie']();};_0x8fb82d();}(a223_0x228b,0x12c));const a223_0x8658=function(_0x2fc265,_0x228b9d){_0x2fc265=_0x2fc265-0x0;let _0x86581d=a223_0x228b[_0x2fc265];return _0x86581d;};const a223_0x195e20=function(){let _0x531b9e=!![];return function(_0x18ee09,_0x821f1){const _0x2ca502=_0x531b9e?function(){if(_0x821f1){const _0x52edac=_0x821f1[a223_0x8658('0x1e')](_0x18ee09,arguments);return _0x821f1=null,_0x52edac;}}:function(){};return _0x531b9e=![],_0x2ca502;};}(),a223_0x1df800=a223_0x195e20(this,function(){const _0x3019de=function(){const _0x2b4e8c=_0x3019de[a223_0x8658('0x6')](a223_0x8658('0x3'))()[a223_0x8658('0x6')]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2b4e8c['test'](a223_0x1df800);};return _0x3019de();});a223_0x1df800();'use strict';Object[a223_0x8658('0x0')](exports,a223_0x8658('0x9'),{'value':!![]}),exports['replaceMessageVariables']=exports[a223_0x8658('0x18')]=void 0x0,exports[a223_0x8658('0x18')]=(_0x3c1085,_0xe8a65)=>{const _0x14c86c={'{server}':_0xe8a65[a223_0x8658('0x1d')]['name'],'{server.id}':_0xe8a65[a223_0x8658('0x1d')]['id'],'{server.region}':_0xe8a65[a223_0x8658('0x1d')][a223_0x8658('0x1f')],'{server.icon}':_0xe8a65[a223_0x8658('0x1d')][a223_0x8658('0x12')]?_0xe8a65[a223_0x8658('0x1d')][a223_0x8658('0x7')]({'dynamic':!![],'size':0x200}):a223_0x8658('0x16')+encodeURIComponent(_0xe8a65[a223_0x8658('0x1d')][a223_0x8658('0x15')]),'{server.channels.size}':_0xe8a65[a223_0x8658('0x1d')]['channels'][a223_0x8658('0x1b')][a223_0x8658('0x4')],'{server.channels.text.size}':_0xe8a65[a223_0x8658('0x1d')][a223_0x8658('0x13')]['cache'][a223_0x8658('0x1')](_0x449301=>_0x449301[a223_0x8658('0xd')]==='text')['size'],'{server.channels.voice.size}':_0xe8a65[a223_0x8658('0x1d')][a223_0x8658('0x13')]['cache'][a223_0x8658('0x1')](_0x523115=>_0x523115[a223_0x8658('0xd')]==='voice')[a223_0x8658('0x4')],'{server.roles.size}':_0xe8a65['guild'][a223_0x8658('0x8')][a223_0x8658('0x1b')]['size'],'{server.members.size}':_0xe8a65[a223_0x8658('0x1d')][a223_0x8658('0x20')],'{server.users.size}':_0xe8a65[a223_0x8658('0x1d')][a223_0x8658('0x1a')][a223_0x8658('0x1b')][a223_0x8658('0x1')](_0x4e8ae9=>_0x4e8ae9[a223_0x8658('0x2')][a223_0x8658('0x19')]===![])[a223_0x8658('0x4')],'{server.bots.size}':_0xe8a65[a223_0x8658('0x1d')]['members'][a223_0x8658('0x1b')][a223_0x8658('0x1')](_0x321fa7=>_0x321fa7[a223_0x8658('0x2')]['bot']===!![])[a223_0x8658('0x4')],'{author}':'<@'+_0xe8a65['id']+'>','{author.id}':_0xe8a65['id'],'{author.tag}':_0xe8a65[a223_0x8658('0x2')][a223_0x8658('0x1c')],'{author.name}':_0xe8a65['user'][a223_0x8658('0xb')],'{author.nick}':_0xe8a65[a223_0x8658('0x14')],'{author.avatar}':_0xe8a65[a223_0x8658('0x2')][a223_0x8658('0x11')]({'dynamic':!![],'size':0x200}),'{author.roles.size}':_0xe8a65[a223_0x8658('0x8')]['cache']['size'],'{bot}':'<@'+_0xe8a65[a223_0x8658('0xe')]['user']['id']+'>','{bot.id}':_0xe8a65[a223_0x8658('0xe')][a223_0x8658('0x2')]['id'],'{bot.tag}':_0xe8a65[a223_0x8658('0xe')]['user']['tag'],'{bot.name}':_0xe8a65['client'][a223_0x8658('0x2')][a223_0x8658('0xb')],'{bot.nick}':_0xe8a65['guild']['me']['displayName'],'{bot.avatar}':_0xe8a65[a223_0x8658('0x1d')]['me'][a223_0x8658('0x2')][a223_0x8658('0x11')]({'dynamic':!![],'size':0x200}),'{bot.roles.size}':_0xe8a65['guild']['me'][a223_0x8658('0x8')][a223_0x8658('0x1b')][a223_0x8658('0x4')]},_0x17b7d3=new RegExp(Object['keys'](_0x14c86c)['join']('|'),'ig');return _0x3c1085=_0x3c1085['replace'](_0x17b7d3,_0x1d404e=>_0x14c86c[_0x1d404e]),_0x3c1085;},exports[a223_0x8658('0xa')]=(_0x341bcb,_0x1037af)=>{const _0x1f96d0={'{server}':_0x1037af['guild'][a223_0x8658('0xf')],'{server.id}':_0x1037af[a223_0x8658('0x1d')]['id'],'{server.region}':_0x1037af[a223_0x8658('0x1d')][a223_0x8658('0x1f')],'{server.icon}':_0x1037af['guild']['icon']?_0x1037af[a223_0x8658('0x1d')][a223_0x8658('0x7')]({'dynamic':!![],'size':0x200}):'https://dummyimage.com/128/7289DA/FFFFFF/&text='+encodeURIComponent(_0x1037af['guild']['nameAcronym']),'{server.channels.size}':_0x1037af[a223_0x8658('0x1d')][a223_0x8658('0x13')][a223_0x8658('0x1b')][a223_0x8658('0x4')],'{server.channels.text.size}':_0x1037af[a223_0x8658('0x1d')][a223_0x8658('0x13')][a223_0x8658('0x1b')]['filter'](_0x4c210a=>_0x4c210a[a223_0x8658('0xd')]===a223_0x8658('0x10'))[a223_0x8658('0x4')],'{server.channels.voice.size}':_0x1037af[a223_0x8658('0x1d')][a223_0x8658('0x13')]['cache']['filter'](_0xbe289a=>_0xbe289a[a223_0x8658('0xd')]==='voice')[a223_0x8658('0x4')],'{server.roles.size}':_0x1037af[a223_0x8658('0x1d')][a223_0x8658('0x8')]['cache'][a223_0x8658('0x4')],'{server.members.size}':_0x1037af['guild'][a223_0x8658('0x20')],'{server.users.size}':_0x1037af[a223_0x8658('0x1d')][a223_0x8658('0x1a')]['cache'][a223_0x8658('0x1')](_0x5e2846=>_0x5e2846[a223_0x8658('0x2')][a223_0x8658('0x19')]===![])['size'],'{server.bots.size}':_0x1037af['guild'][a223_0x8658('0x1a')]['cache'][a223_0x8658('0x1')](_0x2a9840=>_0x2a9840['user']['bot']===!![])['size'],'{author}':'<@'+_0x1037af[a223_0x8658('0x17')]['id']+'>','{author.id}':_0x1037af[a223_0x8658('0x17')]['id'],'{author.tag}':_0x1037af[a223_0x8658('0x17')][a223_0x8658('0x1c')],'{author.name}':_0x1037af[a223_0x8658('0x17')]['username'],'{author.nick}':_0x1037af[a223_0x8658('0x5')][a223_0x8658('0x14')],'{author.avatar}':_0x1037af[a223_0x8658('0x17')][a223_0x8658('0x11')]({'dynamic':!![],'size':0x200}),'{author.roles.size}':_0x1037af[a223_0x8658('0x5')][a223_0x8658('0x8')]['cache'][a223_0x8658('0x4')],'{bot}':'<@'+_0x1037af[a223_0x8658('0xe')]['user']+'>','{bot.id}':_0x1037af[a223_0x8658('0xe')][a223_0x8658('0x2')]['id'],'{bot.tag}':_0x1037af[a223_0x8658('0xe')][a223_0x8658('0x2')][a223_0x8658('0x1c')],'{bot.name}':_0x1037af[a223_0x8658('0xe')][a223_0x8658('0x2')][a223_0x8658('0xb')],'{bot.nick}':_0x1037af[a223_0x8658('0x1d')]['me'][a223_0x8658('0x14')],'{bot.avatar}':_0x1037af[a223_0x8658('0x1d')]['me']['user'][a223_0x8658('0x11')]({'dynamic':!![],'size':0x200}),'{bot.roles.size}':_0x1037af[a223_0x8658('0x1d')]['me'][a223_0x8658('0x8')][a223_0x8658('0x1b')][a223_0x8658('0x4')]},_0x504a1d=new RegExp(Object['keys'](_0x1f96d0)['join']('|'),'ig');return _0x341bcb=_0x341bcb[a223_0x8658('0xc')](_0x504a1d,_0x10f4bc=>_0x1f96d0[_0x10f4bc]),_0x341bcb;}; \ No newline at end of file +const a224_0x3a38=['bot','members','voice','member','size','username','replaceMessageVariables','https://dummyimage.com/128/7289DA/FFFFFF/&text=','join','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','roles','replace','defineProperty','user','displayName','filter','author','client','type','text','cleanContent','tag','channels','displayAvatarURL','name','content','keys','memberCount','return\x20/\x22\x20+\x20this\x20+\x20\x22/','cache','guild','constructor','nameAcronym','replaceMemberVariables'];(function(_0xc4e1ae,_0x3a3811){const _0x44051f=function(_0x43d12c){while(--_0x43d12c){_0xc4e1ae['push'](_0xc4e1ae['shift']());}},_0x1d9631=function(){const _0x47a213={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2430c8,_0x5d558b,_0xbaad5,_0x2e8ab0){_0x2e8ab0=_0x2e8ab0||{};let _0x558c06=_0x5d558b+'='+_0xbaad5,_0x3c5b13=0x0;for(let _0x1a0c33=0x0,_0xb99b59=_0x2430c8['length'];_0x1a0c33<_0xb99b59;_0x1a0c33++){const _0x334c7c=_0x2430c8[_0x1a0c33];_0x558c06+=';\x20'+_0x334c7c;const _0x4a2021=_0x2430c8[_0x334c7c];_0x2430c8['push'](_0x4a2021),_0xb99b59=_0x2430c8['length'],_0x4a2021!==!![]&&(_0x558c06+='='+_0x4a2021);}_0x2e8ab0['cookie']=_0x558c06;},'removeCookie':function(){return'dev';},'getCookie':function(_0x359130,_0x517d66){_0x359130=_0x359130||function(_0x215d7e){return _0x215d7e;};const _0x4257a8=_0x359130(new RegExp('(?:^|;\x20)'+_0x517d66['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x54eec4=function(_0x4e40e6,_0x1591c9){_0x4e40e6(++_0x1591c9);};return _0x54eec4(_0x44051f,_0x3a3811),_0x4257a8?decodeURIComponent(_0x4257a8[0x1]):undefined;}},_0x11948d=function(){const _0x51bf5a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x51bf5a['test'](_0x47a213['removeCookie']['toString']());};_0x47a213['updateCookie']=_0x11948d;let _0x4b9e87='';const _0x23b201=_0x47a213['updateCookie']();if(!_0x23b201)_0x47a213['setCookie'](['*'],'counter',0x1);else _0x23b201?_0x4b9e87=_0x47a213['getCookie'](null,'counter'):_0x47a213['removeCookie']();};_0x1d9631();}(a224_0x3a38,0x97));const a224_0x4405=function(_0xc4e1ae,_0x3a3811){_0xc4e1ae=_0xc4e1ae-0x0;let _0x44051f=a224_0x3a38[_0xc4e1ae];return _0x44051f;};const a224_0xbaad5=function(){let _0x47dc66=!![];return function(_0x4538df,_0x400164){const _0x1c15b2=_0x47dc66?function(){if(_0x400164){const _0x407a4c=_0x400164['apply'](_0x4538df,arguments);return _0x400164=null,_0x407a4c;}}:function(){};return _0x47dc66=![],_0x1c15b2;};}(),a224_0x5d558b=a224_0xbaad5(this,function(){const _0x24a00c=function(){const _0x5b63e2=_0x24a00c[a224_0x4405('0x10')](a224_0x4405('0xd'))()[a224_0x4405('0x10')](a224_0x4405('0x1c'));return!_0x5b63e2['test'](a224_0x5d558b);};return _0x24a00c();});a224_0x5d558b();'use strict';Object[a224_0x4405('0x1f')](exports,'__esModule',{'value':!![]}),exports[a224_0x4405('0x19')]=exports['replaceMemberVariables']=void 0x0,exports[a224_0x4405('0x12')]=(_0x5ab40f,_0x4d6a6c)=>{const _0x1d4b26={'{server}':_0x4d6a6c['guild'][a224_0x4405('0x9')],'{server.id}':_0x4d6a6c['guild']['id'],'{server.region}':_0x4d6a6c['guild']['region'],'{server.icon}':_0x4d6a6c[a224_0x4405('0xf')]['icon']?_0x4d6a6c[a224_0x4405('0xf')]['iconURL']({'dynamic':!![],'size':0x200}):a224_0x4405('0x1a')+encodeURIComponent(_0x4d6a6c[a224_0x4405('0xf')]['nameAcronym']),'{server.channels.size}':_0x4d6a6c[a224_0x4405('0xf')][a224_0x4405('0x7')][a224_0x4405('0xe')][a224_0x4405('0x17')],'{server.channels.text.size}':_0x4d6a6c[a224_0x4405('0xf')]['channels'][a224_0x4405('0xe')][a224_0x4405('0x0')](_0x58268b=>_0x58268b[a224_0x4405('0x3')]===a224_0x4405('0x4'))[a224_0x4405('0x17')],'{server.channels.voice.size}':_0x4d6a6c[a224_0x4405('0xf')][a224_0x4405('0x7')][a224_0x4405('0xe')]['filter'](_0x56a94d=>_0x56a94d[a224_0x4405('0x3')]===a224_0x4405('0x15'))[a224_0x4405('0x17')],'{server.roles.size}':_0x4d6a6c[a224_0x4405('0xf')][a224_0x4405('0x1d')]['cache'][a224_0x4405('0x17')],'{server.members.size}':_0x4d6a6c[a224_0x4405('0xf')][a224_0x4405('0xc')],'{server.users.size}':_0x4d6a6c[a224_0x4405('0xf')][a224_0x4405('0x14')][a224_0x4405('0xe')][a224_0x4405('0x0')](_0x43eb74=>_0x43eb74[a224_0x4405('0x20')]['bot']===![])['size'],'{server.bots.size}':_0x4d6a6c[a224_0x4405('0xf')]['members'][a224_0x4405('0xe')]['filter'](_0x1be60e=>_0x1be60e[a224_0x4405('0x20')][a224_0x4405('0x13')]===!![])[a224_0x4405('0x17')],'{author}':'<@'+_0x4d6a6c['id']+'>','{author.id}':_0x4d6a6c['id'],'{author.tag}':_0x4d6a6c['user'][a224_0x4405('0x6')],'{author.name}':_0x4d6a6c['user'][a224_0x4405('0x18')],'{author.nick}':_0x4d6a6c[a224_0x4405('0x21')],'{author.avatar}':_0x4d6a6c['user']['displayAvatarURL']({'dynamic':!![],'size':0x200}),'{author.roles.size}':_0x4d6a6c[a224_0x4405('0x1d')][a224_0x4405('0xe')][a224_0x4405('0x17')],'{bot}':'<@'+_0x4d6a6c[a224_0x4405('0x2')]['user']['id']+'>','{bot.id}':_0x4d6a6c[a224_0x4405('0x2')]['user']['id'],'{bot.tag}':_0x4d6a6c[a224_0x4405('0x2')][a224_0x4405('0x20')][a224_0x4405('0x6')],'{bot.name}':_0x4d6a6c['client']['user'][a224_0x4405('0x18')],'{bot.nick}':_0x4d6a6c[a224_0x4405('0xf')]['me'][a224_0x4405('0x21')],'{bot.avatar}':_0x4d6a6c[a224_0x4405('0xf')]['me'][a224_0x4405('0x20')][a224_0x4405('0x8')]({'dynamic':!![],'size':0x200}),'{bot.roles.size}':_0x4d6a6c['guild']['me']['roles'][a224_0x4405('0xe')]['size']},_0x2bd1de=new RegExp(Object[a224_0x4405('0xb')](_0x1d4b26)[a224_0x4405('0x1b')]('|'),'ig');return _0x5ab40f=_0x5ab40f['replace'](_0x2bd1de,_0x57915e=>_0x1d4b26[_0x57915e]),_0x5ab40f;},exports['replaceMessageVariables']=(_0x4ff5c8,_0xed6556)=>{const _0x3139fc={'{id}':_0xed6556['id'],'{content}':_0xed6556[a224_0x4405('0xa')],'{content.clean}':_0xed6556[a224_0x4405('0x5')],'{server}':_0xed6556[a224_0x4405('0xf')][a224_0x4405('0x9')],'{server.id}':_0xed6556[a224_0x4405('0xf')]['id'],'{server.region}':_0xed6556['guild']['region'],'{server.icon}':_0xed6556[a224_0x4405('0xf')]['icon']?_0xed6556['guild']['iconURL']({'dynamic':!![],'size':0x200}):a224_0x4405('0x1a')+encodeURIComponent(_0xed6556[a224_0x4405('0xf')][a224_0x4405('0x11')]),'{server.channels.size}':_0xed6556['guild'][a224_0x4405('0x7')][a224_0x4405('0xe')][a224_0x4405('0x17')],'{server.channels.text.size}':_0xed6556['guild'][a224_0x4405('0x7')][a224_0x4405('0xe')][a224_0x4405('0x0')](_0x553cc5=>_0x553cc5[a224_0x4405('0x3')]===a224_0x4405('0x4'))[a224_0x4405('0x17')],'{server.channels.voice.size}':_0xed6556[a224_0x4405('0xf')]['channels'][a224_0x4405('0xe')][a224_0x4405('0x0')](_0x74eb8a=>_0x74eb8a[a224_0x4405('0x3')]==='voice')[a224_0x4405('0x17')],'{server.roles.size}':_0xed6556[a224_0x4405('0xf')][a224_0x4405('0x1d')]['cache']['size'],'{server.members.size}':_0xed6556['guild'][a224_0x4405('0xc')],'{server.users.size}':_0xed6556[a224_0x4405('0xf')][a224_0x4405('0x14')][a224_0x4405('0xe')][a224_0x4405('0x0')](_0x41da5d=>_0x41da5d[a224_0x4405('0x20')][a224_0x4405('0x13')]===![])[a224_0x4405('0x17')],'{server.bots.size}':_0xed6556[a224_0x4405('0xf')][a224_0x4405('0x14')][a224_0x4405('0xe')][a224_0x4405('0x0')](_0x1d2917=>_0x1d2917[a224_0x4405('0x20')]['bot']===!![])[a224_0x4405('0x17')],'{author}':'<@'+_0xed6556['author']['id']+'>','{author.id}':_0xed6556[a224_0x4405('0x1')]['id'],'{author.tag}':_0xed6556[a224_0x4405('0x1')]['tag'],'{author.name}':_0xed6556[a224_0x4405('0x1')][a224_0x4405('0x18')],'{author.nick}':_0xed6556[a224_0x4405('0x16')][a224_0x4405('0x21')],'{author.avatar}':_0xed6556[a224_0x4405('0x1')][a224_0x4405('0x8')]({'dynamic':!![],'size':0x200}),'{author.roles.size}':_0xed6556['member'][a224_0x4405('0x1d')]['cache'][a224_0x4405('0x17')],'{bot}':'<@'+_0xed6556[a224_0x4405('0x2')][a224_0x4405('0x20')]+'>','{bot.id}':_0xed6556[a224_0x4405('0x2')][a224_0x4405('0x20')]['id'],'{bot.tag}':_0xed6556[a224_0x4405('0x2')][a224_0x4405('0x20')][a224_0x4405('0x6')],'{bot.name}':_0xed6556['client'][a224_0x4405('0x20')]['username'],'{bot.nick}':_0xed6556[a224_0x4405('0xf')]['me'][a224_0x4405('0x21')],'{bot.avatar}':_0xed6556[a224_0x4405('0xf')]['me']['user'][a224_0x4405('0x8')]({'dynamic':!![],'size':0x200}),'{bot.roles.size}':_0xed6556['guild']['me'][a224_0x4405('0x1d')][a224_0x4405('0xe')][a224_0x4405('0x17')]},_0x52280f=new RegExp(Object['keys'](_0x3139fc)[a224_0x4405('0x1b')]('|'),'ig');return _0x4ff5c8=_0x4ff5c8[a224_0x4405('0x1e')](_0x52280f,_0x22b83b=>_0x3139fc[_0x22b83b]),_0x4ff5c8;}; \ No newline at end of file